@signaldb/opfs 1.0.0 → 1.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.
- package/dist/index.mjs +39 -33
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -2
package/dist/index.mjs
CHANGED
|
@@ -1,49 +1,55 @@
|
|
|
1
|
-
import { createPersistenceAdapter as
|
|
2
|
-
function F(
|
|
3
|
-
const { serialize:
|
|
4
|
-
let
|
|
1
|
+
import { createPersistenceAdapter as h } from "@signaldb/core";
|
|
2
|
+
function F(g, u) {
|
|
3
|
+
const { serialize: w = JSON.stringify, deserialize: p = JSON.parse } = u || {};
|
|
4
|
+
let a = null;
|
|
5
5
|
async function f() {
|
|
6
|
-
const
|
|
7
|
-
return
|
|
6
|
+
const c = await (await (await navigator.storage.getDirectory()).getFileHandle(g, { create: !0 })).getFile().then((l) => l.text());
|
|
7
|
+
return p(c || "[]");
|
|
8
8
|
}
|
|
9
|
-
return
|
|
9
|
+
return h({
|
|
10
10
|
async register(r) {
|
|
11
|
-
await (await navigator.storage.getDirectory()).getFileHandle(
|
|
11
|
+
await (await navigator.storage.getDirectory()).getFileHandle(g, { create: !0 }), r();
|
|
12
12
|
},
|
|
13
13
|
async load() {
|
|
14
|
-
return
|
|
14
|
+
return a && await a, { items: await f() };
|
|
15
15
|
},
|
|
16
|
-
async save(r, { added:
|
|
17
|
-
|
|
18
|
-
const d = await (await navigator.storage.getDirectory()).getFileHandle(
|
|
19
|
-
if (
|
|
20
|
-
const
|
|
21
|
-
await
|
|
16
|
+
async save(r, { added: s, modified: c, removed: l }) {
|
|
17
|
+
a && await a;
|
|
18
|
+
const d = await (await navigator.storage.getDirectory()).getFileHandle(g, { create: !0 });
|
|
19
|
+
if (s.length === 0 && c.length === 0 && l.length === 0) {
|
|
20
|
+
const n = await d.createWritable();
|
|
21
|
+
await n.write(w(r)), await n.close(), await a;
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
const t =
|
|
26
|
-
return
|
|
27
|
-
t.
|
|
28
|
-
}), s.forEach((a) => {
|
|
29
|
-
const n = t.findIndex(({ id: w }) => w === a.id);
|
|
24
|
+
a = f().then((n) => {
|
|
25
|
+
const t = [...n];
|
|
26
|
+
return s.forEach((e) => {
|
|
27
|
+
const i = t.findIndex(({ id: o }) => o === e.id);
|
|
30
28
|
/* istanbul ignore if -- @preserve */
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
if (i !== -1) {
|
|
30
|
+
t[i] = e;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
t.push(e);
|
|
34
|
+
}), c.forEach((e) => {
|
|
35
|
+
const i = t.findIndex(({ id: o }) => o === e.id);
|
|
36
36
|
/* istanbul ignore if -- @preserve */
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if (i === -1) {
|
|
38
|
+
t.push(e);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
t[i] = e;
|
|
42
|
+
}), l.forEach((e) => {
|
|
43
|
+
const i = t.findIndex(({ id: o }) => o === e.id);
|
|
44
|
+
/* istanbul ignore if -- @preserve */
|
|
45
|
+
i !== -1 && t.splice(i, 1);
|
|
40
46
|
}), t;
|
|
41
|
-
}).then(async (
|
|
47
|
+
}).then(async (n) => {
|
|
42
48
|
const t = await d.createWritable();
|
|
43
|
-
await t.write(
|
|
49
|
+
await t.write(w(n)), await t.close();
|
|
44
50
|
}).then(() => {
|
|
45
|
-
|
|
46
|
-
}), await
|
|
51
|
+
a = null;
|
|
52
|
+
}), await a;
|
|
47
53
|
}
|
|
48
54
|
});
|
|
49
55
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { createPersistenceAdapter } from '@signaldb/core';\n/**\n * Creates a persistence adapter for managing a SignalDB collection using the\n * Origin Private File System (OPFS). This adapter allows data to be stored and managed\n * directly in the browser's file system with support for customizable serialization\n * and deserialization.\n * @template T - The type of the items in the collection.\n * @template I - The type of the unique identifier for the items.\n * @param filename - The name of the file in OPFS where data will be stored.\n * @param options - Optional configuration for serialization and deserialization.\n * @param options.serialize - A function to serialize items to a string (default: `JSON.stringify`).\n * @param options.deserialize - A function to deserialize a string into items (default: `JSON.parse`).\n * @returns A SignalDB persistence adapter for managing data in OPFS.\n * @example\n * import createOPFSAdapter from './createOPFSAdapter';\n * import { Collection } from '@signaldb/core';\n *\n * const adapter = createOPFSAdapter('myCollection.json', {\n * serialize: (items) => JSON.stringify(items, null, 2), // Pretty-print JSON\n * deserialize: (itemsString) => JSON.parse(itemsString), // Default JSON parse\n * });\n *\n * const collection = new Collection({\n * persistence: adapter,\n * });\n *\n * // Perform operations on the collection, and changes will be reflected in the OPFS file.\n */\nexport default function createOPFSAdapter(filename, options) {\n const { serialize = JSON.stringify, deserialize = JSON.parse } = options || {};\n let savePromise = null;\n async function getItems() {\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n const contents = await existingFileHandle.getFile().then(
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { createPersistenceAdapter } from '@signaldb/core';\n/**\n * Creates a persistence adapter for managing a SignalDB collection using the\n * Origin Private File System (OPFS). This adapter allows data to be stored and managed\n * directly in the browser's file system with support for customizable serialization\n * and deserialization.\n * @template T - The type of the items in the collection.\n * @template I - The type of the unique identifier for the items.\n * @param filename - The name of the file in OPFS where data will be stored.\n * @param options - Optional configuration for serialization and deserialization.\n * @param options.serialize - A function to serialize items to a string (default: `JSON.stringify`).\n * @param options.deserialize - A function to deserialize a string into items (default: `JSON.parse`).\n * @returns A SignalDB persistence adapter for managing data in OPFS.\n * @example\n * import createOPFSAdapter from './createOPFSAdapter';\n * import { Collection } from '@signaldb/core';\n *\n * const adapter = createOPFSAdapter('myCollection.json', {\n * serialize: (items) => JSON.stringify(items, null, 2), // Pretty-print JSON\n * deserialize: (itemsString) => JSON.parse(itemsString), // Default JSON parse\n * });\n *\n * const collection = new Collection({\n * persistence: adapter,\n * });\n *\n * // Perform operations on the collection, and changes will be reflected in the OPFS file.\n */\nexport default function createOPFSAdapter(filename, options) {\n const { serialize = JSON.stringify, deserialize = JSON.parse } = options || {};\n let savePromise = null;\n /**\n * Retrieves the items from the OPFS file.\n * @returns A promise that resolves to an array of items.\n */\n async function getItems() {\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n const contents = await existingFileHandle.getFile().then(value => value.text());\n return deserialize(contents || '[]');\n }\n return createPersistenceAdapter({\n async register(onChange) {\n const opfsRoot = await navigator.storage.getDirectory();\n await opfsRoot.getFileHandle(filename, { create: true });\n void onChange();\n },\n async load() {\n if (savePromise)\n await savePromise;\n const items = await getItems();\n return { items };\n },\n async save(_items, { added, modified, removed }) {\n if (savePromise)\n await savePromise;\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n if (added.length === 0 && modified.length === 0 && removed.length === 0) {\n const writeStream = await existingFileHandle.createWritable();\n await writeStream.write(serialize(_items));\n await writeStream.close();\n await savePromise;\n return;\n }\n savePromise = getItems()\n .then((currentItems) => {\n const items = [...currentItems];\n added.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index !== -1) {\n items[index] = item;\n return;\n }\n items.push(item);\n });\n modified.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index === -1) {\n items.push(item);\n return;\n }\n items[index] = item;\n });\n removed.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index === -1)\n return;\n items.splice(index, 1);\n });\n return items;\n })\n .then(async (items) => {\n const writeStream = await existingFileHandle.createWritable();\n await writeStream.write(serialize(items));\n await writeStream.close();\n })\n .then(() => {\n savePromise = null;\n });\n await savePromise;\n },\n });\n}\n"],"names":["createOPFSAdapter","filename","options","serialize","deserialize","savePromise","getItems","contents","value","createPersistenceAdapter","onChange","_items","added","modified","removed","existingFileHandle","writeStream","currentItems","items","item","index","id"],"mappings":";AA4BwB,SAAAA,EAAkBC,GAAUC,GAAS;AACnD,QAAA,EAAE,WAAAC,IAAY,KAAK,WAAW,aAAAC,IAAc,KAAK,UAAUF,KAAW,CAAC;AAC7E,MAAIG,IAAc;AAKlB,iBAAeC,IAAW;AAGhB,UAAAC,IAAW,OADU,OADV,MAAM,UAAU,QAAQ,aAAa,GACZ,cAAcN,GAAU,EAAE,QAAQ,IAAM,GACxC,UAAU,KAAK,CAAAO,MAASA,EAAM,MAAM;AACvE,WAAAJ,EAAYG,KAAY,IAAI;AAAA,EAAA;AAEvC,SAAOE,EAAyB;AAAA,IAC5B,MAAM,SAASC,GAAU;AAErB,aADiB,MAAM,UAAU,QAAQ,aAAa,GACvC,cAAcT,GAAU,EAAE,QAAQ,IAAM,GAClDS,EAAS;AAAA,IAClB;AAAA,IACA,MAAM,OAAO;AACL,aAAAL,KACM,MAAAA,GAEH,EAAE,OADK,MAAMC,EAAS,EACd;AAAA,IACnB;AAAA,IACA,MAAM,KAAKK,GAAQ,EAAE,OAAAC,GAAO,UAAAC,GAAU,SAAAC,KAAW;AACzC,MAAAT,KACM,MAAAA;AAEJ,YAAAU,IAAqB,OADV,MAAM,UAAU,QAAQ,aAAa,GACZ,cAAcd,GAAU,EAAE,QAAQ,IAAM;AAC9E,UAAAW,EAAM,WAAW,KAAKC,EAAS,WAAW,KAAKC,EAAQ,WAAW,GAAG;AAC/D,cAAAE,IAAc,MAAMD,EAAmB,eAAe;AAC5D,cAAMC,EAAY,MAAMb,EAAUQ,CAAM,CAAC,GACzC,MAAMK,EAAY,MAAM,GAClB,MAAAX;AACN;AAAA,MAAA;AAEJ,MAAAA,IAAcC,EAAS,EAClB,KAAK,CAACW,MAAiB;AAClB,cAAAC,IAAQ,CAAC,GAAGD,CAAY;AACxB,eAAAL,EAAA,QAAQ,CAACO,MAAS;AACd,gBAAAC,IAAQF,EAAM,UAAU,CAAC,EAAE,IAAAG,QAASA,MAAOF,EAAK,EAAE;AAAA,UAAA;AAExD,cAAIC,MAAU,IAAI;AACd,YAAAF,EAAME,CAAK,IAAID;AACf;AAAA,UAAA;AAEJ,UAAAD,EAAM,KAAKC,CAAI;AAAA,QAAA,CAClB,GACQN,EAAA,QAAQ,CAACM,MAAS;AACjB,gBAAAC,IAAQF,EAAM,UAAU,CAAC,EAAE,IAAAG,QAASA,MAAOF,EAAK,EAAE;AAAA,UAAA;AAExD,cAAIC,MAAU,IAAI;AACd,YAAAF,EAAM,KAAKC,CAAI;AACf;AAAA,UAAA;AAEJ,UAAAD,EAAME,CAAK,IAAID;AAAA,QAAA,CAClB,GACOL,EAAA,QAAQ,CAACK,MAAS;AAChB,gBAAAC,IAAQF,EAAM,UAAU,CAAC,EAAE,IAAAG,QAASA,MAAOF,EAAK,EAAE;AAAA,UAAA;AAExD,UAAIC,MAAU,MAERF,EAAA,OAAOE,GAAO,CAAC;AAAA,QAAA,CACxB,GACMF;AAAA,MAAA,CACV,EACI,KAAK,OAAOA,MAAU;AACjB,cAAAF,IAAc,MAAMD,EAAmB,eAAe;AAC5D,cAAMC,EAAY,MAAMb,EAAUe,CAAK,CAAC,GACxC,MAAMF,EAAY,MAAM;AAAA,MAAA,CAC3B,EACI,KAAK,MAAM;AACE,QAAAX,IAAA;AAAA,MAAA,CACjB,GACK,MAAAA;AAAA,IAAA;AAAA,EACV,CACH;AACL;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(a,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("@signaldb/core")):typeof define=="function"&&define.amd?define(["@signaldb/core"],o):(a=typeof globalThis<"u"?globalThis:a||self,a.SignalDB=o(a.core))})(this,function(a){"use strict";function o(u,h){const{serialize:g=JSON.stringify,deserialize:x=JSON.parse}=h||{};let i=null;async function w(){const d=await(await(await navigator.storage.getDirectory()).getFileHandle(u,{create:!0})).getFile().then(f=>f.text());return x(d||"[]")}return a.createPersistenceAdapter({async register(s){await(await navigator.storage.getDirectory()).getFileHandle(u,{create:!0}),s()},async load(){return i&&await i,{items:await w()}},async save(s,{added:l,modified:d,removed:f}){i&&await i;const p=await(await navigator.storage.getDirectory()).getFileHandle(u,{create:!0});if(l.length===0&&d.length===0&&f.length===0){const r=await p.createWritable();await r.write(g(s)),await r.close(),await i;return}i=w().then(r=>{const e=[...r];return l.forEach(t=>{const n=e.findIndex(({id:c})=>c===t.id);/* istanbul ignore if -- @preserve */if(n!==-1){e[n]=t;return}e.push(t)}),d.forEach(t=>{const n=e.findIndex(({id:c})=>c===t.id);/* istanbul ignore if -- @preserve */if(n===-1){e.push(t);return}e[n]=t}),f.forEach(t=>{const n=e.findIndex(({id:c})=>c===t.id);/* istanbul ignore if -- @preserve */n!==-1&&e.splice(n,1)}),e}).then(async r=>{const e=await p.createWritable();await e.write(g(r)),await e.close()}).then(()=>{i=null}),await i}})}return o});
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { createPersistenceAdapter } from '@signaldb/core';\n/**\n * Creates a persistence adapter for managing a SignalDB collection using the\n * Origin Private File System (OPFS). This adapter allows data to be stored and managed\n * directly in the browser's file system with support for customizable serialization\n * and deserialization.\n * @template T - The type of the items in the collection.\n * @template I - The type of the unique identifier for the items.\n * @param filename - The name of the file in OPFS where data will be stored.\n * @param options - Optional configuration for serialization and deserialization.\n * @param options.serialize - A function to serialize items to a string (default: `JSON.stringify`).\n * @param options.deserialize - A function to deserialize a string into items (default: `JSON.parse`).\n * @returns A SignalDB persistence adapter for managing data in OPFS.\n * @example\n * import createOPFSAdapter from './createOPFSAdapter';\n * import { Collection } from '@signaldb/core';\n *\n * const adapter = createOPFSAdapter('myCollection.json', {\n * serialize: (items) => JSON.stringify(items, null, 2), // Pretty-print JSON\n * deserialize: (itemsString) => JSON.parse(itemsString), // Default JSON parse\n * });\n *\n * const collection = new Collection({\n * persistence: adapter,\n * });\n *\n * // Perform operations on the collection, and changes will be reflected in the OPFS file.\n */\nexport default function createOPFSAdapter(filename, options) {\n const { serialize = JSON.stringify, deserialize = JSON.parse } = options || {};\n let savePromise = null;\n async function getItems() {\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n const contents = await existingFileHandle.getFile().then(
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { createPersistenceAdapter } from '@signaldb/core';\n/**\n * Creates a persistence adapter for managing a SignalDB collection using the\n * Origin Private File System (OPFS). This adapter allows data to be stored and managed\n * directly in the browser's file system with support for customizable serialization\n * and deserialization.\n * @template T - The type of the items in the collection.\n * @template I - The type of the unique identifier for the items.\n * @param filename - The name of the file in OPFS where data will be stored.\n * @param options - Optional configuration for serialization and deserialization.\n * @param options.serialize - A function to serialize items to a string (default: `JSON.stringify`).\n * @param options.deserialize - A function to deserialize a string into items (default: `JSON.parse`).\n * @returns A SignalDB persistence adapter for managing data in OPFS.\n * @example\n * import createOPFSAdapter from './createOPFSAdapter';\n * import { Collection } from '@signaldb/core';\n *\n * const adapter = createOPFSAdapter('myCollection.json', {\n * serialize: (items) => JSON.stringify(items, null, 2), // Pretty-print JSON\n * deserialize: (itemsString) => JSON.parse(itemsString), // Default JSON parse\n * });\n *\n * const collection = new Collection({\n * persistence: adapter,\n * });\n *\n * // Perform operations on the collection, and changes will be reflected in the OPFS file.\n */\nexport default function createOPFSAdapter(filename, options) {\n const { serialize = JSON.stringify, deserialize = JSON.parse } = options || {};\n let savePromise = null;\n /**\n * Retrieves the items from the OPFS file.\n * @returns A promise that resolves to an array of items.\n */\n async function getItems() {\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n const contents = await existingFileHandle.getFile().then(value => value.text());\n return deserialize(contents || '[]');\n }\n return createPersistenceAdapter({\n async register(onChange) {\n const opfsRoot = await navigator.storage.getDirectory();\n await opfsRoot.getFileHandle(filename, { create: true });\n void onChange();\n },\n async load() {\n if (savePromise)\n await savePromise;\n const items = await getItems();\n return { items };\n },\n async save(_items, { added, modified, removed }) {\n if (savePromise)\n await savePromise;\n const opfsRoot = await navigator.storage.getDirectory();\n const existingFileHandle = await opfsRoot.getFileHandle(filename, { create: true });\n if (added.length === 0 && modified.length === 0 && removed.length === 0) {\n const writeStream = await existingFileHandle.createWritable();\n await writeStream.write(serialize(_items));\n await writeStream.close();\n await savePromise;\n return;\n }\n savePromise = getItems()\n .then((currentItems) => {\n const items = [...currentItems];\n added.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index !== -1) {\n items[index] = item;\n return;\n }\n items.push(item);\n });\n modified.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index === -1) {\n items.push(item);\n return;\n }\n items[index] = item;\n });\n removed.forEach((item) => {\n const index = items.findIndex(({ id }) => id === item.id);\n /* istanbul ignore if -- @preserve */\n if (index === -1)\n return;\n items.splice(index, 1);\n });\n return items;\n })\n .then(async (items) => {\n const writeStream = await existingFileHandle.createWritable();\n await writeStream.write(serialize(items));\n await writeStream.close();\n })\n .then(() => {\n savePromise = null;\n });\n await savePromise;\n },\n });\n}\n"],"names":["createOPFSAdapter","filename","options","serialize","deserialize","savePromise","getItems","contents","value","createPersistenceAdapter","onChange","_items","added","modified","removed","existingFileHandle","writeStream","currentItems","items","item","index","id"],"mappings":"4QA4BwB,SAAAA,EAAkBC,EAAUC,EAAS,CACnD,KAAA,CAAE,UAAAC,EAAY,KAAK,UAAW,YAAAC,EAAc,KAAK,OAAUF,GAAW,CAAC,EAC7E,IAAIG,EAAc,KAKlB,eAAeC,GAAW,CAGhB,MAAAC,EAAW,MADU,MADV,MAAM,UAAU,QAAQ,aAAa,GACZ,cAAcN,EAAU,CAAE,OAAQ,GAAM,GACxC,UAAU,KAAKO,GAASA,EAAM,MAAM,EACvE,OAAAJ,EAAYG,GAAY,IAAI,CAAA,CAEvC,OAAOE,2BAAyB,CAC5B,MAAM,SAASC,EAAU,CAErB,MADiB,MAAM,UAAU,QAAQ,aAAa,GACvC,cAAcT,EAAU,CAAE,OAAQ,GAAM,EAClDS,EAAS,CAClB,EACA,MAAM,MAAO,CACL,OAAAL,GACM,MAAAA,EAEH,CAAE,MADK,MAAMC,EAAS,CACd,CACnB,EACA,MAAM,KAAKK,EAAQ,CAAE,MAAAC,EAAO,SAAAC,EAAU,QAAAC,GAAW,CACzCT,GACM,MAAAA,EAEJ,MAAAU,EAAqB,MADV,MAAM,UAAU,QAAQ,aAAa,GACZ,cAAcd,EAAU,CAAE,OAAQ,GAAM,EAC9E,GAAAW,EAAM,SAAW,GAAKC,EAAS,SAAW,GAAKC,EAAQ,SAAW,EAAG,CAC/D,MAAAE,EAAc,MAAMD,EAAmB,eAAe,EAC5D,MAAMC,EAAY,MAAMb,EAAUQ,CAAM,CAAC,EACzC,MAAMK,EAAY,MAAM,EAClB,MAAAX,EACN,MAAA,CAEJA,EAAcC,EAAS,EAClB,KAAMW,GAAiB,CAClB,MAAAC,EAAQ,CAAC,GAAGD,CAAY,EACxB,OAAAL,EAAA,QAASO,GAAS,CACd,MAAAC,EAAQF,EAAM,UAAU,CAAC,CAAE,GAAAG,KAASA,IAAOF,EAAK,EAAE,EAAA,qCAExD,GAAIC,IAAU,GAAI,CACdF,EAAME,CAAK,EAAID,EACf,MAAA,CAEJD,EAAM,KAAKC,CAAI,CAAA,CAClB,EACQN,EAAA,QAASM,GAAS,CACjB,MAAAC,EAAQF,EAAM,UAAU,CAAC,CAAE,GAAAG,KAASA,IAAOF,EAAK,EAAE,EAAA,qCAExD,GAAIC,IAAU,GAAI,CACdF,EAAM,KAAKC,CAAI,EACf,MAAA,CAEJD,EAAME,CAAK,EAAID,CAAA,CAClB,EACOL,EAAA,QAASK,GAAS,CAChB,MAAAC,EAAQF,EAAM,UAAU,CAAC,CAAE,GAAAG,KAASA,IAAOF,EAAK,EAAE,EAAA,qCAEpDC,IAAU,IAERF,EAAA,OAAOE,EAAO,CAAC,CAAA,CACxB,EACMF,CAAA,CACV,EACI,KAAK,MAAOA,GAAU,CACjB,MAAAF,EAAc,MAAMD,EAAmB,eAAe,EAC5D,MAAMC,EAAY,MAAMb,EAAUe,CAAK,CAAC,EACxC,MAAMF,EAAY,MAAM,CAAA,CAC3B,EACI,KAAK,IAAM,CACEX,EAAA,IAAA,CACjB,EACK,MAAAA,CAAA,CACV,CACH,CACL"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/opfs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "rimraf dist && vite build"
|
|
6
|
+
"build": "rimraf dist && vite build",
|
|
7
|
+
"analyze-bundle": "bundle-analyzer ./dist --upload-token=$BUNDLE_ANALYZER_UPLOAD_TOKEN --bundle-name=@signaldb/opfs",
|
|
8
|
+
"test": "vitest"
|
|
7
9
|
},
|
|
8
10
|
"repository": {
|
|
9
11
|
"type": "git",
|