domql 3.1.1 → 3.2.3

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 CHANGED
@@ -22,9 +22,9 @@ __export(index_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(index_exports);
24
24
  var import_element = require("@domql/element");
25
- const create = async (element, parent, key, options) => {
25
+ const create = (element, parent, key, options) => {
26
26
  var _a, _b, _c, _d, _e;
27
- const domqlElement = await (import_element.create.default || import_element.create)(
27
+ const domqlElement = (import_element.create.default || import_element.create)(
28
28
  element,
29
29
  parent,
30
30
  key,
@@ -32,25 +32,20 @@ const create = async (element, parent, key, options) => {
32
32
  );
33
33
  const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete;
34
34
  if (complete) {
35
- await domqlElement.on.complete(
36
- element,
37
- element.state,
38
- element.context,
39
- options
40
- );
35
+ domqlElement.on.complete(element, element.state, element.context, options);
41
36
  }
42
37
  const onComplete = (_b = domqlElement.props) == null ? void 0 : _b.onComplete;
43
38
  if (onComplete) {
44
- await ((_c = domqlElement.props) == null ? void 0 : _c.onComplete(
39
+ (_c = domqlElement.props) == null ? void 0 : _c.onComplete(
45
40
  element,
46
41
  element.state,
47
42
  element.context,
48
43
  options
49
- ));
44
+ );
50
45
  }
51
46
  const initInspect = (_d = domqlElement.on) == null ? void 0 : _d.initInspect;
52
47
  if (initInspect) {
53
- await domqlElement.on.initInspect(
48
+ domqlElement.on.initInspect(
54
49
  element,
55
50
  element.state,
56
51
  element.context,
@@ -59,12 +54,7 @@ const create = async (element, parent, key, options) => {
59
54
  }
60
55
  const initSync = (_e = domqlElement.on) == null ? void 0 : _e.initSync;
61
56
  if (initSync) {
62
- await domqlElement.on.initSync(
63
- element,
64
- element.state,
65
- element.context,
66
- options
67
- );
57
+ domqlElement.on.initSync(element, element.state, element.context, options);
68
58
  }
69
59
  return domqlElement;
70
60
  };
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { TREE, create as createElement } from "@domql/element";
2
- const create = async (element, parent, key, options) => {
2
+ const create = (element, parent, key, options) => {
3
3
  var _a, _b, _c, _d, _e;
4
- const domqlElement = await (createElement.default || createElement)(
4
+ const domqlElement = (createElement.default || createElement)(
5
5
  element,
6
6
  parent,
7
7
  key,
@@ -9,25 +9,20 @@ const create = async (element, parent, key, options) => {
9
9
  );
10
10
  const complete = (_a = domqlElement.on) == null ? void 0 : _a.complete;
11
11
  if (complete) {
12
- await domqlElement.on.complete(
13
- element,
14
- element.state,
15
- element.context,
16
- options
17
- );
12
+ domqlElement.on.complete(element, element.state, element.context, options);
18
13
  }
19
14
  const onComplete = (_b = domqlElement.props) == null ? void 0 : _b.onComplete;
20
15
  if (onComplete) {
21
- await ((_c = domqlElement.props) == null ? void 0 : _c.onComplete(
16
+ (_c = domqlElement.props) == null ? void 0 : _c.onComplete(
22
17
  element,
23
18
  element.state,
24
19
  element.context,
25
20
  options
26
- ));
21
+ );
27
22
  }
28
23
  const initInspect = (_d = domqlElement.on) == null ? void 0 : _d.initInspect;
29
24
  if (initInspect) {
30
- await domqlElement.on.initInspect(
25
+ domqlElement.on.initInspect(
31
26
  element,
32
27
  element.state,
33
28
  element.context,
@@ -36,12 +31,7 @@ const create = async (element, parent, key, options) => {
36
31
  }
37
32
  const initSync = (_e = domqlElement.on) == null ? void 0 : _e.initSync;
38
33
  if (initSync) {
39
- await domqlElement.on.initSync(
40
- element,
41
- element.state,
42
- element.context,
43
- options
44
- );
34
+ domqlElement.on.initSync(element, element.state, element.context, options);
45
35
  }
46
36
  return domqlElement;
47
37
  };
package/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { TREE, create as createElement } from '@domql/element'
4
4
 
5
- const create = async (element, parent, key, options) => {
6
- const domqlElement = await (createElement.default || createElement)(
5
+ const create = (element, parent, key, options) => {
6
+ const domqlElement = (createElement.default || createElement)(
7
7
  element,
8
8
  parent,
9
9
  key,
@@ -12,16 +12,11 @@ const create = async (element, parent, key, options) => {
12
12
 
13
13
  const complete = domqlElement.on?.complete
14
14
  if (complete) {
15
- await domqlElement.on.complete(
16
- element,
17
- element.state,
18
- element.context,
19
- options
20
- )
15
+ domqlElement.on.complete(element, element.state, element.context, options)
21
16
  }
22
17
  const onComplete = domqlElement.props?.onComplete
23
18
  if (onComplete) {
24
- await domqlElement.props?.onComplete(
19
+ domqlElement.props?.onComplete(
25
20
  element,
26
21
  element.state,
27
22
  element.context,
@@ -31,7 +26,7 @@ const create = async (element, parent, key, options) => {
31
26
 
32
27
  const initInspect = domqlElement.on?.initInspect
33
28
  if (initInspect) {
34
- await domqlElement.on.initInspect(
29
+ domqlElement.on.initInspect(
35
30
  element,
36
31
  element.state,
37
32
  element.context,
@@ -41,12 +36,7 @@ const create = async (element, parent, key, options) => {
41
36
 
42
37
  const initSync = domqlElement.on?.initSync
43
38
  if (initSync) {
44
- await domqlElement.on.initSync(
45
- element,
46
- element.state,
47
- element.context,
48
- options
49
- )
39
+ domqlElement.on.initSync(element, element.state, element.context, options)
50
40
  }
51
41
 
52
42
  return domqlElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domql",
3
- "version": "3.1.1",
3
+ "version": "3.2.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -19,17 +19,17 @@
19
19
  ],
20
20
  "scripts": {
21
21
  "copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
22
- "build:esm": "npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
23
- "build:cjs": "npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
22
+ "build:esm": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
23
+ "build:cjs": "npx cross-env NODE_ENV=$NODE_ENV npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
24
24
  "build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
25
25
  "prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
26
26
  },
27
27
  "dependencies": {
28
- "@domql/element": "^3.1.1",
29
- "@domql/event": "^3.1.1",
30
- "@domql/render": "^3.1.1",
31
- "@domql/state": "^3.1.1",
32
- "@domql/utils": "^3.1.1"
28
+ "@domql/element": "^3.2.3",
29
+ "@domql/event": "^3.2.3",
30
+ "@domql/render": "^3.2.3",
31
+ "@domql/state": "^3.2.3",
32
+ "@domql/utils": "^3.2.3"
33
33
  },
34
- "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692"
34
+ "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681"
35
35
  }