Comparing version 4.3.5 to 4.3.6
@@ -14,3 +14,3 @@ # MQTT.js is an OPEN Open Source Project | ||
1. **No `--force` pushes** or modifying the Git history in any way. | ||
1. **Non-master branches** ought to be used for ongoing work. | ||
1. **Non-main branches** ought to be used for ongoing work. | ||
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors. | ||
@@ -17,0 +17,0 @@ 1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor. |
'use strict' | ||
const { Buffer } = require('buffer') | ||
const Transform = require('readable-stream').Transform | ||
@@ -4,0 +5,0 @@ const duplexify = require('duplexify') |
'use strict' | ||
const { Buffer } = require('buffer') | ||
const WS = require('ws') | ||
@@ -4,0 +5,0 @@ const debug = require('debug')('mqttjs:ws') |
'use strict' | ||
const { Buffer } = require('buffer') | ||
const Transform = require('readable-stream').Transform | ||
@@ -4,0 +5,0 @@ const duplexify = require('duplexify') |
{ | ||
"name": "mqtt", | ||
"description": "A library for the MQTT protocol", | ||
"version": "4.3.5", | ||
"version": "4.3.6", | ||
"contributors": [ | ||
@@ -25,17 +25,16 @@ "Adam Rudd <adamvrr@gmail.com>", | ||
"scripts": { | ||
"test": "node_modules/.bin/nyc --reporter=lcov --reporter=text ./node_modules/mocha/bin/_mocha --exit", | ||
"pretest": "standard | snazzy", | ||
"tslint": "tslint types/**/*.d.ts", | ||
"typescript-compile-test": "tsc -p test/typescript/tsconfig.json", | ||
"typescript-compile-execute": "node test/typescript/*.js", | ||
"typescript-test": "npm run typescript-compile-test && npm run typescript-compile-execute", | ||
"typescript-compile-execute": "node test/typescript/broker-connect-subscribe-and-publish.js", | ||
"browser-build": "rimraf dist/ && mkdirp dist/ && browserify mqtt.js --standalone mqtt > dist/mqtt.js && uglifyjs dist/mqtt.js --compress --mangle --output dist/mqtt.min.js", | ||
"prepare": "npm run browser-build", | ||
"browser-test": "airtap --server test/browser/server.js --local --open test/browser/test.js", | ||
"sauce-test": "airtap --server test/browser/server.js -- test/browser/test.js", | ||
"ci": "npm run tslint && npm run typescript-compile-test && npm run test && codecov" | ||
"unit-test:node": "node_modules/.bin/nyc --reporter=lcov --reporter=text ./node_modules/mocha/bin/_mocha --exit", | ||
"unit-test:browser": "airtap --server test/browser/server.js test/browser/test.js", | ||
"test:node": "npm run unit-test:node && codecov", | ||
"test:browser": "npm run browser-build && npm run unit-test:browser", | ||
"test:typescript": "npm run typescript-compile-test && npm run typescript-compile-execute", | ||
"test": "npm run test:node && npm run test:typescript" | ||
}, | ||
"pre-commit": [ | ||
"pretest", | ||
"tslint" | ||
"pretest" | ||
], | ||
@@ -86,7 +85,9 @@ "bin": { | ||
"@types/node": "^10.0.0", | ||
"@types/tape": "^4.13.2", | ||
"@types/ws": "^7.4.7", | ||
"aedes": "^0.42.5", | ||
"aedes": "^0.46.2", | ||
"airtap": "^4.0.4", | ||
"browserify": "^16.5.0", | ||
"chai": "^4.2.0", | ||
"chokidar": "^3.5.3", | ||
"codecov": "^3.0.4", | ||
@@ -96,3 +97,3 @@ "end-of-stream": "^1.4.1", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^9.1.3", | ||
"mocha": "^9.2.0", | ||
"mqtt-connection": "^4.0.0", | ||
@@ -106,5 +107,4 @@ "nyc": "^15.0.1", | ||
"standard": "^16.0.4", | ||
"tslint": "^5.11.0", | ||
"tslint-config-standard": "^8.0.1", | ||
"typescript": "^3.2.2", | ||
"tape": "^5.5.2", | ||
"typescript": "^4.5.5", | ||
"uglify-es": "^3.3.9" | ||
@@ -115,13 +115,4 @@ }, | ||
"mocha" | ||
], | ||
"globals": [ | ||
"expect", | ||
"test", | ||
"describe", | ||
"it", | ||
"beforeEach", | ||
"beforeAll", | ||
"afterAll" | ||
] | ||
} | ||
} |
@@ -9,6 +9,2 @@ ![mqtt.js](https://raw.githubusercontent.com/mqttjs/MQTT.js/137ee0e3940c1f01049a30248c70f24dc6e6f829/MQTT.js.png) | ||
| :warning: WARNING | | ||
|:---------------------------| | ||
| our default branch has been moved from *master* to *main* | | ||
| :boom: MQTT.js vNext | | ||
@@ -15,0 +11,0 @@ |:---------------------------| |
import { IClientOptions, MqttClient } from '../client' | ||
/** | ||
* connect - connect to an MQTT broker. | ||
* | ||
* @param {String} [brokerUrl] - url of the broker, optional | ||
* @param {Object} opts - see MqttClient#constructor | ||
*/ | ||
declare function connect (brokerUrl?: string | any, opts?: IClientOptions): MqttClient | ||
declare function connect (opts: IClientOptions): MqttClient | ||
/** | ||
* connect - connect to an MQTT broker. | ||
* | ||
* @param {String} brokerUrl - url of the broker | ||
* @param {Object} opts - see MqttClient#constructor | ||
*/ | ||
declare function connect (brokerUrl: string, opts?: IClientOptions): MqttClient | ||
export { connect } | ||
export { MqttClient } |
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
20307
951418
24
848