domql 1.6.66 → 1.6.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +5 -8
- package/dist/esm/index.js +11 -10
- package/dist/iife/index.js +11 -10
- package/package.json +2 -2
- package/src/index.cjs +16 -0
- package/src/index.js +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -18,7 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var src_exports = {};
|
|
20
20
|
__export(src_exports, {
|
|
21
|
-
|
|
21
|
+
TREE: () => import_tree.TREE,
|
|
22
|
+
create: () => import_element.create,
|
|
23
|
+
define: () => import_element.define,
|
|
24
|
+
parse: () => import_element.parse,
|
|
25
|
+
set: () => import_element.set
|
|
22
26
|
});
|
|
23
27
|
module.exports = __toCommonJS(src_exports);
|
|
24
28
|
var import_globals = require("@domql/globals");
|
|
@@ -27,10 +31,3 @@ var import_element = require("./element");
|
|
|
27
31
|
var import_env = require("@domql/env");
|
|
28
32
|
if ((0, import_env.isTest)() || (0, import_env.isDevelopment)())
|
|
29
33
|
import_globals.window.tree = import_tree.TREE;
|
|
30
|
-
var src_default = {
|
|
31
|
-
TREE: import_tree.TREE,
|
|
32
|
-
create: import_element.create.default || import_element.create,
|
|
33
|
-
parse: import_element.parse.default || import_element.parse,
|
|
34
|
-
set: import_element.set.default || import_element.set,
|
|
35
|
-
define: import_element.define.default || import_element.define
|
|
36
|
-
};
|
package/dist/esm/index.js
CHANGED
|
@@ -2584,12 +2584,13 @@ var require_inherit = __commonJS({
|
|
|
2584
2584
|
for (let i = 0; i < arrLength; i++) {
|
|
2585
2585
|
const childKey = arr[i];
|
|
2586
2586
|
const grandChildKey = arr[i + 1];
|
|
2587
|
-
|
|
2588
|
-
if (childInParent
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2587
|
+
let childInParent = parentState[childKey];
|
|
2588
|
+
if (!childInParent)
|
|
2589
|
+
childInParent = parentState[childKey] = {};
|
|
2590
|
+
if (!childInParent[grandChildKey])
|
|
2591
|
+
childInParent[grandChildKey] = {};
|
|
2592
|
+
stateKey = grandChildKey;
|
|
2593
|
+
parentState = childInParent;
|
|
2593
2594
|
}
|
|
2594
2595
|
if (options.returnParent)
|
|
2595
2596
|
return parentState;
|
|
@@ -5225,10 +5226,10 @@ if ((0, import_env.isTest)() || (0, import_env.isDevelopment)())
|
|
|
5225
5226
|
import_globals2.window.tree = import_tree4.TREE;
|
|
5226
5227
|
var src_default = {
|
|
5227
5228
|
TREE: import_tree4.TREE,
|
|
5228
|
-
create: create_default
|
|
5229
|
-
parse: parse_default
|
|
5230
|
-
set: set_default
|
|
5231
|
-
define: define_default
|
|
5229
|
+
create: create_default,
|
|
5230
|
+
parse: parse_default,
|
|
5231
|
+
set: set_default,
|
|
5232
|
+
define: define_default
|
|
5232
5233
|
};
|
|
5233
5234
|
export {
|
|
5234
5235
|
src_default as default
|
package/dist/iife/index.js
CHANGED
|
@@ -2586,12 +2586,13 @@ ${element}` : ""
|
|
|
2586
2586
|
for (let i = 0; i < arrLength; i++) {
|
|
2587
2587
|
const childKey = arr[i];
|
|
2588
2588
|
const grandChildKey = arr[i + 1];
|
|
2589
|
-
|
|
2590
|
-
if (childInParent
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2589
|
+
let childInParent = parentState[childKey];
|
|
2590
|
+
if (!childInParent)
|
|
2591
|
+
childInParent = parentState[childKey] = {};
|
|
2592
|
+
if (!childInParent[grandChildKey])
|
|
2593
|
+
childInParent[grandChildKey] = {};
|
|
2594
|
+
stateKey = grandChildKey;
|
|
2595
|
+
parentState = childInParent;
|
|
2595
2596
|
}
|
|
2596
2597
|
if (options.returnParent)
|
|
2597
2598
|
return parentState;
|
|
@@ -5227,9 +5228,9 @@ ${element}` : ""
|
|
|
5227
5228
|
import_globals2.window.tree = import_tree4.TREE;
|
|
5228
5229
|
var src_default = {
|
|
5229
5230
|
TREE: import_tree4.TREE,
|
|
5230
|
-
create: create_default
|
|
5231
|
-
parse: parse_default
|
|
5232
|
-
set: set_default
|
|
5233
|
-
define: define_default
|
|
5231
|
+
create: create_default,
|
|
5232
|
+
parse: parse_default,
|
|
5233
|
+
set: set_default,
|
|
5234
|
+
define: define_default
|
|
5234
5235
|
};
|
|
5235
5236
|
})();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domql",
|
|
3
3
|
"description": "DOM rendering Javascript framework at early stage.",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.68",
|
|
5
5
|
"repository": "https://github.com/domql/domql",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"copy:package:cjs": "cp ./.build/package-cjs.json dist/cjs/package.json",
|
|
21
21
|
"build:esm": "npx esbuild src/index.js src/index.js --target=es2019 --format=esm --outdir=dist/esm --bundle",
|
|
22
|
-
"build:cjs": "npx esbuild src/index.
|
|
22
|
+
"build:cjs": "npx esbuild src/index.cjs src/**/*.js src/**/**/*.js --target=node16 --format=cjs --outdir=dist/cjs",
|
|
23
23
|
"build:iife": "npx esbuild src/index.js --target=node16 --format=iife --outdir=dist/iife --bundle",
|
|
24
24
|
"build": "yarn build:esm && yarn build:cjs && yarn build:iife",
|
|
25
25
|
"prepublish": "rimraf -I dist && yarn test:lint && yarn build && yarn copy:package:cjs",
|
package/src/index.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import { window } from '@domql/globals'
|
|
4
|
+
import { TREE } from '@domql/tree'
|
|
5
|
+
import { create, parse, set, define } from './element'
|
|
6
|
+
import { isDevelopment, isTest } from '@domql/env'
|
|
7
|
+
|
|
8
|
+
if (isTest() || isDevelopment()) window.tree = TREE
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
TREE,
|
|
12
|
+
create,
|
|
13
|
+
parse,
|
|
14
|
+
set,
|
|
15
|
+
define
|
|
16
|
+
}
|
package/src/index.js
CHANGED
|
@@ -9,8 +9,8 @@ if (isTest() || isDevelopment()) window.tree = TREE
|
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
TREE,
|
|
12
|
-
create
|
|
13
|
-
parse
|
|
14
|
-
set
|
|
15
|
-
define
|
|
12
|
+
create,
|
|
13
|
+
parse,
|
|
14
|
+
set,
|
|
15
|
+
define
|
|
16
16
|
}
|