Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lskjs/env

Package Overview
Dependencies
Maintainers
11
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lskjs/env - npm Package Compare versions

Comparing version 2.5.0 to 2.5.3

5

env.d.ts
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;

3

env.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc