1
0
Fork 0
mirror of https://github.com/moritzruth/node-enttec-open-dmx-usb.git synced 2025-04-21 07:41:22 +02:00

Compare commits

...

123 commits
v2.0.0 ... main

Author SHA1 Message Date
708fa71a03
v4.0.1 2023-05-16 15:50:42 +02:00
e16af171a7
Allow providing a usleep-compatible function to account for setTimeout inaccuracies
Also: Update dependencies
2023-05-16 15:42:37 +02:00
e1a78c6044 v3.0.1 2022-06-25 17:04:01 +02:00
36956cee74 Unify wording in comments 2022-06-25 16:57:58 +02:00
a565e9e5b7
Merge pull request #79 from Granjow/feature/fix-constructor-serial-error 2022-06-25 16:49:33 +02:00
Simon A. Eugster
065d48d8fe Forward SerialPort error event 2022-06-24 22:21:45 +02:00
dependabot[bot]
0a2da2673e
Merge pull request #75 from moritzruth/dependabot/npm_and_yarn/path-parse-1.0.7 2021-08-12 09:34:04 +00:00
dependabot[bot]
806cdc1c59
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 20:14:52 +00:00
1d0227b757
Delete dependabot.yml 2021-08-02 13:24:01 +02:00
7d42a5a6a9
Merge pull request #70 from moritzruth/dependabot/npm_and_yarn/glob-parent-5.1.2
Bump glob-parent from 5.1.1 to 5.1.2
2021-06-12 09:43:41 +02:00
dependabot[bot]
e987fa02ea
Bump glob-parent from 5.1.1 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-10 21:11:08 +00:00
dependabot[bot]
22975dc0c5
Merge pull request #67 from moritzruth/dependabot/npm_and_yarn/hosted-git-info-2.8.9 2021-05-10 16:18:10 +00:00
dependabot[bot]
eeffd69156
Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 16:17:08 +00:00
dependabot[bot]
3c17d5bc11
Merge pull request #66 from moritzruth/dependabot/npm_and_yarn/eslint-7.26.0 2021-05-10 16:15:48 +00:00
8aedd57de1
Update dependabot.yml 2021-05-10 18:15:39 +02:00
dependabot[bot]
d5d67a5fcd
Bump eslint from 7.25.0 to 7.26.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 05:12:39 +00:00
dependabot[bot]
dad0b8e264
Merge pull request #63 from moritzruth/dependabot/npm_and_yarn/eslint-7.25.0 2021-04-26 14:32:24 +00:00
dependabot[bot]
0c98b4c402
Bump eslint from 7.24.0 to 7.25.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.24.0 to 7.25.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.24.0...v7.25.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 05:16:00 +00:00
dependabot[bot]
57b193b44d
Merge pull request #62 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-node-1.6.0 2021-04-19 10:56:28 +00:00
dependabot[bot]
c105fdb999
Merge pull request #61 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.6.0 2021-04-19 10:56:21 +00:00
dependabot[bot]
85b18db307
Bump eslint-config-awzzm-node from 1.5.0 to 1.6.0
Bumps [eslint-config-awzzm-node](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/node) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.6.0/packages/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 05:15:54 +00:00
dependabot[bot]
0835a8bc1d
Bump eslint-config-awzzm-ts from 1.5.2 to 1.6.0
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.6.0/packages/ts)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 05:15:37 +00:00
dependabot[bot]
41d3869431
Merge pull request #60 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.41 2021-04-16 05:54:20 +00:00
dependabot[bot]
136b2311e0
Bump @types/node from 14.14.39 to 14.14.41
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.39 to 14.14.41.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-16 05:09:46 +00:00
dependabot[bot]
aa0195bd62
Merge pull request #59 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.39 2021-04-15 14:05:43 +00:00
dependabot[bot]
0e6ab6e7ac
Bump @types/node from 14.14.37 to 14.14.39
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 14.14.39.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-15 05:08:23 +00:00
dependabot[bot]
1615d740cb
Merge pull request #58 from moritzruth/dependabot/npm_and_yarn/eslint-7.24.0 2021-04-12 11:55:05 +00:00
dependabot[bot]
35f55c9419
Bump eslint from 7.23.0 to 7.24.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.23.0 to 7.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.23.0...v7.24.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-12 05:15:55 +00:00
dependabot[bot]
6ac5eaf7d4
Merge pull request #56 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.37 2021-03-29 12:38:18 +00:00
dependabot[bot]
13bbd3a792
Merge pull request #57 from moritzruth/dependabot/npm_and_yarn/eslint-7.23.0 2021-03-29 12:38:08 +00:00
dependabot[bot]
a263604cef
Bump eslint from 7.22.0 to 7.23.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.22.0 to 7.23.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.22.0...v7.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 05:17:09 +00:00
dependabot[bot]
31bafcf95c
Bump @types/node from 14.14.36 to 14.14.37
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.36 to 14.14.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 05:16:49 +00:00
dependabot[bot]
fc30393b8e
Merge pull request #55 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.36 2021-03-26 09:01:20 +00:00
dependabot[bot]
f8e64435e8
Bump @types/node from 14.14.34 to 14.14.36
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.34 to 14.14.36.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-26 05:09:50 +00:00
dependabot[bot]
9684fb12bf
Merge pull request #53 from moritzruth/dependabot/npm_and_yarn/eslint-7.22.0 2021-03-15 16:00:05 +00:00
dependabot[bot]
6a8c1c8ddf
Merge pull request #52 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.34 2021-03-15 15:59:03 +00:00
dependabot[bot]
71e31e595b
Bump eslint from 7.21.0 to 7.22.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.21.0 to 7.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.21.0...v7.22.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 05:28:48 +00:00
dependabot[bot]
f035c20487
Bump @types/node from 14.14.33 to 14.14.34
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.33 to 14.14.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 05:28:27 +00:00
dependabot[bot]
70452644ed
Merge pull request #51 from moritzruth/dependabot/npm_and_yarn/types/node-14.14.33 2021-03-10 08:06:07 +00:00
dependabot[bot]
1a87ddfdb6
Bump @types/node from 14.14.31 to 14.14.33
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.31 to 14.14.33.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-10 05:04:05 +00:00
dependabot[bot]
d88b0ce406
Merge pull request #49 from moritzruth/dependabot/npm_and_yarn/eslint-7.21.0 2021-03-01 07:04:29 +00:00
dependabot[bot]
02eb46a0a3
Bump eslint from 7.20.0 to 7.21.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.20.0 to 7.21.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.20.0...v7.21.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 05:24:23 +00:00
8797cc4ecd
Setup Dependabot 2021-02-26 10:43:26 +01:00
15406a9bbb
v3.0.0 2021-02-26 10:41:37 +01:00
dc0e83c14c
No longer use @pika/pack and remove some events 2021-02-26 10:41:06 +01:00
dependabot-preview[bot]
8c0eefb9a4
Merge pull request #46 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.7 2021-02-23 11:43:48 +00:00
dependabot-preview[bot]
bcabd91b52
Bump serialport from 9.0.6 to 9.0.7
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.6 to 9.0.7.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/v9.0.6...v9.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-22 08:30:49 +00:00
dependabot-preview[bot]
0efaa05b8a
Merge pull request #45 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.5.2 2021-02-17 12:10:00 +00:00
dependabot-preview[bot]
6aa20473c2
Bump eslint-config-awzzm-ts from 1.5.0 to 1.5.2
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.5.0 to 1.5.2.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.5.2/packages/ts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-17 08:01:52 +00:00
dependabot-preview[bot]
a0994e32d2
Merge pull request #44 from moritzruth/dependabot/npm_and_yarn/eslint-7.20.0 2021-02-16 15:47:08 +00:00
dependabot-preview[bot]
cfa5d99b83
Bump eslint from 7.19.0 to 7.20.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.19.0 to 7.20.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.19.0...v7.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-15 08:27:57 +00:00
dependabot-preview[bot]
dacdca60f8
Merge pull request #43 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.5.0 2021-02-12 10:12:15 +00:00
dependabot-preview[bot]
bb51d85f7e
Bump eslint-config-awzzm-ts from 1.4.1 to 1.5.0
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.5.0/packages/ts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-12 08:05:42 +00:00
dependabot-preview[bot]
f35a7a1a97
Merge pull request #42 from moritzruth/dependabot/npm_and_yarn/typescript-4.1.5 2021-02-11 08:48:17 +00:00
dependabot-preview[bot]
f5507eec80
Bump typescript from 4.1.4 to 4.1.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.4...v4.1.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-11 07:57:40 +00:00
dependabot-preview[bot]
2d17c5f505
Merge pull request #40 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.4.1 2021-02-10 10:23:41 +00:00
dependabot-preview[bot]
bd7e963ce8
Merge pull request #41 from moritzruth/dependabot/npm_and_yarn/typescript-4.1.4 2021-02-10 10:23:02 +00:00
dependabot-preview[bot]
cad4d13a35
Bump typescript from 4.1.3 to 4.1.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.3...v4.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-10 07:57:03 +00:00
dependabot-preview[bot]
6b8bff4f13
Bump eslint-config-awzzm-ts from 1.3.0 to 1.4.1
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.3.0 to 1.4.1.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.4.1/packages/ts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-10 07:56:23 +00:00
dependabot-preview[bot]
a4bf66fd44
Merge pull request #39 from moritzruth/dependabot/npm_and_yarn/eslint-7.19.0 2021-02-01 12:26:10 +00:00
dependabot-preview[bot]
eaac273831
Bump eslint from 7.18.0 to 7.19.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.18.0 to 7.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.18.0...v7.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 09:50:20 +00:00
dependabot-preview[bot]
623b24a631
Merge pull request #38 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.6 2021-01-20 18:28:50 +00:00
dependabot-preview[bot]
2f913c099a
Merge pull request #37 from moritzruth/dependabot/npm_and_yarn/eslint-7.18.0 2021-01-20 18:28:21 +00:00
dependabot-preview[bot]
6be17e849d
Bump serialport from 9.0.4 to 9.0.6
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.4 to 9.0.6.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/@serialport/bindings@9.0.4...v9.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-20 09:48:50 +00:00
dependabot-preview[bot]
6531f8ad54
Bump eslint from 7.17.0 to 7.18.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.17.0...v7.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-18 09:51:47 +00:00
dependabot-preview[bot]
ce43f6ad54
Merge pull request #36 from moritzruth/dependabot/npm_and_yarn/eslint-7.17.0 2021-01-04 11:13:23 +00:00
dependabot-preview[bot]
7f80b6c6ef
Bump eslint from 7.16.0 to 7.17.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.16.0 to 7.17.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.16.0...v7.17.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-04 08:40:15 +00:00
a3630193f2
Update README.md 2020-12-29 12:26:59 +01:00
dependabot-preview[bot]
5037b74865
Merge pull request #35 from moritzruth/dependabot/npm_and_yarn/eslint-7.16.0 2020-12-21 16:46:09 +00:00
dependabot-preview[bot]
146a710a4c
Bump eslint from 7.15.0 to 7.16.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.15.0 to 7.16.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.15.0...v7.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-21 09:01:20 +00:00
dependabot-preview[bot]
3ac3882994
Merge pull request #34 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.4 2020-12-18 14:31:58 +00:00
dependabot-preview[bot]
26fe3d18b0
Bump serialport from 9.0.3 to 9.0.4
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.3 to 9.0.4.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/@serialport/bindings@9.0.3...@serialport/bindings@9.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-18 08:15:32 +00:00
dependabot-preview[bot]
764beb43a2
Merge pull request #33 from moritzruth/dependabot/npm_and_yarn/typescript-4.1.3 2020-12-14 15:40:35 +00:00
dependabot-preview[bot]
c69aa97ff8
Bump typescript from 4.1.2 to 4.1.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 10:10:48 +00:00
dependabot-preview[bot]
0ab7323603
Merge pull request #32 from moritzruth/dependabot/npm_and_yarn/ini-1.3.7 2020-12-11 15:56:09 +00:00
dependabot-preview[bot]
0caabd999d
[Security] Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. **This update includes a security fix.**
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-10 19:16:57 +00:00
dependabot-preview[bot]
e2fb726ad9
Merge pull request #30 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.3 2020-12-07 16:19:44 +00:00
dependabot-preview[bot]
6c7864b6e4
Merge pull request #31 from moritzruth/dependabot/npm_and_yarn/eslint-7.15.0 2020-12-07 16:17:52 +00:00
dependabot-preview[bot]
20d1a66338
Bump eslint from 7.14.0 to 7.15.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.14.0 to 7.15.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.14.0...v7.15.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 08:40:17 +00:00
dependabot-preview[bot]
73b200e91d
Bump serialport from 9.0.2 to 9.0.3
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.2 to 9.0.3.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/@serialport/bindings@9.0.2...@serialport/bindings@9.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 08:40:07 +00:00
dependabot-preview[bot]
48ef21e991
Merge pull request #29 from moritzruth/dependabot/npm_and_yarn/eslint-7.14.0 2020-11-23 17:22:10 +00:00
dependabot-preview[bot]
584533d883
Bump eslint from 7.13.0 to 7.14.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.13.0 to 7.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.13.0...v7.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-23 09:08:06 +00:00
dependabot-preview[bot]
fd95b46197
Merge pull request #27 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.3.0 2020-11-20 14:51:38 +00:00
dependabot-preview[bot]
90ee5b6c5f
Merge pull request #28 from moritzruth/dependabot/npm_and_yarn/typescript-4.1.2 2020-11-20 14:50:51 +00:00
dependabot-preview[bot]
18f26d467f
Bump typescript from 4.0.5 to 4.1.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.5 to 4.1.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.5...v4.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-20 11:05:56 +00:00
dependabot-preview[bot]
839edd0d70
Bump eslint-config-awzzm-ts from 1.2.0 to 1.3.0
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.3.0/packages/ts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-19 08:07:45 +00:00
dependabot-preview[bot]
c7a2ea4050
Merge pull request #26 from moritzruth/dependabot/npm_and_yarn/eslint-7.13.0 2020-11-10 21:58:33 +00:00
dependabot-preview[bot]
75eccea805
Bump eslint from 7.12.1 to 7.13.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.1 to 7.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.12.1...v7.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-09 08:50:52 +00:00
dependabot-preview[bot]
4bdb70036f
Merge pull request #25 from moritzruth/dependabot/npm_and_yarn/eslint-7.12.1 2020-11-01 16:06:05 +00:00
dependabot-preview[bot]
d3979e6f0a
Merge pull request #24 from moritzruth/dependabot/npm_and_yarn/typescript-4.0.5 2020-11-01 16:05:38 +00:00
dependabot-preview[bot]
a498556f89
Bump eslint from 7.12.0 to 7.12.1
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.12.0...v7.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-28 15:48:05 +00:00
dependabot-preview[bot]
501864aeb3
Bump typescript from 4.0.3 to 4.0.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.3 to 4.0.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.3...v4.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-27 00:56:05 +00:00
dependabot-preview[bot]
37e71521a0
Merge pull request #22 from moritzruth/dependabot/npm_and_yarn/eslint-7.12.0 2020-10-24 09:33:05 +00:00
dependabot-preview[bot]
778373ecf2
Merge pull request #23 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.2.0 2020-10-24 09:32:55 +00:00
dependabot-preview[bot]
72f3b23e5c
Bump eslint-config-awzzm-ts from 1.0.4 to 1.2.0
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm/tree/HEAD/packages/ts) from 1.0.4 to 1.2.0.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits/v1.2.0/packages/ts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-24 03:23:49 +00:00
dependabot-preview[bot]
fa07da4765
Bump eslint from 7.11.0 to 7.12.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.11.0...v7.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-24 03:23:21 +00:00
dependabot-preview[bot]
a058a42faa
Merge pull request #21 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.2 2020-10-17 09:54:09 +00:00
dependabot-preview[bot]
4eb0de47fb
Bump serialport from 9.0.1 to 9.0.2
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.1 to 9.0.2.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/@serialport/bindings@9.0.1...@serialport/bindings@9.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-16 20:28:07 +00:00
dependabot-preview[bot]
4b54263158
Merge pull request #20 from moritzruth/dependabot/npm_and_yarn/eslint-7.11.0 2020-10-11 09:28:07 +00:00
dependabot-preview[bot]
f22a31cff2
Bump eslint from 7.10.0 to 7.11.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.11.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.10.0...v7.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-11 01:48:33 +00:00
dependabot-preview[bot]
48415dc6a4
Merge pull request #19 from moritzruth/dependabot/npm_and_yarn/eslint-7.10.0 2020-10-08 16:13:58 +00:00
dependabot-preview[bot]
9e0765e683
Merge pull request #18 from moritzruth/dependabot/npm_and_yarn/typescript-4.0.3 2020-10-08 15:56:11 +00:00
dependabot-preview[bot]
16c85a809c
Bump eslint from 7.8.1 to 7.10.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-28 18:58:00 +00:00
dependabot-preview[bot]
fa3e51f82b
Bump typescript from 4.0.2 to 4.0.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.2...v4.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-21 19:03:16 +00:00
Moritz Ruth
d531e6b28b
Update README.md 2020-09-19 15:17:47 +02:00
dependabot-preview[bot]
1464019a09
Merge pull request #16 from moritzruth/dependabot/npm_and_yarn/eslint-7.8.1 2020-09-08 14:29:51 +00:00
dependabot-preview[bot]
9a678f04a6
Bump eslint from 7.7.0 to 7.8.1
Bumps [eslint](https://github.com/eslint/eslint) from 7.7.0 to 7.8.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.7.0...v7.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 19:05:38 +00:00
dependabot[bot]
b118aedc0e
Merge pull request #15 from moritzruth/dependabot/npm_and_yarn/bl-4.0.3 2020-09-03 14:35:31 +00:00
dependabot[bot]
3842f25e91
Bump bl from 4.0.2 to 4.0.3
Bumps [bl](https://github.com/rvagg/bl) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/rvagg/bl/releases)
- [Commits](https://github.com/rvagg/bl/compare/v4.0.2...v4.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-02 16:27:28 +00:00
dependabot-preview[bot]
38c55659c8
Merge pull request #9 from moritzruth/dependabot/npm_and_yarn/eslint-7.7.0 2020-09-01 16:27:56 +00:00
dependabot-preview[bot]
eb88e698b1
Bump eslint from 7.6.0 to 7.7.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.6.0...v7.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-23 19:36:33 +00:00
dependabot-preview[bot]
52eef4e6e3
Merge pull request #12 from moritzruth/dependabot/npm_and_yarn/typescript-4.0.2 2020-08-23 19:35:04 +00:00
dependabot-preview[bot]
693fc139a3
Bump typescript from 3.9.7 to 4.0.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.7 to 4.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.7...v4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-21 18:07:39 +00:00
dependabot-preview[bot]
87e85990c9
Merge pull request #11 from moritzruth/dependabot/npm_and_yarn/types/node-14.6.0 2020-08-18 13:54:43 +00:00
dependabot-preview[bot]
d062ee63b1
Merge pull request #10 from moritzruth/dependabot/npm_and_yarn/dot-prop-4.2.1 2020-08-18 13:53:54 +00:00
dependabot-preview[bot]
f24499fa16
Bump @types/node from 14.0.27 to 14.6.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.27 to 14.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-18 08:46:20 +00:00
dependabot-preview[bot]
be9a0e65ee
[Security] Bump dot-prop from 4.2.0 to 4.2.1
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1. **This update includes a security fix.**
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-18 08:45:24 +00:00
dependabot-preview[bot]
8c362b1aa3
Merge pull request #8 from moritzruth/dependabot/npm_and_yarn/serialport-9.0.1 2020-08-11 08:11:23 +00:00
dependabot-preview[bot]
e9ba3dd20b
Bump serialport from 9.0.0 to 9.0.1
Bumps [serialport](https://github.com/serialport/node-serialport) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/serialport/node-serialport/releases)
- [Changelog](https://github.com/serialport/node-serialport/blob/master/CHANGELOG.md)
- [Commits](https://github.com/serialport/node-serialport/compare/@serialport/bindings@9.0.0...@serialport/bindings@9.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-10 08:50:52 +00:00
dependabot-preview[bot]
d61ea042d3
Merge pull request #7 from moritzruth/dependabot/npm_and_yarn/eslint-config-awzzm-ts-1.0.4 2020-08-09 07:57:13 +00:00
dependabot-preview[bot]
5e5abece1f
Bump eslint-config-awzzm-ts from 1.0.1 to 1.0.4
Bumps [eslint-config-awzzm-ts](https://github.com/moritzruth/eslint-config-awzzm) from 1.0.1 to 1.0.4.
- [Release notes](https://github.com/moritzruth/eslint-config-awzzm/releases)
- [Commits](https://github.com/moritzruth/eslint-config-awzzm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-07 08:26:48 +00:00
c7778f85dc
Add pub script 2020-08-04 03:00:24 +02:00
aac1d33525
Add keywords 2020-08-04 02:21:18 +02:00
10 changed files with 747 additions and 4757 deletions

View file

@ -1,12 +1,3 @@
{
"extends": "awzzm-ts",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 10,
"project": "tsconfig.json"
}
"extends": ["awzzm-ts", "awzzm-node"]
}

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
node_modules/
pkg/
dist/
.idea/
/test.mjs

2
.nvmrc
View file

@ -1 +1 @@
10
18

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Moritz Ruth
Copyright (c) 2019-2021 Moritz Ruth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,32 +1,68 @@
# node-enttec-open-dmx-usb
# node-enttec-open-dmx-usb 🔌
> A Node.js library for interacting with the
> [Enttec Open DMX USB Interface](https://www.enttec.co.uk/en/product/controls/dmx-usb-interfaces/open-dmx-usb/)
> [Enttec Open DMX USB interface](https://www.enttec.co.uk/en/product/controls/dmx-usb-interfaces/open-dmx-usb/)
## Installation
```shell script
As it uses `serialport` under the hood, it should also work in
[these environments](https://serialport.io/docs/guide-platform-support#supported-platforms-and-architectures).
## Install
![npm](https://img.shields.io/npm/v/enttec-open-dmx-usb?style=flat-square)
The minimum required Node.js version is `v18.0.0`.
```sh
yarn add enttec-open-dmx-usb
# or
npm install enttec-open-dmx-usb
```
## Usage
All functions are documented using JSDoc, and the code is not uglified and easy to understand, so feel free to [explore it](src/index.ts).
[**View documentation on jsdocs.io**](https://www.jsdocs.io/package/enttec-open-dmx-usb#EnttecOpenDMXUSBDevice)
```js
import { EnttecOpenDMXUSBDevice as DMXDevice } from "enttec-open-dmx-usb";
import { EnttecOpenDMXUSBDevice as DMXDevice } from "enttec-open-dmx-usb"
(async () => {
const device = new DMXDevice(await DMXDevice.getFirstAvailableDevice());
const device = new DMXDevice(await DMXDevice.getFirstAvailableDevice())
device.setChannels({
1: 0xFF,
2: 0x44
});
})
// same as
device.setChannels([0xFF, 0x44]);
device.setChannels([0xFF, 0x44])
// same as
device.setChannels(Buffer.from([0xFF, 0x44]));
})();
device.setChannels(Buffer.from([0xFF, 0x44]))
})()
```
### What to do when this doesnt work
TLDR: Because `setTimeout` is imprecise, install [`easy-sleep`](https://github.com/qufei1993/easy-sleep) and
pass the `usleep` function provided by it as the third parameter to the constructor of `EnttecOpenDMXUSBDevice`.
See the example below.
From [the Node.js documentation](https://nodejs.org/api/timers.html#settimeoutcallback-delay-args) regarding `setTimeout`:
> Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering.
> The callback will be called as close as possible to the time specified.
Because of this and the passive nature of the Enttec Open DMX USB interface, sometimes the timing requirements of the DMX specification are not met.
Using a library such as [`easy-sleep`](https://github.com/qufei1993/easy-sleep) which allows sleeping (i. e. blocking the event loop) for a precise
amount of microseconds is a possible workaround.
You may pass a function sleeping for `n` *micro*seconds as the third parameter to the constructor of `EnttecOpenDMXUSBDevice`.
For example, using `easy-sleep`:
```js
import { EnttecOpenDMXUSBDevice as DMXDevice } from "enttec-open-dmx-usb"
import easySleep from "easy-sleep"
new DMXDevice(await DMXDevice.getFirstAvailableDevice(), true, easySleep.Thread.usleep)
```
## Events
`ready` - `startSending` may be called.
`error` - An error occurred. `error` events from `serialport` are passed through.

View file

@ -1,37 +1,33 @@
{
"name": "enttec-open-dmx-usb",
"version": "2.0.0",
"description": "A Node.js library for interacting with the Enttec Open DMX USB Interface",
"version": "4.0.1",
"description": "A Node.js library for interacting with the Enttec Open DMX USB interface",
"repository": "https://github.com/moritzruth/node-enttec-open-dmx-usb.git",
"author": "Moritz Ruth <dev@moritzruth.de>",
"license": "MIT",
"scripts": {
"build": "pika build",
"lint": "eslint src",
"version": "yarn build",
"test": "echo There are no tests"
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg"
"main": "dist/index.js",
"types": "dist/index.d.ts",
"keywords": [
"dmx",
"enttec",
"usb"
],
[
"@pika/plugin-build-node"
]
]
"scripts": {
"build": "tsc"
},
"files": [
"dist"
],
"engines": {
"node": ">=18.0.0"
},
"devDependencies": {
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-ts-standard-pkg": "^0.9.2",
"@types/node": "^14.0.27",
"@types/serialport": "^8.0.1",
"eslint": "^7.6.0",
"eslint-config-awzzm-ts": "^1.0.1",
"typescript": "^3.9.7"
"@types/node": "^18.16.10",
"@types/serialport": "^8.0.2",
"typescript": "^5.0.4"
},
"dependencies": {
"serialport": "^9.0.0"
"eventemitter3": "^5.0.1",
"serialport": "^11.0.0"
}
}

613
pnpm-lock.yaml generated Normal file
View file

@ -0,0 +1,613 @@
lockfileVersion: '6.0'
dependencies:
easy-sleep:
specifier: ^1.2.2
version: 1.2.2
eventemitter3:
specifier: ^5.0.1
version: 5.0.1
serialport:
specifier: ^11.0.0
version: 11.0.0
devDependencies:
'@types/node':
specifier: ^18.16.10
version: 18.16.10
'@types/serialport':
specifier: ^8.0.2
version: 8.0.2
typescript:
specifier: ^5.0.4
version: 5.0.4
packages:
/@serialport/binding-mock@10.2.2:
resolution: {integrity: sha512-HAFzGhk9OuFMpuor7aT5G1ChPgn5qSsklTFOTUX72Rl6p0xwcSVsRtG/xaGp6bxpN7fI9D/S8THLBWbBgS6ldw==}
engines: {node: '>=12.0.0'}
dependencies:
'@serialport/bindings-interface': 1.2.2
debug: 4.3.4
transitivePeerDependencies:
- supports-color
dev: false
/@serialport/bindings-cpp@11.0.1:
resolution: {integrity: sha512-3I1mniVg3osYuIUXxU0jB5AHPsxWmErmc3JC3WfUSlfXsjWMHkHfFzbW9Scuv/z/6DLCJIDyltabRa2FoW2qsQ==}
engines: {node: '>=14.0.0'}
requiresBuild: true
dependencies:
'@serialport/bindings-interface': 1.2.2
'@serialport/parser-readline': 10.5.0
debug: 4.3.4
node-addon-api: 6.1.0
node-gyp-build: 4.6.0
transitivePeerDependencies:
- supports-color
dev: false
/@serialport/bindings-interface@1.2.2:
resolution: {integrity: sha512-CJaUd5bLvtM9c5dmO9rPBHPXTa9R2UwpkJ0wdh9JCYcbrPWsKz+ErvR0hBLeo7NPeiFdjFO4sonRljiw4d2XiA==}
engines: {node: ^12.22 || ^14.13 || >=16}
dev: false
/@serialport/parser-byte-length@11.0.0:
resolution: {integrity: sha512-rExsdFKdzOIHOBqTwzxUF1A9nrluVIZKZOtvMq5i0Hc3euooGdmkx0VXYNRlI2rd6kJLTL2P+uIR+ZtCTRyT+w==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-cctalk@11.0.0:
resolution: {integrity: sha512-eN1MvEIFwI4GedWJhte6eWF+NZtrjchZbMf0CE6NV9TRzJI1KLnFf90ZOj/mhGuANojX4sqWfJKQXwN6E8VSHQ==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-delimiter@10.5.0:
resolution: {integrity: sha512-/uR/yT3jmrcwnl2FJU/2ySvwgo5+XpksDUR4NF/nwTS5i3CcuKS+FKi/tLzy1k8F+rCx5JzpiK+koqPqOUWArA==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-delimiter@11.0.0:
resolution: {integrity: sha512-aZLJhlRTjSmEwllLG7S4J8s8ctRAS0cbvCpO87smLvl3e4BgzbVgF6Z6zaJd3Aji2uSiYgfedCdNc4L6W+1E2g==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-inter-byte-timeout@11.0.0:
resolution: {integrity: sha512-RLgqZC50IET6FtEIt6Oi0vdRsesSBWLNwB7ldzR9OzyXKgK0XHRzqKqbB0u5Q+tC5OScdWeiQ2AO6jooKUZtsw==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-packet-length@11.0.0:
resolution: {integrity: sha512-6ZkOiaCooabpV/EM7ttSRbisbDWpGEf7Yxyr13t28LicYR43THRdjdMZcRnWxEM/jpwfskkLLXAR6wziVpKrlw==}
engines: {node: '>=8.6.0'}
dev: false
/@serialport/parser-readline@10.5.0:
resolution: {integrity: sha512-0aXJknodcl94W9zSjvU+sLdXiyEG2rqjQmvBWZCr8wJZjWEtv3RgrnYiWq4i2OTOyC8C/oPK8ZjpBjQptRsoJQ==}
engines: {node: '>=12.0.0'}
dependencies:
'@serialport/parser-delimiter': 10.5.0
dev: false
/@serialport/parser-readline@11.0.0:
resolution: {integrity: sha512-rRAivhRkT3YO28WjmmG4FQX6L+KMb5/ikhyylRfzWPw0nSXy97+u07peS9CbHqaNvJkMhH1locp2H36aGMOEIA==}
engines: {node: '>=12.0.0'}
dependencies:
'@serialport/parser-delimiter': 11.0.0
dev: false
/@serialport/parser-ready@11.0.0:
resolution: {integrity: sha512-lSsCPIctoc5kADCKnZDYBz1j69TsFqtnaWUicBzUAIAoUXpYKeYld8YX5NrvjViuVfIJeiqLZeGjxOWe5fqQqQ==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-regex@11.0.0:
resolution: {integrity: sha512-aKuc/+/KE9swahTbYpSuOsQa7LggPx7jhfobJLPVVbAic80OpfCIY+MKr6Ax4R6UtQwF90O5Yk6OEmbbvtEmiA==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-slip-encoder@11.0.0:
resolution: {integrity: sha512-3ZI/swd2it20vmu2tzqDbkyE4dqy+kExEDY6T33YQ210HDKPVhqj7FAVGo5P++MZ3dup1of11t4P9UPBNkuJnQ==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/parser-spacepacket@11.0.0:
resolution: {integrity: sha512-+hqRckrTEqz+/uAUZY0Tq6YIRyCl4oQOH1MeVzKiFiGNjZP7hDJCDoY7LTr9CeJhxvcT0ItTbtjGBqGumV8fxg==}
engines: {node: '>=12.0.0'}
dev: false
/@serialport/stream@11.0.0:
resolution: {integrity: sha512-Zty7B8C1H2XRnay2mVmW1ygEHXRHXQDcaC5wAVvOZMbQSc7ye03rMlPvviDS+pGxU2t2A2bMo34CUrRduSBong==}
engines: {node: '>=12.0.0'}
dependencies:
'@serialport/bindings-interface': 1.2.2
debug: 4.3.4
transitivePeerDependencies:
- supports-color
dev: false
/@types/node@18.16.10:
resolution: {integrity: sha512-sMo3EngB6QkMBlB9rBe1lFdKSLqljyWPPWv6/FzSxh/IDlyVWSzE9RiF4eAuerQHybrWdqBgAGb03PM89qOasA==}
dev: true
/@types/serialport@8.0.2:
resolution: {integrity: sha512-z4b1I8/vdZE3upgCcAL9VAWlVVFUVn5uo3faAHavkVfK/Hb1LUxKwp9YCtA5AZqEUCWoSWl20SRTOvAI/5fQWQ==}
dependencies:
'@types/node': 18.16.10
dev: true
/abbrev@1.1.1:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
dev: false
/ansi-regex@2.1.1:
resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==}
engines: {node: '>=0.10.0'}
dev: false
/aproba@1.2.0:
resolution: {integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==}
dev: false
/are-we-there-yet@1.1.7:
resolution: {integrity: sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==}
dependencies:
delegates: 1.0.0
readable-stream: 2.3.8
dev: false
/balanced-match@1.0.2:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
dev: false
/brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
balanced-match: 1.0.2
concat-map: 0.0.1
dev: false
/chownr@1.1.4:
resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}
dev: false
/code-point-at@1.1.0:
resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==}
engines: {node: '>=0.10.0'}
dev: false
/concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
dev: false
/console-control-strings@1.1.0:
resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}
dev: false
/core-util-is@1.0.3:
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
dev: false
/debug@3.2.7:
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
dependencies:
ms: 2.1.2
dev: false
/debug@4.3.4:
resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
dependencies:
ms: 2.1.2
dev: false
/deep-extend@0.6.0:
resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}
engines: {node: '>=4.0.0'}
dev: false
/delegates@1.0.0:
resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}
dev: false
/detect-libc@1.0.3:
resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==}
engines: {node: '>=0.10'}
hasBin: true
dev: false
/easy-sleep@1.2.2:
resolution: {integrity: sha512-mn+XCd6xKQWkLKnFFyg/3QZ2QvXqIFgUZNo/gWUYRilYHYdg9BdxPO0fPVWm+rhx3wzDaKJePK5tYC8x5aKIKg==}
requiresBuild: true
dependencies:
node-pre-gyp: 0.17.0
transitivePeerDependencies:
- supports-color
dev: false
/eventemitter3@5.0.1:
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
dev: false
/fs-minipass@1.2.7:
resolution: {integrity: sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==}
dependencies:
minipass: 2.9.0
dev: false
/fs.realpath@1.0.0:
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
dev: false
/gauge@2.7.4:
resolution: {integrity: sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==}
dependencies:
aproba: 1.2.0
console-control-strings: 1.1.0
has-unicode: 2.0.1
object-assign: 4.1.1
signal-exit: 3.0.7
string-width: 1.0.2
strip-ansi: 3.0.1
wide-align: 1.1.5
dev: false
/glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
inherits: 2.0.4
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
dev: false
/has-unicode@2.0.1:
resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}
dev: false
/iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
engines: {node: '>=0.10.0'}
dependencies:
safer-buffer: 2.1.2
dev: false
/ignore-walk@3.0.4:
resolution: {integrity: sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==}
dependencies:
minimatch: 3.1.2
dev: false
/inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
dependencies:
once: 1.4.0
wrappy: 1.0.2
dev: false
/inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
dev: false
/ini@1.3.8:
resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}
dev: false
/is-fullwidth-code-point@1.0.0:
resolution: {integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==}
engines: {node: '>=0.10.0'}
dependencies:
number-is-nan: 1.0.1
dev: false
/isarray@1.0.0:
resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==}
dev: false
/minimatch@3.1.2:
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
dependencies:
brace-expansion: 1.1.11
dev: false
/minimist@1.2.8:
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
dev: false
/minipass@2.9.0:
resolution: {integrity: sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==}
dependencies:
safe-buffer: 5.2.1
yallist: 3.1.1
dev: false
/minizlib@1.3.3:
resolution: {integrity: sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==}
dependencies:
minipass: 2.9.0
dev: false
/mkdirp@0.5.6:
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
hasBin: true
dependencies:
minimist: 1.2.8
dev: false
/ms@2.1.2:
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
dev: false
/needle@2.9.1:
resolution: {integrity: sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==}
engines: {node: '>= 4.4.x'}
hasBin: true
dependencies:
debug: 3.2.7
iconv-lite: 0.4.24
sax: 1.2.4
transitivePeerDependencies:
- supports-color
dev: false
/node-addon-api@6.1.0:
resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==}
dev: false
/node-gyp-build@4.6.0:
resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==}
hasBin: true
dev: false
/node-pre-gyp@0.17.0:
resolution: {integrity: sha512-abzZt1hmOjkZez29ppg+5gGqdPLUuJeAEwVPtHYEJgx0qzttCbcKFpxrCQn2HYbwCv2c+7JwH4BgEzFkUGpn4A==}
deprecated: 'Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future'
hasBin: true
dependencies:
detect-libc: 1.0.3
mkdirp: 0.5.6
needle: 2.9.1
nopt: 4.0.3
npm-packlist: 1.4.8
npmlog: 4.1.2
rc: 1.2.8
rimraf: 2.7.1
semver: 5.7.1
tar: 4.4.19
transitivePeerDependencies:
- supports-color
dev: false
/nopt@4.0.3:
resolution: {integrity: sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==}
hasBin: true
dependencies:
abbrev: 1.1.1
osenv: 0.1.5
dev: false
/npm-bundled@1.1.2:
resolution: {integrity: sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==}
dependencies:
npm-normalize-package-bin: 1.0.1
dev: false
/npm-normalize-package-bin@1.0.1:
resolution: {integrity: sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==}
dev: false
/npm-packlist@1.4.8:
resolution: {integrity: sha512-5+AZgwru5IevF5ZdnFglB5wNlHG1AOOuw28WhUq8/8emhBmLv6jX5by4WJCh7lW0uSYZYS6DXqIsyZVIXRZU9A==}
dependencies:
ignore-walk: 3.0.4
npm-bundled: 1.1.2
npm-normalize-package-bin: 1.0.1
dev: false
/npmlog@4.1.2:
resolution: {integrity: sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==}
dependencies:
are-we-there-yet: 1.1.7
console-control-strings: 1.1.0
gauge: 2.7.4
set-blocking: 2.0.0
dev: false
/number-is-nan@1.0.1:
resolution: {integrity: sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==}
engines: {node: '>=0.10.0'}
dev: false
/object-assign@4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
dev: false
/once@1.4.0:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
dependencies:
wrappy: 1.0.2
dev: false
/os-homedir@1.0.2:
resolution: {integrity: sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==}
engines: {node: '>=0.10.0'}
dev: false
/os-tmpdir@1.0.2:
resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}
engines: {node: '>=0.10.0'}
dev: false
/osenv@0.1.5:
resolution: {integrity: sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==}
dependencies:
os-homedir: 1.0.2
os-tmpdir: 1.0.2
dev: false
/path-is-absolute@1.0.1:
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
engines: {node: '>=0.10.0'}
dev: false
/process-nextick-args@2.0.1:
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
dev: false
/rc@1.2.8:
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
hasBin: true
dependencies:
deep-extend: 0.6.0
ini: 1.3.8
minimist: 1.2.8
strip-json-comments: 2.0.1
dev: false
/readable-stream@2.3.8:
resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}
dependencies:
core-util-is: 1.0.3
inherits: 2.0.4
isarray: 1.0.0
process-nextick-args: 2.0.1
safe-buffer: 5.1.2
string_decoder: 1.1.1
util-deprecate: 1.0.2
dev: false
/rimraf@2.7.1:
resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==}
hasBin: true
dependencies:
glob: 7.2.3
dev: false
/safe-buffer@5.1.2:
resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}
dev: false
/safe-buffer@5.2.1:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
dev: false
/safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
dev: false
/sax@1.2.4:
resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==}
dev: false
/semver@5.7.1:
resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==}
hasBin: true
dev: false
/serialport@11.0.0:
resolution: {integrity: sha512-bxs3XejQcOHWpzPAaXMhxVRlbem6fjNUrux3ToqrGvFR6BcjOYhqE5CsHOuutv37kmhmnuHrn+/hN+1BpTmaFg==}
engines: {node: '>=12.0.0'}
dependencies:
'@serialport/binding-mock': 10.2.2
'@serialport/bindings-cpp': 11.0.1
'@serialport/parser-byte-length': 11.0.0
'@serialport/parser-cctalk': 11.0.0
'@serialport/parser-delimiter': 11.0.0
'@serialport/parser-inter-byte-timeout': 11.0.0
'@serialport/parser-packet-length': 11.0.0
'@serialport/parser-readline': 11.0.0
'@serialport/parser-ready': 11.0.0
'@serialport/parser-regex': 11.0.0
'@serialport/parser-slip-encoder': 11.0.0
'@serialport/parser-spacepacket': 11.0.0
'@serialport/stream': 11.0.0
debug: 4.3.4
transitivePeerDependencies:
- supports-color
dev: false
/set-blocking@2.0.0:
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
dev: false
/signal-exit@3.0.7:
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
dev: false
/string-width@1.0.2:
resolution: {integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==}
engines: {node: '>=0.10.0'}
dependencies:
code-point-at: 1.1.0
is-fullwidth-code-point: 1.0.0
strip-ansi: 3.0.1
dev: false
/string_decoder@1.1.1:
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
dependencies:
safe-buffer: 5.1.2
dev: false
/strip-ansi@3.0.1:
resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==}
engines: {node: '>=0.10.0'}
dependencies:
ansi-regex: 2.1.1
dev: false
/strip-json-comments@2.0.1:
resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}
engines: {node: '>=0.10.0'}
dev: false
/tar@4.4.19:
resolution: {integrity: sha512-a20gEsvHnWe0ygBY8JbxoM4w3SJdhc7ZAuxkLqh+nvNQN2IOt0B5lLgM490X5Hl8FF0dl0tOf2ewFYAlIFgzVA==}
engines: {node: '>=4.5'}
dependencies:
chownr: 1.1.4
fs-minipass: 1.2.7
minipass: 2.9.0
minizlib: 1.3.3
mkdirp: 0.5.6
safe-buffer: 5.2.1
yallist: 3.1.1
dev: false
/typescript@5.0.4:
resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==}
engines: {node: '>=12.20'}
hasBin: true
dev: true
/util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
dev: false
/wide-align@1.1.5:
resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}
dependencies:
string-width: 1.0.2
dev: false
/wrappy@1.0.2:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
dev: false
/yallist@3.1.1:
resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
dev: false

View file

@ -1,24 +1,34 @@
import { EventEmitter } from "events"
import SerialPort from "serialport"
import { EventEmitter } from "eventemitter3"
import { SerialPort } from "serialport"
export const VENDOR_ID = "0403" // Enttec
export const PRODUCT_ID = "6001" // Open DMX USB
export class EnttecOpenDMXUSBDevice extends EventEmitter {
interface Events {
ready: []
error: [Error]
}
type Usleep = (microSeconds: number) => unknown
export class EnttecOpenDMXUSBDevice extends EventEmitter<Events> {
private shouldBeSending = false
private sendTimeout: NodeJS.Timeout | null = null
private sendTimeout: ReturnType<typeof setTimeout> | null = null
private buffer = Buffer.alloc(513)
private readonly port: SerialPort
private readonly usleep: Usleep | null
/**
* @param {string} path A path returned by {@link EnttecOpenDMXUSBDevice.listDevices} or
* @param path A path returned by {@link EnttecOpenDMXUSBDevice.listDevices} or
* {@link EnttecOpenDMXUSBDevice.getFirstAvailableDevice}.
* @param {boolean} [startSending=true] If the device should start sending as soon as it is ready.
* @param [startSending=true] Whether the device should start sending as soon as it is ready.
* @param [usleep=null] A function blocking the event loop for `n` microseconds. See the README.md for more information.
*/
constructor(path: string, startSending = true) {
constructor(path: string, startSending = true, usleep: Usleep | null = null) {
super()
this.port = new SerialPort(path, {
this.port = new SerialPort({
path,
baudRate: 250000,
dataBits: 8,
stopBits: 2,
@ -30,22 +40,28 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter {
this.emit("ready")
if (startSending) this.startSending(0)
})
// Without this, errors would be uncaught.
this.port.on("error", (error: Error) => {
this.emit("error", error)
})
this.usleep = usleep
}
/**
* Starts sending.
* @param {number} [interval=0] The time between each attempt to send.
* @throws Error If the device is not ready yet.
* Start sending.
* @param [interval=0] The milliseconds between each attempt to send. Most of the time `0` works fine.
* @throws When the device is not ready yet.
*/
startSending(interval = 0) {
if (!this.port.isOpen) throw new Error("The device is not ready yet. Wait for the 'ready' event.")
this.emit("sending-started", interval)
this.shouldBeSending = true
// eslint-disable-next-line unicorn/consistent-function-scoping
const send = () => {
this.sendUniverse()
this._sendUniverse()
.then(() => {
if (this.shouldBeSending)
// eslint-disable-next-line @typescript-eslint/no-misused-promises
@ -58,23 +74,22 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter {
}
/**
* Stops sending.
* Stop sending.
*/
stopSending() {
this.emit("sending-stopped")
this.shouldBeSending = false
if (this.sendTimeout !== null) clearTimeout(this.sendTimeout)
}
/**
* Sets the channel values.
* Set channel values.
* If channels is an Object, the keys are the channel numbers.
*
* @param {Buffer|Object|Array} channels
* @param {boolean} [clear=false] Whether all previously assigned channels should be set to 0
* @param channels
* @param [clear=false] Whether all previously assigned channels should be set to `0`
*/
setChannels(channels: Buffer | number[] | { [key: number]: number }, clear = false) {
setChannels(channels: Buffer | number[] | Record<number, number>, clear = false) {
if (clear) {
this.buffer = Buffer.alloc(513)
this.buffer[0] = 0
@ -111,26 +126,34 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter {
}
/**
* @returns {Promise} Resolves when the whole universe was send.
* @returns A Promise resolved when the whole universe was sent.
* @private
*/
private async sendUniverse(): Promise<void> {
async _sendUniverse(): Promise<void> {
return new Promise(resolve => {
this.port.set({ brk: true, rts: false }, () => {
if (this.usleep === null) {
setTimeout(() => {
this.port.set({ brk: false, rts: false }, () => {
setTimeout(() => {
this.port.write(this.buffer, () => resolve())
}, 0)
}, 1)
})
}, 0)
}, 1)
} else {
this.usleep(92)
this.port.set({ brk: false, rts: false }, () => {
this.usleep!(12)
this.port.write(this.buffer, () => resolve())
})
}
})
})
}
/**
* Lists the paths of all available devices.
* @returns {Promise<string[]>}
* Get the paths of all available devices.
*/
static async listDevices(): Promise<string[]> {
const allPorts = await SerialPort.list()
@ -140,9 +163,8 @@ export class EnttecOpenDMXUSBDevice extends EventEmitter {
}
/**
* Gets the path of the first available device found.
* @throws Error when no device is found.
* @returns {Promise<string>}
* Get the path of the first available device.
* @throws When no device is found.
*/
static async getFirstAvailableDevice(): Promise<string> {
const devices = await EnttecOpenDMXUSBDevice.listDevices()

View file

@ -1,9 +1,13 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Node",
"target": "es2019",
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"outDir": "dist",
"declaration": true,
"types": ["@types/node"],
"lib": ["es2019"]
}
}

4674
yarn.lock

File diff suppressed because it is too large Load diff