document-model 3.0.0 → 3.0.1
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type BinaryLike, type RandomUUIDOptions } from "node:crypto";
|
|
2
2
|
export declare function generateUUID(options?: RandomUUIDOptions): `${string}-${string}-${string}-${string}-${string}`;
|
|
3
3
|
export declare function writeFile(path: string, name: string, data: Uint8Array): Promise<string>;
|
|
4
|
-
export declare function readFile(path: string):
|
|
4
|
+
export declare function readFile(path: string): NonSharedBuffer;
|
|
5
5
|
export declare function fetchFile(url: string): Promise<{
|
|
6
6
|
buffer: Buffer;
|
|
7
7
|
mimeType?: string;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const getFile: (file: string) => Promise<
|
|
9
|
+
export declare const getFile: (file: string) => Promise<NonSharedBuffer>;
|
|
10
10
|
export declare const hash: (data: BinaryLike, algorithm?: string) => string;
|
|
11
11
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/document/utils/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAGvB,MAAM,aAAa,CAAC;AAKrB,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,iBAAiB,uDAEvD;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,MAAM,CAAC,CAkBjB;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/document/utils/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAGvB,MAAM,aAAa,CAAC;AAKrB,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,iBAAiB,uDAEvD;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,MAAM,CAAC,CAkBjB;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,mBAEpC;AAED,wBAAgB,SAAS,CACvB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAkBhD;AAED,eAAO,MAAM,OAAO,GAAU,MAAM,MAAM,6BAEzC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,MAAM,UAAU,EAAE,kBAAkB,WAExD,CAAC"}
|