Skip to content

Commit d2f3c72

Browse files
committed
feat: change bindings interface provider
1 parent 0eb3ac3 commit d2f3c72

11 files changed

Lines changed: 65 additions & 658 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
with:
1515
node-version: 20
1616
- run: npm ci
17-
- run: npx patch-package
1817
- run: npm run lint
1918
- run: npm run typecheck
2019
test:

lib/bindings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint-disable @typescript-eslint/no-non-null-assertion */
33
import { assert, shouldReject } from '../test/assert'
44
import { makeTestFeature } from '../test/makeTestFeature'
5-
import { BindingInterface, OpenOptions, PortInfo, SetOptions } from '@serialport/bindings-interface'
5+
import { BindingInterface, OpenOptions, PortInfo, SetOptions } from '@noelneu/bindings-interface'
66
import { autoDetect } from './index'
77
import { MockBinding } from '@serialport/binding-mock'
88
import { BindingsError } from './errors'

lib/darwin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import debugFactory from 'debug'
22
import { BindingPortInterface } from '.'
3-
import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'
3+
import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@noelneu/bindings-interface'
44
import { asyncClose, asyncDrain, asyncFlush, asyncGet, asyncList, asyncOpen, asyncSet, asyncUpdate } from './load-bindings'
55
import { Poller } from './poller'
66
import { unixRead } from './unix-read'

lib/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {BindingsErrorInterface} from '@serialport/bindings-interface'
1+
import {BindingsErrorInterface} from '@noelneu/bindings-interface'
22

33
export class BindingsError extends Error implements BindingsErrorInterface {
44
canceled: boolean

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { LinuxBinding, LinuxBindingInterface } from './linux'
55
import { WindowsBinding, WindowsBindingInterface } from './win32'
66
const debug = debugFactory('serialport/bindings-cpp')
77

8-
export * from '@serialport/bindings-interface'
8+
export * from '@noelneu/bindings-interface'
99
export * from './darwin'
1010
export * from './linux'
1111
export * from './win32'

lib/linux-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { spawn } from 'child_process'
2-
import { PortInfo } from '@serialport/bindings-interface'
2+
import { PortInfo } from '@noelneu/bindings-interface'
33
import { ReadlineParser } from '@serialport/parser-readline'
44
import fs from 'fs'
55

lib/linux.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { linuxList } from './linux-list'
33
import { Poller } from './poller'
44
import { unixRead } from './unix-read'
55
import { unixWrite } from './unix-write'
6-
import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'
6+
import { BindingInterface, OpenOptions, PortStatus, SetOptions, UpdateOptions } from '@noelneu/bindings-interface'
77
import { asyncOpen, asyncClose, asyncUpdate, asyncSet, asyncGet, asyncGetBaudRate, asyncFlush, asyncDrain } from './load-bindings'
88
import { BindingPortInterface } from '.'
99

lib/win32.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import debugFactory from 'debug'
22
import { BindingPortInterface, BindingsError } from '.'
3-
import { BindingInterface, OpenOptions, PortInfo, PortStatus, SetOptions, UpdateOptions } from '@serialport/bindings-interface'
3+
import { BindingInterface, OpenOptions, PortInfo, PortStatus, SetOptions, UpdateOptions } from '@noelneu/bindings-interface'
44
import { asyncClose, asyncDrain, asyncFlush, asyncGet, asyncGetBaudRate, asyncList, asyncOpen, asyncRead, asyncSet, asyncUpdate, asyncWrite } from './load-bindings'
55
import { serialNumParser } from './win32-sn-parser'
66

0 commit comments

Comments
 (0)