@lskjs/env
Advanced tools
Comparing version 2.5.0 to 2.5.3
declare global { | ||
interface Window { | ||
env: any; | ||
__DEV__: boolean; | ||
@@ -12,3 +13,3 @@ __STAGE__: boolean; | ||
export declare const isDebug: boolean; | ||
export declare const stage: string | true; | ||
export declare const stage: any; | ||
declare const _default: { | ||
@@ -20,4 +21,4 @@ isServer: boolean; | ||
isDebug: boolean; | ||
stage: string | true; | ||
stage: any; | ||
}; | ||
export default _default; |
@@ -9,2 +9,3 @@ "use strict"; | ||
/* global window */ | ||
// const safeWindow = typeof window === 'undefined' ? window : | ||
var isServer = typeof window === 'undefined'; | ||
@@ -20,3 +21,3 @@ exports.isServer = isServer; | ||
exports.isDebug = isDebug; | ||
var stage = (isServer ? process.env.STAGE || process.env.__STAGE || (isDev ? process.env.user : null) : Boolean(window.__STAGE__)) || 'development'; | ||
var stage = (isServer ? process.env.STAGE || process.env.__STAGE || process.env.__STAGE__ || (isDev ? process.env.user : null) : window.env && window.env.stage || window.__STAGE__) || 'development'; | ||
exports.stage = stage; | ||
@@ -23,0 +24,0 @@ var _default = { |
{ | ||
"name": "@lskjs/env", | ||
"version": "2.5.0", | ||
"version": "2.5.3", | ||
"description": "LSK.js – env – Scripts for environment detecton", | ||
@@ -26,3 +26,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "9c7e401970def6872ece438ef1b841b02232693b" | ||
"gitHead": "1cefc2cbcbb54ab3ffb098a7a21e78463e6fc92d" | ||
} |
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
87283
114