Skip to content

Commit 3d74325

Browse files
committed
fix: index.cjs
1 parent bf6b00b commit 3d74325

5 files changed

Lines changed: 1102 additions & 535 deletions

File tree

index.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use strict";
2+
3+
module.exports = require("./dist/cjs/index.js");

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"type": "GitHub Sponsors ❤",
4040
"url": "https://github.com/sponsors/CoCreate-app"
4141
},
42-
"main": "./dist/cjs/index.js",
42+
"main": "./dist/cjs/index.cjs",
4343
"module": "./dist/esm/index.js",
4444
"exports": {
4545
".": {
4646
"import": "./dist/esm/index.js",
47-
"require": "./dist/cjs/index.js"
47+
"require": "./dist/cjs/index.cjs"
4848
},
4949
"./getRelativePath": {
5050
"import": "./dist/esm/getRelativePath.js",
@@ -134,10 +134,6 @@
134134
"import": "./dist/esm/attributes.js",
135135
"require": "./dist/cjs/attributes.js"
136136
},
137-
"./safeParse": {
138-
"import": "./dist/esm/safeParse.js",
139-
"require": "./dist/cjs/safeParse.js"
140-
},
141137
"./processOperators": {
142138
"import": "./dist/esm/operators.js",
143139
"require": "./dist/cjs/operators.js"

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export { cssPath } from "./cssPath.js";
1515
export { queryElements, checkMediaQueries } from "./queryElements.js";
1616
export { queryData, searchData, sortData } from "./dataQuery.js";
1717
export { getAttributes, getAttributeNames, setAttributeNames } from "./attributes.js";
18-
export { safeParse } from "./safeParse.js";
18+
// export { safeParse } from "./safeParse.js";
1919
export { clickedElement } from "./clickedElement.js";
2020
export { processOperators, processOperatorsAsync } from "./operators.js";
2121

@@ -36,7 +36,7 @@ import { cssPath } from "./cssPath.js";
3636
import { queryElements, checkMediaQueries } from "./queryElements.js";
3737
import { queryData, searchData, sortData } from "./dataQuery.js";
3838
import { getAttributes, getAttributeNames, setAttributeNames } from "./attributes.js";
39-
import { safeParse } from "./safeParse.js";
39+
// import { safeParse } from "./safeParse.js";
4040
import { processOperators, processOperatorsAsync } from "./operators.js";
4141

4242
const utils = {
@@ -62,7 +62,7 @@ const utils = {
6262
getAttributes,
6363
setAttributeNames,
6464
getAttributeNames,
65-
safeParse,
65+
// safeParse,
6666
processOperators,
6767
processOperatorsAsync
6868
};

0 commit comments

Comments
 (0)