@synopackageland/app 0.23.1 → 0.24.0
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 +4 -4
- package/dist/app.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk-version.d.ts +1 -1
- package/dist/sdk-version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @synopackageland/app
|
|
2
2
|
|
|
3
3
|
The Node SDK for the backend of a Synology Package Land App written in
|
|
4
|
-
TypeScript or JavaScript. Node
|
|
5
|
-
`Node.
|
|
4
|
+
TypeScript or JavaScript. Node 22 or later (DSM Package Center's
|
|
5
|
+
`Node.js_v22`), ESM only, no runtime
|
|
6
6
|
dependencies.
|
|
7
7
|
|
|
8
8
|
The package's CGI is the synopkgland Go runtime (`bridge/cmd/runtime`). It
|
|
@@ -216,8 +216,8 @@ npm run build # dist/: ESM and .d.ts
|
|
|
216
216
|
`spec/bridge/v1/frames.schema.json`) and `src/refusals.ts` (from
|
|
217
217
|
`spec/protocol/v1/errors.json`) are generated and committed; a test fails
|
|
218
218
|
when they differ from `spec/`. `scripts/gate.sh` also runs the tests, the
|
|
219
|
-
bridge's golden runner and the hello example on Node
|
|
220
|
-
(`scripts/
|
|
219
|
+
bridge's golden runner and the hello example on Node 22 in Docker
|
|
220
|
+
(`scripts/node22-test.sh`).
|
|
221
221
|
|
|
222
222
|
With bridge capability `webapi:true` and approved executor profiles, the existing
|
|
223
223
|
runtime service interface supports profile grants and calls:
|
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.
|
|
6
|
+
export declare const SDK = "node/0.24.0";
|
|
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/index.js
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
// The Go runtime checks the request's origin, the DSM session, the entry
|
|
4
4
|
// gate, the route policy and the deadline; a handler here only sees calls
|
|
5
5
|
// that passed them, and asks the runtime for services with ctx.runtime. No
|
|
6
|
-
// dependencies; Node
|
|
6
|
+
// dependencies; Node 22 or later.
|
|
7
7
|
export { App, SDK, VERSION } from './app.js';
|
|
8
8
|
export { AppError, ServiceError } from './errors.js';
|
package/dist/sdk-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.24.0";
|
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.
|
|
2
|
+
export const SDK_VERSION = "0.24.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=22"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"prepack": "npm run build",
|