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

universal-env

Package Overview
Dependencies
Maintainers
3
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-env - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

dist/env.min.map

16

dist/env.factory.js
module.exports = function(require, exports, module) {
with(this) { module.exports = /******/ (function(modules) { // webpackBootstrap
with(this) { module.exports = /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading wasm modules
/******/ var installedWasmModules = {};
/******/
/******/ // The require function

@@ -48,2 +51,7 @@ /******/ function __webpack_require__(moduleId) {

/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules

@@ -64,2 +72,6 @@ /******/ __webpack_require__.n = function(module) {

/******/
/******/ // object with all compiled WebAssembly.Modules
/******/ __webpack_require__.w = {};
/******/
/******/
/******/ // Load entry module and return exports

@@ -85,3 +97,3 @@ /******/ return __webpack_require__(__webpack_require__.s = 0);

var isNode = exports.isNode = typeof process !== 'undefined' && !!(process.versions && process.versions.node);
var isWeex = exports.isWeex = typeof callNative === 'function';
var isWeex = exports.isWeex = typeof callNative === 'function' || (typeof WXEnvironment === 'undefined' ? 'undefined' : _typeof(WXEnvironment)) === 'object' && WXEnvironment.platform !== 'Web';
var isReactNative = exports.isReactNative = typeof __fbBatchedBridgeConfig !== 'undefined';

@@ -88,0 +100,0 @@

54

dist/env.js
;(function(fn) {
if (typeof exports === "object" && typeof module !== "undefined") {
;(function(fn) {
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = fn();
} else if (typeof define === "function") {
define("universal-env", function(require, exports, module){
module.exports = fn();
} else if (typeof define === "function") {
define("universal-env", function(require, exports, module){
module.exports = fn();
});
});
} else {
var root;
if (typeof window !== "undefined") {
root = window;
} else if (typeof self !== "undefined") {
root = self;
} else if (typeof global !== "undefined") {
root = global;
} else {
var root;
if (typeof window !== "undefined") {
root = window;
} else if (typeof self !== "undefined") {
root = self;
} else if (typeof global !== "undefined") {
root = global;
} else {
// NOTICE: In JavaScript strict mode, this is null
root = this;
}
root["UniversalEnv"] = fn();
// NOTICE: In JavaScript strict mode, this is null
root = this;
}
})(function(){
return /******/ (function(modules) { // webpackBootstrap
root["UniversalEnv"] = fn();
}
})(function(){
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading wasm modules
/******/ var installedWasmModules = {};
/******/
/******/ // The require function

@@ -70,2 +73,7 @@ /******/ function __webpack_require__(moduleId) {

/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules

@@ -86,2 +94,6 @@ /******/ __webpack_require__.n = function(module) {

/******/
/******/ // object with all compiled WebAssembly.Modules
/******/ __webpack_require__.w = {};
/******/
/******/
/******/ // Load entry module and return exports

@@ -107,3 +119,3 @@ /******/ return __webpack_require__(__webpack_require__.s = 0);

var isNode = exports.isNode = typeof process !== 'undefined' && !!(process.versions && process.versions.node);
var isWeex = exports.isWeex = typeof callNative === 'function';
var isWeex = exports.isWeex = typeof callNative === 'function' || (typeof WXEnvironment === 'undefined' ? 'undefined' : _typeof(WXEnvironment)) === 'object' && WXEnvironment.platform !== 'Web';
var isReactNative = exports.isReactNative = typeof __fbBatchedBridgeConfig !== 'undefined';

@@ -110,0 +122,0 @@

@@ -1,1 +0,2 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("universal-env",function(o,n,t){t.exports=e()});else{("undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this).UniversalEnv=e()}}(function(){return function(e){var o={};function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=0)}([function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.isWeb="object"===("undefined"==typeof navigator?"undefined":t(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),o.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),o.isWeex="function"==typeof callNative,o.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}])});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("universal-env",function(n,o,t){t.exports=e()});else{("undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this).UniversalEnv=e()}}(function(){return function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=n,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o.w={},o(o.s=0)}([function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.isWeb="object"===("undefined"==typeof navigator?"undefined":t(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),n.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),n.isWeex="function"==typeof callNative||"object"===("undefined"==typeof WXEnvironment?"undefined":t(WXEnvironment))&&"Web"!==WXEnvironment.platform,n.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}])});
//# sourceMappingURL=env.min.map

@@ -12,5 +12,5 @@ 'use strict';

var isNode = exports.isNode = typeof process !== 'undefined' && !!(process.versions && process.versions.node);
var isWeex = exports.isWeex = typeof callNative === 'function';
var isWeex = exports.isWeex = typeof callNative === 'function' || (typeof WXEnvironment === 'undefined' ? 'undefined' : _typeof(WXEnvironment)) === 'object' && WXEnvironment.platform !== 'Web';
var isReactNative = exports.isReactNative = typeof __fbBatchedBridgeConfig !== 'undefined';
exports['default'] = module.exports;
exports.default = module.exports;
{
"name": "universal-env",
"version": "0.5.4",
"version": "0.6.0",
"description": "A universal environment utilities.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

// https://www.w3.org/TR/html5/webappapis.html#dom-navigator-appcodename
export const isWeb = typeof navigator === 'object' && (navigator.appCodeName === 'Mozilla' || navigator.product === 'Gecko');
export const isNode = typeof process !== 'undefined' && !!(process.versions && process.versions.node);
export const isWeex = typeof callNative === 'function';
export const isWeex = typeof callNative === 'function' || typeof WXEnvironment === 'object' && WXEnvironment.platform !== 'Web';
export const isReactNative = typeof __fbBatchedBridgeConfig !== 'undefined';

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