New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flex-plugins-utils-env

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugins-utils-env - npm Package Compare versions

Comparing version 0.7.0 to 0.7.3

19

dist/lib/env.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var lodash_get_1 = __importDefault(require("lodash.get"));
exports._isNode = function () { return typeof process === 'object' && "" + process === '[object process]'; };

@@ -38,6 +42,17 @@ var isWin32 = function () { return exports._isNode() && process.platform === 'win32'; };

}
if (window.location.href.indexOf('flex.stage.twilio')) {
if (window.Twilio) {
var region = lodash_get_1.default(window.Twilio.Flex.Manager.getInstance(), 'configuration.sdkOptions.chat.region');
if (region && region.indexOf('stage') !== -1) {
return 'stage';
}
if (region && region.indexOf('dev') !== -1) {
return 'dev';
}
return '';
}
var href = window.location.href;
if (href && href.indexOf('flex.stage.twilio') !== -1) {
return 'stage';
}
if (window.location.href.indexOf('flex.dev.twilio')) {
if (href && href.indexOf('flex.dev.twilio') !== -1) {
return 'dev';

@@ -44,0 +59,0 @@ }

8

package.json
{
"name": "flex-plugins-utils-env",
"version": "0.7.0",
"version": "0.7.3",
"description": "Flex Plugins Environments",

@@ -42,3 +42,7 @@ "keywords": [

},
"gitHead": "a30fa8d7405fbe8889a29611a9d1c7322db94fa7"
"dependencies": {
"@types/lodash.get": "^4.4.6",
"lodash.get": "^4.4.2"
},
"gitHead": "1f5a216a8d681074c6aefcce7cf403ad34f08e6c"
}

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