serialport
Advanced tools
Comparing version 5.1.0-beta5 to 6.0.0-beta1
@@ -17,3 +17,3 @@ 'use strict'; | ||
'ID_VENDOR_ID': 'vendorId', | ||
'ID_MODEL_ENC': 'productId', | ||
'ID_MODEL_ID': 'productId', | ||
'DEVLINKS': 'pnpId' | ||
@@ -37,5 +37,2 @@ }[name.toUpperCase()]; | ||
} | ||
if (name === 'productId') { | ||
return decodeHexEscape(val); | ||
} | ||
if (/^0x/.test(val)) { | ||
@@ -42,0 +39,0 @@ return val.substr(2); |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const promisify = require('../util').promisify; | ||
const serialNumParser = require('./win32-sn-parser'); | ||
@@ -13,5 +14,6 @@ class WindowsBinding extends BaseBinding { | ||
if (port.pnpId) { | ||
const parts = port.pnpId.match(/USB\\(.+)\\(.+)/); | ||
if (!parts) { return } | ||
port.serialNumber = parts.pop(); | ||
const serialNumber = serialNumParser(port.pnpId); | ||
if (serialNumber) { | ||
port.serialNumber = serialNumber; | ||
} | ||
} | ||
@@ -18,0 +20,0 @@ }); |
{ | ||
"name": "serialport", | ||
"version": "5.1.0-beta5", | ||
"version": "6.0.0-beta1", | ||
"description": "Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!", | ||
@@ -65,3 +65,2 @@ "author": { | ||
"nan": "^2.6.2", | ||
"prebuild": "^6.2.1", | ||
"prebuild-install": "^2.2.1", | ||
@@ -75,2 +74,3 @@ "promirepl": "^1.0.1", | ||
"chai-subset": "^1.5.0", | ||
"conventional-changelog-cli": "^1.3.2", | ||
"eslint": "^4.1.1", | ||
@@ -85,4 +85,5 @@ "eslint-config-standard": "^10.2.1", | ||
"mocha": "^3.4.2", | ||
"prebuild": "^6.2.1", | ||
"proxyquire": "^1.7.10", | ||
"sinon": "^2.3.8" | ||
"sinon": "^3.0.0" | ||
}, | ||
@@ -100,2 +101,3 @@ "engines": { | ||
"arduino-test": "TEST_PORT=$(./bin/find-arduino.js) npm test", | ||
"changelog": "conventional-changelog -i CHANGELOG.md -p angular -s", | ||
"docs": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format -f lib/* lib/bindings/* lib/parsers/* > README.md", | ||
@@ -102,0 +104,0 @@ "docs:diff": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format -f lib/* lib/bindings/* lib/parsers/* | diff README.md - || (echo 'Docs out of date, run `npm run docs` and commit the new README.md' && false)", |
@@ -42,5 +42,5 @@ # Node Serialport | ||
You're reading the README for Node-Serialport's master branch. You probably want to see the README for our most recent release. See our [changelog](changelog.md) for what's new, and our [upgrade guide](UPGRADE_GUIDE.md) for a walk-through on differences between major versions. | ||
You're reading the README for Node-Serialport's master branch. You probably want to see the README for our most recent release. See our [changelog](CHANGELOG.md) for what's new, and our [upgrade guide](UPGRADE_GUIDE.md) for a walk-through on differences between major versions. | ||
- [`serialport@5.0.0` docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/5.0.0/README.md) the latest `5.x` release. 🎉 | ||
- [`serialport@6.0.0-beta1` docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/6.0.0-beta1/README.md) the latest `6.x` release. | ||
- [`serialport@4.0.7` docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/4.0.7/README.md) the latest `4.x` release. | ||
@@ -158,3 +158,3 @@ - [`serialport@3.1.2` docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/3.1.2/README.md) the last `3.x` release. | ||
We use [node-pre-gyp](https://github.com/mapbox/node-pre-gyp) to compile and post binaries of the library for most common use cases (Linux, Mac, Windows on standard processor platforms). If you have a special case, Node-Serialport will work, but it will compile the binary when you install. `node-gyp` requires Python 2.x, so please ensure you have it installed and in your path for all operating systems. Python 3.x will not work. | ||
We use [prebuild](https://github.com/mafintosh/prebuild) to compile and post binaries of the library for most common use cases (Linux, Mac, Windows on standard processor platforms). If you have a special case, Node-Serialport will work, but it will compile the binary during the install. Compiling with nodejs is done via `node-gyp` which requires Python 2.x, so please ensure you have it installed and in your path for all operating systems. Python 3.x will not work. | ||
@@ -238,5 +238,9 @@ This assumes you have everything on your system necessary to compile ANY native module for Node.js. If you don't, then please ensure the following are true for your system before filing a "Does not install" issue. | ||
> serialport@4.0.3 install /usr/lib/node_modules/serialport | ||
> node-pre-gyp install --fallback-to-build | ||
> serialport@6.0.0-beta1 install /Users/wizard/src/node-serialport | ||
> prebuild-install || node-gyp rebuild | ||
prebuild-install info begin Prebuild-install version 2.2.1 | ||
prebuild-install info install installing standalone, skipping download. | ||
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.9.1" | ||
@@ -243,0 +247,0 @@ gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/serialport/.node-gyp" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7
2012
1249
2
218427
16
44
- Removedprebuild@^6.2.1
- Removedabbrev@1.1.1(transitive)
- Removedafter@0.8.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi@0.3.1(transitive)
- Removedarray-index@1.0.0(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync@2.6.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbl@3.0.1(transitive)
- Removedblock-stream@0.0.9(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-from@0.1.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedd@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedexecspawn@1.0.1(transitive)
- Removedext@1.7.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedgauge@1.2.7(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedghreleases@1.0.7(transitive)
- Removedghrepos@2.1.0(transitive)
- Removedghutils@3.2.6(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedhyperquest@2.1.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedisexe@2.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonist@2.1.2(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.pad@4.5.1(transitive)
- Removedlodash.padend@4.6.1(transitive)
- Removedlodash.padstart@4.6.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp@3.8.0(transitive)
- Removednode-ninja@1.0.2(transitive)
- Removednopt@3.0.6(transitive)
- Removednpmlog@2.0.4(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpath-array@1.0.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprebuild@6.2.2(transitive)
- Removedpsl@1.9.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedreadable-stream@1.0.341.1.143.6.2(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.3.0(transitive)
- Removedsimple-mime@0.1.0(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring_decoder@0.10.311.3.0(transitive)
- Removedtar@2.2.2(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedtype@2.7.3(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedurl-template@2.0.8(transitive)
- Removedutil-extend@1.0.3(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwhich@1.3.1(transitive)