Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: untar config updates in memory, remove execa from prod deps #7485

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"@types/js-levenshtein": "^1.1.3",
"@types/json-logic-js": "^2.0.7",
"@types/node": "^18.19.63",
"@types/proxyquire": "^1.3.31",
"@types/semver": "^7.5.8",
"@types/sinon": "^17.0.3",
"@types/xml2js": "^0.4.14",
Expand All @@ -86,7 +85,6 @@
"js-levenshtein": "^1.1.6",
"ky": "^1.7.2",
"peggy": "^3.0.2",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2",
"ts-pegjs": "patch:ts-pegjs@npm%3A4.2.1#~/.yarn/patches/ts-pegjs-npm-4.2.1-0f567a1059.patch",
"tsx": "^4.19.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export * from "./test/assertZWaveError.js";
export type * from "./traits/index.js";
export * from "./util/_Types.js";
export * from "./util/compareVersions.js";
export { deflateSync } from "./util/compression.js";
export { deflateSync, gunzipSync } from "./util/compression.js";
export * from "./util/config.js";
export * from "./util/crc.js";
export * from "./util/date.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index_browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export * from "./registries/Scales.js";
export * from "./registries/Sensors.js";
export type * from "./traits/index.js";
export type * from "./util/_Types.js";
export { deflateSync } from "./util/compression.js";
export { deflateSync, gunzipSync } from "./util/compression.js";
export * from "./util/config.js";
export * from "./util/crc.js";
export * from "./util/graph.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index_safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export * from "./registries/Scales.js";
export * from "./registries/Sensors.js";
export type * from "./traits/index.js";
export * from "./util/_Types.js";
export { deflateSync } from "./util/compression.js";
export { deflateSync, gunzipSync } from "./util/compression.js";
export * from "./util/config.js";
export * from "./util/crc.js";
export * from "./util/graph.js";
Expand Down
6 changes: 5 additions & 1 deletion packages/core/src/util/compression.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { deflateSync as defflateSync } from "fflate";
import { deflateSync as defflateSync, gunzipSync as fgunzipSync } from "fflate";

export function deflateSync(data: Uint8Array): Uint8Array {
return defflateSync(data);
}

export function gunzipSync(data: Uint8Array): Uint8Array {
return fgunzipSync(data);
}
2 changes: 0 additions & 2 deletions packages/serial/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export * from "./parsers/ZnifferSerialFrame.js";
export * from "./plumbing/Faucet.js";
export type * from "./serialport/Bindings.js";
export * from "./serialport/LegacyBindingWrapper.js";
export * from "./serialport/NodeSerialPort.js";
export * from "./serialport/NodeSocket.js";
export * from "./serialport/ZWaveSerialPortImplementation.js";
export * from "./serialport/ZWaveSerialStream.js";
export * from "./serialport/ZWaveSocketOptions.js";
Expand Down
2 changes: 0 additions & 2 deletions packages/serial/src/index_mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from "./mock/MockPort.js";
export * from "./mock/SerialPortBindingMock.js";
export * from "./mock/SerialPortMock.js";
Loading
Loading