@econ-v1/app-sdk 7.6.63 → 7.6.64
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* they become. Everything here is data; `classifySpecifier` is the only
|
|
4
4
|
* decision function.
|
|
5
5
|
*/
|
|
6
|
-
export declare const BURGER_MODULES: readonly ["burger:host", "burger:fs", "burger:fs/promises", "burger:path", "burger:os", "burger:worker_threads", "burger:crypto", "burger:buffer", "burger:sqlite", "burger:zlib", "burger:async_hooks", "burger:test"];
|
|
6
|
+
export declare const BURGER_MODULES: readonly ["burger:host", "burger:fs", "burger:fs/promises", "burger:path", "burger:os", "burger:worker_threads", "burger:crypto", "burger:buffer", "burger:sqlite", "burger:zlib", "burger:async_hooks", "burger:zod", "burger:test"];
|
|
7
7
|
export type BurgerModule = (typeof BURGER_MODULES)[number];
|
|
8
8
|
/** C5/C6 "Aliased from" columns (plus `fs/promises`, the module form of `fs.promises`). */
|
|
9
9
|
export declare const ALIASES: ReadonlyMap<string, BurgerModule>;
|
|
@@ -38,6 +38,10 @@ export declare const NODE_BUILTINS: ReadonlySet<string>;
|
|
|
38
38
|
* release that ships them. `createCipheriv`, `createDecipheriv` (aes-256-gcm)
|
|
39
39
|
* and `scryptSync` arrive with the crypto pack (node-app-burger ADR 006, for
|
|
40
40
|
* node-app-pii and node-app-distributed-backup), also ahead of its release.
|
|
41
|
+
*
|
|
42
|
+
* `burger:zod` (node-app-burger ADR 015, >= 0.3.12) has no `node:`/`bun:`
|
|
43
|
+
* alias: an app imports it by name (`import { install } from "burger:zod";
|
|
44
|
+
* install(z);`) to compile its zod 3 schemas into plain check functions.
|
|
41
45
|
*/
|
|
42
46
|
export declare const BURGER_EXPORTS: Readonly<Record<BurgerModule, readonly string[]>>;
|
|
43
47
|
/**
|
package/dist/burger-build/cli.js
CHANGED
|
@@ -34,6 +34,7 @@ var BURGER_MODULES = [
|
|
|
34
34
|
"burger:sqlite",
|
|
35
35
|
"burger:zlib",
|
|
36
36
|
"burger:async_hooks",
|
|
37
|
+
"burger:zod",
|
|
37
38
|
"burger:test"
|
|
38
39
|
];
|
|
39
40
|
var ALIASES = new Map([
|
|
@@ -216,6 +217,7 @@ var BURGER_EXPORTS = {
|
|
|
216
217
|
"inflateRawSync"
|
|
217
218
|
],
|
|
218
219
|
"burger:async_hooks": ["AsyncLocalStorage"],
|
|
220
|
+
"burger:zod": ["install", "compile"],
|
|
219
221
|
"burger:test": [
|
|
220
222
|
"describe",
|
|
221
223
|
"test",
|
|
@@ -240,7 +242,8 @@ var BURGER_DEFAULT_EXPORT = {
|
|
|
240
242
|
"burger:buffer": true,
|
|
241
243
|
"burger:sqlite": true,
|
|
242
244
|
"burger:zlib": true,
|
|
243
|
-
"burger:async_hooks": true
|
|
245
|
+
"burger:async_hooks": true,
|
|
246
|
+
"burger:zod": true
|
|
244
247
|
};
|
|
245
248
|
var BURGER_MODULE_SET = new Set(BURGER_MODULES);
|
|
246
249
|
function classifySpecifier(specifier) {
|
|
@@ -29,6 +29,7 @@ var BURGER_MODULES = [
|
|
|
29
29
|
"burger:sqlite",
|
|
30
30
|
"burger:zlib",
|
|
31
31
|
"burger:async_hooks",
|
|
32
|
+
"burger:zod",
|
|
32
33
|
"burger:test"
|
|
33
34
|
];
|
|
34
35
|
var ALIASES = new Map([
|
|
@@ -211,6 +212,7 @@ var BURGER_EXPORTS = {
|
|
|
211
212
|
"inflateRawSync"
|
|
212
213
|
],
|
|
213
214
|
"burger:async_hooks": ["AsyncLocalStorage"],
|
|
215
|
+
"burger:zod": ["install", "compile"],
|
|
214
216
|
"burger:test": [
|
|
215
217
|
"describe",
|
|
216
218
|
"test",
|
|
@@ -235,7 +237,8 @@ var BURGER_DEFAULT_EXPORT = {
|
|
|
235
237
|
"burger:buffer": true,
|
|
236
238
|
"burger:sqlite": true,
|
|
237
239
|
"burger:zlib": true,
|
|
238
|
-
"burger:async_hooks": true
|
|
240
|
+
"burger:async_hooks": true,
|
|
241
|
+
"burger:zod": true
|
|
239
242
|
};
|
|
240
243
|
var BURGER_MODULE_SET = new Set(BURGER_MODULES);
|
|
241
244
|
function classifySpecifier(specifier) {
|
|
@@ -498,6 +498,19 @@ declare module "burger:async_hooks" {
|
|
|
498
498
|
export default asyncHooks;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
+
/** Compiled zod 3 checks (node-app-burger ADR 015, >= 0.3.12). `install(z)` makes every
|
|
502
|
+
* synchronous `parse`/`safeParse` of the zod 3 namespace `z` (`import * as z from "zod"`) run a
|
|
503
|
+
* compiled check first; an input that check does not accept always goes to zod, so errors and
|
|
504
|
+
* issues are zod's own. Throws a `TypeError` when `z` is not the zod 3 namespace. Idempotent. */
|
|
505
|
+
declare module "burger:zod" {
|
|
506
|
+
export function install(z: object): void;
|
|
507
|
+
/** The compiled check of a zod 3 schema, or `null` when the schema holds a type the compiler
|
|
508
|
+
* does not know. Internal to `install`; exported for tests. */
|
|
509
|
+
export function compile(schema: object): ((data: unknown) => unknown) | null;
|
|
510
|
+
const burgerZod: { install: typeof install; compile: typeof compile };
|
|
511
|
+
export default burgerZod;
|
|
512
|
+
}
|
|
513
|
+
|
|
501
514
|
declare module "burger:buffer" {
|
|
502
515
|
export type BufferEncoding = "utf8" | "utf-8" | "hex" | "base64" | "base64url" | "latin1" | "binary" | "ascii";
|
|
503
516
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@econ-v1/app-sdk",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.64",
|
|
4
4
|
"description": "TypeScript SDK for building Node mini-app plugins (Bun runtime) on the Lightning-powered marketplace daemon",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Node contributors",
|