std-env 3.0.0 → 3.1.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/dist/index.cjs CHANGED
@@ -42,7 +42,8 @@ const providers = [
42
42
  ["VERCEL", "NOW_BUILDER"],
43
43
  ["APPCENTER", "APPCENTER_BUILD_ID"],
44
44
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
45
- ["STACKBLITZ"]
45
+ ["STACKBLITZ"],
46
+ ["STORMKIT"]
46
47
  ];
47
48
  function detectProvider(env) {
48
49
  for (const provider of providers) {
@@ -56,11 +57,13 @@ function detectProvider(env) {
56
57
  }
57
58
  if (env.SHELL && env.SHELL === "/bin/jsh") {
58
59
  return {
59
- name: "stackblitz"
60
+ name: "stackblitz",
61
+ ci: false
60
62
  };
61
63
  }
62
64
  return {
63
- name: ""
65
+ name: "",
66
+ ci: false
64
67
  };
65
68
  }
66
69
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare type ProviderName = '' | 'appveyor' | 'azure_pipelines' | 'azure_static' | 'appcircle' | 'bamboo' | 'bitbucket' | 'bitrise' | 'buddy' | 'buildkite' | 'circle' | 'cirrus' | 'codebuild' | 'codefresh' | 'drone' | 'drone' | 'dsari' | 'github_actions' | 'gitlab' | 'gitlab' | 'gocd' | 'layerci' | 'hudson' | 'jenkins' | 'magnum' | 'netlify' | 'netlify' | 'nevercode' | 'render' | 'sail' | 'semaphore' | 'screwdriver' | 'shippable' | 'solano' | 'strider' | 'teamcity' | 'travis' | 'vercel' | 'appcenter' | 'codesandbox' | 'stackblitz';
1
+ declare type ProviderName = '' | 'appveyor' | 'azure_pipelines' | 'azure_static' | 'appcircle' | 'bamboo' | 'bitbucket' | 'bitrise' | 'buddy' | 'buildkite' | 'circle' | 'cirrus' | 'codebuild' | 'codefresh' | 'drone' | 'drone' | 'dsari' | 'github_actions' | 'gitlab' | 'gitlab' | 'gocd' | 'layerci' | 'hudson' | 'jenkins' | 'magnum' | 'netlify' | 'netlify' | 'nevercode' | 'render' | 'sail' | 'semaphore' | 'screwdriver' | 'shippable' | 'solano' | 'strider' | 'teamcity' | 'travis' | 'vercel' | 'appcenter' | 'codesandbox' | 'stackblitz' | 'stormkit';
2
2
  declare type ProviderInfo = {
3
3
  name: ProviderName;
4
4
  [meta: string]: any;
package/dist/index.mjs CHANGED
@@ -38,7 +38,8 @@ const providers = [
38
38
  ["VERCEL", "NOW_BUILDER"],
39
39
  ["APPCENTER", "APPCENTER_BUILD_ID"],
40
40
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
41
- ["STACKBLITZ"]
41
+ ["STACKBLITZ"],
42
+ ["STORMKIT"]
42
43
  ];
43
44
  function detectProvider(env) {
44
45
  for (const provider of providers) {
@@ -52,11 +53,13 @@ function detectProvider(env) {
52
53
  }
53
54
  if (env.SHELL && env.SHELL === "/bin/jsh") {
54
55
  return {
55
- name: "stackblitz"
56
+ name: "stackblitz",
57
+ ci: false
56
58
  };
57
59
  }
58
60
  return {
59
- name: ""
61
+ name: "",
62
+ ci: false
60
63
  };
61
64
  }
62
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "Detect current Javascript environment",
5
5
  "repository": "unjs/std-env",
6
6
  "license": "MIT",
@@ -14,13 +14,22 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
- "scripts": {
18
- "prepack": "unbuild",
19
- "release": "yarn test && standard-version && git push --follow-tags && npm publish",
20
- "test": "node test.cjs"
21
- },
22
17
  "devDependencies": {
18
+ "@nuxtjs/eslint-config-typescript": "^9.0.0",
19
+ "c8": "^7.11.0",
20
+ "eslint": "^8.13.0",
21
+ "jiti": "^1.13.0",
23
22
  "standard-version": "^9.3.2",
24
- "unbuild": "^0.5.11"
25
- }
26
- }
23
+ "unbuild": "^0.7.4",
24
+ "vitest": "^0.9.3"
25
+ },
26
+ "packageManager": "pnpm@6.32.7",
27
+ "scripts": {
28
+ "build": "unbuild",
29
+ "dev": "vitest",
30
+ "lint": "eslint --ext .ts .",
31
+ "release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
32
+ "test": "pnpm lint && vitest run"
33
+ },
34
+ "readme": "# std-env\n\n[![npm](https://img.shields.io/npm/dm/std-env.svg?style=flat-square)](http://npmjs.com/package/std-env)\n[![npm](https://img.shields.io/npm/v/std-env.svg?style=flat-square)](http://npmjs.com/package/std-env)\n[![bundlephobia](https://img.shields.io/bundlephobia/min/std-env/latest.svg?style=flat-square)](https://bundlephobia.com/result?p=std-env)\n\n> Detect current Javascript environment\n\n## Installation\n\n```sh\n# Using Yarn\nyarn add std-env\n\n# Using npm\nnpm i std-env\n```\n\n## Usage\n\n```js\n// ESM\nimport { isWindows } from 'std-env'\n\n// CommonJS\nconst { isCI } = require('std-env')\n```\n\nAvailable exports:\n\n- `hasTTY`\n- `hasWindow`\n- `isCI`\n- `isDebug`\n- `isDevelopment`\n- `isLinux`\n- `isMacOS`\n- `isMinimal`\n- `isProduction`\n- `isTest`\n- `isWindows`\n- `platform`\n- `provider`\n\nYou can read more about how each flag works from [./src/index.ts](./src/index.ts).\n\nList of well known providers can be found from [./src/providers.ts](./src/providers.ts).\n\n\n## License\n\nMIT\n"
35
+ }