@synopackageland/app 0.50.1 → 0.50.2
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 +3 -3
- package/dist/app.js +1 -1
- package/dist/sdk-version.d.ts +1 -1
- package/dist/sdk-version.js +1 -1
- package/package.json +1 -1
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.50.
|
|
6
|
+
export declare const SDK = "node/0.50.2";
|
|
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,
|
|
@@ -12,8 +12,8 @@ export declare const SDK = "node/0.50.1";
|
|
|
12
12
|
export type Handler<P = unknown> = (ctx: Context, params: P) => unknown;
|
|
13
13
|
export interface AppOptions {
|
|
14
14
|
/**
|
|
15
|
-
* Where
|
|
16
|
-
*
|
|
15
|
+
* Where a redacted failure event goes (stderr by default). Original
|
|
16
|
+
* exceptions and request bodies are never passed to this callback.
|
|
17
17
|
*/
|
|
18
18
|
log?: (error: unknown) => void;
|
|
19
19
|
}
|
package/dist/app.js
CHANGED
|
@@ -110,7 +110,7 @@ export class App {
|
|
|
110
110
|
const error = browserError(e);
|
|
111
111
|
if (error)
|
|
112
112
|
return encode({ t: 'result', id, ok: false, error });
|
|
113
|
-
this.#log(
|
|
113
|
+
this.#log({ ...internal });
|
|
114
114
|
return encode({ t: 'result', id, ok: false, error: internal });
|
|
115
115
|
}
|
|
116
116
|
}
|
package/dist/sdk-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.50.
|
|
1
|
+
export declare const SDK_VERSION = "0.50.2";
|
package/dist/sdk-version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated from package.json by scripts/sdk-version.mjs. DO NOT EDIT.
|
|
2
|
-
export const SDK_VERSION = "0.50.
|
|
2
|
+
export const SDK_VERSION = "0.50.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/app",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.2",
|
|
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",
|