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

mqtt

Package Overview
Dependencies
Maintainers
7
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mqtt - npm Package Compare versions

Comparing version 5.1.3 to 5.1.4

5

build/lib/is-browser.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isBrowser = (typeof window !== 'undefined' && typeof window.document !== 'undefined') ||
(typeof self !== 'undefined' && typeof self.postMessage === 'function');
(typeof self === 'object' &&
self.constructor &&
self.constructor.name === 'DedicatedWorkerGlobalScope') ||
(typeof navigator !== 'undefined' && navigator.product === 'ReactNative');
exports.default = isBrowser;
//# sourceMappingURL=is-browser.js.map

50

package.json
{
"name": "mqtt",
"description": "A library for the MQTT protocol",
"version": "5.1.3",
"version": "5.1.4",
"contributors": [

@@ -104,4 +104,4 @@ "Adam Rudd <adamvrr@gmail.com>",

"dependencies": {
"@types/readable-stream": "^4.0.1",
"@types/ws": "^8.5.5",
"@types/readable-stream": "^4.0.4",
"@types/ws": "^8.5.8",
"commist": "^3.2.0",

@@ -120,28 +120,28 @@ "concat-stream": "^2.0.0",

"split2": "^4.2.0",
"ws": "^8.13.0"
"ws": "^8.14.2"
},
"devDependencies": {
"@release-it/conventional-changelog": "^7.0.0",
"@types/chai": "^4.3.5",
"@types/duplexify": "^3.6.1",
"@types/node": "^20.5.0",
"@types/sinon": "^10.0.16",
"@types/tape": "^5.6.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@release-it/conventional-changelog": "^7.0.2",
"@types/chai": "^4.3.9",
"@types/duplexify": "^3.6.3",
"@types/node": "^20.8.8",
"@types/sinon": "^10.0.20",
"@types/tape": "^5.6.3",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"airtap": "^4.0.4",
"airtap-playwright": "^1.0.1",
"browserify": "^17.0.0",
"chai": "^4.3.7",
"chai": "^4.3.10",
"chokidar": "^3.5.3",
"codecov": "^3.8.2",
"conventional-changelog-cli": "^3.0.0",
"conventional-changelog-cli": "^4.1.0",
"end-of-stream": "^1.4.4",
"esbuild-register": "^3.5.0",
"eslint": "^8.46.0",
"eslint": "^8.52.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"global": "^4.4.0",

@@ -154,13 +154,13 @@ "leaked-handles": "^5.2.0",

"pre-commit": "^1.2.2",
"prettier": "^3.0.0",
"release-it": "^16.1.3",
"rimraf": "^5.0.1",
"prettier": "^3.0.3",
"release-it": "^16.2.1",
"rimraf": "^5.0.5",
"should": "^13.2.3",
"sinon": "^15.2.0",
"sinon": "^17.0.0",
"snazzy": "^9.0.0",
"tape": "^5.6.6",
"terser": "^5.19.2",
"tape": "^5.7.2",
"terser": "^5.22.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
}
}
const isBrowser =
(typeof window !== 'undefined' && typeof window.document !== 'undefined') ||
// eslint-disable-next-line no-restricted-globals
(typeof self !== 'undefined' && typeof self.postMessage === 'function') // is web worker
(typeof self === 'object' &&
// eslint-disable-next-line no-restricted-globals
self.constructor &&
// eslint-disable-next-line no-restricted-globals
self.constructor.name === 'DedicatedWorkerGlobalScope') || // is web worker
(typeof navigator !== 'undefined' && navigator.product === 'ReactNative') // while navigator.product is deprecated
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

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