@domql/utils 2.5.200 → 2.25.1

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/component.js CHANGED
@@ -157,7 +157,7 @@ export const applyComponentFromContext = (element, parent, options) => {
157
157
  const componentExists = components[execExtend] || components['smbls.' + execExtend]
158
158
  if (componentExists) element.extend = componentExists
159
159
  else {
160
- if ((ENV === 'test' || ENV === 'development') && options.verbose) {
160
+ if ((ENV === 'testing' || ENV === 'development') && options.verbose) {
161
161
  console.warn(execExtend, 'is not in library', components, element)
162
162
  console.warn('replacing with ', {})
163
163
  }
@@ -171,7 +171,7 @@ const applyComponentFromContext = (element, parent, options) => {
171
171
  const componentExists = components[execExtend] || components["smbls." + execExtend];
172
172
  if (componentExists) element.extend = componentExists;
173
173
  else {
174
- if ((ENV === "test" || ENV === "development") && options.verbose) {
174
+ if ((ENV === "testing" || ENV === "development") && options.verbose) {
175
175
  console.warn(execExtend, "is not in library", components, element);
176
176
  console.warn("replacing with ", {});
177
177
  }
@@ -649,7 +649,7 @@ const detectInfiniteLoop = (arr) => {
649
649
  repeatCount = 1;
650
650
  }
651
651
  if (repeatCount >= maxRepeats * 2) {
652
- if (ENV === "test" || ENV === "development") {
652
+ if (ENV === "testing" || ENV === "development") {
653
653
  console.warn("Warning: Potential infinite loop detected due to repeated sequence:", pattern);
654
654
  }
655
655
  return true;
@@ -152,7 +152,7 @@ const applyComponentFromContext = (element, parent, options) => {
152
152
  const componentExists = components[execExtend] || components["smbls." + execExtend];
153
153
  if (componentExists) element.extend = componentExists;
154
154
  else {
155
- if ((ENV === "test" || ENV === "development") && options.verbose) {
155
+ if ((ENV === "testing" || ENV === "development") && options.verbose) {
156
156
  console.warn(execExtend, "is not in library", components, element);
157
157
  console.warn("replacing with ", {});
158
158
  }
@@ -617,7 +617,7 @@ const detectInfiniteLoop = (arr) => {
617
617
  repeatCount = 1;
618
618
  }
619
619
  if (repeatCount >= maxRepeats * 2) {
620
- if (ENV === "test" || ENV === "development") {
620
+ if (ENV === "testing" || ENV === "development") {
621
621
  console.warn("Warning: Potential infinite loop detected due to repeated sequence:", pattern);
622
622
  }
623
623
  return true;
package/object.js CHANGED
@@ -815,7 +815,7 @@ export const detectInfiniteLoop = arr => {
815
815
 
816
816
  // If the pattern repeats more than `maxRepeats`, throw a warning
817
817
  if (repeatCount >= maxRepeats * 2) {
818
- if (ENV === 'test' || ENV === 'development') {
818
+ if (ENV === 'testing' || ENV === 'development') {
819
819
  console.warn('Warning: Potential infinite loop detected due to repeated sequence:', pattern)
820
820
  }
821
821
  return true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.200",
3
+ "version": "2.25.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -21,10 +21,10 @@
21
21
  "copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
22
22
  "build:esm": "npx esbuild *.js --target=es2017 --format=esm --outdir=dist/esm",
23
23
  "build:cjs": "npx esbuild *.js --target=node16 --format=cjs --outdir=dist/cjs",
24
- "build": "rimraf -I dist; npm run build:cjs; npm run build:esm",
24
+ "build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
25
25
  "prepublish": "npm run build; npm run copy:package:cjs"
26
26
  },
27
- "gitHead": "0afb63ec375f0526f47ff300885de393138b01e8",
27
+ "gitHead": "f4de780d7f974a235640526d303a3f3dc68ac1b4",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.12.0"
30
30
  }