@synopackageland/app 0.10.3 → 0.10.4

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/dist/app.d.ts CHANGED
@@ -3,7 +3,7 @@ import { type Context } from './context.js';
3
3
  /** The channel protocol version this SDK speaks. */
4
4
  export declare const VERSION = 1;
5
5
  /** The SDK's name in hello: node/<package version>. */
6
- export declare const SDK = "node/0.10.3";
6
+ export declare const SDK = "node/0.10.4";
7
7
  /**
8
8
  * A method's implementation. params is the request's params as the browser
9
9
  * sent them, not checked against P. The result is the data the browser gets,
package/dist/app.js CHANGED
@@ -5,7 +5,7 @@ import { browserError } from './errors.js';
5
5
  /** The channel protocol version this SDK speaks. */
6
6
  export const VERSION = 1;
7
7
  /** The SDK's name in hello: node/<package version>. */
8
- export const SDK = 'node/0.10.3';
8
+ export const SDK = 'node/0.10.4';
9
9
  const methodName = /^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$/;
10
10
  const internal = { code: 'internal', message: 'internal error' };
11
11
  /** The App: its methods, served on one channel per call. */
package/dist/refusals.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by scripts/generate.mjs from spec/protocol/v1/errors.json. DO NOT EDIT.
2
- // The upper-case refusal codes of protocol v1. An App may return them, so the
3
- // browser's SDK can translate them.
2
+ // The upper-case refusal and client codes of protocol v1. An App may return
3
+ // them, so the browser's SDK can translate them.
4
4
  export const protocolRefusals = new Set([
5
5
  'AUTH_DENIED',
6
6
  'INELIGIBLE',
@@ -30,4 +30,10 @@ export const protocolRefusals = new Set([
30
30
  'NO_SPACE',
31
31
  'SCOPE_APPROVAL_STALE',
32
32
  'IDENTITY_CHANGED',
33
+ 'EXECUTOR_UNAVAILABLE',
34
+ 'APP_STOPPED',
35
+ 'APP_STARTING',
36
+ 'EXECUTOR_TIMEOUT',
37
+ 'EXECUTOR_TOO_LARGE',
38
+ 'EXECUTOR_PROTOCOL',
33
39
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/app",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Node SDK for Synology Package Land Apps: the backend methods behind the synopkgland Go runtime (channel spec/bridge/v1)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/synopackageland/syno-pkg-land-sdk/tree/main/node#readme",