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.85.0 to 2.85.1

3

env.js

@@ -7,5 +7,6 @@ "use strict";

exports.version = exports.stage = exports.isServer = exports.isProd = exports.isLeader = exports.isDev = exports.isDebug = exports.isClient = exports.instance = exports["default"] = void 0;
/* global window */
/* global window */
// const safeWindow = typeof window === 'undefined' ? window :
var isServer = typeof window === 'undefined';

@@ -12,0 +13,0 @@ exports.isServer = isServer;

"use strict";
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {

@@ -15,5 +14,3 @@ value: true

});
var _env = _interopRequireWildcard(require("./env"));
Object.keys(_env).forEach(function (key) {

@@ -30,6 +27,4 @@ if (key === "default" || key === "__esModule") return;

});
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
//# sourceMappingURL=index.js.map
{
"name": "@lskjs/env",
"version": "2.85.0",
"version": "2.85.1",
"description": "LSK.js – env – Scripts for environment detecton",

@@ -30,3 +30,3 @@ "keywords": [],

},
"gitHead": "9869ce6996ffd371157dc0964fcd12446eed7f8c"
"gitHead": "a9b082721ebba17e1987c65f938cff3f03893ad1"
}

@@ -7,6 +7,4 @@ "use strict";

exports["default"] = void 0;
var _default = function _default(str) {
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : str;
try {

@@ -19,4 +17,3 @@ if (typeof str !== 'string') return str;

};
exports["default"] = _default;
//# sourceMappingURL=tryJSONparse.js.map
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -9,12 +8,8 @@ value: true

exports["default"] = void 0;
var _tryJSONparse = _interopRequireDefault(require("./tryJSONparse"));
var tryParamParse = function tryParamParse(str, defaultParam) {
if (str == null || str === '') return defaultParam;
if (typeof str !== 'string') {
return str;
}
var value = (0, _tryJSONparse["default"])(str);

@@ -24,5 +19,4 @@ if (value === undefined) return defaultParam;

};
var _default = tryParamParse;
exports["default"] = _default;
//# sourceMappingURL=tryParamParse.js.map

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

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