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

@probe.gl/env

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@probe.gl/env - npm Package Compare versions

Comparing version 3.5.0-alpha.5 to 3.5.0

32

dist/es5/index.js

@@ -5,2 +5,4 @@ "use strict";

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

@@ -11,3 +13,3 @@ value: true

enumerable: true,
get: function () {
get: function get() {
return _globals.VERSION;

@@ -18,3 +20,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _assert.default;

@@ -25,3 +27,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.console;

@@ -32,3 +34,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.document;

@@ -39,3 +41,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _getBrowser.default;

@@ -46,3 +48,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.global;

@@ -53,3 +55,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _isBrowser.default;

@@ -60,3 +62,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _isBrowser.isBrowserMainThread;

@@ -67,3 +69,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _isElectron.default;

@@ -74,3 +76,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _getBrowser.isMobile;

@@ -81,3 +83,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.process;

@@ -88,3 +90,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.self;

@@ -95,3 +97,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals2.window;

@@ -113,5 +115,5 @@ }

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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; }
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

@@ -15,3 +15,3 @@ "use strict";

const window = globalThis;
var window = globalThis;

@@ -31,4 +31,4 @@ function isMobile() {

const navigator_ = typeof navigator !== 'undefined' ? navigator : {};
const userAgent = mockUserAgent || navigator_.userAgent || '';
var navigator_ = typeof navigator !== 'undefined' ? navigator : {};
var userAgent = mockUserAgent || navigator_.userAgent || '';

@@ -39,4 +39,4 @@ if (userAgent.indexOf('Edge') > -1) {

const isMSIE = userAgent.indexOf('MSIE ') !== -1;
const isTrident = userAgent.indexOf('Trident/') !== -1;
var isMSIE = userAgent.indexOf('MSIE ') !== -1;
var isTrident = userAgent.indexOf('Trident/') !== -1;

@@ -43,0 +43,0 @@ if (isMSIE || isTrident) {

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

@@ -7,3 +9,6 @@ value: true

exports.window = exports.self = exports.process = exports.global = exports.document = exports.console = void 0;
const globals = {
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var globals = {
self: typeof self !== 'undefined' && self,

@@ -13,16 +18,16 @@ window: typeof window !== 'undefined' && window,

document: typeof document !== 'undefined' && document,
process: typeof process === 'object' && process
process: (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && process
};
const global_ = globalThis;
var global_ = globalThis;
exports.global = global_;
const self_ = globals.self || globals.window || globals.global;
var self_ = globals.self || globals.window || globals.global;
exports.self = self_;
const window_ = globals.window || globals.self || globals.global;
var window_ = globals.window || globals.self || globals.global;
exports.window = window_;
const document_ = globals.document || {};
var document_ = globals.document || {};
exports.document = document_;
const process_ = globals.process || {};
var process_ = globals.process || {};
exports.process = process_;
const console_ = console;
var console_ = console;
exports.console = console_;
//# sourceMappingURL=globals.js.map

@@ -11,6 +11,8 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _isElectron = _interopRequireDefault(require("./is-electron"));
function isBrowser() {
const isNode = typeof process === 'object' && String(process) === '[object process]' && !process.browser;
var isNode = (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) === 'object' && String(process) === '[object process]' && !process.browser;
return !isNode || (0, _isElectron.default)();

@@ -17,0 +19,0 @@ }

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

@@ -8,13 +10,15 @@ value: true

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
function isElectron(mockUserAgent) {
if (typeof window !== 'undefined' && typeof window.process === 'object' && window.process.type === 'renderer') {
if (typeof window !== 'undefined' && (0, _typeof2.default)(window.process) === 'object' && window.process.type === 'renderer') {
return true;
}
if (typeof process !== 'undefined' && typeof process.versions === 'object' && Boolean(process.versions.electron)) {
if (typeof process !== 'undefined' && (0, _typeof2.default)(process.versions) === 'object' && Boolean(process.versions.electron)) {
return true;
}
const realUserAgent = typeof navigator === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
const userAgent = mockUserAgent || realUserAgent;
var realUserAgent = (typeof navigator === "undefined" ? "undefined" : (0, _typeof2.default)(navigator)) === 'object' && typeof navigator.userAgent === 'string' && navigator.userAgent;
var userAgent = mockUserAgent || realUserAgent;

@@ -21,0 +25,0 @@ if (userAgent && userAgent.indexOf('Electron') >= 0) {

@@ -11,3 +11,3 @@ "use strict";

enumerable: true,
get: function () {
get: function get() {
return _globals.console;

@@ -18,3 +18,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals.document;

@@ -25,3 +25,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals.global;

@@ -33,3 +33,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals.process;

@@ -40,3 +40,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals.self;

@@ -47,3 +47,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _globals.window;

@@ -57,6 +57,6 @@ }

const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'untranspiled source';
var VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'untranspiled source';
exports.VERSION = VERSION;
const isBrowser = (0, _isBrowser.default)();
var isBrowser = (0, _isBrowser.default)();
exports.isBrowser = isBrowser;
//# sourceMappingURL=globals.js.map

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.5.0-alpha.5",
"version": "3.5.0",
"keywords": [

@@ -31,3 +31,3 @@ "javascript",

},
"gitHead": "8717b64234cc62be48396c4ffbd614e7d7a42cfe"
"gitHead": "101a91ea7a5c71cbe4a46d6c495973a9dd9637ea"
}

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

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