@lskjs/env
Advanced tools
Comparing version 2.8.0 to 2.23.0
@@ -14,2 +14,5 @@ declare global { | ||
export declare const stage: any; | ||
export declare const version: any; | ||
export declare const instance: any; | ||
export declare const isMasterInstance: boolean; | ||
declare const _default: { | ||
@@ -22,3 +25,6 @@ isServer: boolean; | ||
stage: any; | ||
version: any; | ||
instance: any; | ||
isMasterInstance: boolean; | ||
}; | ||
export default _default; |
13
env.js
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports["default"] = exports.stage = exports.isDebug = exports.isProd = exports.isDev = exports.isClient = exports.isServer = void 0; | ||
exports["default"] = exports.isMasterInstance = exports.instance = exports.version = exports.stage = exports.isDebug = exports.isProd = exports.isDev = exports.isClient = exports.isServer = void 0; | ||
@@ -23,2 +23,8 @@ /* global window */ | ||
exports.stage = stage; | ||
var version = isServer ? process.env.VERSION || process.env.__VERSION || process.env.__VERSION__ : window.env && window.env.version || '000000'; | ||
exports.version = version; | ||
var instance = isServer ? process.env.INSTANCE || process.env.__INSTANCE || process.env.__INSTANCE__ : window.env && window.env.instance || '1'; | ||
exports.instance = instance; | ||
var isMasterInstance = instance === '1'; | ||
exports.isMasterInstance = isMasterInstance; | ||
var _default = { | ||
@@ -30,5 +36,8 @@ isServer: isServer, | ||
isDebug: isDebug, | ||
stage: stage | ||
stage: stage, | ||
version: version, | ||
instance: instance, | ||
isMasterInstance: isMasterInstance | ||
}; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=env.js.map |
{ | ||
"name": "@lskjs/env", | ||
"version": "2.8.0", | ||
"version": "2.23.0", | ||
"description": "LSK.js – env – Scripts for environment detecton", | ||
@@ -26,3 +26,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "154cab089ac3ee71eb541f26fbb42f10a9f315b4" | ||
"gitHead": "a45b526fb2492e27d5a439fec136a936cd18928c" | ||
} |
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
89133
129