interface-store
Advanced tools
| (function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.InterfaceStore = factory()}(typeof self !== 'undefined' ? self : this, function () { | ||
| "use strict";var InterfaceStore=(()=>{var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},A=(e,t,o,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of R(t))!l.call(e,c)&&c!==o&&r(e,c,{get:()=>t[c],enumerable:!(u=x(t,c))||u.enumerable});return e};var F=e=>A(r({},"__esModule",{value:!0}),e);var L={};D(L,{AbortError:()=>p,CloseFailedError:()=>a,DeleteFailedError:()=>E,GetFailedError:()=>d,HasFailedError:()=>m,NotFoundError:()=>i,OpenFailedError:()=>s,PutFailedError:()=>n});var s=class e extends Error{static name="OpenFailedError";static code="ERR_OPEN_FAILED";name=e.name;code=e.code;constructor(t="Open failed"){super(t)}},a=class e extends Error{static name="CloseFailedError";static code="ERR_CLOSE_FAILED";name=e.name;code=e.code;constructor(t="Close failed"){super(t)}},n=class e extends Error{static name="PutFailedError";static code="ERR_PUT_FAILED";name=e.name;code=e.code;constructor(t="Put failed"){super(t)}},d=class e extends Error{static name="GetFailedError";static code="ERR_GET_FAILED";name=e.name;code=e.code;constructor(t="Get failed"){super(t)}},E=class e extends Error{static name="DeleteFailedError";static code="ERR_DELETE_FAILED";name=e.name;code=e.code;constructor(t="Delete failed"){super(t)}},m=class e extends Error{static name="HasFailedError";static code="ERR_HAS_FAILED";name=e.name;code=e.code;constructor(t="Has failed"){super(t)}},i=class e extends Error{static name="NotFoundError";static code="ERR_NOT_FOUND";name=e.name;code=e.code;constructor(t="Not Found"){super(t)}},p=class e extends Error{static name="AbortError";static code="ERR_ABORTED";name=e.name;code=e.code;constructor(t="Aborted"){super(t)}};return F(L);})(); | ||
| "use strict";var InterfaceStore=(()=>{var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},A=(e,t,o,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of R(t))!l.call(e,c)&&c!==o&&r(e,c,{get:()=>t[c],enumerable:!(u=x(t,c))||u.enumerable});return e};var F=e=>A(r({},"__esModule",{value:!0}),e);var L={};D(L,{AbortError:()=>p,CloseFailedError:()=>a,DeleteFailedError:()=>E,GetFailedError:()=>d,HasFailedError:()=>m,NotFoundError:()=>i,OpenFailedError:()=>s,PutFailedError:()=>n});var s=class e extends Error{static name="OpenFailedError";name=e.name;static code="ERR_OPEN_FAILED";code=e.code;constructor(t="Open failed"){super(t)}},a=class e extends Error{static name="CloseFailedError";name=e.name;static code="ERR_CLOSE_FAILED";code=e.code;constructor(t="Close failed"){super(t)}},n=class e extends Error{static name="PutFailedError";name=e.name;static code="ERR_PUT_FAILED";code=e.code;constructor(t="Put failed"){super(t)}},d=class e extends Error{static name="GetFailedError";name=e.name;static code="ERR_GET_FAILED";code=e.code;constructor(t="Get failed"){super(t)}},E=class e extends Error{static name="DeleteFailedError";name=e.name;static code="ERR_DELETE_FAILED";code=e.code;constructor(t="Delete failed"){super(t)}},m=class e extends Error{static name="HasFailedError";name=e.name;static code="ERR_HAS_FAILED";code=e.code;constructor(t="Has failed"){super(t)}},i=class e extends Error{static name="NotFoundError";name=e.name;static code="ERR_NOT_FOUND";code=e.code;constructor(t="Not Found"){super(t)}},p=class e extends Error{static name="AbortError";name=e.name;static code="ERR_ABORTED";code=e.code;constructor(t="Aborted"){super(t)}};return F(L);})(); | ||
| return InterfaceStore})); | ||
| //# sourceMappingURL=index.min.js.map |
| { | ||
| "version": 3, | ||
| "sources": ["../src/index.ts", "../src/errors.ts"], | ||
| "sourcesContent": ["/**\n * @packageDocumentation\n *\n * An abstraction of the Datastore/Blockstore codebases.\n */\n\n/**\n * An iterable or async iterable of values\n */\nexport type AwaitIterable<T> = Iterable<T> | AsyncIterable<T>\n\n/**\n * A generator or async generator of values\n */\nexport type AwaitGenerator<T, TReturn = any, TNext = any> = Generator<T, TReturn, TNext> | AsyncGenerator<T, TReturn, TNext>\n\n/**\n * A value or a promise of a value\n */\nexport type Await<T> = Promise<T> | T\n\n/**\n * Options for async operations.\n */\nexport interface AbortOptions {\n signal?: AbortSignal\n}\n\nexport interface Store<Key, Input, Output, InputPair, OutputPair,\n HasOptionsExtension = {}, PutOptionsExtension = {},\n PutManyOptionsExtension = {}, GetOptionsExtension = {},\n GetManyOptionsExtension = {}, DeleteOptionsExtension = {},\n DeleteManyOptionsExtension = {}> {\n /**\n * Check for the existence of a value for the passed key\n *\n * @example\n * ```js\n *const exists = await store.has(new Key('awesome'))\n *\n *if (exists) {\n * console.log('it is there')\n *} else {\n * console.log('it is not there')\n *}\n *```\n */\n has(key: Key, options?: AbortOptions & HasOptionsExtension): Await<boolean>\n\n /**\n * Store the passed value under the passed key\n *\n * @example\n *\n * ```js\n * await store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])\n * ```\n */\n put(key: Key, val: Input, options?: AbortOptions & PutOptionsExtension): Await<Key>\n\n /**\n * Store the given key/value pairs\n *\n * @example\n * ```js\n * const source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]\n *\n * for await (const { key, value } of store.putMany(source)) {\n * console.info(`put content for key ${key}`)\n * }\n * ```\n */\n putMany(\n source: AwaitIterable<InputPair>,\n options?: AbortOptions & PutManyOptionsExtension\n ): AwaitGenerator<Key>\n\n /**\n * Retrieve the value stored under the given key\n *\n * @example\n * ```js\n * const value = await store.get(new Key('awesome'))\n * console.log('got content: %s', value.toString('utf8'))\n * // => got content: datastore\n * ```\n */\n get(key: Key, options?: AbortOptions & GetOptionsExtension): Output\n\n /**\n * Retrieve values for the passed keys\n *\n * @example\n * ```js\n * for await (const { key, value } of store.getMany([new Key('awesome')])) {\n * console.log(`got \"${key}\" = \"${new TextDecoder('utf8').decode(value)}\"`')\n * // => got \"/awesome\" = \"datastore\"\n * }\n * ```\n */\n getMany(\n source: AwaitIterable<Key>,\n options?: AbortOptions & GetManyOptionsExtension\n ): AwaitGenerator<OutputPair>\n\n /**\n * Remove the record for the passed key\n *\n * @example\n *\n * ```js\n * await store.delete(new Key('awesome'))\n * console.log('deleted awesome content :(')\n * ```\n */\n delete(key: Key, options?: AbortOptions & DeleteOptionsExtension): Await<void>\n\n /**\n * Remove values for the passed keys\n *\n * @example\n *\n * ```js\n * const source = [new Key('awesome')]\n *\n * for await (const key of store.deleteMany(source)) {\n * console.log(`deleted content with key ${key}`)\n * }\n * ```\n */\n deleteMany(\n source: AwaitIterable<Key>,\n options?: AbortOptions & DeleteManyOptionsExtension\n ): AwaitGenerator<Key>\n}\n\nexport * from './errors.js'\n", "export class OpenFailedError extends Error {\n static name = 'OpenFailedError'\n static code = 'ERR_OPEN_FAILED'\n name = OpenFailedError.name\n code = OpenFailedError.code\n\n constructor (message = 'Open failed') {\n super(message)\n }\n}\n\nexport class CloseFailedError extends Error {\n static name = 'CloseFailedError'\n static code = 'ERR_CLOSE_FAILED'\n name = CloseFailedError.name\n code = CloseFailedError.code\n\n constructor (message = 'Close failed') {\n super(message)\n }\n}\n\nexport class PutFailedError extends Error {\n static name = 'PutFailedError'\n static code = 'ERR_PUT_FAILED'\n name = PutFailedError.name\n code = PutFailedError.code\n\n constructor (message = 'Put failed') {\n super(message)\n }\n}\n\nexport class GetFailedError extends Error {\n static name = 'GetFailedError'\n static code = 'ERR_GET_FAILED'\n name = GetFailedError.name\n code = GetFailedError.code\n\n constructor (message = 'Get failed') {\n super(message)\n }\n}\n\nexport class DeleteFailedError extends Error {\n static name = 'DeleteFailedError'\n static code = 'ERR_DELETE_FAILED'\n name = DeleteFailedError.name\n code = DeleteFailedError.code\n\n constructor (message = 'Delete failed') {\n super(message)\n }\n}\n\nexport class HasFailedError extends Error {\n static name = 'HasFailedError'\n static code = 'ERR_HAS_FAILED'\n name = HasFailedError.name\n code = HasFailedError.code\n\n constructor (message = 'Has failed') {\n super(message)\n }\n}\n\nexport class NotFoundError extends Error {\n static name = 'NotFoundError'\n static code = 'ERR_NOT_FOUND'\n name = NotFoundError.name\n code = NotFoundError.code\n\n constructor (message = 'Not Found') {\n super(message)\n }\n}\n\nexport class AbortError extends Error {\n static name = 'AbortError'\n static code = 'ERR_ABORTED'\n name = AbortError.name\n code = AbortError.code\n\n constructor (message = 'Aborted') {\n super(message)\n }\n}\n"], | ||
| "mappings": ";kcAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,EAAA,qBAAAC,EAAA,sBAAAC,EAAA,mBAAAC,EAAA,mBAAAC,EAAA,kBAAAC,EAAA,oBAAAC,EAAA,mBAAAC,ICAM,IAAOC,EAAP,MAAOC,UAAwB,KAAK,CACxC,OAAO,KAAO,kBACd,OAAO,KAAO,kBACd,KAAOA,EAAgB,KACvB,KAAOA,EAAgB,KAEvB,YAAaC,EAAU,cAAa,CAClC,MAAMA,CAAO,CACf,GAGWC,EAAP,MAAOC,UAAyB,KAAK,CACzC,OAAO,KAAO,mBACd,OAAO,KAAO,mBACd,KAAOA,EAAiB,KACxB,KAAOA,EAAiB,KAExB,YAAaF,EAAU,eAAc,CACnC,MAAMA,CAAO,CACf,GAGWG,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,OAAO,KAAO,iBACd,KAAOA,EAAe,KACtB,KAAOA,EAAe,KAEtB,YAAaJ,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWK,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,OAAO,KAAO,iBACd,KAAOA,EAAe,KACtB,KAAOA,EAAe,KAEtB,YAAaN,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWO,EAAP,MAAOC,UAA0B,KAAK,CAC1C,OAAO,KAAO,oBACd,OAAO,KAAO,oBACd,KAAOA,EAAkB,KACzB,KAAOA,EAAkB,KAEzB,YAAaR,EAAU,gBAAe,CACpC,MAAMA,CAAO,CACf,GAGWS,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,OAAO,KAAO,iBACd,KAAOA,EAAe,KACtB,KAAOA,EAAe,KAEtB,YAAaV,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWW,EAAP,MAAOC,UAAsB,KAAK,CACtC,OAAO,KAAO,gBACd,OAAO,KAAO,gBACd,KAAOA,EAAc,KACrB,KAAOA,EAAc,KAErB,YAAaZ,EAAU,YAAW,CAChC,MAAMA,CAAO,CACf,GAGWa,EAAP,MAAOC,UAAmB,KAAK,CACnC,OAAO,KAAO,aACd,OAAO,KAAO,cACd,KAAOA,EAAW,KAClB,KAAOA,EAAW,KAElB,YAAad,EAAU,UAAS,CAC9B,MAAMA,CAAO,CACf", | ||
| "sourcesContent": ["/**\n * @packageDocumentation\n *\n * An abstraction of the Datastore/Blockstore codebases.\n */\n\n/**\n * An iterable or async iterable of values\n */\nexport type AwaitIterable<T> = Iterable<T> | AsyncIterable<T>\n\n/**\n * A generator or async generator of values\n */\nexport type AwaitGenerator<T, TReturn = any, TNext = any> = Generator<T, TReturn, TNext> | AsyncGenerator<T, TReturn, TNext>\n\n/**\n * A value or a promise of a value\n */\nexport type Await<T> = Promise<T> | T\n\n/**\n * Options for async operations\n *\n * @deprecated import from 'abort-error' module instead - this will be removed in a future release\n */\nexport interface AbortOptions {\n signal?: AbortSignal\n}\n\nexport interface Store<Key, Input, Output, InputPair, OutputPair,\n HasOptionsExtension = {}, PutOptionsExtension = {},\n PutManyOptionsExtension = {}, GetOptionsExtension = {},\n GetManyOptionsExtension = {}, DeleteOptionsExtension = {},\n DeleteManyOptionsExtension = {}> {\n /**\n * Check for the existence of a value for the passed key\n *\n * @example\n * ```js\n *const exists = await store.has(new Key('awesome'))\n *\n *if (exists) {\n * console.log('it is there')\n *} else {\n * console.log('it is not there')\n *}\n *```\n */\n has(key: Key, options?: AbortOptions & HasOptionsExtension): Await<boolean>\n\n /**\n * Store the passed value under the passed key\n *\n * @example\n *\n * ```js\n * await store.put([{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }])\n * ```\n */\n put(key: Key, val: Input, options?: AbortOptions & PutOptionsExtension): Await<Key>\n\n /**\n * Store the given key/value pairs\n *\n * @example\n * ```js\n * const source = [{ key: new Key('awesome'), value: new Uint8Array([0, 1, 2, 3]) }]\n *\n * for await (const { key, value } of store.putMany(source)) {\n * console.info(`put content for key ${key}`)\n * }\n * ```\n */\n putMany(\n source: AwaitIterable<InputPair>,\n options?: AbortOptions & PutManyOptionsExtension\n ): AwaitGenerator<Key>\n\n /**\n * Retrieve the value stored under the given key\n *\n * @example\n * ```js\n * const value = await store.get(new Key('awesome'))\n * console.log('got content: %s', value.toString('utf8'))\n * // => got content: datastore\n * ```\n */\n get(key: Key, options?: AbortOptions & GetOptionsExtension): Output\n\n /**\n * Retrieve values for the passed keys\n *\n * @example\n * ```js\n * for await (const { key, value } of store.getMany([new Key('awesome')])) {\n * console.log(`got \"${key}\" = \"${new TextDecoder('utf8').decode(value)}\"`')\n * // => got \"/awesome\" = \"datastore\"\n * }\n * ```\n */\n getMany(\n source: AwaitIterable<Key>,\n options?: AbortOptions & GetManyOptionsExtension\n ): AwaitGenerator<OutputPair>\n\n /**\n * Remove the record for the passed key\n *\n * @example\n *\n * ```js\n * await store.delete(new Key('awesome'))\n * console.log('deleted awesome content :(')\n * ```\n */\n delete(key: Key, options?: AbortOptions & DeleteOptionsExtension): Await<void>\n\n /**\n * Remove values for the passed keys\n *\n * @example\n *\n * ```js\n * const source = [new Key('awesome')]\n *\n * for await (const key of store.deleteMany(source)) {\n * console.log(`deleted content with key ${key}`)\n * }\n * ```\n */\n deleteMany(\n source: AwaitIterable<Key>,\n options?: AbortOptions & DeleteManyOptionsExtension\n ): AwaitGenerator<Key>\n}\n\nexport * from './errors.js'\n", "export class OpenFailedError extends Error {\n static name = 'OpenFailedError'\n name = OpenFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_OPEN_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = OpenFailedError.code\n\n constructor (message = 'Open failed') {\n super(message)\n }\n}\n\nexport class CloseFailedError extends Error {\n static name = 'CloseFailedError'\n name = CloseFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_CLOSE_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = CloseFailedError.code\n\n constructor (message = 'Close failed') {\n super(message)\n }\n}\n\nexport class PutFailedError extends Error {\n static name = 'PutFailedError'\n name = PutFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_PUT_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = PutFailedError.code\n\n constructor (message = 'Put failed') {\n super(message)\n }\n}\n\nexport class GetFailedError extends Error {\n static name = 'GetFailedError'\n name = GetFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_GET_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = GetFailedError.code\n\n constructor (message = 'Get failed') {\n super(message)\n }\n}\n\nexport class DeleteFailedError extends Error {\n static name = 'DeleteFailedError'\n name = DeleteFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_DELETE_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = DeleteFailedError.code\n\n constructor (message = 'Delete failed') {\n super(message)\n }\n}\n\nexport class HasFailedError extends Error {\n static name = 'HasFailedError'\n name = HasFailedError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_HAS_FAILED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = HasFailedError.code\n\n constructor (message = 'Has failed') {\n super(message)\n }\n}\n\nexport class NotFoundError extends Error {\n static name = 'NotFoundError'\n name = NotFoundError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_NOT_FOUND'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = NotFoundError.code\n\n constructor (message = 'Not Found') {\n super(message)\n }\n}\n\n/**\n * @deprecated import from 'abort-error' module instead - this will be removed in a future release\n */\nexport class AbortError extends Error {\n static name = 'AbortError'\n name = AbortError.name\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n static code = 'ERR_ABORTED'\n\n /**\n * @deprecated use `.name` instead - this will be removed in a future release\n */\n code = AbortError.code\n\n constructor (message = 'Aborted') {\n super(message)\n }\n}\n"], | ||
| "mappings": ";kcAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,EAAA,qBAAAC,EAAA,sBAAAC,EAAA,mBAAAC,EAAA,mBAAAC,EAAA,kBAAAC,EAAA,oBAAAC,EAAA,mBAAAC,ICAM,IAAOC,EAAP,MAAOC,UAAwB,KAAK,CACxC,OAAO,KAAO,kBACd,KAAOA,EAAgB,KAKvB,OAAO,KAAO,kBAKd,KAAOA,EAAgB,KAEvB,YAAaC,EAAU,cAAa,CAClC,MAAMA,CAAO,CACf,GAGWC,EAAP,MAAOC,UAAyB,KAAK,CACzC,OAAO,KAAO,mBACd,KAAOA,EAAiB,KAKxB,OAAO,KAAO,mBAKd,KAAOA,EAAiB,KAExB,YAAaF,EAAU,eAAc,CACnC,MAAMA,CAAO,CACf,GAGWG,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,KAAOA,EAAe,KAKtB,OAAO,KAAO,iBAKd,KAAOA,EAAe,KAEtB,YAAaJ,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWK,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,KAAOA,EAAe,KAKtB,OAAO,KAAO,iBAKd,KAAOA,EAAe,KAEtB,YAAaN,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWO,EAAP,MAAOC,UAA0B,KAAK,CAC1C,OAAO,KAAO,oBACd,KAAOA,EAAkB,KAKzB,OAAO,KAAO,oBAKd,KAAOA,EAAkB,KAEzB,YAAaR,EAAU,gBAAe,CACpC,MAAMA,CAAO,CACf,GAGWS,EAAP,MAAOC,UAAuB,KAAK,CACvC,OAAO,KAAO,iBACd,KAAOA,EAAe,KAKtB,OAAO,KAAO,iBAKd,KAAOA,EAAe,KAEtB,YAAaV,EAAU,aAAY,CACjC,MAAMA,CAAO,CACf,GAGWW,EAAP,MAAOC,UAAsB,KAAK,CACtC,OAAO,KAAO,gBACd,KAAOA,EAAc,KAKrB,OAAO,KAAO,gBAKd,KAAOA,EAAc,KAErB,YAAaZ,EAAU,YAAW,CAChC,MAAMA,CAAO,CACf,GAMWa,EAAP,MAAOC,UAAmB,KAAK,CACnC,OAAO,KAAO,aACd,KAAOA,EAAW,KAKlB,OAAO,KAAO,cAKd,KAAOA,EAAW,KAElB,YAAad,EAAU,UAAS,CAC9B,MAAMA,CAAO,CACf", | ||
| "names": ["index_exports", "__export", "AbortError", "CloseFailedError", "DeleteFailedError", "GetFailedError", "HasFailedError", "NotFoundError", "OpenFailedError", "PutFailedError", "OpenFailedError", "_OpenFailedError", "message", "CloseFailedError", "_CloseFailedError", "PutFailedError", "_PutFailedError", "GetFailedError", "_GetFailedError", "DeleteFailedError", "_DeleteFailedError", "HasFailedError", "_HasFailedError", "NotFoundError", "_NotFoundError", "AbortError", "_AbortError"] | ||
| } |
+59
-8
| export declare class OpenFailedError extends Error { | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -10,4 +16,10 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -18,4 +30,10 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -26,4 +44,10 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -34,4 +58,10 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -42,4 +72,10 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -50,11 +86,26 @@ constructor(message?: string); | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
| constructor(message?: string); | ||
| } | ||
| /** | ||
| * @deprecated import from 'abort-error' module instead - this will be removed in a future release | ||
| */ | ||
| export declare class AbortError extends Error { | ||
| static name: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code: string; | ||
| name: string; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code: string; | ||
@@ -61,0 +112,0 @@ constructor(message?: string); |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAgB,SAAQ,KAAK;IACxC,MAAM,CAAC,IAAI,SAAoB;IAC/B,MAAM,CAAC,IAAI,SAAoB;IAC/B,IAAI,SAAuB;IAC3B,IAAI,SAAuB;gBAEd,OAAO,SAAgB;CAGrC;AAED,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,MAAM,CAAC,IAAI,SAAqB;IAChC,MAAM,CAAC,IAAI,SAAqB;IAChC,IAAI,SAAwB;IAC5B,IAAI,SAAwB;gBAEf,OAAO,SAAiB;CAGtC;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,IAAI,SAAmB;IAC9B,MAAM,CAAC,IAAI,SAAmB;IAC9B,IAAI,SAAsB;IAC1B,IAAI,SAAsB;gBAEb,OAAO,SAAe;CAGpC;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,IAAI,SAAmB;IAC9B,MAAM,CAAC,IAAI,SAAmB;IAC9B,IAAI,SAAsB;IAC1B,IAAI,SAAsB;gBAEb,OAAO,SAAe;CAGpC;AAED,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,MAAM,CAAC,IAAI,SAAsB;IACjC,MAAM,CAAC,IAAI,SAAsB;IACjC,IAAI,SAAyB;IAC7B,IAAI,SAAyB;gBAEhB,OAAO,SAAkB;CAGvC;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,IAAI,SAAmB;IAC9B,MAAM,CAAC,IAAI,SAAmB;IAC9B,IAAI,SAAsB;IAC1B,IAAI,SAAsB;gBAEb,OAAO,SAAe;CAGpC;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E7B;;OAEG;IACH,MAAM,CAAC,IAAI,SAAsB;IAEjC;;OAEG;IACH,IAAI,SAAyB;gBAEhB,OAAO,SAAkB;CAGvC;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,IAAI,SAAmB;IAC9B,IAAI,SAAsB;IAE1B;;OAEG;IACH,MAAM,CAAC,IAAI,SAAmB;IAE9B;;OAEG;IACH,IAAI,SAAsB;gBAEb,OAAO,SAAe;CAGpC;AAED,qBAAa,aAAc,SAAQ,KAAK;IACtC,MAAM,CAAC,IAAI,SAAkB;IAC7B,IAAI,SAAqB;IAEzB;;OAEG;IACH,MAAM,CAAC,IAAI,SAAkB;IAE7B;;OAEG;IACH,IAAI,SAAqB;gBAEZ,OAAO,SAAc;CAGnC;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,MAAM,CAAC,IAAI,SAAe;IAC1B,IAAI,SAAkB;IAEtB;;OAEG;IACH,MAAM,CAAC,IAAI,SAAgB;IAE3B;;OAEG;IACH,IAAI,SAAkB;gBAET,OAAO,SAAY;CAGjC"} |
+59
-8
| export class OpenFailedError extends Error { | ||
| static name = 'OpenFailedError'; | ||
| name = OpenFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_OPEN_FAILED'; | ||
| name = OpenFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = OpenFailedError.code; | ||
@@ -12,4 +18,10 @@ constructor(message = 'Open failed') { | ||
| static name = 'CloseFailedError'; | ||
| name = CloseFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_CLOSE_FAILED'; | ||
| name = CloseFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = CloseFailedError.code; | ||
@@ -22,4 +34,10 @@ constructor(message = 'Close failed') { | ||
| static name = 'PutFailedError'; | ||
| name = PutFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_PUT_FAILED'; | ||
| name = PutFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = PutFailedError.code; | ||
@@ -32,4 +50,10 @@ constructor(message = 'Put failed') { | ||
| static name = 'GetFailedError'; | ||
| name = GetFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_GET_FAILED'; | ||
| name = GetFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = GetFailedError.code; | ||
@@ -42,4 +66,10 @@ constructor(message = 'Get failed') { | ||
| static name = 'DeleteFailedError'; | ||
| name = DeleteFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_DELETE_FAILED'; | ||
| name = DeleteFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = DeleteFailedError.code; | ||
@@ -52,4 +82,10 @@ constructor(message = 'Delete failed') { | ||
| static name = 'HasFailedError'; | ||
| name = HasFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_HAS_FAILED'; | ||
| name = HasFailedError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = HasFailedError.code; | ||
@@ -62,4 +98,10 @@ constructor(message = 'Has failed') { | ||
| static name = 'NotFoundError'; | ||
| name = NotFoundError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_NOT_FOUND'; | ||
| name = NotFoundError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = NotFoundError.code; | ||
@@ -70,6 +112,15 @@ constructor(message = 'Not Found') { | ||
| } | ||
| /** | ||
| * @deprecated import from 'abort-error' module instead - this will be removed in a future release | ||
| */ | ||
| export class AbortError extends Error { | ||
| static name = 'AbortError'; | ||
| name = AbortError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_ABORTED'; | ||
| name = AbortError.name; | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = AbortError.code; | ||
@@ -76,0 +127,0 @@ constructor(message = 'Aborted') { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAA;IAC/B,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAA;IAC/B,IAAI,GAAG,eAAe,CAAC,IAAI,CAAA;IAC3B,IAAI,GAAG,eAAe,CAAC,IAAI,CAAA;IAE3B,YAAa,OAAO,GAAG,aAAa;QAClC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;;AAGH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAChC,MAAM,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAChC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA;IAC5B,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA;IAE5B,YAAa,OAAO,GAAG,cAAc;QACnC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;;AAGH,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAA;IAC9B,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAA;IAC9B,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IAC1B,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;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,IAAI,GAAG,eAAe,CAAA;IAE7B;;OAEG;IACH,IAAI,GAAG,aAAa,CAAC,IAAI,CAAA;IAEzB,YAAa,OAAO,GAAG,WAAW;QAChC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;;AAGH;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC,MAAM,CAAC,IAAI,GAAG,YAAY,CAAA;IAC1B,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;IAEtB;;OAEG;IACH,MAAM,CAAC,IAAI,GAAG,aAAa,CAAA;IAE3B;;OAEG;IACH,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;IAEtB,YAAa,OAAO,GAAG,SAAS;QAC9B,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC"} |
@@ -19,3 +19,5 @@ /** | ||
| /** | ||
| * Options for async operations. | ||
| * Options for async operations | ||
| * | ||
| * @deprecated import from 'abort-error' module instead - this will be removed in a future release | ||
| */ | ||
@@ -22,0 +24,0 @@ export interface AbortOptions { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA;AAE7D;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,GAAG,EAAE,KAAK,GAAG,GAAG,IAAI,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;AAE5H;;GAEG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAErC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE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YAAY,GAAG,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;IAEnF;;;;;;;;;;;OAWG;IACH,OAAO,CACL,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,EAChC,OAAO,CAAC,EAAE,YAAY,GAAG,uBAAuB,GAC/C,cAAc,CAAC,GAAG,CAAC,CAAA;IAEtB;;;;;;;;;OASG;IACH,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,mBAAmB,GAAG,MAAM,CAAA;IAEnE;;;;;;;;;;OAUG;IACH,OAAO,CACL,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,YAAY,GAAG,uBAAuB,GAC/C,cAAc,CAAC,UAAU,CAAC,CAAA;IAE7B;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,sBAAsB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;IAE9E;;;;;;;;;;;;OAYG;IACH,UAAU,CACR,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,YAAY,GAAG,0BAA0B,GAClD,cAAc,CAAC,GAAG,CAAC,CAAA;CACvB;AAED,cAAc,aAAa,CAAA"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoIH,cAAc,aAAa,CAAA"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsIH,cAAc,aAAa,CAAA"} |
+4
-3
| { | ||
| "name": "interface-store", | ||
| "version": "7.0.1", | ||
| "version": "7.0.2", | ||
| "description": "A generic interface for storing and retrieving data", | ||
@@ -29,3 +29,4 @@ "license": "Apache-2.0 OR MIT", | ||
| "types": "./dist/src/index.d.ts", | ||
| "import": "./dist/src/index.js" | ||
| "import": "./dist/src/index.js", | ||
| "module-sync": "./src/index.js" | ||
| } | ||
@@ -134,4 +135,4 @@ }, | ||
| "devDependencies": { | ||
| "aegir": "^47.0.16" | ||
| "aegir": "^47.1.0" | ||
| } | ||
| } |
+1
-1
@@ -37,3 +37,3 @@ # interface-store | ||
| - <https://ipfs.github.io/js-stores/modules/interface_store.html> | ||
| - <https://ipfs.github.io/js-stores/modules/interface-store.html> | ||
@@ -40,0 +40,0 @@ # License |
+75
-8
| export class OpenFailedError extends Error { | ||
| static name = 'OpenFailedError' | ||
| name = OpenFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_OPEN_FAILED' | ||
| name = OpenFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = OpenFailedError.code | ||
@@ -14,4 +22,12 @@ | ||
| static name = 'CloseFailedError' | ||
| name = CloseFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_CLOSE_FAILED' | ||
| name = CloseFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = CloseFailedError.code | ||
@@ -26,4 +42,12 @@ | ||
| static name = 'PutFailedError' | ||
| name = PutFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_PUT_FAILED' | ||
| name = PutFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = PutFailedError.code | ||
@@ -38,4 +62,12 @@ | ||
| static name = 'GetFailedError' | ||
| name = GetFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_GET_FAILED' | ||
| name = GetFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = GetFailedError.code | ||
@@ -50,4 +82,12 @@ | ||
| static name = 'DeleteFailedError' | ||
| name = DeleteFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_DELETE_FAILED' | ||
| name = DeleteFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = DeleteFailedError.code | ||
@@ -62,4 +102,12 @@ | ||
| static name = 'HasFailedError' | ||
| name = HasFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_HAS_FAILED' | ||
| name = HasFailedError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = HasFailedError.code | ||
@@ -74,4 +122,12 @@ | ||
| static name = 'NotFoundError' | ||
| name = NotFoundError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_NOT_FOUND' | ||
| name = NotFoundError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = NotFoundError.code | ||
@@ -84,6 +140,17 @@ | ||
| /** | ||
| * @deprecated import from 'abort-error' module instead - this will be removed in a future release | ||
| */ | ||
| export class AbortError extends Error { | ||
| static name = 'AbortError' | ||
| name = AbortError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| static code = 'ERR_ABORTED' | ||
| name = AbortError.name | ||
| /** | ||
| * @deprecated use `.name` instead - this will be removed in a future release | ||
| */ | ||
| code = AbortError.code | ||
@@ -90,0 +157,0 @@ |
+3
-1
@@ -23,3 +23,5 @@ /** | ||
| /** | ||
| * Options for async operations. | ||
| * Options for async operations | ||
| * | ||
| * @deprecated import from 'abort-error' module instead - this will be removed in a future release | ||
| */ | ||
@@ -26,0 +28,0 @@ export interface AbortOptions { |
41493
21.44%629
33.26%