Comparing version 5.1.1 to 5.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
const isBrowser = (typeof window !== 'undefined' && typeof window.document !== 'undefined') || | ||
(typeof self !== 'undefined' && typeof self.postMessage === 'function'); | ||
exports.default = isBrowser; | ||
//# sourceMappingURL=is-browser.js.map |
{ | ||
"name": "mqtt", | ||
"description": "A library for the MQTT protocol", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Adam Rudd <adamvrr@gmail.com>", |
const isBrowser = | ||
typeof window !== 'undefined' && typeof window.document !== 'undefined' | ||
(typeof window !== 'undefined' && typeof window.document !== 'undefined') || | ||
// eslint-disable-next-line no-restricted-globals | ||
(typeof self !== 'undefined' && typeof self.postMessage === 'function') // is web worker | ||
export default isBrowser |
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 too big to display
Sorry, the diff of this file is too big to display
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
1473231
31928
30