Skip to content

Commit

Permalink
refactor: untar config updates in memory, remove execa from prod de…
Browse files Browse the repository at this point in the history
…ps (#7485)
  • Loading branch information
AlCalzone authored Dec 12, 2024
1 parent cc460e9 commit 89c8c34
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 768 deletions.
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

0 comments on commit 89c8c34

Please sign in to comment.