@difizen/libro-common 0.0.2-alpha.0 → 0.1.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/es/utils.d.ts DELETED
@@ -1,57 +0,0 @@
1
- import type { PartialJSONObject, PartialJSONValue } from './json.js';
2
- import type { ICell, ICodeCell, IMarkdownCell, IRawCell } from './protocol/cell-protocol.js';
3
- import type { MultilineString } from './protocol/notebook-protocol.js';
4
- import type { IDisplayData, IDisplayUpdate, IError, IExecuteResult, IOutput, IStream } from './protocol/output-protocol.js';
5
- /**
6
- * Validate a mime type/value pair.
7
- *
8
- * @param type - The mimetype name.
9
- *
10
- * @param value - The value associated with the type.
11
- *
12
- * @returns Whether the type/value pair are valid.
13
- */
14
- export declare function validateMimeValue(type: string, value: MultilineString | PartialJSONObject): boolean;
15
- /**
16
- * join multiline string, normalizing line endings to \n
17
- * @param value
18
- * @returns
19
- */
20
- export declare function concatMultilineString(value: MultilineString): string;
21
- /**
22
- * Test whether a cell is a raw cell.
23
- */
24
- export declare function isRaw(cell: ICell): cell is IRawCell;
25
- /**
26
- * Test whether a cell is a markdown cell.
27
- */
28
- export declare function isMarkdown(cell: ICell): cell is IMarkdownCell;
29
- /**
30
- * Test whether a cell is a code cell.
31
- */
32
- export declare function isCode(cell: ICell): cell is ICodeCell;
33
- /**
34
- * Test whether a cell is a code cell.
35
- */
36
- export declare function isOutput(output: PartialJSONValue | IOutput[] | undefined): output is IOutput[];
37
- /**
38
- * Test whether an output is an execute result.
39
- */
40
- export declare function isExecuteResult(output: IOutput): output is IExecuteResult;
41
- /**
42
- * Test whether an output is from display data.
43
- */
44
- export declare function isDisplayData(output: IOutput): output is IDisplayData;
45
- /**
46
- * Test whether an output is from updated display data.
47
- */
48
- export declare function isDisplayUpdate(output: IOutput): output is IDisplayUpdate;
49
- /**
50
- * Test whether an output is from a stream.
51
- */
52
- export declare function isStream(output: IOutput): output is IStream;
53
- /**
54
- * Test whether an output is an error.
55
- */
56
- export declare function isError(output: IOutput): output is IError;
57
- //# sourceMappingURL=utils.d.ts.map
package/es/utils.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACT,aAAa,EACb,QAAQ,EACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,MAAM,EACN,cAAc,EACd,OAAO,EACP,OAAO,EACR,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,eAAe,GAAG,iBAAiB,GACzC,OAAO,CAoCT;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAMpE;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,QAAQ,CAEnD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,aAAa,CAE7D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,SAAS,CAErD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,gBAAgB,GAAG,OAAO,EAAE,GAAG,SAAS,GAC/C,MAAM,IAAI,OAAO,EAAE,CAErB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MA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