@gracile/internal-utils
Advanced tools
Comparing version 0.3.0 to 0.3.1-next.0
@@ -1,5 +0,7 @@ | ||
export const BROWSER: true; | ||
export const DEV: true; | ||
export const PREVIEW: false; | ||
export const TEST: false; | ||
export declare const env: Readonly<{ | ||
BROWSER: true; | ||
DEV: true; | ||
PREVIEW: false; | ||
TEST: false; | ||
}>; | ||
//# sourceMappingURL=dev-browser.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = true; | ||
export const DEV = true; | ||
export const PREVIEW = false; | ||
export const TEST = false; | ||
export const env = Object.freeze({ | ||
BROWSER: true, | ||
DEV: true, | ||
PREVIEW: false, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: false; | ||
export const DEV: true; | ||
export const PREVIEW: false; | ||
export const TEST: false; | ||
export declare const env: Readonly<{ | ||
BROWSER: false; | ||
DEV: true; | ||
PREVIEW: false; | ||
TEST: false; | ||
}>; | ||
//# sourceMappingURL=dev-ssr.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = false; | ||
export const DEV = true; | ||
export const PREVIEW = false; | ||
export const TEST = false; | ||
export const env = Object.freeze({ | ||
BROWSER: false, | ||
DEV: true, | ||
PREVIEW: false, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: true; | ||
export const DEV: false; | ||
export const PREVIEW: true; | ||
export const TEST: false; | ||
export declare const env: Readonly<{ | ||
BROWSER: true; | ||
DEV: false; | ||
PREVIEW: true; | ||
TEST: false; | ||
}>; | ||
//# sourceMappingURL=preview-browser.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = true; | ||
export const DEV = false; | ||
export const PREVIEW = true; | ||
export const TEST = false; | ||
export const env = Object.freeze({ | ||
BROWSER: true, | ||
DEV: false, | ||
PREVIEW: true, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: false; | ||
export const DEV: false; | ||
export const PREVIEW: true; | ||
export const TEST: false; | ||
export declare const env: Readonly<{ | ||
BROWSER: false; | ||
DEV: false; | ||
PREVIEW: true; | ||
TEST: false; | ||
}>; | ||
//# sourceMappingURL=preview-ssr.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = false; | ||
export const DEV = false; | ||
export const PREVIEW = true; | ||
export const TEST = false; | ||
export const env = Object.freeze({ | ||
BROWSER: false, | ||
DEV: false, | ||
PREVIEW: true, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: true; | ||
export const DEV: false; | ||
export const PREVIEW: false; | ||
export const TEST: false; | ||
export declare const env: Readonly<{ | ||
BROWSER: true; | ||
DEV: false; | ||
PREVIEW: false; | ||
TEST: false; | ||
}>; | ||
//# sourceMappingURL=prod-browser.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = true; | ||
export const DEV = false; | ||
export const PREVIEW = false; | ||
export const TEST = false; | ||
export const env = Object.freeze({ | ||
BROWSER: true, | ||
DEV: false, | ||
PREVIEW: false, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,22 @@ | ||
export const BROWSER: false; | ||
export const DEV: false; | ||
export const PREVIEW: false; | ||
export const TEST: false; | ||
/** | ||
* Resolve environment from Node export conditions. | ||
* | ||
* @example | ||
* | ||
* ```ts twoslash | ||
* // @filename: /src/lib/my-lib.ts | ||
* | ||
* import { env } from '@gracile/gracile/env'; | ||
* | ||
* if (env.BROWSER) { | ||
* // NOTE: Do stuff… | ||
* } | ||
* ``` | ||
*/ | ||
export declare const env: Readonly<{ | ||
BROWSER: boolean; | ||
DEV: boolean; | ||
PREVIEW: boolean; | ||
TEST: boolean; | ||
}>; | ||
//# sourceMappingURL=prod-ssr.d.ts.map |
@@ -1,4 +0,21 @@ | ||
export const BROWSER = false; | ||
export const DEV = false; | ||
export const PREVIEW = false; | ||
export const TEST = false; | ||
/** | ||
* Resolve environment from Node export conditions. | ||
* | ||
* @example | ||
* | ||
* ```ts twoslash | ||
* // @filename: /src/lib/my-lib.ts | ||
* | ||
* import { env } from '@gracile/gracile/env'; | ||
* | ||
* if (env.BROWSER) { | ||
* // NOTE: Do stuff… | ||
* } | ||
* ``` | ||
*/ | ||
export const env = Object.freeze({ | ||
BROWSER: false, | ||
DEV: false, | ||
PREVIEW: false, | ||
TEST: false, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: true; | ||
export const DEV: false; | ||
export const PREVIEW: false; | ||
export const TEST: true; | ||
export declare const env: Readonly<{ | ||
BROWSER: true; | ||
DEV: false; | ||
PREVIEW: false; | ||
TEST: true; | ||
}>; | ||
//# sourceMappingURL=test-browser.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = true; | ||
export const DEV = false; | ||
export const PREVIEW = false; | ||
export const TEST = true; | ||
export const env = Object.freeze({ | ||
BROWSER: true, | ||
DEV: false, | ||
PREVIEW: false, | ||
TEST: true, | ||
}); |
@@ -1,5 +0,7 @@ | ||
export const BROWSER: false; | ||
export const DEV: false; | ||
export const PREVIEW: false; | ||
export const TEST: true; | ||
export declare const env: Readonly<{ | ||
BROWSER: false; | ||
DEV: false; | ||
PREVIEW: false; | ||
TEST: true; | ||
}>; | ||
//# sourceMappingURL=test-ssr.d.ts.map |
@@ -1,4 +0,6 @@ | ||
export const BROWSER = false; | ||
export const DEV = false; | ||
export const PREVIEW = false; | ||
export const TEST = true; | ||
export const env = Object.freeze({ | ||
BROWSER: false, | ||
DEV: false, | ||
PREVIEW: false, | ||
TEST: true, | ||
}); |
{ | ||
"name": "@gracile/internal-utils", | ||
"version": "0.3.0", | ||
"version": "0.3.1-next.0", | ||
"description": "A thin, full-stack, web framework", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "aa833d408257a36df6e268712a625900e92dd6e3" | ||
"gitHead": "56eaa6603c913e7b0af2ece069f627821bb61a17" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50935
323