@difizen/libro-common 0.1.18 → 0.1.19

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/index.d.ts CHANGED
@@ -9,4 +9,5 @@ export * from './polling/index.js';
9
9
  export * from './display-wrapper.js';
10
10
  export * from './protocol/index.js';
11
11
  export * from './dom.js';
12
+ export * from './mime.js';
12
13
  //# sourceMappingURL=index.d.ts.map
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
package/es/index.js CHANGED
@@ -8,4 +8,5 @@ export * from "./path.js";
8
8
  export * from "./polling/index.js";
9
9
  export * from "./display-wrapper.js";
10
10
  export * from "./protocol/index.js";
11
- export * from "./dom.js";
11
+ export * from "./dom.js";
12
+ export * from "./mime.js";
package/es/mime.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export declare const MIME: {
2
+ readonly text: "text/plain";
3
+ readonly binary: "application/octet-stream";
4
+ readonly unknown: "application/unknown";
5
+ readonly markdown: "text/markdown";
6
+ readonly latex: "text/latex";
7
+ readonly uriList: "text/uri-list";
8
+ readonly json: "application/json";
9
+ readonly python: "text/x-python";
10
+ readonly prompt: "application/vnd.libro.prompt+json";
11
+ readonly odpssql: "application/vnd.libro.sql+json";
12
+ };
13
+ //# sourceMappingURL=mime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mime.d.ts","sourceRoot":"","sources":["../src/mime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;CAWP,CAAC"}
package/es/mime.js ADDED
@@ -0,0 +1,12 @@
1
+ export var MIME = {
2
+ text: 'text/plain',
3
+ binary: 'application/octet-stream',
4
+ unknown: 'application/unknown',
5
+ markdown: 'text/markdown',
6
+ latex: 'text/latex',
7
+ uriList: 'text/uri-list',
8
+ json: 'application/json',
9
+ python: 'text/x-python',
10
+ prompt: 'application/vnd.libro.prompt+json',
11
+ odpssql: 'application/vnd.libro.sql+json'
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-common",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
package/src/index.ts CHANGED
@@ -9,3 +9,4 @@ export * from './polling/index.js';
9
9
  export * from './display-wrapper.js';
10
10
  export * from './protocol/index.js';
11
11
  export * from './dom.js';
12
+ export * from './mime.js';
package/src/mime.ts ADDED
@@ -0,0 +1,12 @@
1
+ export const MIME = {
2
+ text: 'text/plain',
3
+ binary: 'application/octet-stream',
4
+ unknown: 'application/unknown',
5
+ markdown: 'text/markdown',
6
+ latex: 'text/latex',
7
+ uriList: 'text/uri-list',
8
+ json: 'application/json',
9
+ python: 'text/x-python',
10
+ prompt: 'application/vnd.libro.prompt+json',
11
+ odpssql: 'application/vnd.libro.sql+json',
12
+ } as const;