interface-store
Advanced tools
Comparing version 5.1.8 to 6.0.0
(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 i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var y=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p(t))!r.call(e,n)&&n!==s&&i(e,n,{get:()=>t[n],enumerable:!(o=a(t,n))||o.enumerable});return e};var l=e=>y(i({},"__esModule",{value:!0}),e);var A={};return l(A);})(); | ||
"use strict";var InterfaceStore=(()=>{var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var f=(e,r)=>{for(var t in r)o(e,t,{get:r[t],enumerable:!0})},b=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of h(r))!E.call(e,s)&&s!==t&&o(e,s,{get:()=>r[s],enumerable:!(i=m(r,s))||i.enumerable});return e};var A=e=>b(o({},"__esModule",{value:!0}),e);var C={};f(C,{AbortError:()=>l,CloseFailedError:()=>c,DeleteFailedError:()=>u,GetFailedError:()=>p,HasFailedError:()=>x,NotFoundError:()=>d,OpenFailedError:()=>n,PutFailedError:()=>a});var n=class extends Error{constructor(r="Open failed"){super(r),this.name="OpenFailedError"}},c=class extends Error{constructor(r="Close failed"){super(r),this.name="CloseFailedError"}},a=class extends Error{constructor(r="Put failed"){super(r),this.name="PutFailedError"}},p=class extends Error{constructor(r="Get failed"){super(r),this.name="GetFailedError"}},u=class extends Error{constructor(r="Delete failed"){super(r),this.name="DeleteFailedError"}},x=class extends Error{constructor(r="Has failed"){super(r),this.name="HasFailedError"}},d=class extends Error{constructor(r="Not Found"){super(r),this.name="NotFoundError"}},l=class extends Error{constructor(r="Aborted"){super(r),this.name="AbortError"}};return A(C);})(); | ||
return InterfaceStore})); |
@@ -108,2 +108,3 @@ /** | ||
} | ||
export * from './errors.js'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"AbortError": "https://ipfs.github.io/js-stores/classes/interface_store.AbortError.html", | ||
"CloseFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.CloseFailedError.html", | ||
"DeleteFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.DeleteFailedError.html", | ||
"GetFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.GetFailedError.html", | ||
"HasFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.HasFailedError.html", | ||
"NotFoundError": "https://ipfs.github.io/js-stores/classes/interface_store.NotFoundError.html", | ||
"OpenFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.OpenFailedError.html", | ||
"PutFailedError": "https://ipfs.github.io/js-stores/classes/interface_store.PutFailedError.html", | ||
"AbortOptions": "https://ipfs.github.io/js-stores/interfaces/interface_store.AbortOptions.html", | ||
".:AbortOptions": "https://ipfs.github.io/js-stores/interfaces/interface_store.AbortOptions.html", | ||
"Store": "https://ipfs.github.io/js-stores/interfaces/interface_store.Store.html", | ||
".:Store": "https://ipfs.github.io/js-stores/interfaces/interface_store.Store.html", | ||
"Await": "https://ipfs.github.io/js-stores/types/interface_store.Await.html", | ||
"AwaitIterable": "https://ipfs.github.io/js-stores/types/interface_store.AwaitIterable.html" | ||
".:Await": "https://ipfs.github.io/js-stores/types/interface_store.Await.html", | ||
"AwaitIterable": "https://ipfs.github.io/js-stores/types/interface_store.AwaitIterable.html", | ||
".:AwaitIterable": "https://ipfs.github.io/js-stores/types/interface_store.AwaitIterable.html" | ||
} |
{ | ||
"name": "interface-store", | ||
"version": "5.1.8", | ||
"version": "6.0.0", | ||
"description": "A generic interface for storing and retrieving data", | ||
@@ -18,3 +18,3 @@ "license": "Apache-2.0 OR MIT", | ||
}, | ||
"main": "src/index.js", | ||
"type": "module", | ||
"types": "dist/src/index.d.ts", | ||
@@ -39,2 +39,8 @@ "typesVersions": { | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
@@ -41,0 +47,0 @@ "extends": "ipfs", |
@@ -12,2 +12,17 @@ # interface-store | ||
<!-- | ||
!IMPORTANT! | ||
Everything in this README between "# About" and "# Install" is automatically | ||
generated and will be overwritten the next time the doc generator is run. | ||
To make changes to this section, please update the @packageDocumentation section | ||
of src/index.js or src/index.ts | ||
To experiment with formatting, please run "npm run docs" from the root of this | ||
repo and examine the changes made. | ||
--> | ||
An abstraction of the Datastore/Blockstore codebases. | ||
@@ -14,0 +29,0 @@ |
@@ -136,1 +136,3 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
} | ||
export * from './errors.js' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
57173
16
384
57
0
Yes