@econ-v1/app-sdk 7.6.191 → 7.6.193
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.
|
@@ -48,6 +48,11 @@ export declare const NODE_BUILTINS: ReadonlySet<string>;
|
|
|
48
48
|
* timed HTTP client (ADR-120) uses: `net.connect`/`createConnection`, `isIP`,
|
|
49
49
|
* `Socket` (no `createServer`), `tls.connect` with certificate checks always
|
|
50
50
|
* on (`rejectUnauthorized: false` throws), and `lookup`.
|
|
51
|
+
*
|
|
52
|
+
* FS METADATA PACK (node-app-burger ADR 024, >= 0.3.21): `lstatSync` and
|
|
53
|
+
* `readlinkSync` on `burger:fs`, `lstat` and `readlink` on
|
|
54
|
+
* `burger:fs/promises`, listed ahead of the release that ships them; an app
|
|
55
|
+
* using them must depend on `node-app-burger (>= 0.3.21)`.
|
|
51
56
|
*/
|
|
52
57
|
export declare const BURGER_EXPORTS: Readonly<Record<BurgerModule, readonly string[]>>;
|
|
53
58
|
/**
|
package/dist/burger-build/cli.js
CHANGED
|
@@ -167,7 +167,9 @@ var BURGER_EXPORTS = {
|
|
|
167
167
|
"readSync",
|
|
168
168
|
"fstatSync",
|
|
169
169
|
"utimesSync",
|
|
170
|
-
"statfsSync"
|
|
170
|
+
"statfsSync",
|
|
171
|
+
"lstatSync",
|
|
172
|
+
"readlinkSync"
|
|
171
173
|
],
|
|
172
174
|
"burger:fs/promises": [
|
|
173
175
|
"exists",
|
|
@@ -181,7 +183,9 @@ var BURGER_EXPORTS = {
|
|
|
181
183
|
"rename",
|
|
182
184
|
"chmod",
|
|
183
185
|
"unlink",
|
|
184
|
-
"mkdtemp"
|
|
186
|
+
"mkdtemp",
|
|
187
|
+
"lstat",
|
|
188
|
+
"readlink"
|
|
185
189
|
],
|
|
186
190
|
"burger:path": [
|
|
187
191
|
"join",
|
|
@@ -162,7 +162,9 @@ var BURGER_EXPORTS = {
|
|
|
162
162
|
"readSync",
|
|
163
163
|
"fstatSync",
|
|
164
164
|
"utimesSync",
|
|
165
|
-
"statfsSync"
|
|
165
|
+
"statfsSync",
|
|
166
|
+
"lstatSync",
|
|
167
|
+
"readlinkSync"
|
|
166
168
|
],
|
|
167
169
|
"burger:fs/promises": [
|
|
168
170
|
"exists",
|
|
@@ -176,7 +178,9 @@ var BURGER_EXPORTS = {
|
|
|
176
178
|
"rename",
|
|
177
179
|
"chmod",
|
|
178
180
|
"unlink",
|
|
179
|
-
"mkdtemp"
|
|
181
|
+
"mkdtemp",
|
|
182
|
+
"lstat",
|
|
183
|
+
"readlink"
|
|
180
184
|
],
|
|
181
185
|
"burger:path": [
|
|
182
186
|
"join",
|
|
@@ -42,11 +42,23 @@ declare module "burger:fs" {
|
|
|
42
42
|
export type PathLike = string;
|
|
43
43
|
export type Utf8Encoding = "utf8" | "utf-8";
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Node's numeric `Stats` (no `{ bigint: true }`, no `Date` getters such as `mtime`: read the
|
|
47
|
+
* `*Ms` fields). `isFile`, `isDirectory`, `size`, `mtimeMs` and `mode` are on every runtime;
|
|
48
|
+
* the other fields and type tests arrive with the fs metadata pack (node-app-burger ADR 024,
|
|
49
|
+
* >= 0.3.21) and are `undefined` on an older runtime, so depend on `node-app-burger (>= 0.3.21)`
|
|
50
|
+
* before relying on them.
|
|
51
|
+
*/
|
|
45
52
|
export interface Stats {
|
|
46
53
|
isFile(): boolean;
|
|
47
54
|
isDirectory(): boolean;
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
/** Only an `lstat` of a link is ever a symbolic link (>= 0.3.21). */
|
|
56
|
+
isSymbolicLink(): boolean;
|
|
57
|
+
isFIFO(): boolean;
|
|
58
|
+
isSocket(): boolean;
|
|
59
|
+
isBlockDevice(): boolean;
|
|
60
|
+
isCharacterDevice(): boolean;
|
|
61
|
+
readonly dev: number;
|
|
50
62
|
/**
|
|
51
63
|
* Permission bits as Node reports them; `mode & 0o777` (agent runtime pack, node-app-burger
|
|
52
64
|
* >= 0.3.3). On an older runtime this field is `undefined`, so `mode & 0o777` is 0 and a
|
|
@@ -54,6 +66,21 @@ declare module "burger:fs" {
|
|
|
54
66
|
* relying on it.
|
|
55
67
|
*/
|
|
56
68
|
readonly mode: number;
|
|
69
|
+
readonly nlink: number;
|
|
70
|
+
readonly uid: number;
|
|
71
|
+
readonly gid: number;
|
|
72
|
+
readonly rdev: number;
|
|
73
|
+
readonly blksize: number;
|
|
74
|
+
/** A number, as in Node without `bigint`: values above 2^53 lose precision. */
|
|
75
|
+
readonly ino: number;
|
|
76
|
+
readonly size: number;
|
|
77
|
+
readonly blocks: number;
|
|
78
|
+
/** Times are `sec * 1e3 + nsec / 1e6`, as Node computes them; negative before the epoch. */
|
|
79
|
+
readonly atimeMs: number;
|
|
80
|
+
readonly mtimeMs: number;
|
|
81
|
+
readonly ctimeMs: number;
|
|
82
|
+
/** The `statx` creation time, or 0 where the kernel or file system records none. */
|
|
83
|
+
readonly birthtimeMs: number;
|
|
57
84
|
}
|
|
58
85
|
|
|
59
86
|
/** `statfsSync`'s result, Node's `StatsFs` (number fields; no `bigint` option). Free bytes: `bavail * bsize`. */
|
|
@@ -148,6 +175,14 @@ declare module "burger:fs" {
|
|
|
148
175
|
// third data-app pack (node-app-memory's switch to Burger):
|
|
149
176
|
/** Usage of the filesystem holding `path`. */
|
|
150
177
|
export function statfsSync(path: PathLike): StatsFs;
|
|
178
|
+
// fs metadata pack (node-app-burger ADR 024, >= 0.3.21):
|
|
179
|
+
/** The path's own `Stats`, links not followed (`lstat(2)`). */
|
|
180
|
+
export function lstatSync(path: PathLike): Stats;
|
|
181
|
+
/**
|
|
182
|
+
* The link text exactly as stored. Only utf8 encodings are accepted (`{ encoding: "buffer" }`
|
|
183
|
+
* throws a `TypeError`); a path that is not a link throws `EINVAL`.
|
|
184
|
+
*/
|
|
185
|
+
export function readlinkSync(path: PathLike, options?: Utf8Encoding | { encoding: Utf8Encoding }): string;
|
|
151
186
|
|
|
152
187
|
export interface FsPromises {
|
|
153
188
|
exists(path: PathLike): Promise<boolean>;
|
|
@@ -159,6 +194,10 @@ declare module "burger:fs" {
|
|
|
159
194
|
readdir(path: PathLike, options?: Utf8Encoding | (ReaddirOptions & { withFileTypes?: false })): Promise<string[]>;
|
|
160
195
|
readdir(path: PathLike, options: ReaddirOptions & { withFileTypes: true }): Promise<Dirent[]>;
|
|
161
196
|
stat(path: PathLike): Promise<Stats>;
|
|
197
|
+
/** fs metadata pack (node-app-burger >= 0.3.21): the path's own `Stats`, links not followed. */
|
|
198
|
+
lstat(path: PathLike): Promise<Stats>;
|
|
199
|
+
/** fs metadata pack (node-app-burger >= 0.3.21): the link text; utf8 encodings only. */
|
|
200
|
+
readlink(path: PathLike, options?: Utf8Encoding | { encoding: Utf8Encoding }): Promise<string>;
|
|
162
201
|
rm(path: PathLike, options?: { recursive?: boolean; force?: boolean }): Promise<void>;
|
|
163
202
|
rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
|
|
164
203
|
chmod(path: PathLike, mode: number): Promise<void>;
|
|
@@ -194,6 +233,8 @@ declare module "burger:fs" {
|
|
|
194
233
|
fstatSync: typeof fstatSync;
|
|
195
234
|
utimesSync: typeof utimesSync;
|
|
196
235
|
statfsSync: typeof statfsSync;
|
|
236
|
+
lstatSync: typeof lstatSync;
|
|
237
|
+
readlinkSync: typeof readlinkSync;
|
|
197
238
|
Dirent: typeof Dirent;
|
|
198
239
|
promises: FsPromises;
|
|
199
240
|
};
|
|
@@ -209,6 +250,8 @@ declare module "burger:fs/promises" {
|
|
|
209
250
|
export const mkdir: FsPromises["mkdir"];
|
|
210
251
|
export const readdir: FsPromises["readdir"];
|
|
211
252
|
export const stat: FsPromises["stat"];
|
|
253
|
+
export const lstat: FsPromises["lstat"];
|
|
254
|
+
export const readlink: FsPromises["readlink"];
|
|
212
255
|
export const rm: FsPromises["rm"];
|
|
213
256
|
export const rename: FsPromises["rename"];
|
|
214
257
|
export const chmod: FsPromises["chmod"];
|
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.193",
|
|
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",
|