std-env 3.0.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"],
@@ -42,7 +43,8 @@ const providers = [
42
43
  ["VERCEL", "NOW_BUILDER"],
43
44
  ["APPCENTER", "APPCENTER_BUILD_ID"],
44
45
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
45
- ["STACKBLITZ"]
46
+ ["STACKBLITZ"],
47
+ ["STORMKIT"]
46
48
  ];
47
49
  function detectProvider(env) {
48
50
  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';
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"],
@@ -38,7 +39,8 @@ const providers = [
38
39
  ["VERCEL", "NOW_BUILDER"],
39
40
  ["APPCENTER", "APPCENTER_BUILD_ID"],
40
41
  ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }],
41
- ["STACKBLITZ"]
42
+ ["STACKBLITZ"],
43
+ ["STORMKIT"]
42
44
  ];
43
45
  function detectProvider(env) {
44
46
  for (const provider of providers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "3.0.1",
3
+ "version": "3.2.1",
4
4
  "description": "Detect current Javascript environment",
5
5
  "repository": "unjs/std-env",
6
6
  "license": "MIT",
@@ -14,13 +14,23 @@
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": {
23
- "standard-version": "^9.3.2",
24
- "unbuild": "^0.5.11"
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"
27
+ },
28
+ "packageManager": "pnpm@7.9.0",
29
+ "scripts": {
30
+ "build": "unbuild",
31
+ "dev": "vitest",
32
+ "lint": "eslint --ext .ts .",
33
+ "release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
34
+ "test": "pnpm lint && vitest run"
25
35
  }
26
- }
36
+ }