Skip to content

Commit 0085f88

Browse files
authored
@observablehq/inputs 0.10.1 (#264)
* @observablehq/inputs 0.10.1 * @observablehq/plot 0.2.8
1 parent 8630a73 commit 0085f88

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/dependencies.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import dependency from "./dependency.js";
2-
export const d3 = dependency("d3", "7.0.4", "dist/d3.min.js");
3-
export const inputs = dependency("@observablehq/inputs", "0.9.7", "dist/inputs.min.js");
4-
export const plot = dependency("@observablehq/plot", "0.2.7", "dist/plot.umd.min.js");
2+
export const d3 = dependency("d3", "7.1.0", "dist/d3.min.js");
3+
export const inputs = dependency("@observablehq/inputs", "0.10.1", "dist/inputs.min.js");
4+
export const plot = dependency("@observablehq/plot", "0.2.8", "dist/plot.umd.min.js");
55
export const graphviz = dependency("@observablehq/graphviz", "0.2.1", "dist/graphviz.min.js");
66
export const highlight = dependency("@observablehq/highlight.js", "2.0.0", "highlight.min.js");
77
export const katex = dependency("@observablehq/katex", "0.11.1", "dist/katex.min.js");

src/fileAttachment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function dsv(file, delimiter, {array = false, typed = false} = {}) {
1717
: (array ? csvParseRows : csvParse))(text, typed && autoType);
1818
}
1919

20-
class AbstractFile {
20+
export class AbstractFile {
2121
constructor(name) {
2222
Object.defineProperty(this, "name", {value: name, enumerable: true});
2323
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export {default as FileAttachments} from "./fileAttachment.js";
1+
export {default as FileAttachments, AbstractFile} from "./fileAttachment.js";
22
export {default as Library} from "./library.js";

src/library.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {require as requireDefault} from "d3-require";
22
import DOM from "./dom/index.js";
33
import Files from "./files/index.js";
4-
import {NoFileAttachments} from "./fileAttachment.js";
4+
import {AbstractFile, NoFileAttachments} from "./fileAttachment.js";
55
import Generators from "./generators/index.js";
66
import html from "./html.js";
77
import md from "./md.js";
@@ -22,7 +22,7 @@ export default Object.assign(function Library(resolver) {
2222
Object.defineProperties(this, properties({
2323
FileAttachment: () => NoFileAttachments,
2424
Arrow: () => require(arrow.resolve()),
25-
Inputs: () => require(inputs.resolve()),
25+
Inputs: () => require(inputs.resolve()).then(Inputs => ({...Inputs, file: Inputs.fileOf(AbstractFile)})),
2626
Mutable: () => Mutable,
2727
Plot: () => require(plot.resolve()),
2828
SQLite: () => SQLite(require),

0 commit comments

Comments
 (0)