zwave-js 14.3.2 → 14.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-check
4
4
  const { MockServer, createMockNodeOptionsFromDump } = require(
5
- "../build/mockServer",
5
+ "../build/cjs/mockServer.js",
6
6
  );
7
7
  const { readFileSync, statSync, readdirSync } = require("fs");
8
8
  const path = require("path");
@@ -85,7 +85,7 @@ Each node ID may only be used once in mock configs. Node ID ${nodeConfig.id} is
85
85
  * @param {string} filename
86
86
  */
87
87
  function getConfig(filename) {
88
- if (filename.endsWith(".js")) {
88
+ if (filename.endsWith(".js") || filename.endsWith(".cjs")) {
89
89
  // The export can either be a static config object or a function that accepts a require
90
90
  let config = require(filename).default;
91
91
  if (typeof config === "function") {
@@ -156,7 +156,7 @@ No config files found in ${absolutePath}
156
156
  const interfaceIndex = args.findIndex(
157
157
  (arg) => arg === "--interface" || arg === "-i",
158
158
  );
159
- const interface = interfaceIndex === -1 ? undefined : args[interfaceIndex + 1];
159
+ const iface = interfaceIndex === -1 ? undefined : args[interfaceIndex + 1];
160
160
 
161
161
  // Parse port
162
162
  const portIndex = args.findIndex((arg) => arg === "--port" || arg === "-p");
@@ -166,7 +166,7 @@ if (Number.isNaN(port)) port = undefined;
166
166
  let server;
167
167
  (async () => {
168
168
  server = new MockServer({
169
- interface,
169
+ interface: iface,
170
170
  port,
171
171
  config,
172
172
  });
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "14.3.2";
1
+ export declare const PACKAGE_VERSION = "14.3.3";
2
2
  export declare const PACKAGE_NAME = "zwave-js";
3
3
  //# sourceMappingURL=_version.d.ts.map
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  PACKAGE_VERSION: () => PACKAGE_VERSION
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const PACKAGE_VERSION = "14.3.2";
25
+ const PACKAGE_VERSION = "14.3.3";
26
26
  const PACKAGE_NAME = "zwave-js";
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/_version.ts"],
4
- "sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"14.3.2\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
4
+ "sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"14.3.3\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;;;;;;AACO,MAAM,kBAAkB;AACxB,MAAM,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1517,7 +1517,7 @@ class Driver extends import_shared.TypedEventEmitter {
1517
1517
  if (ccArgs.parameters) {
1518
1518
  if ((0, import_shared.isUint8Array)(ccArgs.parameters)) {
1519
1519
  msg.parameters = (0, import_shared.buffer2hex)(ccArgs.parameters);
1520
- } else if (ccArgs.parameters instanceof import_core.Duration) {
1520
+ } else if (import_core.Duration.isDuration(ccArgs.parameters)) {
1521
1521
  msg.duration = ccArgs.parameters.toString();
1522
1522
  } else if ((0, import_typeguards.isObject)(ccArgs.parameters)) {
1523
1523
  Object.assign(msg, ccArgs.parameters);