mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
173 lines
4.6 KiB
JSON
173 lines
4.6 KiB
JSON
{
|
|
"name": "mqtt",
|
|
"description": "A library for the MQTT protocol",
|
|
"version": "5.4.0",
|
|
"contributors": [
|
|
"Adam Rudd <adamvrr@gmail.com>",
|
|
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
|
|
"Siarhei Buntsevich <scarry0506@gmail.com> (https://github.com/scarry1992)",
|
|
"Yoseph Maguire <yomaguir@microsoft.com> (https://github.com/YoDaMa)",
|
|
"Daniel Lando <daniel.sorridi@gmail.com> (https://github.com/robertsLando)"
|
|
],
|
|
"keywords": [
|
|
"mqtt",
|
|
"publish/subscribe",
|
|
"publish",
|
|
"subscribe"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mqttjs/MQTT.js.git"
|
|
},
|
|
"main": "./build/index.js",
|
|
"module": "./dist/mqtt.esm.js",
|
|
"bin": {
|
|
"mqtt_pub": "./build/bin/pub.js",
|
|
"mqtt_sub": "./build/bin/sub.js",
|
|
"mqtt": "./build/bin/mqtt.js"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"CONTRIBUTING.md",
|
|
"LICENSE.md",
|
|
"help/",
|
|
"build/",
|
|
"src/"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"browser": {
|
|
"import": "./dist/mqtt.esm.js",
|
|
"default": "./dist/mqtt.min.js"
|
|
},
|
|
"default": "./build/index.js"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./*.map": "./build/*.js.map",
|
|
"./dist/*": "./dist/*.js",
|
|
"./*": "./build/*.js"
|
|
},
|
|
"types": "build/index.d.ts",
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"./build/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint --ext .ts .",
|
|
"lint-fix": "eslint --fix --ext .ts .",
|
|
"build:ts": "rimraf build/ && tsc -p tsconfig.build.json",
|
|
"build:browser": "node esbuild.js",
|
|
"build": "npm run build:ts && npm run build:browser",
|
|
"prepare": "npm run build",
|
|
"unit-test:node": "node_modules/.bin/nyc --reporter=lcov --reporter=text node -r esbuild-register test/runTests.ts",
|
|
"unit-test:browser": "wtr",
|
|
"test:node": "npm run unit-test:node && codecov",
|
|
"test:browser": "npm run build && npm run unit-test:browser",
|
|
"test": "npm run test:node",
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
|
"changelog-init": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
"release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it"
|
|
},
|
|
"release-it": {
|
|
"github": {
|
|
"release": true
|
|
},
|
|
"git": {
|
|
"tagName": "v${version}",
|
|
"commitMessage": "chore(release): ${version}"
|
|
},
|
|
"hooks": {
|
|
"before:init": [
|
|
"npm run test"
|
|
]
|
|
},
|
|
"npm": {
|
|
"publish": true
|
|
},
|
|
"plugins": {
|
|
"@release-it/conventional-changelog": {
|
|
"preset": "angular",
|
|
"infile": "CHANGELOG.md"
|
|
}
|
|
}
|
|
},
|
|
"pre-commit": [
|
|
"lint"
|
|
],
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"browser": {
|
|
"./mqtt.js": "./dist/mqtt.js",
|
|
"fs": false,
|
|
"tls": false,
|
|
"net": false
|
|
},
|
|
"dependencies": {
|
|
"@types/readable-stream": "^4.0.5",
|
|
"@types/ws": "^8.5.9",
|
|
"commist": "^3.2.0",
|
|
"concat-stream": "^2.0.0",
|
|
"debug": "^4.3.4",
|
|
"help-me": "^5.0.0",
|
|
"lru-cache": "^10.0.1",
|
|
"minimist": "^1.2.8",
|
|
"mqtt": "^5.2.0",
|
|
"mqtt-packet": "^9.0.0",
|
|
"number-allocator": "^1.0.14",
|
|
"readable-stream": "^4.4.2",
|
|
"reinterval": "^1.1.0",
|
|
"rfdc": "^1.3.0",
|
|
"split2": "^4.2.0",
|
|
"worker-timers": "^7.1.4",
|
|
"ws": "^8.14.2"
|
|
},
|
|
"devDependencies": {
|
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
"@release-it/conventional-changelog": "^7.0.2",
|
|
"@types/chai": "^4.3.10",
|
|
"@types/node": "^20.9.0",
|
|
"@types/sinon": "^17.0.1",
|
|
"@types/tape": "^5.6.4",
|
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
"@typescript-eslint/parser": "^6.10.0",
|
|
"@web/test-runner": "^0.18.0",
|
|
"@web/test-runner-playwright": "^0.11.0",
|
|
"aedes-cli": "^0.8.0",
|
|
"chai": "^4.3.10",
|
|
"chokidar": "^3.5.3",
|
|
"codecov": "^3.8.2",
|
|
"conventional-changelog-cli": "^4.1.0",
|
|
"end-of-stream": "^1.4.4",
|
|
"esbuild": "^0.19.5",
|
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
"esbuild-register": "^3.5.0",
|
|
"eslint": "^8.53.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"eslint-plugin-import": "^2.29.0",
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
"global": "^4.4.0",
|
|
"leaked-handles": "^5.2.0",
|
|
"mkdirp": "^3.0.1",
|
|
"mqtt-connection": "^4.1.0",
|
|
"mqtt-level-store": "^3.1.0",
|
|
"nyc": "^15.1.0",
|
|
"pre-commit": "^1.2.2",
|
|
"prettier": "^3.0.3",
|
|
"release-it": "^16.2.1",
|
|
"rimraf": "^5.0.5",
|
|
"should": "^13.2.3",
|
|
"sinon": "^17.0.1",
|
|
"snazzy": "^9.0.0",
|
|
"tape": "^5.7.2",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^5.2.2"
|
|
}
|
|
}
|