Socket
Socket
Sign inDemoInstall

serialport

Package Overview
Dependencies
Maintainers
3
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialport - npm Package Compare versions

Comparing version 5.1.0-beta5 to 6.0.0-beta1

CHANGELOG.md

5

lib/bindings/linux-list.js

@@ -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);

8

lib/bindings/win32.js

@@ -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

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