std-env 3.1.1 → 3.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.
package/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const providers = [
6
4
  ["APPVEYOR"],
7
5
  ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
@@ -14,6 +12,7 @@ const providers = [
14
12
  ["BUILDKITE"],
15
13
  ["CIRCLE", "CIRCLECI"],
16
14
  ["CIRRUS", "CIRRUS_CI"],
15
+ ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
17
16
  ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
18
17
  ["CODEFRESH", "CF_BUILD_ID"],
19
18
  ["DRONE"],
@@ -43,7 +42,8 @@ const providers = [
43
42
  ["APPCENTER", "APPCENTER_BUILD_ID"],
44
43
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
45
44
  ["STACKBLITZ"],
46
- ["STORMKIT"]
45
+ ["STORMKIT"],
46
+ ["CLEAVR"]
47
47
  ];
48
48
  function detectProvider(env) {
49
49
  for (const provider of providers) {
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' | 'stormkit';
1
+ declare type ProviderName = '' | 'appveyor' | 'azure_pipelines' | 'azure_static' | 'appcircle' | 'bamboo' | 'bitbucket' | 'bitrise' | 'buddy' | 'buildkite' | 'circle' | 'cirrus' | 'cloudflare_pages' | 'codebuild' | 'codefresh' | 'drone' | 'drone' | 'dsari' | 'github_actions' | 'gitlab' | 'gocd' | 'layerci' | 'hudson' | 'jenkins' | 'magnum' | 'netlify' | 'nevercode' | 'render' | 'sail' | 'semaphore' | 'screwdriver' | 'shippable' | 'solano' | 'strider' | 'teamcity' | 'travis' | 'vercel' | 'appcenter' | 'codesandbox' | 'stackblitz' | 'stormkit' | 'cleavr';
2
2
  declare type ProviderInfo = {
3
3
  name: ProviderName;
4
4
  [meta: string]: any;
package/dist/index.mjs CHANGED
@@ -10,6 +10,7 @@ const providers = [
10
10
  ["BUILDKITE"],
11
11
  ["CIRCLE", "CIRCLECI"],
12
12
  ["CIRRUS", "CIRRUS_CI"],
13
+ ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
13
14
  ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
14
15
  ["CODEFRESH", "CF_BUILD_ID"],
15
16
  ["DRONE"],
@@ -39,7 +40,8 @@ const providers = [
39
40
  ["APPCENTER", "APPCENTER_BUILD_ID"],
40
41
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
41
42
  ["STACKBLITZ"],
42
- ["STORMKIT"]
43
+ ["STORMKIT"],
44
+ ["CLEAVR"]
43
45
  ];
44
46
  function detectProvider(env) {
45
47
  for (const provider of providers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "3.1.1",
3
+ "version": "3.3.0",
4
4
  "description": "Detect current Javascript environment",
5
5
  "repository": "unjs/std-env",
6
6
  "license": "MIT",
@@ -15,21 +15,22 @@
15
15
  "dist"
16
16
  ],
17
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",
22
- "standard-version": "^9.3.2",
23
- "unbuild": "^0.7.4",
24
- "vitest": "^0.9.3"
18
+ "@nuxtjs/eslint-config-typescript": "^11.0.0",
19
+ "@types/node": "^18.11.0",
20
+ "c8": "^7.12.0",
21
+ "eslint": "^8.25.0",
22
+ "jiti": "^1.16.0",
23
+ "standard-version": "^9.5.0",
24
+ "typescript": "^4.8.4",
25
+ "unbuild": "^0.9.2",
26
+ "vitest": "^0.24.3"
25
27
  },
26
- "packageManager": "pnpm@6.32.7",
28
+ "packageManager": "pnpm@7.13.4",
27
29
  "scripts": {
28
30
  "build": "unbuild",
29
31
  "dev": "vitest",
30
32
  "lint": "eslint --ext .ts .",
31
33
  "release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
32
34
  "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
+ }
35
36
  }