std-env 2.2.1 → 2.3.0

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.
Files changed (2) hide show
  1. package/index.d.ts +20 -0
  2. package/package.json +7 -5
package/index.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ declare const env: {
2
+ readonly browser: boolean
3
+
4
+ readonly test: boolean
5
+ readonly dev: boolean
6
+ readonly production: boolean
7
+ readonly debug: boolean
8
+
9
+ readonly ci: boolean
10
+ readonly tty: boolean
11
+
12
+ readonly minimal: boolean
13
+ readonly minimalCLI: boolean
14
+
15
+ readonly windows: boolean
16
+ readonly darwin: boolean
17
+ readonly linux: boolean
18
+ };
19
+
20
+ export default env;
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Detect running environment of the current Node.js process",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
- "repository": "jsless/std-env",
8
- "contributes": [
7
+ "types": "index.d.ts",
8
+ "repository": "nuxt-contrib/std-env",
9
+ "contributors": [
9
10
  "Pooya Parsa <pooya@pi0.ir>"
10
11
  ],
11
12
  "dependencies": {
12
- "ci-info": "^1.6.0"
13
+ "ci-info": "^3.0.0"
13
14
  },
14
15
  "files": [
15
- "index.js"
16
+ "index.js",
17
+ "index.d.ts"
16
18
  ]
17
19
  }