node-red-contrib-jacdac
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -13,9 +13,9 @@ "use strict"; | ||
} | ||
const usb = tryRequire("webusb"); | ||
const rpio = tryRequire("rpio"); | ||
const usb = tryRequire("usb"); | ||
const serialport = tryRequire("serialport"); | ||
const rpio = tryRequire("rpio"); | ||
const transports = [ | ||
usb && (0, jacdac_ts_1.createUSBTransport)((0, jacdac_ts_1.createNodeUSBOptions)()), | ||
rpio && (0, jacdac_ts_1.createNodeSPITransport)(rpio), | ||
usb && (0, jacdac_ts_1.createUSBTransport)((0, jacdac_ts_1.createNodeUSBOptions)(usb.WebUSB)), | ||
serialport && (0, jacdac_ts_1.createNodeWebSerialTransport)(serialport), | ||
rpio && (0, jacdac_ts_1.createNodeSPITransport)(rpio), | ||
]; | ||
@@ -29,2 +29,3 @@ exports.bus = new jacdac_ts_1.JDBus(transports, { | ||
node.log(`connection: ${exports.bus.connected ? "connected" : "disconnected"}`); | ||
node.log(`transports: ${exports.bus.transports.map(tr => `${tr.type}: ${tr.connectionState}`)}`); | ||
node.status(exports.bus.connected | ||
@@ -31,0 +32,0 @@ ? { fill: "green", shape: "dot", text: "connected" } |
{ | ||
"name": "node-red-contrib-jacdac", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "Microsoft Jacdac for Node-Red", | ||
@@ -26,2 +26,5 @@ "keywords": [ | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.17.0" | ||
}, | ||
"node-red": { | ||
@@ -35,6 +38,6 @@ "nodes": { | ||
"dependencies": { | ||
"jacdac-ts": "^1.24.8" | ||
"jacdac-ts": "^1.24.10" | ||
}, | ||
"optionalDependencies": { | ||
"webusb": "^2.2.0", | ||
"usb": "^2.1.2", | ||
"serialport": "^9.2.8", | ||
@@ -49,23 +52,23 @@ "rpio": "^2.4.2" | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^17.0.12", | ||
"@types/node": "^17.0.16", | ||
"@types/node-red": "^1.2.0", | ||
"@types/node-red-node-test-helper": "^0.2.2", | ||
"@types/sinon": "^10.0.8", | ||
"@types/sinon": "^10.0.11", | ||
"@types/supertest": "^2.0.11", | ||
"@typescript-eslint/eslint-plugin": "^5.10.1", | ||
"@typescript-eslint/parser": "^5.10.1", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"colorette": "^2.0.16", | ||
"concurrently": "^7.0.0", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^8.7.0", | ||
"eslint": "^8.8.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^26.0.0", | ||
"eslint-plugin-jest": "^26.1.0", | ||
"glob": "^7.2.0", | ||
"jest": "^27.4.7", | ||
"jest": "^27.5.1", | ||
"mustache": "^4.2.0", | ||
"node-red": "^2.1.6", | ||
"node-red": "^2.2.0", | ||
"node-red-node-test-helper": "^0.2.7", | ||
"onchange": "^7.1.0", | ||
"prettier": "^2.5.1", | ||
"rollup": "^2.66.1", | ||
"rollup": "^2.67.1", | ||
"semantic-release": "^19.0.2", | ||
@@ -72,0 +75,0 @@ "ts-jest": "^27.1.3", |
Sorry, the diff of this file is not supported yet
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
401300
289
+ Addednode-addon-api@8.2.2(transitive)
+ Addedusb@2.14.0(transitive)
- Removed@types/node@8.10.66(transitive)
- Removed@types/usb@1.5.4(transitive)
- Removednode-addon-api@4.3.0(transitive)
- Removedusb@1.9.2(transitive)
- Removedwebusb@2.2.0(transitive)
Updatedjacdac-ts@^1.24.10