appmesh 3.1.15 → 3.1.19
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.
- package/README.md +3 -5
- package/dist/appmesh.esm.js +1 -1
- package/package.json +1 -1
- package/src/appmesh.js +392 -16
- package/src/appmesh_tcp.js +146 -35
- package/src/request_signature.js +33 -18
- package/src/worker.js +47 -8
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# App Mesh JavaScript SDK
|
|
2
2
|
|
|
3
|
-
> **Naming**: public methods use camelCase (`listApps`, `runAppSync`).
|
|
4
|
-
> deprecated snake_case aliases (`list_apps`, ...) were removed in 3.1.7 —
|
|
5
|
-
> migrate callers to the camelCase names.
|
|
3
|
+
> **Naming**: public methods use camelCase (`listApps`, `runAppSync`).
|
|
6
4
|
|
|
7
5
|
## Client SDK
|
|
8
6
|
|
|
@@ -153,7 +151,7 @@ const sslConfig = {
|
|
|
153
151
|
|
|
154
152
|
// Auto-cleanup with context manager
|
|
155
153
|
await withServer(
|
|
156
|
-
() => new AppMeshWorkerTCP(sslConfig, ["127.0.0.1",
|
|
154
|
+
() => new AppMeshWorkerTCP(sslConfig, ["127.0.0.1", 6062]),
|
|
157
155
|
async (server) => {
|
|
158
156
|
const payload = await server.fetchTask();
|
|
159
157
|
const result = processPayload(payload);
|
|
@@ -251,7 +249,7 @@ new AppMeshWorkerTCP(sslConfig, tcpAddress, options);
|
|
|
251
249
|
**Parameters:**
|
|
252
250
|
|
|
253
251
|
- `sslConfig` (object, optional) - SSL configuration (same as AppMeshWorker)
|
|
254
|
-
- `tcpAddress` (array or object, optional) - `[host, port]` (legacy) or `{host, port}`. Default: `['127.0.0.1',
|
|
252
|
+
- `tcpAddress` (array or object, optional) - `[host, port]` (legacy) or `{host, port}`. Default: `['127.0.0.1', 6062]`. The `{host, port}` object form is also accepted as the first argument: `new AppMeshWorkerTCP({host, port}, sslConfig)`
|
|
255
253
|
- `options` (object, optional) - Same as AppMeshWorker
|
|
256
254
|
|
|
257
255
|
##### Methods
|