@symbo.ls/utils 3.0.1 → 3.0.2

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
@@ -42,11 +42,11 @@ __export(index_exports, {
42
42
  });
43
43
  module.exports = __toCommonJS(index_exports);
44
44
 
45
- // node_modules/@domql/utils/dist/esm/globals.js
45
+ // ../../node_modules/@domql/utils/globals.js
46
46
  var window2 = globalThis;
47
47
  var document2 = window2.document;
48
48
 
49
- // node_modules/@domql/utils/dist/esm/types.js
49
+ // ../../node_modules/@domql/utils/types.js
50
50
  var isObject = (arg) => {
51
51
  if (arg === null) return false;
52
52
  return typeof arg === "object" && arg.constructor === Object;
@@ -55,7 +55,78 @@ var isString = (arg) => typeof arg === "string";
55
55
  var isNumber = (arg) => typeof arg === "number";
56
56
  var isArray = (arg) => Array.isArray(arg);
57
57
 
58
- // node_modules/@domql/utils/dist/esm/cookie.js
58
+ // ../../node_modules/@domql/utils/keys.js
59
+ var STATE_METHODS = [
60
+ "update",
61
+ "parse",
62
+ "clean",
63
+ "create",
64
+ "destroy",
65
+ "add",
66
+ "toggle",
67
+ "remove",
68
+ "apply",
69
+ "set",
70
+ "reset",
71
+ "replace",
72
+ "quietReplace",
73
+ "quietUpdate",
74
+ "applyReplace",
75
+ "applyFunction",
76
+ "keys",
77
+ "values",
78
+ "ref",
79
+ "rootUpdate",
80
+ "parentUpdate",
81
+ "parent",
82
+ "__element",
83
+ "__depends",
84
+ "__ref",
85
+ "__children",
86
+ "root",
87
+ "setByPath",
88
+ "setPathCollection",
89
+ "removeByPath",
90
+ "removePathCollection",
91
+ "getByPath"
92
+ ];
93
+ var PROPS_METHODS = ["update", "__element"];
94
+ var METHODS = [
95
+ "set",
96
+ "reset",
97
+ "update",
98
+ "remove",
99
+ "updateContent",
100
+ "removeContent",
101
+ "lookup",
102
+ "lookdown",
103
+ "lookdownAll",
104
+ "getRef",
105
+ "getPath",
106
+ "setNodeStyles",
107
+ "spotByPath",
108
+ "keys",
109
+ "parse",
110
+ "setProps",
111
+ "parseDeep",
112
+ "variables",
113
+ "if",
114
+ "log",
115
+ "verbose",
116
+ "warn",
117
+ "error",
118
+ "call",
119
+ "nextElement",
120
+ "previousElement"
121
+ ];
122
+ var METHODS_EXL = [
123
+ ...["node", "context", "extends", "__element", "__ref"],
124
+ ...METHODS,
125
+ ...STATE_METHODS,
126
+ ...PROPS_METHODS
127
+ ];
128
+
129
+ // ../../node_modules/@domql/utils/cookie.js
59
130
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
60
131
 
61
132
  // src/browser.js
@@ -25,18 +25,89 @@ __export(scaling_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(scaling_exports);
27
27
 
28
- // node_modules/@domql/utils/dist/esm/globals.js
28
+ // ../../node_modules/@domql/utils/globals.js
29
29
  var window2 = globalThis;
30
30
  var document2 = window2.document;
31
31
 
32
- // node_modules/@domql/utils/dist/esm/types.js
32
+ // ../../node_modules/@domql/utils/types.js
33
33
  var isObject = (arg) => {
34
34
  if (arg === null) return false;
35
35
  return typeof arg === "object" && arg.constructor === Object;
36
36
  };
37
37
  var isArray = (arg) => Array.isArray(arg);
38
38
 
39
- // node_modules/@domql/utils/dist/esm/cookie.js
39
+ // ../../node_modules/@domql/utils/keys.js
40
+ var STATE_METHODS = [
41
+ "update",
42
+ "parse",
43
+ "clean",
44
+ "create",
45
+ "destroy",
46
+ "add",
47
+ "toggle",
48
+ "remove",
49
+ "apply",
50
+ "set",
51
+ "reset",
52
+ "replace",
53
+ "quietReplace",
54
+ "quietUpdate",
55
+ "applyReplace",
56
+ "applyFunction",
57
+ "keys",
58
+ "values",
59
+ "ref",
60
+ "rootUpdate",
61
+ "parentUpdate",
62
+ "parent",
63
+ "__element",
64
+ "__depends",
65
+ "__ref",
66
+ "__children",
67
+ "root",
68
+ "setByPath",
69
+ "setPathCollection",
70
+ "removeByPath",
71
+ "removePathCollection",
72
+ "getByPath"
73
+ ];
74
+ var PROPS_METHODS = ["update", "__element"];
75
+ var METHODS = [
76
+ "set",
77
+ "reset",
78
+ "update",
79
+ "remove",
80
+ "updateContent",
81
+ "removeContent",
82
+ "lookup",
83
+ "lookdown",
84
+ "lookdownAll",
85
+ "getRef",
86
+ "getPath",
87
+ "setNodeStyles",
88
+ "spotByPath",
89
+ "keys",
90
+ "parse",
91
+ "setProps",
92
+ "parseDeep",
93
+ "variables",
94
+ "if",
95
+ "log",
96
+ "verbose",
97
+ "warn",
98
+ "error",
99
+ "call",
100
+ "nextElement",
101
+ "previousElement"
102
+ ];
103
+ var METHODS_EXL = [
104
+ ...["node", "context", "extends", "__element", "__ref"],
105
+ ...METHODS,
106
+ ...STATE_METHODS,
107
+ ...PROPS_METHODS
108
+ ];
109
+
110
+ // ../../node_modules/@domql/utils/cookie.js
40
111
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
41
112
 
42
113
  // src/scaling.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/utils",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "author": "symbo.ls",
5
5
  "files": [
6
6
  "src",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "ISC",
26
26
  "dependencies": {
27
- "@domql/utils": "^2.5.0"
27
+ "@domql/utils": "^3.0.0"
28
28
  },
29
- "gitHead": "a4e7f586f7e4f60bd7b6a8388bdacc3ae1879433"
29
+ "gitHead": "c4dacc88fa3a65574680d11e320307dd2a22e6e9"
30
30
  }