std-env 3.1.1 → 3.2.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
@@ -14,6 +14,7 @@ const providers = [
14
14
  ["BUILDKITE"],
15
15
  ["CIRCLE", "CIRCLECI"],
16
16
  ["CIRRUS", "CIRRUS_CI"],
17
+ ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }],
17
18
  ["CODEBUILD", "CODEBUILD_BUILD_ARN"],
18
19
  ["CODEFRESH", "CF_BUILD_ID"],
19
20
  ["DRONE"],
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';
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"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
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": "^10.0.0",
19
+ "@types/node": "^18.7.2",
20
+ "c8": "^7.12.0",
21
+ "eslint": "^8.21.0",
22
+ "jiti": "^1.14.0",
23
+ "standard-version": "^9.5.0",
24
+ "typescript": "^4.7.4",
25
+ "unbuild": "^0.8.8",
26
+ "vitest": "^0.21.1"
25
27
  },
26
- "packageManager": "pnpm@6.32.7",
28
+ "packageManager": "pnpm@7.9.0",
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
  }