@observablehq/notebook-kit 1.7.12 → 1.8.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/dist/package.json +1 -1
- package/dist/src/runtime/index.d.ts +1 -0
- package/dist/src/runtime/stdlib/files/buffer.d.ts +1 -0
- package/dist/src/runtime/stdlib/files/buffer.js +8 -0
- package/dist/src/runtime/stdlib/files/index.d.ts +3 -0
- package/dist/src/runtime/stdlib/files/index.js +3 -0
- package/dist/src/runtime/stdlib/files/text.d.ts +1 -0
- package/dist/src/runtime/stdlib/files/text.js +8 -0
- package/dist/src/runtime/stdlib/files/url.d.ts +1 -0
- package/dist/src/runtime/stdlib/files/url.js +8 -0
- package/dist/src/runtime/stdlib/index.d.ts +2 -0
- package/dist/src/runtime/stdlib/index.js +2 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -112,6 +112,7 @@ export declare class NotebookRuntime {
|
|
|
112
112
|
};
|
|
113
113
|
Mutable: () => typeof import("./stdlib/mutable.js").Mutable;
|
|
114
114
|
Promises: () => typeof import("./stdlib/promises/index.js");
|
|
115
|
+
Files: () => typeof import("./stdlib/files/index.js");
|
|
115
116
|
DOM: () => typeof import("./stdlib/dom/index.js");
|
|
116
117
|
require: () => {
|
|
117
118
|
(...specifiers: unknown[]): Promise<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buffer(file: Blob): Promise<ArrayBuffer>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function text(file: Blob): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function url(file: Blob): Promise<string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DatabaseClient } from "./databaseClient.js";
|
|
2
2
|
import * as DOM from "./dom/index.js";
|
|
3
|
+
import * as Files from "./files/index.js";
|
|
3
4
|
import { FileAttachment } from "./fileAttachment.js";
|
|
4
5
|
import * as Generators from "./generators/index.js";
|
|
5
6
|
import { Interpreter } from "./interpreter.js";
|
|
@@ -101,6 +102,7 @@ export declare const library: {
|
|
|
101
102
|
};
|
|
102
103
|
Mutable: () => typeof Mutable;
|
|
103
104
|
Promises: () => typeof Promises;
|
|
105
|
+
Files: () => typeof Files;
|
|
104
106
|
DOM: () => typeof DOM;
|
|
105
107
|
require: () => {
|
|
106
108
|
(...specifiers: unknown[]): Promise<unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DatabaseClient } from "./databaseClient.js";
|
|
2
2
|
import * as DOM from "./dom/index.js";
|
|
3
|
+
import * as Files from "./files/index.js";
|
|
3
4
|
import { FileAttachment } from "./fileAttachment.js";
|
|
4
5
|
import * as Generators from "./generators/index.js";
|
|
5
6
|
import { Interpreter } from "./interpreter.js";
|
|
@@ -20,6 +21,7 @@ export const library = {
|
|
|
20
21
|
Interpreter: () => Interpreter,
|
|
21
22
|
Mutable: () => Mutable,
|
|
22
23
|
Promises: () => Promises, // deprecated!
|
|
24
|
+
Files: () => Files, // deprecated!
|
|
23
25
|
DOM: () => DOM, // deprecated!
|
|
24
26
|
require: () => require, // deprecated!
|
|
25
27
|
__ojs_observer: () => () => new Observer(),
|