@domql/utils 2.28.1 → 2.28.18

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/env.js CHANGED
@@ -22,6 +22,7 @@ __export(env_exports, {
22
22
  NODE_ENV: () => NODE_ENV,
23
23
  getNev: () => getNev,
24
24
  isDevelopment: () => isDevelopment,
25
+ isLocal: () => isLocal,
25
26
  isNotProduction: () => isNotProduction,
26
27
  isProduction: () => isProduction,
27
28
  isStaging: () => isStaging,
@@ -36,6 +37,7 @@ const isProduction = (env = NODE_ENV) => env === "production";
36
37
  const isTest = (env = NODE_ENV) => env === "testing" || env === "test";
37
38
  const isTesting = isTest;
38
39
  const isStaging = (env = NODE_ENV) => env === "staging";
40
+ const isLocal = (env = NODE_ENV) => env === "local";
39
41
  const isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev" || env === "local";
40
42
  const getNev = (key, env = NODE_ENV) => env[key];
41
43
  const isNotProduction = (env = NODE_ENV) => !isProduction(env);
package/dist/esm/env.js CHANGED
@@ -5,6 +5,7 @@ const isProduction = (env = NODE_ENV) => env === "production";
5
5
  const isTest = (env = NODE_ENV) => env === "testing" || env === "test";
6
6
  const isTesting = isTest;
7
7
  const isStaging = (env = NODE_ENV) => env === "staging";
8
+ const isLocal = (env = NODE_ENV) => env === "local";
8
9
  const isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev" || env === "local";
9
10
  const getNev = (key, env = NODE_ENV) => env[key];
10
11
  const isNotProduction = (env = NODE_ENV) => !isProduction(env);
@@ -13,6 +14,7 @@ export {
13
14
  NODE_ENV,
14
15
  getNev,
15
16
  isDevelopment,
17
+ isLocal,
16
18
  isNotProduction,
17
19
  isProduction,
18
20
  isStaging,
package/env.js CHANGED
@@ -8,6 +8,7 @@ export const isProduction = (env = NODE_ENV) => env === 'production'
8
8
  export const isTest = (env = NODE_ENV) => env === 'testing' || env === 'test'
9
9
  export const isTesting = isTest
10
10
  export const isStaging = (env = NODE_ENV) => env === 'staging'
11
+ export const isLocal = (env = NODE_ENV) => env === 'local'
11
12
  export const isDevelopment = (env = NODE_ENV) =>
12
13
  env === 'development' || env === 'dev' || env === 'local'
13
14
  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.28.1",
3
+ "version": "2.28.18",
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": "371cc070cdca345fcd7ea73558d336a03c847825",
27
+ "gitHead": "09442a79ea4ff9b05ab22cf63770f25d979f0264",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.26.0"
30
30
  }