@domql/utils 2.25.1 → 2.25.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/component.js CHANGED
@@ -46,7 +46,7 @@ export const checkIfSugar = (element, parent, key) => {
46
46
  const hasComponentAttrs = extend || childExtend || props || on || $collection || $stateCollection || $propsCollection
47
47
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
48
48
  const logErr = (parent || element)?.error
49
- if (logErr) logErr.call(element, 'Sugar component includes params for builtin components', { verbose: true })
49
+ if (logErr) logErr.call(parent, element, 'Sugar component includes params for builtin components', { verbose: true })
50
50
  }
51
51
  return !hasComponentAttrs || childProps || extendProps || children || childExtends
52
52
  }
@@ -77,7 +77,7 @@ const checkIfSugar = (element, parent, key) => {
77
77
  const hasComponentAttrs = extend || childExtend || props || on || $collection || $stateCollection || $propsCollection;
78
78
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
79
79
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
80
- if (logErr) logErr.call(element, "Sugar component includes params for builtin components", { verbose: true });
80
+ if (logErr) logErr.call(parent, element, "Sugar component includes params for builtin components", { verbose: true });
81
81
  }
82
82
  return !hasComponentAttrs || childProps || extendProps || children || childExtends;
83
83
  };
package/dist/cjs/env.js CHANGED
@@ -26,7 +26,7 @@ __export(env_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(env_exports);
28
28
  const NODE_ENV = "development";
29
- const isProduction = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
30
- const isTest = (env = NODE_ENV) => env === "test";
29
+ const isProduction = (env = NODE_ENV) => env === "production" || env !== "development" && env !== "dev" && env !== "testing";
30
+ const isTest = (env = NODE_ENV) => env === "testing";
31
31
  const isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev";
32
32
  const getNev = (key, env = NODE_ENV) => env[key];
@@ -59,7 +59,7 @@ const checkIfSugar = (element, parent, key) => {
59
59
  const hasComponentAttrs = extend || childExtend || props || on || $collection || $stateCollection || $propsCollection;
60
60
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
61
61
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
62
- if (logErr) logErr.call(element, "Sugar component includes params for builtin components", { verbose: true });
62
+ if (logErr) logErr.call(parent, element, "Sugar component includes params for builtin components", { verbose: true });
63
63
  }
64
64
  return !hasComponentAttrs || childProps || extendProps || children || childExtends;
65
65
  };
package/dist/esm/env.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const NODE_ENV = "development";
2
- const isProduction = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
3
- const isTest = (env = NODE_ENV) => env === "test";
2
+ const isProduction = (env = NODE_ENV) => env === "production" || env !== "development" && env !== "dev" && env !== "testing";
3
+ const isTest = (env = NODE_ENV) => env === "testing";
4
4
  const isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev";
5
5
  const getNev = (key, env = NODE_ENV) => env[key];
6
6
  export {
package/env.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  export const NODE_ENV = process.env.NODE_ENV
4
4
 
5
- export const isProduction = (env = NODE_ENV) => (env === 'production' || env === 'prod') ||
6
- (env !== 'development' && env !== 'dev' && env !== 'test')
7
- export const isTest = (env = NODE_ENV) => env === 'test'
5
+ export const isProduction = (env = NODE_ENV) => (env === 'production') ||
6
+ (env !== 'development' && env !== 'dev' && env !== 'testing')
7
+ export const isTest = (env = NODE_ENV) => env === 'testing'
8
8
  export const isDevelopment = (env = NODE_ENV) => env === 'development' || env === 'dev'
9
9
 
10
10
  export const getNev = (key, env = NODE_ENV) => env[key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.25.1",
3
+ "version": "2.25.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -24,7 +24,7 @@
24
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": "f4de780d7f974a235640526d303a3f3dc68ac1b4",
27
+ "gitHead": "b226cec424e82cebf1af9844254c6a1e7058b270",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.12.0"
30
30
  }