@serialport/bindings-cpp
Advanced tools
Comparing version
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { BindingPortInterface } from '.'; | ||
@@ -3,0 +2,0 @@ import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'; |
@@ -20,3 +20,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.autoDetect = void 0; | ||
exports.autoDetect = autoDetect; | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
@@ -49,2 +49,1 @@ const debug_1 = __importDefault(require("debug")); | ||
} | ||
exports.autoDetect = autoDetect; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="node" /> | ||
import { spawn } from 'child_process'; | ||
import { PortInfo } from '@serialport/bindings-interface'; | ||
export declare function linuxList(spawnCmd?: typeof spawn): Promise<PortInfo[]>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.linuxList = void 0; | ||
exports.linuxList = linuxList; | ||
const child_process_1 = require("child_process"); | ||
@@ -115,2 +115,1 @@ const parser_readline_1 = require("@serialport/parser-readline"); | ||
} | ||
exports.linuxList = linuxList; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Poller } from './poller'; | ||
@@ -3,0 +2,0 @@ import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.asyncWrite = exports.asyncRead = exports.asyncUpdate = exports.asyncSet = exports.asyncOpen = exports.asyncList = exports.asyncGetBaudRate = exports.asyncGet = exports.asyncFlush = exports.asyncDrain = exports.asyncClose = void 0; | ||
const node_gyp_build_1 = __importDefault(require("node-gyp-build")); | ||
const util_1 = require("util"); | ||
const path_1 = require("path"); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const binding = (0, node_gyp_build_1.default)((0, path_1.join)(__dirname, '../')); | ||
exports.asyncClose = binding.close ? (0, util_1.promisify)(binding.close) : async () => { throw new Error('"binding.close" Method not implemented'); }; | ||
exports.asyncDrain = binding.drain ? (0, util_1.promisify)(binding.drain) : async () => { throw new Error('"binding.drain" Method not implemented'); }; | ||
exports.asyncFlush = binding.flush ? (0, util_1.promisify)(binding.flush) : async () => { throw new Error('"binding.flush" Method not implemented'); }; | ||
exports.asyncGet = binding.get ? (0, util_1.promisify)(binding.get) : async () => { throw new Error('"binding.get" Method not implemented'); }; | ||
exports.asyncGetBaudRate = binding.getBaudRate ? (0, util_1.promisify)(binding.getBaudRate) : async () => { throw new Error('"binding.getBaudRate" Method not implemented'); }; | ||
exports.asyncList = binding.list ? (0, util_1.promisify)(binding.list) : async () => { throw new Error('"binding.list" Method not implemented'); }; | ||
exports.asyncOpen = binding.open ? (0, util_1.promisify)(binding.open) : async () => { throw new Error('"binding.open" Method not implemented'); }; | ||
exports.asyncSet = binding.set ? (0, util_1.promisify)(binding.set) : async () => { throw new Error('"binding.set" Method not implemented'); }; | ||
exports.asyncUpdate = binding.update ? (0, util_1.promisify)(binding.update) : async () => { throw new Error('"binding.update" Method not implemented'); }; | ||
exports.asyncRead = binding.read ? (0, util_1.promisify)(binding.read) : async () => { throw new Error('"binding.read" Method not implemented'); }; | ||
exports.asyncWrite = binding.write ? (0, util_1.promisify)(binding.write) : async () => { throw new Error('"binding.write" Method not implemented'); }; | ||
const serialport_bindings_1 = require("./serialport-bindings"); | ||
exports.asyncClose = serialport_bindings_1.binding.close ? (0, util_1.promisify)(serialport_bindings_1.binding.close) : async () => { throw new Error('"binding.close" Method not implemented'); }; | ||
exports.asyncDrain = serialport_bindings_1.binding.drain ? (0, util_1.promisify)(serialport_bindings_1.binding.drain) : async () => { throw new Error('"binding.drain" Method not implemented'); }; | ||
exports.asyncFlush = serialport_bindings_1.binding.flush ? (0, util_1.promisify)(serialport_bindings_1.binding.flush) : async () => { throw new Error('"binding.flush" Method not implemented'); }; | ||
exports.asyncGet = serialport_bindings_1.binding.get ? (0, util_1.promisify)(serialport_bindings_1.binding.get) : async () => { throw new Error('"binding.get" Method not implemented'); }; | ||
exports.asyncGetBaudRate = serialport_bindings_1.binding.getBaudRate ? (0, util_1.promisify)(serialport_bindings_1.binding.getBaudRate) : async () => { throw new Error('"binding.getBaudRate" Method not implemented'); }; | ||
exports.asyncList = serialport_bindings_1.binding.list ? (0, util_1.promisify)(serialport_bindings_1.binding.list) : async () => { throw new Error('"binding.list" Method not implemented'); }; | ||
exports.asyncOpen = serialport_bindings_1.binding.open ? (0, util_1.promisify)(serialport_bindings_1.binding.open) : async () => { throw new Error('"binding.open" Method not implemented'); }; | ||
exports.asyncSet = serialport_bindings_1.binding.set ? (0, util_1.promisify)(serialport_bindings_1.binding.set) : async () => { throw new Error('"binding.set" Method not implemented'); }; | ||
exports.asyncUpdate = serialport_bindings_1.binding.update ? (0, util_1.promisify)(serialport_bindings_1.binding.update) : async () => { throw new Error('"binding.update" Method not implemented'); }; | ||
exports.asyncRead = serialport_bindings_1.binding.read ? (0, util_1.promisify)(serialport_bindings_1.binding.read) : async () => { throw new Error('"binding.read" Method not implemented'); }; | ||
exports.asyncWrite = serialport_bindings_1.binding.write ? (0, util_1.promisify)(serialport_bindings_1.binding.write) : async () => { throw new Error('"binding.write" Method not implemented'); }; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -3,0 +2,0 @@ interface PollerClass { |
@@ -9,6 +9,5 @@ "use strict"; | ||
const events_1 = require("events"); | ||
const path_1 = require("path"); | ||
const node_gyp_build_1 = __importDefault(require("node-gyp-build")); | ||
const errors_1 = require("./errors"); | ||
const { Poller: PollerBindings } = (0, node_gyp_build_1.default)((0, path_1.join)(__dirname, '../')); | ||
const serialport_bindings_1 = require("./serialport-bindings"); | ||
const { Poller: PollerBindings } = serialport_bindings_1.binding; | ||
const logger = (0, debug_1.default)('serialport/bindings-cpp/poller'); | ||
@@ -15,0 +14,0 @@ exports.EVENTS = { |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { read as fsRead } from 'fs'; | ||
@@ -4,0 +2,0 @@ import { LinuxPortBinding } from './linux'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { write } from 'fs'; | ||
@@ -4,0 +2,0 @@ import { LinuxPortBinding } from './linux'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { BindingPortInterface } from '.'; | ||
@@ -3,0 +2,0 @@ import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'; |
{ | ||
"name": "@serialport/bindings-cpp", | ||
"description": "SerialPort Hardware bindings for node serialport written in c++", | ||
"version": "12.0.1", | ||
"version": "13.0.0", | ||
"main": "./dist/index.js", | ||
@@ -22,6 +22,6 @@ "types": "./dist/index.d.ts", | ||
"@serialport/bindings-interface": "1.2.2", | ||
"@serialport/parser-readline": "11.0.0", | ||
"debug": "4.3.4", | ||
"node-addon-api": "7.0.0", | ||
"node-gyp-build": "4.6.0" | ||
"@serialport/parser-readline": "12.0.0", | ||
"debug": "4.4.0", | ||
"node-addon-api": "8.3.0", | ||
"node-gyp-build": "4.8.4" | ||
}, | ||
@@ -31,28 +31,28 @@ "devDependencies": { | ||
"@serialport/binding-mock": "10.2.2", | ||
"@types/chai": "4.3.5", | ||
"@types/chai-subset": "1.3.3", | ||
"@types/debug": "4.1.8", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.16.20", | ||
"@typescript-eslint/eslint-plugin": "6.1.0", | ||
"@typescript-eslint/parser": "6.1.0", | ||
"@types/chai": "5.0.1", | ||
"@types/chai-subset": "1.3.5", | ||
"@types/debug": "4.1.12", | ||
"@types/mocha": "10.0.10", | ||
"@types/node": "22.8.2", | ||
"@typescript-eslint/eslint-plugin": "6.21.0", | ||
"@typescript-eslint/parser": "6.21.0", | ||
"cc": "3.0.1", | ||
"chai": "4.3.7", | ||
"chai": "5.1.2", | ||
"chai-subset": "1.6.0", | ||
"esbuild": "0.18.15", | ||
"esbuild-register": "3.4.2", | ||
"eslint": "8.45.0", | ||
"mocha": "10.2.0", | ||
"node-abi": "3.45.0", | ||
"node-gyp": "9.4.0", | ||
"nyc": "15.1.0", | ||
"prebuildify": "5.0.1", | ||
"prebuildify-cross": "5.0.0", | ||
"semantic-release": "21.0.7", | ||
"esbuild": "0.24.2", | ||
"esbuild-register": "3.6.0", | ||
"eslint": "8.57.1", | ||
"mocha": "11.0.1", | ||
"node-abi": "3.71.0", | ||
"node-gyp": "11.0.0", | ||
"nyc": "17.1.0", | ||
"prebuildify": "6.0.1", | ||
"prebuildify-cross": "5.1.1", | ||
"semantic-release": "24.2.0", | ||
"shx": "0.3.4", | ||
"sinon": "15.2.0", | ||
"typescript": "5.1.6" | ||
"sinon": "19.0.2", | ||
"typescript": "5.7.2" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -62,4 +62,4 @@ "scripts": { | ||
"install": "node-gyp-build", | ||
"prebuildify": "prebuildify --napi --target 14.0.0 --force --strip --verbose", | ||
"prebuildify-cross": "prebuildify-cross --napi --target 14.0.0 --force --strip --verbose", | ||
"prebuildify": "prebuildify --napi --target 20.0.0 --force --strip --verbose", | ||
"prebuildify-cross": "prebuildify-cross --napi --target 20.0.0 --force --strip --verbose", | ||
"rebuild": "node-gyp rebuild", | ||
@@ -92,3 +92,3 @@ "format": "eslint lib test bin --fix", | ||
"napi_versions": [ | ||
6 | ||
8 | ||
] | ||
@@ -95,0 +95,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
2214657
26.39%53
10.42%1108
-0.63%11
22.22%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated