@kition/embed-server 0.1.0 → 0.2.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 +2 -2
- package/dist/cli.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @kition/embed-server
|
|
2
2
|
|
|
3
3
|
The embed server, for URL embedding: your page frames a URL your server minted, and the
|
|
4
|
-
server shows a Kition kit editor there (the Note
|
|
4
|
+
server shows a Kition kit editor there (the Note and Table kits today; other kits are not published yet), reading and
|
|
5
5
|
writing the file through HMAC-signed HTTP callbacks to your server. It keeps no document.
|
|
6
6
|
Single-user; for co-editing see `@kition/embed`. An ES module with type declarations, for Node 20.6
|
|
7
7
|
or later, and a `kition-embed-server` command.
|
|
@@ -44,6 +44,6 @@ Your server signs the iframe URL's open token with `signOpenToken` from `@kition
|
|
|
44
44
|
and checks each callback with `verifyCallback` from `@kition/embed-server/callbacks` (it needs only
|
|
45
45
|
`node:crypto`). TypeScript projects need `@types/node`.
|
|
46
46
|
|
|
47
|
-
Documentation: https://
|
|
47
|
+
Documentation: https://developer.kition.ai/url
|
|
48
48
|
|
|
49
49
|
License: Apache-2.0
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { pathToFileURL as l } from "node:url";
|
|
|
5
5
|
import { startEmbedServer as d } from "./index.js";
|
|
6
6
|
const i = `Usage: kition-embed-server <config.json | config.mjs>
|
|
7
7
|
|
|
8
|
-
Runs the embed server for URL embedding (https://
|
|
8
|
+
Runs the embed server for URL embedding (https://developer.kition.ai/url).
|
|
9
9
|
The config holds startEmbedServer's options: id, secret, integrators, kits,
|
|
10
10
|
kitsUrl (or kitsDir and kitsPort), and optionally port, host, embedDir.`, e = process.argv[2];
|
|
11
11
|
(!e || e === "--help" || e === "-h") && (console.log(i), process.exit(e ? 0 : 1));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kition/embed-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Serves Kition kit editors to iframes: opens a kit's editor for a URL carrying a signed open token and reads and writes the file through your server's signed HTTP callbacks.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@kition/embed": "0.
|
|
28
|
-
"@kition/sync": "0.
|
|
27
|
+
"@kition/embed": "0.2.0",
|
|
28
|
+
"@kition/sync": "0.2.0"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|