@stryke/env 0.20.100 → 0.20.101
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/CHANGELOG.md +6 -0
- package/dist/_virtual/_rolldown/runtime.cjs +0 -14
- package/dist/ci-checks.cjs +0 -11
- package/dist/ci-checks.mjs +1 -7
- package/dist/ci-checks.mjs.map +1 -1
- package/dist/environment-checks.cjs +0 -28
- package/dist/environment-checks.mjs +1 -23
- package/dist/environment-checks.mjs.map +1 -1
- package/dist/get-env-paths.cjs +1 -8
- package/dist/get-env-paths.mjs +1 -3
- package/dist/get-env-paths.mjs.map +1 -1
- package/dist/index.cjs +0 -53
- package/dist/index.mjs +1 -49
- package/dist/load-env.cjs +1 -14
- package/dist/load-env.mjs +1 -9
- package/dist/load-env.mjs.map +1 -1
- package/dist/providers.cjs +1 -12
- package/dist/providers.mjs +1 -7
- package/dist/providers.mjs.map +1 -1
- package/dist/runtime-checks.cjs +1 -21
- package/dist/runtime-checks.mjs +1 -16
- package/dist/runtime-checks.mjs.map +1 -1
- package/dist/types.cjs +1 -9
- package/dist/types.mjs +1 -4
- package/dist/types.mjs.map +1 -1
- package/package.json +6 -38
- package/dist/_virtual/_rolldown/runtime.mjs +0 -18
- package/dist/ci-checks.test.cjs +0 -13
- package/dist/ci-checks.test.d.cts +0 -1
- package/dist/ci-checks.test.d.mts +0 -1
- package/dist/ci-checks.test.mjs +0 -14
- package/dist/ci-checks.test.mjs.map +0 -1
- package/dist/environment-checks.test.cjs +0 -13
- package/dist/environment-checks.test.d.cts +0 -1
- package/dist/environment-checks.test.d.mts +0 -1
- package/dist/environment-checks.test.mjs +0 -14
- package/dist/environment-checks.test.mjs.map +0 -1
- package/dist/get-env-paths.test.cjs +0 -13
- package/dist/get-env-paths.test.d.cts +0 -1
- package/dist/get-env-paths.test.d.mts +0 -1
- package/dist/get-env-paths.test.mjs +0 -14
- package/dist/get-env-paths.test.mjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/index.test.cjs +0 -13
- package/dist/index.test.d.cts +0 -1
- package/dist/index.test.d.mts +0 -1
- package/dist/index.test.mjs +0 -14
- package/dist/index.test.mjs.map +0 -1
- package/dist/load-env.test.cjs +0 -13
- package/dist/load-env.test.d.cts +0 -1
- package/dist/load-env.test.d.mts +0 -1
- package/dist/load-env.test.mjs +0 -14
- package/dist/load-env.test.mjs.map +0 -1
- package/dist/providers.test.cjs +0 -13
- package/dist/providers.test.d.cts +0 -1
- package/dist/providers.test.d.mts +0 -1
- package/dist/providers.test.mjs +0 -14
- package/dist/providers.test.mjs.map +0 -1
- package/dist/runtime-checks.test.cjs +0 -13
- package/dist/runtime-checks.test.d.cts +0 -1
- package/dist/runtime-checks.test.d.mts +0 -1
- package/dist/runtime-checks.test.mjs +0 -14
- package/dist/runtime-checks.test.mjs.map +0 -1
- package/dist/types.test.cjs +0 -13
- package/dist/types.test.d.cts +0 -1
- package/dist/types.test.d.mts +0 -1
- package/dist/types.test.mjs +0 -14
- package/dist/types.test.mjs.map +0 -1
package/dist/providers.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.mjs","names":[],"sources":["../src/providers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// Reference: https://github.com/watson/ci-info/blob/v3.2.0/vendors.json\n\nexport type ProviderName =\n | \"\"\n | \"appveyor\"\n | \"aws_amplify\"\n | \"azure_pipelines\"\n | \"azure_static\"\n | \"appcircle\"\n | \"bamboo\"\n | \"bitbucket\"\n | \"bitrise\"\n | \"buddy\"\n | \"buildkite\"\n | \"circle\"\n | \"cirrus\"\n | \"cloudflare_pages\"\n | \"codebuild\"\n | \"codefresh\"\n | \"drone\"\n | \"drone\"\n | \"dsari\"\n | \"github_actions\"\n | \"gitlab\"\n | \"gocd\"\n | \"layerci\"\n | \"hudson\"\n | \"jenkins\"\n | \"magnum\"\n | \"netlify\"\n | \"nevercode\"\n | \"render\"\n | \"sail\"\n | \"semaphore\"\n | \"screwdriver\"\n | \"shippable\"\n | \"solano\"\n | \"strider\"\n | \"teamcity\"\n | \"travis\"\n | \"vercel\"\n | \"appcenter\"\n | \"codesandbox\"\n | \"stackblitz\"\n | \"stormkit\"\n | \"cleavr\"\n | \"zeabur\"\n | \"codesphere\"\n | \"railway\"\n | \"deno-deploy\"\n | \"firebase_app_hosting\";\n\ntype InternalProvider = [\n providerName: Uppercase<ProviderName>,\n envName?: string,\n meta?: Record<string, any>\n];\n\nconst providers: InternalProvider[] = [\n [\"APPVEYOR\"],\n [\"AWS_AMPLIFY\", \"AWS_APP_ID\", { ci: true }],\n [\"AZURE_PIPELINES\", \"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI\"],\n [\"AZURE_STATIC\", \"INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN\"],\n [\"APPCIRCLE\", \"AC_APPCIRCLE\"],\n [\"BAMBOO\", \"bamboo_planKey\"],\n [\"BITBUCKET\", \"BITBUCKET_COMMIT\"],\n [\"BITRISE\", \"BITRISE_IO\"],\n [\"BUDDY\", \"BUDDY_WORKSPACE_ID\"],\n [\"BUILDKITE\"],\n [\"CIRCLE\", \"CIRCLECI\"],\n [\"CIRRUS\", \"CIRRUS_CI\"],\n [\"CLOUDFLARE_PAGES\", \"CF_PAGES\", { ci: true }],\n [\"CODEBUILD\", \"CODEBUILD_BUILD_ARN\"],\n [\"CODEFRESH\", \"CF_BUILD_ID\"],\n [\"DRONE\"],\n [\"DRONE\", \"DRONE_BUILD_EVENT\"],\n [\"DSARI\"],\n [\"GITHUB_ACTIONS\"],\n [\"GITLAB\", \"GITLAB_CI\"],\n [\"GITLAB\", \"CI_MERGE_REQUEST_ID\"],\n [\"GOCD\", \"GO_PIPELINE_LABEL\"],\n [\"LAYERCI\"],\n [\"HUDSON\", \"HUDSON_URL\"],\n [\"JENKINS\", \"JENKINS_URL\"],\n [\"MAGNUM\"],\n [\"NETLIFY\"],\n [\"NETLIFY\", \"NETLIFY_LOCAL\", { ci: false }],\n [\"NEVERCODE\"],\n [\"RENDER\"],\n [\"SAIL\", \"SAILCI\"],\n [\"SEMAPHORE\"],\n [\"SCREWDRIVER\"],\n [\"SHIPPABLE\"],\n [\"SOLANO\", \"TDDIUM\"],\n [\"STRIDER\"],\n [\"TEAMCITY\", \"TEAMCITY_VERSION\"],\n [\"TRAVIS\"],\n [\"VERCEL\", \"NOW_BUILDER\"],\n [\"VERCEL\", \"VERCEL\", { ci: false }],\n [\"VERCEL\", \"VERCEL_ENV\", { ci: false }],\n [\"APPCENTER\", \"APPCENTER_BUILD_ID\"],\n [\"CODESANDBOX\", \"CODESANDBOX_SSE\", { ci: false }],\n [\"STACKBLITZ\"],\n [\"STORMKIT\"],\n [\"CLEAVR\"],\n [\"ZEABUR\"],\n [\"CODESPHERE\", \"CODESPHERE_APP_ID\", { ci: true }],\n [\"RAILWAY\", \"RAILWAY_PROJECT_ID\"],\n [\"RAILWAY\", \"RAILWAY_SERVICE_ID\"],\n [\"DENO-DEPLOY\", \"DENO_DEPLOYMENT_ID\"],\n [\"FIREBASE_APP_HOSTING\", \"FIREBASE_APP_HOSTING\", { ci: true }]\n];\n\nexport interface ProviderInfo {\n name: ProviderName;\n ci?: boolean;\n [meta: string]: any;\n}\n\nfunction detectProvider(): ProviderInfo {\n // Based on env\n if (process?.env) {\n for (const provider of providers) {\n const envName = provider[1] || provider[0];\n if (process?.env[envName]) {\n return {\n name: provider[0].toLowerCase(),\n ...(provider[2] as any)\n };\n }\n }\n }\n\n // Stackblitz / Webcontainer\n if (process?.env?.SHELL === \"/bin/jsh\" && process?.versions?.webcontainer) {\n return {\n name: \"stackblitz\",\n ci: false\n };\n }\n\n return {\n name: \"\",\n ci: false\n };\n}\n\n/** Current provider info */\nexport const providerInfo = detectProvider();\nexport const provider: ProviderName = providerInfo.name;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"providers.mjs","names":[],"sources":["../src/providers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// Reference: https://github.com/watson/ci-info/blob/v3.2.0/vendors.json\n\nexport type ProviderName =\n | \"\"\n | \"appveyor\"\n | \"aws_amplify\"\n | \"azure_pipelines\"\n | \"azure_static\"\n | \"appcircle\"\n | \"bamboo\"\n | \"bitbucket\"\n | \"bitrise\"\n | \"buddy\"\n | \"buildkite\"\n | \"circle\"\n | \"cirrus\"\n | \"cloudflare_pages\"\n | \"codebuild\"\n | \"codefresh\"\n | \"drone\"\n | \"drone\"\n | \"dsari\"\n | \"github_actions\"\n | \"gitlab\"\n | \"gocd\"\n | \"layerci\"\n | \"hudson\"\n | \"jenkins\"\n | \"magnum\"\n | \"netlify\"\n | \"nevercode\"\n | \"render\"\n | \"sail\"\n | \"semaphore\"\n | \"screwdriver\"\n | \"shippable\"\n | \"solano\"\n | \"strider\"\n | \"teamcity\"\n | \"travis\"\n | \"vercel\"\n | \"appcenter\"\n | \"codesandbox\"\n | \"stackblitz\"\n | \"stormkit\"\n | \"cleavr\"\n | \"zeabur\"\n | \"codesphere\"\n | \"railway\"\n | \"deno-deploy\"\n | \"firebase_app_hosting\";\n\ntype InternalProvider = [\n providerName: Uppercase<ProviderName>,\n envName?: string,\n meta?: Record<string, any>\n];\n\nconst providers: InternalProvider[] = [\n [\"APPVEYOR\"],\n [\"AWS_AMPLIFY\", \"AWS_APP_ID\", { ci: true }],\n [\"AZURE_PIPELINES\", \"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI\"],\n [\"AZURE_STATIC\", \"INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN\"],\n [\"APPCIRCLE\", \"AC_APPCIRCLE\"],\n [\"BAMBOO\", \"bamboo_planKey\"],\n [\"BITBUCKET\", \"BITBUCKET_COMMIT\"],\n [\"BITRISE\", \"BITRISE_IO\"],\n [\"BUDDY\", \"BUDDY_WORKSPACE_ID\"],\n [\"BUILDKITE\"],\n [\"CIRCLE\", \"CIRCLECI\"],\n [\"CIRRUS\", \"CIRRUS_CI\"],\n [\"CLOUDFLARE_PAGES\", \"CF_PAGES\", { ci: true }],\n [\"CODEBUILD\", \"CODEBUILD_BUILD_ARN\"],\n [\"CODEFRESH\", \"CF_BUILD_ID\"],\n [\"DRONE\"],\n [\"DRONE\", \"DRONE_BUILD_EVENT\"],\n [\"DSARI\"],\n [\"GITHUB_ACTIONS\"],\n [\"GITLAB\", \"GITLAB_CI\"],\n [\"GITLAB\", \"CI_MERGE_REQUEST_ID\"],\n [\"GOCD\", \"GO_PIPELINE_LABEL\"],\n [\"LAYERCI\"],\n [\"HUDSON\", \"HUDSON_URL\"],\n [\"JENKINS\", \"JENKINS_URL\"],\n [\"MAGNUM\"],\n [\"NETLIFY\"],\n [\"NETLIFY\", \"NETLIFY_LOCAL\", { ci: false }],\n [\"NEVERCODE\"],\n [\"RENDER\"],\n [\"SAIL\", \"SAILCI\"],\n [\"SEMAPHORE\"],\n [\"SCREWDRIVER\"],\n [\"SHIPPABLE\"],\n [\"SOLANO\", \"TDDIUM\"],\n [\"STRIDER\"],\n [\"TEAMCITY\", \"TEAMCITY_VERSION\"],\n [\"TRAVIS\"],\n [\"VERCEL\", \"NOW_BUILDER\"],\n [\"VERCEL\", \"VERCEL\", { ci: false }],\n [\"VERCEL\", \"VERCEL_ENV\", { ci: false }],\n [\"APPCENTER\", \"APPCENTER_BUILD_ID\"],\n [\"CODESANDBOX\", \"CODESANDBOX_SSE\", { ci: false }],\n [\"STACKBLITZ\"],\n [\"STORMKIT\"],\n [\"CLEAVR\"],\n [\"ZEABUR\"],\n [\"CODESPHERE\", \"CODESPHERE_APP_ID\", { ci: true }],\n [\"RAILWAY\", \"RAILWAY_PROJECT_ID\"],\n [\"RAILWAY\", \"RAILWAY_SERVICE_ID\"],\n [\"DENO-DEPLOY\", \"DENO_DEPLOYMENT_ID\"],\n [\"FIREBASE_APP_HOSTING\", \"FIREBASE_APP_HOSTING\", { ci: true }]\n];\n\nexport interface ProviderInfo {\n name: ProviderName;\n ci?: boolean;\n [meta: string]: any;\n}\n\nfunction detectProvider(): ProviderInfo {\n // Based on env\n if (process?.env) {\n for (const provider of providers) {\n const envName = provider[1] || provider[0];\n if (process?.env[envName]) {\n return {\n name: provider[0].toLowerCase(),\n ...(provider[2] as any)\n };\n }\n }\n }\n\n // Stackblitz / Webcontainer\n if (process?.env?.SHELL === \"/bin/jsh\" && process?.versions?.webcontainer) {\n return {\n name: \"stackblitz\",\n ci: false\n };\n }\n\n return {\n name: \"\",\n ci: false\n };\n}\n\n/** Current provider info */\nexport const providerInfo = detectProvider();\nexport const provider: ProviderName = providerInfo.name;\n"],"mappings":";AA4EA,MAAM,YAAgC;CACpC,CAAC,WAAW;CACZ;EAAC;EAAe;EAAc,EAAE,IAAI,MAAM;EAAC;CAC3C,CAAC,mBAAmB,qCAAqC;CACzD,CAAC,gBAAgB,wCAAwC;CACzD,CAAC,aAAa,eAAe;CAC7B,CAAC,UAAU,iBAAiB;CAC5B,CAAC,aAAa,mBAAmB;CACjC,CAAC,WAAW,aAAa;CACzB,CAAC,SAAS,qBAAqB;CAC/B,CAAC,YAAY;CACb,CAAC,UAAU,WAAW;CACtB,CAAC,UAAU,YAAY;CACvB;EAAC;EAAoB;EAAY,EAAE,IAAI,MAAM;EAAC;CAC9C,CAAC,aAAa,sBAAsB;CACpC,CAAC,aAAa,cAAc;CAC5B,CAAC,QAAQ;CACT,CAAC,SAAS,oBAAoB;CAC9B,CAAC,QAAQ;CACT,CAAC,iBAAiB;CAClB,CAAC,UAAU,YAAY;CACvB,CAAC,UAAU,sBAAsB;CACjC,CAAC,QAAQ,oBAAoB;CAC7B,CAAC,UAAU;CACX,CAAC,UAAU,aAAa;CACxB,CAAC,WAAW,cAAc;CAC1B,CAAC,SAAS;CACV,CAAC,UAAU;CACX;EAAC;EAAW;EAAiB,EAAE,IAAI,OAAO;EAAC;CAC3C,CAAC,YAAY;CACb,CAAC,SAAS;CACV,CAAC,QAAQ,SAAS;CAClB,CAAC,YAAY;CACb,CAAC,cAAc;CACf,CAAC,YAAY;CACb,CAAC,UAAU,SAAS;CACpB,CAAC,UAAU;CACX,CAAC,YAAY,mBAAmB;CAChC,CAAC,SAAS;CACV,CAAC,UAAU,cAAc;CACzB;EAAC;EAAU;EAAU,EAAE,IAAI,OAAO;EAAC;CACnC;EAAC;EAAU;EAAc,EAAE,IAAI,OAAO;EAAC;CACvC,CAAC,aAAa,qBAAqB;CACnC;EAAC;EAAe;EAAmB,EAAE,IAAI,OAAO;EAAC;CACjD,CAAC,aAAa;CACd,CAAC,WAAW;CACZ,CAAC,SAAS;CACV,CAAC,SAAS;CACV;EAAC;EAAc;EAAqB,EAAE,IAAI,MAAM;EAAC;CACjD,CAAC,WAAW,qBAAqB;CACjC,CAAC,WAAW,qBAAqB;CACjC,CAAC,eAAe,qBAAqB;CACrC;EAAC;EAAwB;EAAwB,EAAE,IAAI,MAAM;EAAC;CAC/D;AAQD,SAAS,iBAA+B;AAEtC,KAAI,SAAS,IACX,MAAK,MAAM,YAAY,WAAW;EAChC,MAAM,UAAU,SAAS,MAAM,SAAS;AACxC,MAAI,SAAS,IAAI,SACf,QAAO;GACL,MAAM,SAAS,GAAG,aAAa;GAC/B,GAAI,SAAS;GACd;;AAMP,KAAI,SAAS,KAAK,UAAU,cAAc,SAAS,UAAU,aAC3D,QAAO;EACL,MAAM;EACN,IAAI;EACL;AAGH,QAAO;EACL,MAAM;EACN,IAAI;EACL;;;AAIH,MAAa,eAAe,gBAAgB;AAC5C,MAAa,WAAyB,aAAa"}
|
package/dist/runtime-checks.cjs
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
|
|
4
3
|
//#region src/runtime-checks.ts
|
|
5
|
-
var runtime_checks_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
-
isBun: () => isBun,
|
|
7
|
-
isDeno: () => isDeno,
|
|
8
|
-
isEdgeLight: () => isEdgeLight,
|
|
9
|
-
isFastly: () => isFastly,
|
|
10
|
-
isNetlify: () => isNetlify,
|
|
11
|
-
isNode: () => isNode,
|
|
12
|
-
isRuntimeClient: () => isRuntimeClient,
|
|
13
|
-
isRuntimeServer: () => isRuntimeServer,
|
|
14
|
-
isWorkerd: () => isWorkerd,
|
|
15
|
-
runtime: () => runtime,
|
|
16
|
-
runtimeInfo: () => runtimeInfo
|
|
17
|
-
});
|
|
18
4
|
/**
|
|
19
5
|
* Indicates if running in Node.js or a Node.js compatible runtime.
|
|
20
6
|
*
|
|
@@ -83,10 +69,4 @@ exports.isRuntimeClient = isRuntimeClient;
|
|
|
83
69
|
exports.isRuntimeServer = isRuntimeServer;
|
|
84
70
|
exports.isWorkerd = isWorkerd;
|
|
85
71
|
exports.runtime = runtime;
|
|
86
|
-
exports.runtimeInfo = runtimeInfo;
|
|
87
|
-
Object.defineProperty(exports, 'runtime_checks_exports', {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return runtime_checks_exports;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
72
|
+
exports.runtimeInfo = runtimeInfo;
|
package/dist/runtime-checks.mjs
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/runtime-checks.ts
|
|
4
|
-
var runtime_checks_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
-
isBun: () => isBun,
|
|
6
|
-
isDeno: () => isDeno,
|
|
7
|
-
isEdgeLight: () => isEdgeLight,
|
|
8
|
-
isFastly: () => isFastly,
|
|
9
|
-
isNetlify: () => isNetlify,
|
|
10
|
-
isNode: () => isNode,
|
|
11
|
-
isRuntimeClient: () => isRuntimeClient,
|
|
12
|
-
isRuntimeServer: () => isRuntimeServer,
|
|
13
|
-
isWorkerd: () => isWorkerd,
|
|
14
|
-
runtime: () => runtime,
|
|
15
|
-
runtimeInfo: () => runtimeInfo
|
|
16
|
-
});
|
|
17
2
|
/**
|
|
18
3
|
* Indicates if running in Node.js or a Node.js compatible runtime.
|
|
19
4
|
*
|
|
@@ -72,5 +57,5 @@ const runtimeInfo = detectRuntime();
|
|
|
72
57
|
const runtime = runtimeInfo?.name || "";
|
|
73
58
|
|
|
74
59
|
//#endregion
|
|
75
|
-
export { isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo
|
|
60
|
+
export { isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo };
|
|
76
61
|
//# sourceMappingURL=runtime-checks.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-checks.mjs","names":[],"sources":["../src/runtime-checks.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// https://runtime-keys.proposal.wintercg.org/\nexport type RuntimeName =\n | \"workerd\"\n | \"deno\"\n | \"netlify\"\n | \"node\"\n | \"bun\"\n | \"edge-light\"\n | \"fastly\"\n | \"\";\n\nexport interface RuntimeInfo {\n name: RuntimeName;\n}\n\n/**\n * Indicates if running in Node.js or a Node.js compatible runtime.\n *\n * **Note:** When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.\n *\n * Use `runtime === \"node\"` if you need strict check for Node.js runtime.\n */\nexport const isNode = process?.release?.name === \"node\";\n\n/**\n * Indicates if running in Bun runtime.\n */\nexport const isBun = Boolean(Bun) || Boolean(process?.versions?.bun);\n\n/**\n * Indicates if running in Deno runtime.\n */\nexport const isDeno = Boolean(Deno);\n\n/**\n * Indicates if running in Fastly runtime.\n */\nexport const isFastly = Boolean(fastly);\n\n/**\n * Indicates if running in Netlify runtime.\n */\nexport const isNetlify = Boolean(Netlify);\n\n/**\n *\n * Indicates if running in EdgeLight (Vercel Edge) runtime.\n */\nexport const isEdgeLight = Boolean(EdgeRuntime);\n// https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent\n\n/**\n * Indicates if running in Cloudflare Workers runtime.\n */\nexport const isWorkerd = navigator?.userAgent === \"Cloudflare-Workers\";\n\n/**\n * Indicates if the code is running on the server-side\n */\nexport const isRuntimeServer =\n isNode ||\n isBun ||\n isDeno ||\n isFastly ||\n isNetlify ||\n isEdgeLight ||\n isWorkerd;\n\n/**\n * Indicates if the code is running in the browser (and not on the server).\n */\nexport const isRuntimeClient = !isRuntimeServer;\n\nconst runtimeChecks: [boolean, RuntimeName][] = [\n [isNetlify, \"netlify\"],\n [isEdgeLight, \"edge-light\"],\n [isWorkerd, \"workerd\"],\n [isFastly, \"fastly\"],\n [isDeno, \"deno\"],\n [isBun, \"bun\"],\n [isNode, \"node\"]\n];\n\nfunction detectRuntime(): RuntimeInfo | undefined {\n const detectedRuntime = runtimeChecks.find(check => check[0]);\n\n if (detectedRuntime) {\n const name = detectedRuntime[1];\n\n return { name };\n }\n\n return undefined;\n}\n\nexport const runtimeInfo = detectRuntime();\n\nexport const runtime: RuntimeName = runtimeInfo?.name || \"\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime-checks.mjs","names":[],"sources":["../src/runtime-checks.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// https://runtime-keys.proposal.wintercg.org/\nexport type RuntimeName =\n | \"workerd\"\n | \"deno\"\n | \"netlify\"\n | \"node\"\n | \"bun\"\n | \"edge-light\"\n | \"fastly\"\n | \"\";\n\nexport interface RuntimeInfo {\n name: RuntimeName;\n}\n\n/**\n * Indicates if running in Node.js or a Node.js compatible runtime.\n *\n * **Note:** When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.\n *\n * Use `runtime === \"node\"` if you need strict check for Node.js runtime.\n */\nexport const isNode = process?.release?.name === \"node\";\n\n/**\n * Indicates if running in Bun runtime.\n */\nexport const isBun = Boolean(Bun) || Boolean(process?.versions?.bun);\n\n/**\n * Indicates if running in Deno runtime.\n */\nexport const isDeno = Boolean(Deno);\n\n/**\n * Indicates if running in Fastly runtime.\n */\nexport const isFastly = Boolean(fastly);\n\n/**\n * Indicates if running in Netlify runtime.\n */\nexport const isNetlify = Boolean(Netlify);\n\n/**\n *\n * Indicates if running in EdgeLight (Vercel Edge) runtime.\n */\nexport const isEdgeLight = Boolean(EdgeRuntime);\n// https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent\n\n/**\n * Indicates if running in Cloudflare Workers runtime.\n */\nexport const isWorkerd = navigator?.userAgent === \"Cloudflare-Workers\";\n\n/**\n * Indicates if the code is running on the server-side\n */\nexport const isRuntimeServer =\n isNode ||\n isBun ||\n isDeno ||\n isFastly ||\n isNetlify ||\n isEdgeLight ||\n isWorkerd;\n\n/**\n * Indicates if the code is running in the browser (and not on the server).\n */\nexport const isRuntimeClient = !isRuntimeServer;\n\nconst runtimeChecks: [boolean, RuntimeName][] = [\n [isNetlify, \"netlify\"],\n [isEdgeLight, \"edge-light\"],\n [isWorkerd, \"workerd\"],\n [isFastly, \"fastly\"],\n [isDeno, \"deno\"],\n [isBun, \"bun\"],\n [isNode, \"node\"]\n];\n\nfunction detectRuntime(): RuntimeInfo | undefined {\n const detectedRuntime = runtimeChecks.find(check => check[0]);\n\n if (detectedRuntime) {\n const name = detectedRuntime[1];\n\n return { name };\n }\n\n return undefined;\n}\n\nexport const runtimeInfo = detectRuntime();\n\nexport const runtime: RuntimeName = runtimeInfo?.name || \"\";\n"],"mappings":";;;;;;;;AAwCA,MAAa,SAAS,SAAS,SAAS,SAAS;;;;AAKjD,MAAa,QAAQ,QAAQ,IAAI,IAAI,QAAQ,SAAS,UAAU,IAAI;;;;AAKpE,MAAa,SAAS,QAAQ,KAAK;;;;AAKnC,MAAa,WAAW,QAAQ,OAAO;;;;AAKvC,MAAa,YAAY,QAAQ,QAAQ;;;;;AAMzC,MAAa,cAAc,QAAQ,YAAY;;;;AAM/C,MAAa,YAAY,WAAW,cAAc;;;;AAKlD,MAAa,kBACX,UACA,SACA,UACA,YACA,aACA,eACA;;;;AAKF,MAAa,kBAAkB,CAAC;AAEhC,MAAM,gBAA0C;CAC9C,CAAC,WAAW,UAAU;CACtB,CAAC,aAAa,aAAa;CAC3B,CAAC,WAAW,UAAU;CACtB,CAAC,UAAU,SAAS;CACpB,CAAC,QAAQ,OAAO;CAChB,CAAC,OAAO,MAAM;CACd,CAAC,QAAQ,OAAO;CACjB;AAED,SAAS,gBAAyC;CAChD,MAAM,kBAAkB,cAAc,MAAK,UAAS,MAAM,GAAG;AAE7D,KAAI,gBAGF,QAAO,EAAE,MAFI,gBAAgB,IAEd;;AAMnB,MAAa,cAAc,eAAe;AAE1C,MAAa,UAAuB,aAAa,QAAQ"}
|
package/dist/types.cjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
|
|
4
3
|
//#region src/types.ts
|
|
5
|
-
var types_exports = /* @__PURE__ */ require_runtime.__exportAll({ ENV_PREFIXES: () => ENV_PREFIXES });
|
|
6
4
|
const ENV_PREFIXES = [
|
|
7
5
|
"VITE_",
|
|
8
6
|
"ONE_",
|
|
@@ -13,10 +11,4 @@ const ENV_PREFIXES = [
|
|
|
13
11
|
];
|
|
14
12
|
|
|
15
13
|
//#endregion
|
|
16
|
-
exports.ENV_PREFIXES = ENV_PREFIXES;
|
|
17
|
-
Object.defineProperty(exports, 'types_exports', {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return types_exports;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
14
|
+
exports.ENV_PREFIXES = ENV_PREFIXES;
|
package/dist/types.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { __exportAll } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/types.ts
|
|
4
|
-
var types_exports = /* @__PURE__ */ __exportAll({ ENV_PREFIXES: () => ENV_PREFIXES });
|
|
5
2
|
const ENV_PREFIXES = [
|
|
6
3
|
"VITE_",
|
|
7
4
|
"ONE_",
|
|
@@ -12,5 +9,5 @@ const ENV_PREFIXES = [
|
|
|
12
9
|
];
|
|
13
10
|
|
|
14
11
|
//#endregion
|
|
15
|
-
export { ENV_PREFIXES
|
|
12
|
+
export { ENV_PREFIXES };
|
|
16
13
|
//# sourceMappingURL=types.mjs.map
|
package/dist/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const ENV_PREFIXES = [\n \"VITE_\",\n \"ONE_\",\n \"STORM_\",\n \"STORM_STACK_\",\n \"NEXT_\",\n \"VERCEL_\"\n];\n\nexport interface DotenvParseOutput {\n [name: string]: string | undefined;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const ENV_PREFIXES = [\n \"VITE_\",\n \"ONE_\",\n \"STORM_\",\n \"STORM_STACK_\",\n \"NEXT_\",\n \"VERCEL_\"\n];\n\nexport interface DotenvParseOutput {\n [name: string]: string | undefined;\n}\n"],"mappings":";AAkBA,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;CACA;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/env",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.101",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing utility functions to handle environment specific processes",
|
|
6
6
|
"repository": {
|
|
@@ -15,59 +15,27 @@
|
|
|
15
15
|
"import": "./dist/ci-checks.mjs",
|
|
16
16
|
"require": "./dist/ci-checks.cjs"
|
|
17
17
|
},
|
|
18
|
-
"./ci-checks.test": {
|
|
19
|
-
"import": "./dist/ci-checks.test.mjs",
|
|
20
|
-
"require": "./dist/ci-checks.test.cjs"
|
|
21
|
-
},
|
|
22
18
|
"./environment-checks": {
|
|
23
19
|
"import": "./dist/environment-checks.mjs",
|
|
24
20
|
"require": "./dist/environment-checks.cjs"
|
|
25
21
|
},
|
|
26
|
-
"./environment-checks.test": {
|
|
27
|
-
"import": "./dist/environment-checks.test.mjs",
|
|
28
|
-
"require": "./dist/environment-checks.test.cjs"
|
|
29
|
-
},
|
|
30
22
|
"./get-env-paths": {
|
|
31
23
|
"import": "./dist/get-env-paths.mjs",
|
|
32
24
|
"require": "./dist/get-env-paths.cjs"
|
|
33
25
|
},
|
|
34
|
-
"./get-env-paths.test": {
|
|
35
|
-
"import": "./dist/get-env-paths.test.mjs",
|
|
36
|
-
"require": "./dist/get-env-paths.test.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./index.test": {
|
|
39
|
-
"import": "./dist/index.test.mjs",
|
|
40
|
-
"require": "./dist/index.test.cjs"
|
|
41
|
-
},
|
|
42
26
|
"./load-env": {
|
|
43
27
|
"import": "./dist/load-env.mjs",
|
|
44
28
|
"require": "./dist/load-env.cjs"
|
|
45
29
|
},
|
|
46
|
-
"./load-env.test": {
|
|
47
|
-
"import": "./dist/load-env.test.mjs",
|
|
48
|
-
"require": "./dist/load-env.test.cjs"
|
|
49
|
-
},
|
|
50
30
|
"./providers": {
|
|
51
31
|
"import": "./dist/providers.mjs",
|
|
52
32
|
"require": "./dist/providers.cjs"
|
|
53
33
|
},
|
|
54
|
-
"./providers.test": {
|
|
55
|
-
"import": "./dist/providers.test.mjs",
|
|
56
|
-
"require": "./dist/providers.test.cjs"
|
|
57
|
-
},
|
|
58
34
|
"./runtime-checks": {
|
|
59
35
|
"import": "./dist/runtime-checks.mjs",
|
|
60
36
|
"require": "./dist/runtime-checks.cjs"
|
|
61
37
|
},
|
|
62
|
-
"./runtime-checks.test": {
|
|
63
|
-
"import": "./dist/runtime-checks.test.mjs",
|
|
64
|
-
"require": "./dist/runtime-checks.test.cjs"
|
|
65
|
-
},
|
|
66
38
|
"./types": { "import": "./dist/types.mjs", "require": "./dist/types.cjs" },
|
|
67
|
-
"./types.test": {
|
|
68
|
-
"import": "./dist/types.test.mjs",
|
|
69
|
-
"require": "./dist/types.test.cjs"
|
|
70
|
-
},
|
|
71
39
|
"./package.json": "./package.json"
|
|
72
40
|
},
|
|
73
41
|
"main": "./dist/index.cjs",
|
|
@@ -75,13 +43,13 @@
|
|
|
75
43
|
"types": "./dist/index.d.cts",
|
|
76
44
|
"dependencies": {
|
|
77
45
|
"@dotenvx/dotenvx": "1.35.0",
|
|
78
|
-
"@stryke/convert": "^0.7.
|
|
79
|
-
"@stryke/fs": "^0.33.
|
|
80
|
-
"@stryke/path": "^0.29.
|
|
81
|
-
"@stryke/string-format": "^0.17.
|
|
46
|
+
"@stryke/convert": "^0.7.14",
|
|
47
|
+
"@stryke/fs": "^0.33.84",
|
|
48
|
+
"@stryke/path": "^0.29.10",
|
|
49
|
+
"@stryke/string-format": "^0.17.25",
|
|
82
50
|
"defu": "^6.1.7"
|
|
83
51
|
},
|
|
84
52
|
"devDependencies": { "@types/node": "^24.12.4", "tsdown": "^0.21.10" },
|
|
85
53
|
"publishConfig": { "access": "public" },
|
|
86
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d660a476f1e788523a32652b8c0f96da7735891b"
|
|
87
55
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (!no_symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __exportAll };
|
package/dist/ci-checks.test.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_ci_checks = require('./ci-checks.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/ci-checks.test.ts
|
|
6
|
-
(0, vitest.describe)("ci-checks.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_ci_checks.ci_checks_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_ci_checks.ci_checks_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/ci-checks.test.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ci_checks_exports } from "./ci-checks.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/ci-checks.test.ts
|
|
5
|
-
describe("ci-checks.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(ci_checks_exports).toBeDefined();
|
|
8
|
-
expect(typeof ci_checks_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=ci-checks.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ci-checks.test.mjs","names":["moduleExports"],"sources":["../src/ci-checks.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./ci-checks.ts\";\n\ndescribe(\"ci-checks.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,8BAA8B;AACrC,IAAG,8BAA8B;AAC/B,SAAOA,kBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,kBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_environment_checks = require('./environment-checks.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/environment-checks.test.ts
|
|
6
|
-
(0, vitest.describe)("environment-checks.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_environment_checks.environment_checks_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_environment_checks.environment_checks_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { environment_checks_exports } from "./environment-checks.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/environment-checks.test.ts
|
|
5
|
-
describe("environment-checks.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(environment_checks_exports).toBeDefined();
|
|
8
|
-
expect(typeof environment_checks_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=environment-checks.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment-checks.test.mjs","names":["moduleExports"],"sources":["../src/environment-checks.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./environment-checks.ts\";\n\ndescribe(\"environment-checks.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,uCAAuC;AAC9C,IAAG,8BAA8B;AAC/B,SAAOA,2BAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,2BAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_get_env_paths = require('./get-env-paths.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/get-env-paths.test.ts
|
|
6
|
-
(0, vitest.describe)("get-env-paths.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_get_env_paths.get_env_paths_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_get_env_paths.get_env_paths_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { get_env_paths_exports } from "./get-env-paths.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/get-env-paths.test.ts
|
|
5
|
-
describe("get-env-paths.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(get_env_paths_exports).toBeDefined();
|
|
8
|
-
expect(typeof get_env_paths_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=get-env-paths.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-env-paths.test.mjs","names":["moduleExports"],"sources":["../src/get-env-paths.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./get-env-paths.ts\";\n\ndescribe(\"get-env-paths.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,kCAAkC;AACzC,IAAG,8BAA8B;AAC/B,SAAOA,sBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,sBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The env library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A package containing utility functions to handle environment specific processes\n *\n * @packageDocumentation\n */\n\nexport * from \"./ci-checks\";\nexport * from \"./environment-checks\";\nexport * from \"./get-env-paths\";\nexport * from \"./load-env\";\nexport * from \"./providers\";\nexport * from \"./runtime-checks\";\nexport * from \"./types\";\n"],"mappings":""}
|
package/dist/index.test.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_index = require('./index.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/index.test.ts
|
|
6
|
-
(0, vitest.describe)("index.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_index.src_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_index.src_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
package/dist/index.test.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index.test.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index.test.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { src_exports } from "./index.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/index.test.ts
|
|
5
|
-
describe("index.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(src_exports).toBeDefined();
|
|
8
|
-
expect(typeof src_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=index.test.mjs.map
|
package/dist/index.test.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.mjs","names":["moduleExports"],"sources":["../src/index.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./index.ts\";\n\ndescribe(\"index.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,0BAA0B;AACjC,IAAG,8BAA8B;AAC/B,SAAOA,YAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,YAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/dist/load-env.test.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_load_env = require('./load-env.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/load-env.test.ts
|
|
6
|
-
(0, vitest.describe)("load-env.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_load_env.load_env_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_load_env.load_env_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
package/dist/load-env.test.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/load-env.test.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/load-env.test.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { load_env_exports } from "./load-env.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/load-env.test.ts
|
|
5
|
-
describe("load-env.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(load_env_exports).toBeDefined();
|
|
8
|
-
expect(typeof load_env_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=load-env.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load-env.test.mjs","names":["moduleExports"],"sources":["../src/load-env.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./load-env.ts\";\n\ndescribe(\"load-env.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,6BAA6B;AACpC,IAAG,8BAA8B;AAC/B,SAAOA,iBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,iBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/dist/providers.test.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_providers = require('./providers.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/providers.test.ts
|
|
6
|
-
(0, vitest.describe)("providers.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_providers.providers_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_providers.providers_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/providers.test.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { providers_exports } from "./providers.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/providers.test.ts
|
|
5
|
-
describe("providers.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(providers_exports).toBeDefined();
|
|
8
|
-
expect(typeof providers_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=providers.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"providers.test.mjs","names":["moduleExports"],"sources":["../src/providers.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./providers.ts\";\n\ndescribe(\"providers.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,8BAA8B;AACrC,IAAG,8BAA8B;AAC/B,SAAOA,kBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,kBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_runtime_checks = require('./runtime-checks.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/runtime-checks.test.ts
|
|
6
|
-
(0, vitest.describe)("runtime-checks.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_runtime_checks.runtime_checks_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_runtime_checks.runtime_checks_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { runtime_checks_exports } from "./runtime-checks.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/runtime-checks.test.ts
|
|
5
|
-
describe("runtime-checks.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(runtime_checks_exports).toBeDefined();
|
|
8
|
-
expect(typeof runtime_checks_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=runtime-checks.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-checks.test.mjs","names":["moduleExports"],"sources":["../src/runtime-checks.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./runtime-checks.ts\";\n\ndescribe(\"runtime-checks.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,mCAAmC;AAC1C,IAAG,8BAA8B;AAC/B,SAAOA,uBAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,uBAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|
package/dist/types.test.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_types = require('./types.cjs');
|
|
3
|
-
let vitest = require("vitest");
|
|
4
|
-
|
|
5
|
-
//#region src/types.test.ts
|
|
6
|
-
(0, vitest.describe)("types.ts exports", () => {
|
|
7
|
-
(0, vitest.it)("loads module exports", () => {
|
|
8
|
-
(0, vitest.expect)(require_types.types_exports).toBeDefined();
|
|
9
|
-
(0, vitest.expect)(typeof require_types.types_exports).toBe("object");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
//#endregion
|
package/dist/types.test.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types.test.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types.test.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { types_exports } from "./types.mjs";
|
|
2
|
-
import { describe, expect, it } from "vitest";
|
|
3
|
-
|
|
4
|
-
//#region src/types.test.ts
|
|
5
|
-
describe("types.ts exports", () => {
|
|
6
|
-
it("loads module exports", () => {
|
|
7
|
-
expect(types_exports).toBeDefined();
|
|
8
|
-
expect(typeof types_exports).toBe("object");
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { };
|
|
14
|
-
//# sourceMappingURL=types.test.mjs.map
|
package/dist/types.test.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.test.mjs","names":["moduleExports"],"sources":["../src/types.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./types.ts\";\n\ndescribe(\"types.ts exports\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n});\n"],"mappings":";;;;AAGA,SAAS,0BAA0B;AACjC,IAAG,8BAA8B;AAC/B,SAAOA,cAAc,CAAC,aAAa;AACnC,SAAO,OAAOA,cAAc,CAAC,KAAK,SAAS;GAC3C;EACF"}
|