@probe.gl/env
Advanced tools
Comparing version 3.5.0-alpha.3 to 3.5.0-alpha.4
@@ -14,20 +14,14 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "self", { | ||
Object.defineProperty(exports, "assert", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.self; | ||
return _assert.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "window", { | ||
Object.defineProperty(exports, "console", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.window; | ||
return _globals2.console; | ||
} | ||
}); | ||
Object.defineProperty(exports, "global", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.global; | ||
} | ||
}); | ||
Object.defineProperty(exports, "document", { | ||
@@ -39,12 +33,12 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "process", { | ||
Object.defineProperty(exports, "getBrowser", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.process; | ||
return _getBrowser.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "console", { | ||
Object.defineProperty(exports, "global", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.console; | ||
return _globals2.global; | ||
} | ||
@@ -64,6 +58,6 @@ }); | ||
}); | ||
Object.defineProperty(exports, "getBrowser", { | ||
Object.defineProperty(exports, "isElectron", { | ||
enumerable: true, | ||
get: function () { | ||
return _getBrowser.default; | ||
return _isElectron.default; | ||
} | ||
@@ -77,14 +71,20 @@ }); | ||
}); | ||
Object.defineProperty(exports, "isElectron", { | ||
Object.defineProperty(exports, "process", { | ||
enumerable: true, | ||
get: function () { | ||
return _isElectron.default; | ||
return _globals2.process; | ||
} | ||
}); | ||
Object.defineProperty(exports, "assert", { | ||
Object.defineProperty(exports, "self", { | ||
enumerable: true, | ||
get: function () { | ||
return _assert.default; | ||
return _globals2.self; | ||
} | ||
}); | ||
Object.defineProperty(exports, "window", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals2.window; | ||
} | ||
}); | ||
@@ -91,0 +91,0 @@ var _globals = require("./utils/globals"); |
@@ -8,4 +8,4 @@ "use strict"; | ||
}); | ||
exports.default = getBrowser; | ||
exports.isMobile = isMobile; | ||
exports.default = getBrowser; | ||
@@ -12,0 +12,0 @@ var _globals = require("./globals"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.console = exports.process = exports.document = exports.global = exports.window = exports.self = void 0; | ||
exports.window = exports.self = exports.process = exports.global = exports.document = exports.console = void 0; | ||
const globals = { | ||
@@ -9,0 +9,0 @@ self: typeof self !== 'undefined' && self, |
@@ -8,12 +8,13 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "self", { | ||
exports.VERSION = void 0; | ||
Object.defineProperty(exports, "console", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals.self; | ||
return _globals.console; | ||
} | ||
}); | ||
Object.defineProperty(exports, "window", { | ||
Object.defineProperty(exports, "document", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals.window; | ||
return _globals.document; | ||
} | ||
@@ -27,21 +28,21 @@ }); | ||
}); | ||
Object.defineProperty(exports, "document", { | ||
exports.isBrowser = void 0; | ||
Object.defineProperty(exports, "process", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals.document; | ||
return _globals.process; | ||
} | ||
}); | ||
Object.defineProperty(exports, "process", { | ||
Object.defineProperty(exports, "self", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals.process; | ||
return _globals.self; | ||
} | ||
}); | ||
Object.defineProperty(exports, "console", { | ||
Object.defineProperty(exports, "window", { | ||
enumerable: true, | ||
get: function () { | ||
return _globals.console; | ||
return _globals.window; | ||
} | ||
}); | ||
exports.isBrowser = exports.VERSION = void 0; | ||
@@ -48,0 +49,0 @@ var _isBrowser = _interopRequireDefault(require("../lib/is-browser")); |
@@ -26,3 +26,2 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
export function isMobile() { | ||
// @ts-expect-error | ||
return typeof window.orientation !== 'undefined'; | ||
@@ -53,11 +52,8 @@ } | ||
} | ||
// @ts-expect-error | ||
if (window.chrome) { | ||
return 'Chrome'; | ||
} | ||
// @ts-expect-error | ||
if (window.safari) { | ||
return 'Safari'; | ||
} | ||
// @ts-expect-error | ||
if (window.mozInnerScreenX) { | ||
@@ -64,0 +60,0 @@ return 'Firefox'; |
@@ -1,5 +0,4 @@ | ||
/// <reference types="node" /> | ||
declare const global_: typeof globalThis; | ||
declare const self_: (Window & typeof globalThis) | NodeJS.Global; | ||
declare const window_: (Window & typeof globalThis) | NodeJS.Global; | ||
declare const self_: typeof globalThis; | ||
declare const window_: typeof globalThis; | ||
declare const document_: {}; | ||
@@ -6,0 +5,0 @@ declare const process_: {}; |
@@ -15,3 +15,2 @@ // based on https://github.com/cheton/is-electron | ||
typeof process.versions === 'object' && | ||
// @ts-expect-error | ||
Boolean(process.versions.electron)) { | ||
@@ -18,0 +17,0 @@ return true; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "3.5.0-alpha.3", | ||
"version": "3.5.0-alpha.4", | ||
"keywords": [ | ||
@@ -31,3 +31,3 @@ "javascript", | ||
}, | ||
"gitHead": "2db7d09451852d6547dbc43bd40457c25882edfb" | ||
"gitHead": "5f0c4ef4db3b53b0be8ebabcf42e2bc276c7bf44" | ||
} |
@@ -29,3 +29,2 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
export function isMobile(): boolean { | ||
// @ts-expect-error | ||
return typeof window.orientation !== 'undefined'; | ||
@@ -60,11 +59,8 @@ } | ||
} | ||
// @ts-expect-error | ||
if (window.chrome) { | ||
return 'Chrome'; | ||
} | ||
// @ts-expect-error | ||
if (window.safari) { | ||
return 'Safari'; | ||
} | ||
// @ts-expect-error | ||
if (window.mozInnerScreenX) { | ||
@@ -71,0 +67,0 @@ return 'Firefox'; |
@@ -18,3 +18,2 @@ // based on https://github.com/cheton/is-electron | ||
typeof process.versions === 'object' && | ||
// @ts-expect-error | ||
Boolean(process.versions.electron) | ||
@@ -21,0 +20,0 @@ ) { |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49819
639