@aidc-toolkit/core 1.0.40-beta → 1.0.41

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.
Files changed (77) hide show
  1. package/dist/browser-app-data-storage-G62WSQ5Z.js +1 -0
  2. package/dist/chunk-FIUBVWNN.js +1 -0
  3. package/dist/file-app-data-storage-Y5AB6YOB.js +1 -0
  4. package/dist/index.cjs +18 -0
  5. package/dist/index.d.cts +761 -0
  6. package/dist/index.d.ts +761 -29
  7. package/dist/index.js +2 -11
  8. package/package.json +4 -4
  9. package/tsconfig-src.json +7 -1
  10. package/tsconfig-src.tsbuildinfo +1 -0
  11. package/tsconfig-tsup.json +7 -0
  12. package/dist/app-data-storage.d.ts +0 -118
  13. package/dist/app-data-storage.d.ts.map +0 -1
  14. package/dist/app-data-storage.js +0 -117
  15. package/dist/app-data-storage.js.map +0 -1
  16. package/dist/app-data.d.ts +0 -26
  17. package/dist/app-data.d.ts.map +0 -1
  18. package/dist/app-data.js +0 -79
  19. package/dist/app-data.js.map +0 -1
  20. package/dist/browser-app-data-storage.d.ts +0 -26
  21. package/dist/browser-app-data-storage.d.ts.map +0 -1
  22. package/dist/browser-app-data-storage.js +0 -34
  23. package/dist/browser-app-data-storage.js.map +0 -1
  24. package/dist/cache.d.ts +0 -58
  25. package/dist/cache.d.ts.map +0 -1
  26. package/dist/cache.js +0 -12
  27. package/dist/cache.js.map +0 -1
  28. package/dist/file-app-data-storage.d.ts +0 -26
  29. package/dist/file-app-data-storage.d.ts.map +0 -1
  30. package/dist/file-app-data-storage.js +0 -40
  31. package/dist/file-app-data-storage.js.map +0 -1
  32. package/dist/hyperlink.d.ts +0 -18
  33. package/dist/hyperlink.d.ts.map +0 -1
  34. package/dist/hyperlink.js +0 -2
  35. package/dist/hyperlink.js.map +0 -1
  36. package/dist/index.d.ts.map +0 -1
  37. package/dist/index.js.map +0 -1
  38. package/dist/local-app-data-storage.d.ts +0 -8
  39. package/dist/local-app-data-storage.d.ts.map +0 -1
  40. package/dist/local-app-data-storage.js +0 -11
  41. package/dist/local-app-data-storage.js.map +0 -1
  42. package/dist/locale/en/locale-resources.d.ts +0 -10
  43. package/dist/locale/en/locale-resources.d.ts.map +0 -1
  44. package/dist/locale/en/locale-resources.js +0 -9
  45. package/dist/locale/en/locale-resources.js.map +0 -1
  46. package/dist/locale/fr/locale-resources.d.ts +0 -10
  47. package/dist/locale/fr/locale-resources.d.ts.map +0 -1
  48. package/dist/locale/fr/locale-resources.js +0 -9
  49. package/dist/locale/fr/locale-resources.js.map +0 -1
  50. package/dist/locale/i18n.d.ts +0 -83
  51. package/dist/locale/i18n.d.ts.map +0 -1
  52. package/dist/locale/i18n.js +0 -157
  53. package/dist/locale/i18n.js.map +0 -1
  54. package/dist/logger.d.ts +0 -136
  55. package/dist/logger.d.ts.map +0 -1
  56. package/dist/logger.js +0 -256
  57. package/dist/logger.js.map +0 -1
  58. package/dist/parse-version.d.ts +0 -36
  59. package/dist/parse-version.d.ts.map +0 -1
  60. package/dist/parse-version.js +0 -23
  61. package/dist/parse-version.js.map +0 -1
  62. package/dist/remote-app-data-storage.d.ts +0 -18
  63. package/dist/remote-app-data-storage.d.ts.map +0 -1
  64. package/dist/remote-app-data-storage.js +0 -37
  65. package/dist/remote-app-data-storage.js.map +0 -1
  66. package/dist/type-helper.d.ts +0 -115
  67. package/dist/type-helper.d.ts.map +0 -1
  68. package/dist/type-helper.js +0 -163
  69. package/dist/type-helper.js.map +0 -1
  70. package/dist/type.d.ts +0 -111
  71. package/dist/type.d.ts.map +0 -1
  72. package/dist/type.js +0 -2
  73. package/dist/type.js.map +0 -1
  74. package/dist/website-url.d.ts +0 -29
  75. package/dist/website-url.d.ts.map +0 -1
  76. package/dist/website-url.js +0 -60
  77. package/dist/website-url.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import{a as W,b as H,c as T,d as z}from"./chunk-FIUBVWNN.js";function x(e,t,...o){return Object.fromEntries(Object.entries(t).filter(([r])=>o.includes(r)!==e))}function K(e,...t){return x(!0,e,...t)}function P(e,...t){return x(!1,e,...t)}function G(e,t){return K(e,...Object.keys(t))}function J(e,t){return P(e,...Object.keys(t))}function X(e,t){return t in e?{[t]:e[t]}:{}}function Y(e){return e==null}import{Logger as _}from"tslog";import j from"i18next";import N from"i18next-browser-languagedetector";import S from"i18next-cli-language-detector";var h={Logger:{unknownLogLevel:'Unknown log level "{{logLevel}}"'},RemoteAppDataStorage:{httpError:"HTTP error {{status, number}} retrieving file"}};var y={Logger:{unknownLogLevel:"Niveau de journalisation inconnu \xAB{{logLevel}}\xBB"},RemoteAppDataStorage:{httpError:"Erreur HTTP {{status, number}} lors de la r\xE9cup\xE9ration du fichier"}};var L={CLI:0,Server:1,Browser:2};function O(e){return typeof e=="string"?e.split(" ").map(t=>/[a-z]/u.test(t)?t.toLowerCase():t).join(" "):String(e)}var C="aidct_core",V={en:{aidct_core:h},fr:{aidct_core:y}},c=j.createInstance();async function v(e,t,o,r,n,...s){if(!e.isInitialized){let u=function(f){for(let[l,A]of Object.entries(f)){l in i||(i[l]={});let b=i[l];for(let[m,D]of Object.entries(A)){if(m in b)throw new Error(`Duplicate namespace ${m} in merged resource bundle for language ${l}`);b[m]=D}}};var a=u;let i={};u(n);for(let f of s)await f(t,o).then(u);let p;switch(t){case L.CLI:p=S;break;case L.Browser:p=N;break;default:throw new Error("Not supported")}await e.use(p).init({debug:o,defaultNS:r,resources:i,nonExplicitSupportedLngs:!0,fallbackLng:Object.keys(i)[0],detection:{caches:[]}}).then(()=>{e.services.formatter?.add("toLowerCase",O)})}return n}async function se(e,t=!1){return v(c,e,t,C,V)}var d={Silly:0,Trace:1,Debug:2,Info:3,Warn:4,Error:5,Fatal:6};function M(e){let t;if(typeof e=="string")if(e in d)t=d[e];else throw new RangeError(c.t("Logger.unknownLogLevel",{logLevel:e}));else if(e!==void 0)if(Object.values(d).includes(e))t=e;else throw new RangeError(c.t("Logger.unknownLogLevel",{logLevel:e}));else t=d.Info;return t}function ue(e,t,o){let r=M(e);return new _({hideLogPositionForProduction:r>=d.Info,...t??{},minLevel:r},o)}function g(e){let t;switch(typeof e){case"string":case"number":case"boolean":case"undefined":t=e;break;case"bigint":t=e>=Number.MIN_SAFE_INTEGER&&e<=Number.MAX_SAFE_INTEGER?Number(e):e.toString(10);break;case"object":e===null?t=e:Array.isArray(e)?t=(e.length<=10?e:[...e.slice(0,4),"...",...e.slice(-4)]).map(o=>g(o)):e instanceof Error?t=g({name:e.name,message:e.message,stack:e.stack?.split(`
2
+ `)}):t=Object.fromEntries(Object.entries(e).map(([o,r])=>[o,g(r)]));break;case"symbol":t=e.toString();break;case"function":t=`Function(${e.name})`;break}return t}var w=class{#t=new Map;#e=[];#r=0;#o=0;constructor(t,o,r){this.resize(o,r),t.attachTransport(n=>{this.#e.length>=this.#r&&this.#e.splice(0,this.#r-this.#o);let s=JSON.stringify(n);this.#e.push(s);for(let a of this.#t.values())a(s,this.#e)})}get messages(){return this.#e}get maximumLength(){return this.#r}get truncateLength(){return this.#o}addNotificationCallback(t,o){let r=!this.#t.has(t);return r&&(this.#t.set(t,o),o(void 0,this.#e)),r}removeNotificationCallback(t){this.#t.delete(t)}resize(t,o){this.#r=t,this.#o=o!==void 0?Math.min(o,Math.floor(t*.8)):Math.floor(t/2)}};function k(e){let t=/^(?<majorVersion>\d+)\.(?<minorVersion>\d+)\.(?<patchVersion>\d+)(?:-(?<preReleaseIdentifier>alpha|beta)(?:\.(?<dateTime>\d{12}))?)?$/u.exec(e)?.groups;if(t===void 0)throw new Error(`Invalid package version ${e}`);return{majorVersion:Number(t.majorVersion),minorVersion:Number(t.minorVersion),patchVersion:Number(t.patchVersion),preReleaseIdentifier:t.preReleaseIdentifier,dateTime:t.dateTime}}var R=globalThis.localStorage===void 0?import("./file-app-data-storage-Y5AB6YOB.js").then(e=>e.FileAppDataStorage):import("./browser-app-data-storage-G62WSQ5Z.js").then(e=>e.BrowserAppDataStorage);var $="http://localhost:5173",U="config",B="resources.local",ge=R.then(async e=>new e(U).read(B)).then(e=>e?.alphaURL??$),F="https://aidc-toolkit.com";function be(e,t,o,r){let n=k(e),s=n.preReleaseIdentifier,a;if(s==="alpha")a=o;else{let i=s!==void 0?`/${s}`:"",u=s!==void 0||t?`/v${n.majorVersion}.${n.minorVersion}`:"",p=r!==void 0&&r!==""?`/${r}`:"";a=`${F}${i}${u}${p}`}return a}var I=class extends T{constructor(t){super(!0,t)}async doRead(t,o){return fetch(t).then(async r=>{let n;if(r.ok)n=o===!0?new Uint8Array(await r.arrayBuffer()):await r.text();else if(r.status===404)n=void 0;else throw new RangeError(c.t("RemoteAppDataStorage.httpError",{status:r.status}));return n})}};var E=class{};export{ge as ALPHA_URL,z as AppDataStorage,E as Cache,L as I18nEnvironments,R as LocalAppDataStorage,d as LogLevels,w as MemoryTransport,T as ReadOnlyAppDataStorage,I as RemoteAppDataStorage,F as WEBSITE_BASE_URL,C as coreNS,V as coreResourceBundle,W as decodeAppData,H as encodeAppData,G as exclude,ue as getLogger,se as i18nCoreInit,v as i18nInit,c as i18nextCore,J as include,Y as isNullish,M as logLevelOf,g as loggableValue,K as omit,k as parseVersion,P as pick,X as propertyAs,be as websiteURL};
1
3
  /*!
2
4
  * Copyright © 2024-2026 Dolphin Data Development Ltd. and AIDC Toolkit
3
5
  * contributors
@@ -14,14 +16,3 @@
14
16
  * See the License for the specific language governing permissions and
15
17
  * limitations under the License.
16
18
  */
17
- export * from "./type-helper.js";
18
- export * from "./logger.js";
19
- export * from "./parse-version.js";
20
- export * from "./website-url.js";
21
- export * from "./app-data.js";
22
- export * from "./app-data-storage.js";
23
- export * from "./local-app-data-storage.js";
24
- export * from "./remote-app-data-storage.js";
25
- export * from "./cache.js";
26
- export * from "./locale/i18n.js";
27
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidc-toolkit/core",
3
- "version": "1.0.40-beta",
3
+ "version": "1.0.41",
4
4
  "description": "Core functionality for AIDC Toolkit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,14 +21,14 @@
21
21
  "scripts": {
22
22
  "lint": "eslint",
23
23
  "tsc-src": "tsc --project tsconfig-src.json",
24
- "build:non-prod": "rimraf dist && npm run tsc-src -- --declarationMap --sourceMap",
24
+ "build:non-prod": "rimraf dist tsconfig-src.tsbuildinfo && npm run tsc-src -- --declarationMap --sourceMap",
25
25
  "build:alpha": "npm run build:non-prod && tsc --project tsconfig-config.json --noEmit",
26
26
  "build:beta": "npm run build:non-prod",
27
- "build:prod": "npm run tsc-src -- --noEmit && tsup",
27
+ "build:prod": "npm run tsc-src -- --noEmit && tsup --tsconfig tsconfig-tsup.json",
28
28
  "build:doc": "npm run build:non-prod"
29
29
  },
30
30
  "devDependencies": {
31
- "@aidc-toolkit/dev": "1.0.39-beta"
31
+ "@aidc-toolkit/dev": "^1.0.40"
32
32
  },
33
33
  "dependencies": {
34
34
  "base64-js": "^1.5.1",
package/tsconfig-src.json CHANGED
@@ -2,7 +2,13 @@
2
2
  "extends": "@aidc-toolkit/dev/tsconfig-template.json",
3
3
  "include": ["./src/**/*"],
4
4
  "compilerOptions": {
5
+ // Modules.
6
+ "rootDir": "src",
7
+
5
8
  // Emit.
6
- "outDir": "dist"
9
+ "outDir": "dist",
10
+
11
+ // Projects.
12
+ "composite": true
7
13
  }
8
14
  }
@@ -0,0 +1 @@
1
+ {"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/base64-js/index.d.ts","./src/app-data.ts","./src/type.ts","./src/app-data-storage.ts","./src/browser-app-data-storage.ts","./src/cache.ts","./src/file-app-data-storage.ts","./src/hyperlink.ts","./src/type-helper.ts","./node_modules/tslog/types/internal/InspectOptions.interface.d.ts","./node_modules/tslog/types/interfaces.d.ts","./node_modules/tslog/types/BaseLogger.d.ts","./node_modules/tslog/types/index.d.ts","./node_modules/i18next/typescript/helpers.d.ts","./node_modules/i18next/typescript/options.d.ts","./node_modules/i18next/typescript/t.d.ts","./node_modules/i18next/index.d.ts","./node_modules/i18next/index.d.mts","./node_modules/i18next-browser-languagedetector/index.d.ts","./node_modules/i18next-browser-languagedetector/index.d.mts","./node_modules/i18next-cli-language-detector/dist/index.d.ts","./src/locale/en/locale-resources.ts","./src/locale/fr/locale-resources.ts","./src/locale/i18n.ts","./src/logger.ts","./src/parse-version.ts","./src/local-app-data-storage.ts","./src/website-url.ts","./src/remote-app-data-storage.ts","./src/index.ts","./src/locale/i18next.d.ts","./node_modules/@types/estree/index.d.ts","./node_modules/@types/json-schema/index.d.ts","./node_modules/@types/json5/index.d.ts","./node_modules/@types/node/compatibility/iterators.d.ts","./node_modules/@types/node/globals.typedarray.d.ts","./node_modules/@types/node/buffer.buffer.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/web-globals/abortcontroller.d.ts","./node_modules/@types/node/web-globals/blob.d.ts","./node_modules/@types/node/web-globals/console.d.ts","./node_modules/@types/node/web-globals/crypto.d.ts","./node_modules/@types/node/web-globals/domexception.d.ts","./node_modules/@types/node/web-globals/encoding.d.ts","./node_modules/@types/node/web-globals/events.d.ts","./node_modules/undici-types/utility.d.ts","./node_modules/undici-types/header.d.ts","./node_modules/undici-types/readable.d.ts","./node_modules/undici-types/fetch.d.ts","./node_modules/undici-types/formdata.d.ts","./node_modules/undici-types/connector.d.ts","./node_modules/undici-types/client-stats.d.ts","./node_modules/undici-types/client.d.ts","./node_modules/undici-types/errors.d.ts","./node_modules/undici-types/dispatcher.d.ts","./node_modules/undici-types/global-dispatcher.d.ts","./node_modules/undici-types/global-origin.d.ts","./node_modules/undici-types/pool-stats.d.ts","./node_modules/undici-types/pool.d.ts","./node_modules/undici-types/handlers.d.ts","./node_modules/undici-types/balanced-pool.d.ts","./node_modules/undici-types/h2c-client.d.ts","./node_modules/undici-types/agent.d.ts","./node_modules/undici-types/mock-interceptor.d.ts","./node_modules/undici-types/mock-call-history.d.ts","./node_modules/undici-types/mock-agent.d.ts","./node_modules/undici-types/mock-client.d.ts","./node_modules/undici-types/mock-pool.d.ts","./node_modules/undici-types/snapshot-agent.d.ts","./node_modules/undici-types/mock-errors.d.ts","./node_modules/undici-types/proxy-agent.d.ts","./node_modules/undici-types/env-http-proxy-agent.d.ts","./node_modules/undici-types/retry-handler.d.ts","./node_modules/undici-types/retry-agent.d.ts","./node_modules/undici-types/api.d.ts","./node_modules/undici-types/cache-interceptor.d.ts","./node_modules/undici-types/interceptors.d.ts","./node_modules/undici-types/util.d.ts","./node_modules/undici-types/cookies.d.ts","./node_modules/undici-types/patch.d.ts","./node_modules/undici-types/websocket.d.ts","./node_modules/undici-types/eventsource.d.ts","./node_modules/undici-types/diagnostics-channel.d.ts","./node_modules/undici-types/content-type.d.ts","./node_modules/undici-types/cache.d.ts","./node_modules/undici-types/index.d.ts","./node_modules/@types/node/web-globals/fetch.d.ts","./node_modules/@types/node/web-globals/importmeta.d.ts","./node_modules/@types/node/web-globals/messaging.d.ts","./node_modules/@types/node/web-globals/navigator.d.ts","./node_modules/@types/node/web-globals/performance.d.ts","./node_modules/@types/node/web-globals/storage.d.ts","./node_modules/@types/node/web-globals/streams.d.ts","./node_modules/@types/node/web-globals/timers.d.ts","./node_modules/@types/node/web-globals/url.d.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/assert/strict.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/diagnostics_channel.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/dns/promises.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/inspector.generated.d.ts","./node_modules/@types/node/inspector/promises.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/path/posix.d.ts","./node_modules/@types/node/path/win32.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/quic.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/readline/promises.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/sea.d.ts","./node_modules/@types/node/sqlite.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/stream/consumers.d.ts","./node_modules/@types/node/stream/promises.d.ts","./node_modules/@types/node/stream/web.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/test.d.ts","./node_modules/@types/node/test/reporters.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/timers/promises.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/util/types.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/index.d.ts"],"fileIdsList":[[96,158,166,170,173,175,176,177,189],[96,155,156,158,166,170,173,175,176,177,189],[96,157,158,166,170,173,175,176,177,189],[158,166,170,173,175,176,177,189],[96,158,166,170,173,175,176,177,189,197],[96,158,159,164,166,169,170,173,175,176,177,179,189,194,206],[96,158,159,160,166,169,170,173,175,176,177,189],[96,158,161,166,170,173,175,176,177,189,207],[96,158,162,163,166,170,173,175,176,177,180,189],[96,158,163,166,170,173,175,176,177,189,194,203],[96,158,164,166,169,170,173,175,176,177,179,189],[96,157,158,165,166,170,173,175,176,177,189],[96,158,166,167,170,173,175,176,177,189],[96,158,166,168,169,170,173,175,176,177,189],[96,157,158,166,169,170,173,175,176,177,189],[96,158,166,169,170,171,173,175,176,177,189,194,206],[96,158,166,169,170,171,173,175,176,177,189,194,197],[96,145,158,166,169,170,172,173,175,176,177,179,189,194,206],[96,158,166,169,170,172,173,175,176,177,179,189,194,203,206],[96,158,166,170,172,173,174,175,176,177,189,194,203,206],[94,95,96,97,98,99,100,101,102,103,104,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213],[96,158,166,169,170,173,175,176,177,189],[96,158,166,170,173,175,177,189],[96,158,166,170,173,175,176,177,178,189,206],[96,158,166,169,170,173,175,176,177,179,189,194],[96,158,166,170,173,175,176,177,180,189],[96,158,166,170,173,175,176,177,181,189],[96,158,166,169,170,173,175,176,177,184,189],[96,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213],[96,158,166,170,173,175,176,177,186,189],[96,158,166,170,173,175,176,177,187,189],[96,158,163,166,170,173,175,176,177,179,189,197],[96,158,166,169,170,173,175,176,177,189,190],[96,158,166,170,173,175,176,177,189,191,207,210],[96,158,166,169,170,173,175,176,177,189,194,196,197],[96,158,166,170,173,175,176,177,189,195,197],[96,158,166,170,173,175,176,177,189,197,207],[96,158,166,170,173,175,176,177,189,198],[96,155,158,166,170,173,175,176,177,189,194,200],[96,158,166,170,173,175,176,177,189,194,199],[96,158,166,169,170,173,175,176,177,189,201,202],[96,158,166,170,173,175,176,177,189,201,202],[96,158,163,166,170,173,175,176,177,179,189,194,203],[96,158,166,170,173,175,176,177,189,204],[96,158,166,170,173,175,176,177,179,189,205],[96,158,166,170,172,173,175,176,177,187,189,206],[96,158,166,170,173,175,176,177,189,207,208],[96,158,163,166,170,173,175,176,177,189,208],[96,158,166,170,173,175,176,177,189,194,209],[96,158,166,170,173,175,176,177,178,189,210],[96,158,166,170,173,175,176,177,189,211],[96,158,161,166,170,173,175,176,177,189],[96,158,163,166,170,173,175,176,177,189],[96,158,166,170,173,175,176,177,189,207],[96,145,158,166,170,173,175,176,177,189],[96,158,166,170,173,175,176,177,189,206],[96,158,166,170,173,175,176,177,189,212],[96,158,166,170,173,175,176,177,184,189],[96,158,166,170,173,175,176,177,189,202],[96,145,158,166,169,170,171,173,175,176,177,184,189,194,197,206,209,210,212],[96,158,166,170,173,175,176,177,189,194,213],[78,96,158,166,170,173,175,176,177,189],[76,78,96,158,166,170,173,175,176,177,189],[73,74,75,76,78,96,158,166,170,173,175,176,177,189],[73,74,75,96,158,166,170,173,175,176,177,189],[73,96,158,166,170,173,175,176,177,189],[73,74,96,158,166,170,173,175,176,177,189],[70,96,158,166,170,173,175,176,177,189],[70,71,96,158,166,170,173,175,176,177,189],[69,96,158,166,170,173,175,176,177,189],[96,111,114,117,118,158,166,170,173,175,176,177,189,206],[96,114,158,166,170,173,175,176,177,189,194,206],[96,114,118,158,166,170,173,175,176,177,189,206],[96,158,166,170,173,175,176,177,189,194],[96,108,158,166,170,173,175,176,177,189],[96,112,158,166,170,173,175,176,177,189],[96,110,111,114,158,166,170,173,175,176,177,189,206],[96,158,166,170,173,175,176,177,179,189,203],[96,158,166,170,173,175,176,177,189,214],[96,108,158,166,170,173,175,176,177,189,214],[96,110,114,158,166,170,173,175,176,177,179,189,206],[96,105,106,107,109,113,158,166,169,170,173,175,176,177,189,194,206],[96,114,122,130,158,166,170,173,175,176,177,189],[96,106,112,158,166,170,173,175,176,177,189],[96,114,139,140,158,166,170,173,175,176,177,189],[96,106,109,114,158,166,170,173,175,176,177,189,197,206,214],[96,114,158,166,170,173,175,176,177,189],[96,110,114,158,166,170,173,175,176,177,189,206],[96,105,158,166,170,173,175,176,177,189],[96,108,109,110,112,113,114,115,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,140,141,142,143,144,158,166,170,173,175,176,177,189],[96,114,132,135,158,166,170,173,175,176,177,189],[96,114,122,123,124,158,166,170,173,175,176,177,189],[96,112,114,123,125,158,166,170,173,175,176,177,189],[96,113,158,166,170,173,175,176,177,189],[96,106,108,114,158,166,170,173,175,176,177,189],[96,114,118,123,125,158,166,170,173,175,176,177,189],[96,118,158,166,170,173,175,176,177,189],[96,112,114,117,158,166,170,173,175,176,177,189,206],[96,106,110,114,122,158,166,170,173,175,176,177,189],[96,114,132,158,166,170,173,175,176,177,189],[96,125,158,166,170,173,175,176,177,189],[96,108,114,139,158,166,170,173,175,176,177,189,197,212,214],[61,62,96,158,166,170,173,175,176,177,189],[60,96,158,166,170,173,175,176,177,189],[63,96,158,166,170,173,175,176,177,189],[62,96,158,166,170,173,175,176,177,189],[63,96,158,166,170,173,175,176,177,181,189],[61,62,63,65,67,68,83,84,85,86,87,88,96,158,166,170,173,175,176,177,189],[63,64,66,96,158,166,170,173,175,176,177,189],[77,79,80,81,82,90,96,158,166,170,173,175,176,177,189],[77,83,96,158,166,170,173,175,176,177,189],[72,83,96,158,166,170,173,175,176,177,189],[63,83,96,158,166,170,173,175,176,177,189],[85,86,96,158,166,170,173,175,176,177,189]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"96da6c81cd788939a7cf6546ea1f65ab5ca38952e5bd7d8c284bfe1f3c22dce7","impliedFormat":1},{"version":"8461b8e78c97205d2a41c135ff564f33b0be1136adef92f912ffcf0acb63b308","impliedFormat":99},{"version":"c1de9f52498b6982156e930de5074bb4d75cf3da71a0c3e0dd1c29b92877c6dc","impliedFormat":99},{"version":"19c949f35817d0095f5d56b1299cfa5db950b12f0b1d89eae9bbb3f2981ee060","impliedFormat":99},{"version":"fe0a77935b13d5e49968543ce408491798ca40164f786204b554439ae667a55c","impliedFormat":99},{"version":"64a2f54f914c369d7329468216f4f0b904dea5b2b1fcbf16a8561f2f94913abc","impliedFormat":99},{"version":"14de46ed517e2cdb4e3ba7c23db042096f5a23bdc8985bc5a37c7e9f10f314cb","impliedFormat":99},{"version":"c6592f1ac301c1bd65856ca12bb7131d934de1a88b5966d1db82922754c88da0","impliedFormat":99},{"version":"140c93b88386819b68af0d1f59d64b46c473f57e0b5b15ecda0749e77f447c6e","impliedFormat":99},{"version":"a0ea0ebb80cc84ee69c710fb2facb1aaa928bbba76e4cf2d6986d227e201d8da","impliedFormat":99},{"version":"cbd1648336bab35437b9e62253aeb73d651485818fc42235ebe38bd4e2a54e93","impliedFormat":99},{"version":"39bfe11e90de3ae44067734a74de05ca478d9c8aaaf5b035ae3b07f12c15ba66","impliedFormat":99},{"version":"91da497254ee49742e2c2610ba6718b98118652a1c04da086bfd2d0894ea3dff","affectsGlobalScope":true,"impliedFormat":99},{"version":"ebf3f14a8159ec5aa2fbf567e6070c248e86a46d69d9967bda179190094dbd4f","impliedFormat":1},{"version":"3ba786dbd4178362cd356c0a264b4b39f063fa0803629831496614ca12e33096","impliedFormat":1},{"version":"831fb5a2565891f5a8fcedd6f6890997d39d26a89fe294cfb9a1eb5c75ec21bb","impliedFormat":1},{"version":"bd0e108ac399335fec82e83d91401152cc8e19e54d80af0caec98caf10fced77","impliedFormat":1},{"version":"ecd27f83f4995039b05510a3c51566e88fe7fb1a67057bf02b21b152d8237fb6","impliedFormat":99},{"version":"055d2177aa4ec7e23415119ed27410bd2f7458b75886ed222835d6cb5264061c","impliedFormat":1},{"version":"bc9a11927ced39797acd3fa50bee8163685417d846800abbdbdec42824986108","impliedFormat":99},{"version":"28ba9151fdf7ec7d782ed779977b9a52f49b4230e1f0aaec0928a4e2cda21e87","impliedFormat":1},{"version":"9fa7bc8c9d6f33ebdd2d252347f9936c2c2efee675a995c125167791329209b4","impliedFormat":99},{"version":"f3224226d666c6132e29fcad5e047c35408c35d8813d6b9107b52e9ab44bfd63","impliedFormat":99},{"version":"c4499a35db5a7a94e23c935628fb70cf7a493ccd58aa2a3569b6137745633eef","impliedFormat":99},{"version":"e2112f2fc065aebca1dff15efc2be6ef2c5b80cb0e7e98a604f4a69ff57fecad","impliedFormat":99},{"version":"1117647e188a91992338c468505f2ccd4a06cfc6ad3fae170218897fd6f7f03b","impliedFormat":99},{"version":"baf7a1ba6183d437c8c5999e206ea20aa8da6910f9174962520d843f0247f3a2","impliedFormat":99},{"version":"4e534e6ae81a13182371024964b529c4148525b3b33f9ddd5e1df5179c6bf249","impliedFormat":99},{"version":"793eca5130288a4f0e67286b065b7e930c2e4d7dc56c9ec1f0fb96a7c471f6c2","impliedFormat":99},{"version":"a6017276f2cbe9fa9bb3c43d04b58c5bfca99e195aa90ba5890fdd284580102c","impliedFormat":99},{"version":"8b723d9a52bb351ea9c00f80d884b68d791fe51b0293b8f264f6130651a550f1","impliedFormat":99},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"438b41419b1df9f1fbe33b5e1b18f5853432be205991d1b19f5b7f351675541e","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"dd0109710de4cd93e245121ab86d8c66d20f3ead80074b68e9c3e349c4f53342","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"435b3711465425770ed2ee2f1cf00ce071835265e0851a7dc4600ab4b007550e","impliedFormat":1},{"version":"7e49f52a159435fc8df4de9dc377ef5860732ca2dc9efec1640531d3cf5da7a3","impliedFormat":1},{"version":"dd4bde4bdc2e5394aed6855e98cf135dfdf5dd6468cad842e03116d31bbcc9bc","impliedFormat":1},{"version":"4d4e879009a84a47c05350b8dca823036ba3a29a3038efed1be76c9f81e45edf","affectsGlobalScope":true,"impliedFormat":1},{"version":"cf83d90d5faf27b994c2e79af02e32b555dbfe42cd9bd1571445f2168d1f4e2d","impliedFormat":1},{"version":"9ba13b47cb450a438e3076c4a3f6afb9dc85e17eae50f26d4b2d72c0688c9251","impliedFormat":1},{"version":"b64cd4401633ea4ecadfd700ddc8323a13b63b106ac7127c1d2726f32424622c","impliedFormat":1},{"version":"37c6e5fe5715814412b43cc9b50b24c67a63c4e04e753e0d1305970d65417a60","impliedFormat":1},{"version":"0e28335ac43f4d94dd2fe6d9e6fa6813570640839addd10d309d7985f33a6308","impliedFormat":1},{"version":"ee0e4946247f842c6dd483cbb60a5e6b484fee07996e3a7bc7343dfb68a04c5d","impliedFormat":1},{"version":"ef051f42b7e0ef5ca04552f54c4552eac84099d64b6c5ad0ef4033574b6035b8","impliedFormat":1},{"version":"853a43154f1d01b0173d9cbd74063507ece57170bad7a3b68f3fa1229ad0a92f","impliedFormat":1},{"version":"56231e3c39a031bfb0afb797690b20ed4537670c93c0318b72d5180833d98b72","impliedFormat":1},{"version":"5cc7c39031bfd8b00ad58f32143d59eb6ffc24f5d41a20931269011dccd36c5e","impliedFormat":1},{"version":"b0b69c61b0f0ec8ca15db4c8c41f6e77f4cacb784d42bca948f42dea33e8757e","affectsGlobalScope":true,"impliedFormat":1},{"version":"f96a48183254c00d24575401f1a761b4ce4927d927407e7862a83e06ce5d6964","impliedFormat":1},{"version":"cc25940cfb27aa538e60d465f98bb5068d4d7d33131861ace43f04fe6947d68f","impliedFormat":1},{"version":"ac86245c2f31335bfd52cbe7fc760f9fc4f165387875869a478a6d9616a95e72","impliedFormat":1},{"version":"01ff95aa1443e3f7248974e5a771f513cb2ac158c8898f470a1792f817bee497","impliedFormat":1},{"version":"9d96a7ce809392ff2cb99691acf7c62e632fe56897356ba013b689277aca3619","impliedFormat":1},{"version":"42a05d8f239f74587d4926aba8cc54792eed8e8a442c7adc9b38b516642aadfe","impliedFormat":1},{"version":"5d21b58d60383cc6ab9ad3d3e265d7d25af24a2c9b506247e0e50b0a884920be","impliedFormat":1},{"version":"101f482fd48cb4c7c0468dcc6d62c843d842977aea6235644b1edd05e81fbf22","impliedFormat":1},{"version":"ae6757460f37078884b1571a3de3ebaf724d827d7e1d53626c02b3c2a408ac63","affectsGlobalScope":true,"impliedFormat":1},{"version":"27c0a08e343c6a0ae17bd13ba6d44a9758236dc904cd5e4b43456996cd51f520","impliedFormat":1},{"version":"3ef397f12387eff17f550bc484ea7c27d21d43816bbe609d495107f44b97e933","impliedFormat":1},{"version":"1023282e2ba810bc07905d3668349fbd37a26411f0c8f94a70ef3c05fe523fcf","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"6f80e51ba310608cd71bcdc09a171d7bbfb3b316048601c9ec215ce16a8dcfbc","impliedFormat":1},{"version":"10947bb49601aeec9ea1dddf61ef6e4f8442f949bd40a8008e12b129deb037be","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f2c62938251b45715fd2a9887060ec4fbc8724727029d1cbce373747252bdd7","impliedFormat":1},{"version":"e3ace08b6bbd84655d41e244677b474fd995923ffef7149ddb68af8848b60b05","impliedFormat":1},{"version":"132580b0e86c48fab152bab850fc57a4b74fe915c8958d2ccb052b809a44b61c","impliedFormat":1},{"version":"af4ab0aa8908fc9a655bb833d3bc28e117c4f0e1038c5a891546158beb25accb","impliedFormat":1},{"version":"69c9a5a9392e8564bd81116e1ed93b13205201fb44cb35a7fde8c9f9e21c4b23","impliedFormat":1},{"version":"5f8fc37f8434691ffac1bfd8fc2634647da2c0e84253ab5d2dd19a7718915b35","impliedFormat":1},{"version":"5981c2340fd8b076cae8efbae818d42c11ffc615994cb060b1cd390795f1be2b","impliedFormat":1},{"version":"2ca2bca6845a7234eff5c3d192727a068fca72ac565f3c819c6b04ccc83dadc0","impliedFormat":1},{"version":"ed4f674fc8c0c993cc7e145069ac44129e03519b910c62be206a0cc777bdc60b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0250da3eb85c99624f974e77ef355cdf86f43980251bc371475c2b397ba55bcd","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"3d3a5f27ffbc06c885dd4d5f9ee20de61faf877fe2c3a7051c4825903d9a7fdc","impliedFormat":1},{"version":"12806f9f085598ef930edaf2467a5fa1789a878fba077cd27e85dc5851e11834","impliedFormat":1},{"version":"17d06eb5709839c7ce719f0c38ada6f308fb433f2cd6d8c87b35856e07400950","impliedFormat":1},{"version":"a43fe41c33d0a192a0ecaf9b92e87bef3709c9972e6d53c42c49251ccb962d69","impliedFormat":1},{"version":"a177959203c017fad3ecc4f3d96c8757a840957a4959a3ae00dab9d35961ca6c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc727ccf9b36e257ff982ea0badeffbfc2c151802f741bddff00c6af3b784cf","impliedFormat":1},{"version":"2a00d005e3af99cd1cfa75220e60c61b04bfb6be7ca7453bfe2ef6cca37cc03c","impliedFormat":1},{"version":"4844a4c9b4b1e812b257676ed8a80b3f3be0e29bf05e742cc2ea9c3c6865e6c6","impliedFormat":1},{"version":"064878a60367e0407c42fb7ba02a2ea4d83257357dc20088e549bd4d89433e9c","impliedFormat":1},{"version":"14d4bd22d1b05824971b98f7e91b2484c90f1a684805c330476641417c3d9735","impliedFormat":1},{"version":"586eaf66bace2e731cee0ddfbfac326ad74a83c1acfeac4afb2db85ad23226c7","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"d1a14d87cedcf4f0b8173720d6eb29cc02878bf2b6dabf9c9d9cee742f275368","impliedFormat":1},{"version":"e60efae9fe48a2955f66bf4cbf0f082516185b877daf50d9c5e2a009660a7714","impliedFormat":1},{"version":"041a7781b9127ab568d2cdcce62c58fdea7c7407f40b8c50045d7866a2727130","impliedFormat":1},{"version":"b37f83e7deea729aa9ce5593f78905afb45b7532fdff63041d374f60059e7852","impliedFormat":1},{"version":"e1cb68f3ef3a8dd7b2a9dfb3de482ed6c0f1586ba0db4e7d73c1d2147b6ffc51","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[[61,68],[81,90]],"options":{"composite":true,"declaration":true,"erasableSyntaxOnly":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedSideEffectImports":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"strict":true,"target":9},"referencedMap":[[91,1],[92,1],[93,1],[155,2],[156,2],[157,3],[96,4],[158,5],[159,6],[160,7],[94,1],[161,8],[162,9],[163,10],[164,11],[165,12],[166,13],[167,13],[168,14],[169,15],[170,16],[171,17],[97,1],[95,1],[172,18],[173,19],[174,20],[214,21],[175,22],[176,23],[177,22],[178,24],[179,25],[180,26],[181,27],[182,27],[183,27],[184,28],[185,29],[186,30],[187,31],[188,32],[189,33],[190,33],[191,34],[192,1],[193,1],[194,35],[195,36],[196,35],[197,37],[198,38],[199,39],[200,40],[201,41],[202,42],[203,43],[204,44],[205,45],[206,46],[207,47],[208,48],[209,49],[210,50],[211,51],[98,22],[99,1],[100,52],[101,53],[102,1],[103,54],[104,1],[146,55],[147,56],[148,57],[149,57],[150,58],[151,1],[152,5],[153,59],[154,56],[212,60],[213,61],[60,1],[79,62],[78,63],[80,63],[77,64],[76,65],[73,1],[74,66],[75,67],[71,68],[72,69],[70,70],[69,1],[58,1],[59,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[8,1],[49,1],[46,1],[47,1],[48,1],[50,1],[9,1],[51,1],[52,1],[53,1],[55,1],[54,1],[1,1],[56,1],[57,1],[122,71],[134,72],[120,73],[135,74],[144,75],[111,76],[112,77],[110,78],[143,79],[138,80],[142,81],[114,82],[131,83],[113,84],[141,85],[108,86],[109,80],[115,87],[116,1],[121,88],[119,87],[106,89],[145,90],[136,91],[125,92],[124,87],[126,93],[129,94],[123,95],[127,96],[139,79],[117,97],[118,98],[130,99],[107,74],[133,100],[132,87],[128,101],[137,1],[105,1],[140,102],[63,103],[61,104],[64,105],[65,106],[66,107],[67,1],[89,108],[86,109],[81,1],[82,1],[83,110],[90,111],[84,112],[85,1],[88,113],[68,1],[62,1],[87,114]],"affectedFilesPendingEmit":[[63,17],[61,17],[64,17],[65,17],[66,17],[67,17],[89,17],[86,17],[81,17],[82,17],[83,17],[84,17],[85,17],[88,17],[68,17],[62,17],[87,17]],"emitSignatures":[61,62,63,64,65,66,67,68,81,82,83,84,85,86,87,88,89],"version":"5.9.3"}
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig-src.json",
3
+ "compilerOptions": {
4
+ // Projects.
5
+ "composite": false
6
+ }
7
+ }
@@ -1,118 +0,0 @@
1
- import { type AppData } from "./app-data.js";
2
- import type { Promisable } from "./type.js";
3
- /**
4
- * Generic read-only application data storage.
5
- */
6
- export declare abstract class ReadOnlyAppDataStorage<SupportsBinary extends boolean> {
7
- #private;
8
- /**
9
- * Extension to identify binary data.
10
- */
11
- protected static readonly BINARY_EXTENSION = ".bin";
12
- /**
13
- * Extension to identify JSON data.
14
- */
15
- protected static readonly JSON_EXTENSION = ".json";
16
- /**
17
- * Constructor.
18
- *
19
- * @param supportsBinary
20
- * True if binary data is supported.
21
- *
22
- * @param path
23
- * Storage path prepended to each key along with '/' if defined, empty string if not.
24
- */
25
- protected constructor(supportsBinary: SupportsBinary, path?: string);
26
- /**
27
- * Determine if binary data is supported.
28
- */
29
- get supportsBinary(): SupportsBinary;
30
- /**
31
- * Get the storage path, prepended to each key.
32
- */
33
- get path(): string;
34
- /**
35
- * Build the full storage key.
36
- *
37
- * @param pathKey
38
- * Key relative to path.
39
- *
40
- * @param isBinary
41
- * True if key is to binary data, false or undefined if to string data. Ignored if binary data is not supported.
42
- *
43
- * @returns
44
- * Full storage key.
45
- */
46
- protected fullKey(pathKey: string, isBinary: boolean): string;
47
- /**
48
- * Read a string or binary data from persistent storage.
49
- *
50
- * @param key
51
- * Storage key (file path in Node.js, key in localStorage).
52
- *
53
- * @param asBinary
54
- * True if binary data is requested, false or undefined if string data is requested. Ignored if binary data is not
55
- * supported.
56
- *
57
- * @returns
58
- * String or binary data or undefined if not found.
59
- */
60
- protected abstract doRead(key: string, asBinary: boolean | undefined): Promisable<(SupportsBinary extends true ? string | Uint8Array : string) | undefined>;
61
- /**
62
- * Read application data from storage.
63
- *
64
- * @param pathKey
65
- * Key relative to path.
66
- *
67
- * @param asBinary
68
- * True if binary data is requested, false or undefined if string data is requested. Ignored if binary data is not
69
- * supported.
70
- *
71
- * @returns
72
- * Application data or undefined if not found.
73
- */
74
- read(pathKey: string, asBinary?: boolean): Promise<AppData | undefined>;
75
- }
76
- /**
77
- * Generic read/write application data storage.
78
- */
79
- export declare abstract class AppDataStorage<SupportsBinary extends boolean> extends ReadOnlyAppDataStorage<SupportsBinary> {
80
- /**
81
- * Write a string or binary data in persistent storage.
82
- *
83
- * @param key
84
- * Storage key (file path in Node.js, key in localStorage).
85
- *
86
- * @param data
87
- * String or binary data.
88
- */
89
- protected abstract doWrite(key: string, data: SupportsBinary extends true ? string | Uint8Array : string): Promisable<void>;
90
- /**
91
- * Write application data to storage.
92
- *
93
- * @param pathKey
94
- * Key relative to path.
95
- *
96
- * @param appData
97
- * Application data to write.
98
- */
99
- write(pathKey: string, appData: AppData): Promise<void>;
100
- /**
101
- * Delete from persistent storage.
102
- *
103
- * @param key
104
- * Storage key (file path in Node.js, key in localStorage).
105
- */
106
- protected abstract doDelete(key: string): Promisable<void>;
107
- /**
108
- * Delete application data from persistent storage.
109
- *
110
- * @param pathKey
111
- * Key relative to path.
112
- *
113
- * @param asBinary
114
- * True if key is to binary data, false or undefined if to string data. Ignored if binary data is not supported.
115
- */
116
- delete(pathKey: string, asBinary?: boolean): Promise<void>;
117
- }
118
- //# sourceMappingURL=app-data-storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-data-storage.d.ts","sourceRoot":"","sources":["../src/app-data-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAgC,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,8BAAsB,sBAAsB,CAAC,cAAc,SAAS,OAAO;;IACvE;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,UAAU;IAEpD;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,WAAW;IAYnD;;;;;;;;OAQG;IACH,SAAS,aAAa,cAAc,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM;IAKnE;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM;IAS7D;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC,cAAc,SAAS,IAAI,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;IAE3J;;;;;;;;;;;;OAYG;IACG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;CAKhF;AAED;;GAEG;AACH,8BAAsB,cAAc,CAAC,cAAc,SAAS,OAAO,CAAE,SAAQ,sBAAsB,CAAC,cAAc,CAAC;IAC/G;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,SAAS,IAAI,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;IAE3H;;;;;;;;OAQG;IACG,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7D;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;IAE1D;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAGnE"}
@@ -1,117 +0,0 @@
1
- import { decodeAppData, encodeAppData } from "./app-data.js";
2
- /**
3
- * Generic read-only application data storage.
4
- */
5
- export class ReadOnlyAppDataStorage {
6
- /**
7
- * Extension to identify binary data.
8
- */
9
- static BINARY_EXTENSION = ".bin";
10
- /**
11
- * Extension to identify JSON data.
12
- */
13
- static JSON_EXTENSION = ".json";
14
- /**
15
- * True if binary data is supported natively.
16
- */
17
- #supportsBinary;
18
- /**
19
- * Storage path prepended to each key.
20
- */
21
- #path;
22
- /**
23
- * Constructor.
24
- *
25
- * @param supportsBinary
26
- * True if binary data is supported.
27
- *
28
- * @param path
29
- * Storage path prepended to each key along with '/' if defined, empty string if not.
30
- */
31
- constructor(supportsBinary, path) {
32
- this.#supportsBinary = supportsBinary;
33
- this.#path = path !== undefined ? `${path}/` : "";
34
- }
35
- /**
36
- * Determine if binary data is supported.
37
- */
38
- get supportsBinary() {
39
- return this.#supportsBinary;
40
- }
41
- /**
42
- * Get the storage path, prepended to each key.
43
- */
44
- get path() {
45
- return this.#path;
46
- }
47
- /**
48
- * Build the full storage key.
49
- *
50
- * @param pathKey
51
- * Key relative to path.
52
- *
53
- * @param isBinary
54
- * True if key is to binary data, false or undefined if to string data. Ignored if binary data is not supported.
55
- *
56
- * @returns
57
- * Full storage key.
58
- */
59
- fullKey(pathKey, isBinary) {
60
- const keyNoExtension = `${this.path}${pathKey}`;
61
- // Add extension to key if binary data is supported.
62
- return this.supportsBinary ?
63
- `${keyNoExtension}${isBinary ? ReadOnlyAppDataStorage.BINARY_EXTENSION : ReadOnlyAppDataStorage.JSON_EXTENSION}` :
64
- keyNoExtension;
65
- }
66
- /**
67
- * Read application data from storage.
68
- *
69
- * @param pathKey
70
- * Key relative to path.
71
- *
72
- * @param asBinary
73
- * True if binary data is requested, false or undefined if string data is requested. Ignored if binary data is not
74
- * supported.
75
- *
76
- * @returns
77
- * Application data or undefined if not found.
78
- */
79
- async read(pathKey, asBinary) {
80
- const data = await this.doRead(this.fullKey(pathKey, asBinary === true), asBinary);
81
- return typeof data === "string" ? decodeAppData(data) : data;
82
- }
83
- }
84
- /**
85
- * Generic read/write application data storage.
86
- */
87
- export class AppDataStorage extends ReadOnlyAppDataStorage {
88
- /**
89
- * Write application data to storage.
90
- *
91
- * @param pathKey
92
- * Key relative to path.
93
- *
94
- * @param appData
95
- * Application data to write.
96
- */
97
- async write(pathKey, appData) {
98
- const isBinary = appData instanceof Uint8Array;
99
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Type is determined by supports binary flag.
100
- await this.doWrite(this.fullKey(pathKey, isBinary), (this.supportsBinary && isBinary ?
101
- appData :
102
- encodeAppData(appData)));
103
- }
104
- /**
105
- * Delete application data from persistent storage.
106
- *
107
- * @param pathKey
108
- * Key relative to path.
109
- *
110
- * @param asBinary
111
- * True if key is to binary data, false or undefined if to string data. Ignored if binary data is not supported.
112
- */
113
- async delete(pathKey, asBinary) {
114
- await this.doDelete(this.fullKey(pathKey, asBinary === true));
115
- }
116
- }
117
- //# sourceMappingURL=app-data-storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-data-storage.js","sourceRoot":"","sources":["../src/app-data-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG3E;;GAEG;AACH,MAAM,OAAgB,sBAAsB;IACxC;;OAEG;IACO,MAAM,CAAU,gBAAgB,GAAG,MAAM,CAAC;IAEpD;;OAEG;IACO,MAAM,CAAU,cAAc,GAAG,OAAO,CAAC;IAEnD;;OAEG;IACM,eAAe,CAAiB;IAEzC;;OAEG;IACM,KAAK,CAAS;IAEvB;;;;;;;;OAQG;IACH,YAAsB,cAA8B,EAAE,IAAa;QAC/D,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;;;;;;;;;OAWG;IACO,OAAO,CAAC,OAAe,EAAE,QAAiB;QAChD,MAAM,cAAc,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,CAAC;QAEhD,oDAAoD;QACpD,OAAO,IAAI,CAAC,cAAc,CAAC,CAAC;YACxB,GAAG,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC,CAAC;YAClH,cAAc,CAAC;IACvB,CAAC;IAiBD;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,QAAkB;QAC1C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;QAEnF,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;;AAGL;;GAEG;AACH,MAAM,OAAgB,cAA+C,SAAQ,sBAAsC;IAY/G;;;;;;;;OAQG;IACH,KAAK,CAAC,KAAK,CAAC,OAAe,EAAE,OAAgB;QACzC,MAAM,QAAQ,GAAG,OAAO,YAAY,UAAU,CAAC;QAE/C,sHAAsH;QACtH,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,IAAI,QAAQ,CAAC,CAAC;YAClF,OAAO,CAAC,CAAC;YACT,aAAa,CAAC,OAAO,CAAC,CACa,CAAC,CAAC;IAC7C,CAAC;IAUD;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Application data.
3
- */
4
- export type AppData = string | number | boolean | object;
5
- /**
6
- * Decode application data from an encoded string.
7
- *
8
- * @param stringData
9
- * String data.
10
- *
11
- * @returns
12
- * Decoded application data.
13
- */
14
- export declare function decodeAppData(stringData: string): AppData | undefined;
15
- /**
16
- * Encode application data as a string for storage. Encoded string is in JSON format with date/time and binary data
17
- * converted to identifiable strings for decoding.
18
- *
19
- * @param appData
20
- * Application data.
21
- *
22
- * @returns
23
- * Encoded application data.
24
- */
25
- export declare function encodeAppData(appData: AppData): string;
26
- //# sourceMappingURL=app-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-data.d.ts","sourceRoot":"","sources":["../src/app-data.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAqCrE;AA4BD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD"}
package/dist/app-data.js DELETED
@@ -1,79 +0,0 @@
1
- import { fromByteArray, toByteArray } from "base64-js";
2
- /**
3
- * Decode application data from an encoded string.
4
- *
5
- * @param stringData
6
- * String data.
7
- *
8
- * @returns
9
- * Decoded application data.
10
- */
11
- export function decodeAppData(stringData) {
12
- let decodedAppData;
13
- try {
14
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Mapping is expected to be correct.
15
- decodedAppData = JSON.parse(stringData, (_key, value) => {
16
- let replacementValue = value;
17
- // Decode string representing date/time and binary array and pass through other values unmodified.
18
- if (typeof value === "string") {
19
- // First capture group is type, second is data; simple split at ':' character.
20
- const stringDataGroups = /^(?<type>\w+):(?<data>.*)$/u.exec(value)?.groups;
21
- if (stringDataGroups !== undefined) {
22
- const type = stringDataGroups["type"];
23
- const data = stringDataGroups["data"];
24
- switch (type) {
25
- case "dateTime":
26
- replacementValue = new Date(data);
27
- break;
28
- case "binary":
29
- replacementValue = toByteArray(data);
30
- break;
31
- }
32
- }
33
- }
34
- return replacementValue;
35
- });
36
- }
37
- catch {
38
- // String data is not valid JSON; discard it.
39
- decodedAppData = undefined;
40
- }
41
- return decodedAppData;
42
- }
43
- /**
44
- * Encode an object to a format suitable for storage.
45
- *
46
- * @param o
47
- * Object.
48
- *
49
- * @returns
50
- * Object suitable for storage with date/time and binary types encoded as strings.
51
- */
52
- function encodeObject(o) {
53
- let mappedData;
54
- // Encode date/time and binary array as string and pass through other values unmodified.
55
- if (o instanceof Date) {
56
- mappedData = `dateTime:${o.toISOString()}`;
57
- }
58
- else if (o instanceof Uint8Array) {
59
- mappedData = `binary:${fromByteArray(o)}`;
60
- }
61
- else {
62
- mappedData = Object.fromEntries(Object.entries(o).map(([key, value]) => [key, typeof value === "object" && value !== null ? encodeObject(value) : value]));
63
- }
64
- return mappedData;
65
- }
66
- /**
67
- * Encode application data as a string for storage. Encoded string is in JSON format with date/time and binary data
68
- * converted to identifiable strings for decoding.
69
- *
70
- * @param appData
71
- * Application data.
72
- *
73
- * @returns
74
- * Encoded application data.
75
- */
76
- export function encodeAppData(appData) {
77
- return JSON.stringify(typeof appData !== "object" ? appData : encodeObject(appData));
78
- }
79
- //# sourceMappingURL=app-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-data.js","sourceRoot":"","sources":["../src/app-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAOvD;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC5C,IAAI,cAAmC,CAAC;IAExC,IAAI,CAAC;QACD,6GAA6G;QAC7G,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,KAAc,EAAE,EAAE;YAC7D,IAAI,gBAAgB,GAAG,KAAK,CAAC;YAE7B,kGAAkG;YAClG,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC5B,8EAA8E;gBAC9E,MAAM,gBAAgB,GAAG,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;gBAE3E,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;oBACjC,MAAM,IAAI,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;oBACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;oBAEtC,QAAQ,IAAI,EAAE,CAAC;wBACX,KAAK,UAAU;4BACX,gBAAgB,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;4BAClC,MAAM;wBAEV,KAAK,QAAQ;4BACT,gBAAgB,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;4BACrC,MAAM;oBACd,CAAC;gBACL,CAAC;YACL,CAAC;YAED,OAAO,gBAAgB,CAAC;QAC5B,CAAC,CAAY,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACL,6CAA6C;QAC7C,cAAc,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,OAAO,cAAc,CAAC;AAC1B,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,YAAY,CAAC,CAAS;IAC3B,IAAI,UAA2B,CAAC;IAEhC,wFAAwF;IACxF,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC;QACpB,UAAU,GAAG,YAAY,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;IAC/C,CAAC;SAAM,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;QACjC,UAAU,GAAG,UAAU,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,CAAC;SAAM,CAAC;QACJ,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAoB,EAAE,EAAE,CACtF,CAAC,GAAG,EAAE,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CACnF,CAAC,CAAC;IACP,CAAC;IAED,OAAO,UAAU,CAAC;AACtB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC1C,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AACzF,CAAC"}
@@ -1,26 +0,0 @@
1
- import { AppDataStorage } from "./app-data-storage.js";
2
- /**
3
- * Application data storage using the browser local storage.
4
- */
5
- export declare class BrowserAppDataStorage extends AppDataStorage<false> {
6
- /**
7
- * Constructor.
8
- *
9
- * @param path
10
- * Storage path prepended to each key along with '/' if defined, empty string if not.
11
- */
12
- constructor(path?: string);
13
- /**
14
- * @inheritDoc
15
- */
16
- protected doRead(key: string): string | undefined;
17
- /**
18
- * @inheritDoc
19
- */
20
- protected doWrite(key: string, s: string): void;
21
- /**
22
- * @inheritDoc
23
- */
24
- protected doDelete(key: string): void;
25
- }
26
- //# sourceMappingURL=browser-app-data-storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-app-data-storage.d.ts","sourceRoot":"","sources":["../src/browser-app-data-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC5D;;;;;OAKG;gBACS,IAAI,CAAC,EAAE,MAAM;IAIzB;;OAEG;cACgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI1D;;OAEG;cACgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAIxD;;OAEG;cACgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjD"}
@@ -1,34 +0,0 @@
1
- import { AppDataStorage } from "./app-data-storage.js";
2
- /**
3
- * Application data storage using the browser local storage.
4
- */
5
- export class BrowserAppDataStorage extends AppDataStorage {
6
- /**
7
- * Constructor.
8
- *
9
- * @param path
10
- * Storage path prepended to each key along with '/' if defined, empty string if not.
11
- */
12
- constructor(path) {
13
- super(false, path);
14
- }
15
- /**
16
- * @inheritDoc
17
- */
18
- doRead(key) {
19
- return localStorage.getItem(key) ?? undefined;
20
- }
21
- /**
22
- * @inheritDoc
23
- */
24
- doWrite(key, s) {
25
- localStorage.setItem(key, s);
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- doDelete(key) {
31
- localStorage.removeItem(key);
32
- }
33
- }
34
- //# sourceMappingURL=browser-app-data-storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-app-data-storage.js","sourceRoot":"","sources":["../src/browser-app-data-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,cAAqB;IAC5D;;;;;OAKG;IACH,YAAY,IAAa;QACrB,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;IAED;;OAEG;IACgB,MAAM,CAAC,GAAW;QACjC,OAAO,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC;IAClD,CAAC;IAED;;OAEG;IACgB,OAAO,CAAC,GAAW,EAAE,CAAS;QAC7C,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACjC,CAAC;IAED;;OAEG;IACgB,QAAQ,CAAC,GAAW;QACnC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACJ"}