New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

db64

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db64 - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

db64.cjs.js

11

package.json
{
"name": "db64",
"version": "0.6.0",
"version": "0.7.0",
"description": "A Practical IndexedDB API",
"main": "db64.js",
"type": "module",
"exports": {
"import": "./db64.js",
"require": "./db64.cjs.js"
},
"scripts": {
"test": "./node_modules/.bin/http-server -a 127.0.0.1 -p 2222 -o",
"lint": "./node_modules/.bin/eslint db64.js",
"lint:fix": "./node_modules/.bin/eslint --fix db64.js"
"lint": "./node_modules/.bin/eslint db64.js make-cjs.js",
"lint:fix": "./node_modules/.bin/eslint --fix db64.js make-cjs.js",
"prepublishOnly": "node make-cjs.js"
},

@@ -12,0 +17,0 @@ "repository": {

@@ -112,10 +112,10 @@ # db64

1. Initialise by creating a DB with stores or multiple DBs with stores.
- _(You won't be able to add stores to a DB later unless you delete the DB in question. This is by design)_
- _(You won't be able to add stores to an existing DB later, unless you delete the DB in question. This is by design)_
3. Use a DB.
2. Use a DB.
- _(You can make multiple transactions concurrently for multiple DBs, or stores)_
4. Set, get and clear data.
3. Set, get and clear data.
5. **Handel the DB deletion and re-creation life-cycle**:
4. **Manage the lifecycle of DB deletion and re-creation**:
- _When data cannot be retrieved from the user's IndexedDB_

@@ -129,3 +129,5 @@ - _When there's an error_

You must consider step 4, if not you may leave users stuck because you think it works fine on your computer.
It's important to consider step 4, if not you may leave users stuck because everything looks fine on your computer.
Step 4 isn't specific to IndexedDB, it also applies to _localStorage_ but it's more prevalent with IndexedDB as there's
a higher risk of the application breaking if you decide to make chages to the codebase in the future.

@@ -132,0 +134,0 @@ If you do require versioning consider using [idb](https://github.com/jakearchibald/idb). **If you're not building a progressive web app (PWA) you probably don't need versioning**.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc