@zaber/motion 2.15.2 → 2.15.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.
@@ -13,4 +13,10 @@ export declare class Tools {
13
13
  * @return Path of message router's named pipe or unix domain socket.
14
14
  */
15
15
  static getMessageRouterPipePath(): string;
16
+ /**
17
+ * Returns the path for communicating with a local device database service.
18
+ * This will be a named pipe on Windows and the file path of a unix domain socket on UNIX.
19
+ * @return Path of database service's named pipe or unix domain socket.
20
+ */
21
+ static getDbServicePipePath(): string;
16
22
  }
package/dist/lib/tools.js CHANGED
@@ -50,6 +50,16 @@ class Tools {
50
50
  const response = gateway.callSync('tools/get_message_router_pipe', request, gateway.StringResponse);
51
51
  return response.getValue();
52
52
  }
53
+ /**
54
+ * Returns the path for communicating with a local device database service.
55
+ * This will be a named pipe on Windows and the file path of a unix domain socket on UNIX.
56
+ * @return Path of database service's named pipe or unix domain socket.
57
+ */
58
+ static getDbServicePipePath() {
59
+ const request = new gateway.EmptyRequest();
60
+ const response = gateway.callSync('tools/get_db_service_pipe', request, gateway.StringResponse);
61
+ return response.getValue();
62
+ }
53
63
  }
54
64
  exports.Tools = Tools;
55
65
  //# sourceMappingURL=tools.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/tools.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AAErC;;GAEG;AACH,MAAa,KAAK;IAEhB;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,eAAe;QACjC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAE3C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yBAAyB,EACzB,OAAO,EACP,OAAO,CAAC,4BAA4B,CAAC,CAAC;QACxC,OAAO,QAAQ,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,wBAAwB;QACpC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAE3C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,+BAA+B,EAC/B,OAAO,EACP,OAAO,CAAC,cAAc,CAAC,CAAC;QAC1B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AA9BD,sBA8BC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\n\n/**\n * Class providing various utility functions.\n */\nexport class Tools {\n\n /**\n * Lists all serial ports on the computer.\n * @return Array of serial port names.\n */\n public static async listSerialPorts(): Promise<string[]> {\n const request = new gateway.EmptyRequest();\n\n const response = await gateway.callAsync<gateway.ToolsListSerialPortsResponse>(\n 'tools/list_serial_ports',\n request,\n gateway.ToolsListSerialPortsResponse);\n return response.getPortsList();\n }\n\n /**\n * Returns path of message router named pipe on Windows\n * or file path of unix domain socket on UNIX.\n * @return Path of message router's named pipe or unix domain socket.\n */\n public static getMessageRouterPipePath(): string {\n const request = new gateway.EmptyRequest();\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'tools/get_message_router_pipe',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n}\n"]}
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/tools.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AAErC;;GAEG;AACH,MAAa,KAAK;IAEhB;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,eAAe;QACjC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAE3C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,yBAAyB,EACzB,OAAO,EACP,OAAO,CAAC,4BAA4B,CAAC,CAAC;QACxC,OAAO,QAAQ,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,wBAAwB;QACpC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAE3C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,+BAA+B,EAC/B,OAAO,EACP,OAAO,CAAC,cAAc,CAAC,CAAC;QAC1B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,oBAAoB;QAChC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QAE3C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,2BAA2B,EAC3B,OAAO,EACP,OAAO,CAAC,cAAc,CAAC,CAAC;QAC1B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AA7CD,sBA6CC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\n\n/**\n * Class providing various utility functions.\n */\nexport class Tools {\n\n /**\n * Lists all serial ports on the computer.\n * @return Array of serial port names.\n */\n public static async listSerialPorts(): Promise<string[]> {\n const request = new gateway.EmptyRequest();\n\n const response = await gateway.callAsync<gateway.ToolsListSerialPortsResponse>(\n 'tools/list_serial_ports',\n request,\n gateway.ToolsListSerialPortsResponse);\n return response.getPortsList();\n }\n\n /**\n * Returns path of message router named pipe on Windows\n * or file path of unix domain socket on UNIX.\n * @return Path of message router's named pipe or unix domain socket.\n */\n public static getMessageRouterPipePath(): string {\n const request = new gateway.EmptyRequest();\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'tools/get_message_router_pipe',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Returns the path for communicating with a local device database service.\n * This will be a named pipe on Windows and the file path of a unix domain socket on UNIX.\n * @return Path of database service's named pipe or unix domain socket.\n */\n public static getDbServicePipePath(): string {\n const request = new gateway.EmptyRequest();\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'tools/get_db_service_pipe',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaber/motion",
3
- "version": "2.15.2",
3
+ "version": "2.15.3",
4
4
  "description": "Zaber Motion Library is a multi-platform library used to operate Zaber devices.",
5
5
  "keywords": [],
6
6
  "main": "dist/lib/index.js",