Comparing version 0.8.2 to 0.8.3
@@ -7,2 +7,4 @@ import fs from 'fs/promises' | ||
const name = 'db64' | ||
const currentFilePath = (new URL(import.meta.url)).pathname | ||
@@ -15,12 +17,12 @@ const __dirname = dirname(currentFilePath) | ||
readmeRoot: path.join(__dirname, './README.md'), | ||
source: path.join(__dirname, './src/db64.js'), | ||
sourceTSdef: path.join(__dirname, './src/db64.d.ts'), | ||
tsDefDist: path.join(__dirname, './dist/db64.d.ts'), | ||
tsDefMapDist: path.join(__dirname, './dist/db64.d.ts.map'), | ||
cjsDist: path.join(__dirname, './dist/db64.cjs'), | ||
esDist: path.join(__dirname, './dist/db64.js'), | ||
esMinDist: path.join(__dirname, './dist/db64.min.js'), | ||
esMinMapDist: path.join(__dirname, './dist/db64.min.map'), | ||
cjsMinDist: path.join(__dirname, './dist/db64-cjs.min.js'), | ||
cjsMinMapDist: path.join(__dirname, './dist/db64-cjs.min.map') | ||
source: path.join(__dirname, `./src/${name}.js`), | ||
sourceTSdef: path.join(__dirname, `./src/${name}.d.ts`), | ||
tsDefDist: path.join(__dirname, `./dist/${name}.d.ts`), | ||
tsDefMapDist: path.join(__dirname, `./dist/${name}.d.ts.map`), | ||
cjsDist: path.join(__dirname, `./dist/${name}.cjs`), | ||
esDist: path.join(__dirname, `./dist/${name}.js`), | ||
esMinDist: path.join(__dirname, `./dist/${name}.min.js`), | ||
esMinMapDist: path.join(__dirname, `./dist/${name}.min.map`), | ||
cjsMinDist: path.join(__dirname, `./dist/${name}-cjs.min.js`), | ||
cjsMinMapDist: path.join(__dirname, `./dist/${name}-cjs.min.map`) | ||
} | ||
@@ -35,3 +37,3 @@ | ||
const insertCJSImport = data.replace(/export default db64/g, 'module.exports = db64') | ||
const insertCJSImport = data.replace(new RegExp(`export default ${name}`, 'g'), `module.exports = ${name}`) | ||
@@ -38,0 +40,0 @@ const minifiedESData = await minify(data, { |
@@ -103,3 +103,2 @@ const { isArray } = Array | ||
/* | ||
@@ -126,3 +125,2 @@ Deletes an entry for a given store by key. | ||
cursorRequest.onerror = e => reject(e) | ||
resolve(db64) | ||
@@ -129,0 +127,0 @@ } catch (e) { |
{ | ||
"name": "db64", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "A Practical IndexedDB API", | ||
@@ -13,3 +13,4 @@ "main": "db64.js", | ||
"test": "./node_modules/.bin/http-server -a 127.0.0.1 -p 2222 -o", | ||
"lint": "./node_modules/.bin/eslint --fix ./src ./create-distribution.js", | ||
"lint": "./node_modules/.bin/eslint --fix ./src ./create-distribution.js ./examples", | ||
"d": "./node_modules/.bin/http-server -o", | ||
"prepublishOnly": "node create-distribution.js" | ||
@@ -42,3 +43,6 @@ }, | ||
"typescript": "^5.3.3" | ||
}, | ||
"dependencies": { | ||
"d": "^1.0.1" | ||
} | ||
} |
@@ -37,2 +37,3 @@ # db64 | ||
``` | ||
_Launch an example using `npm run d` then navigate to `./exmaples`_ | ||
@@ -39,0 +40,0 @@ ### Why IndexedDB, why not localStorage? |
@@ -37,2 +37,3 @@ # db64 | ||
``` | ||
_Launch an example using `npm run d` then navigate to `./exmaples`_ | ||
@@ -39,0 +40,0 @@ ### Why IndexedDB, why not localStorage? |
@@ -103,3 +103,2 @@ const { isArray } = Array | ||
/* | ||
@@ -126,3 +125,2 @@ Deletes an entry for a given store by key. | ||
cursorRequest.onerror = e => reject(e) | ||
resolve(db64) | ||
@@ -129,0 +127,0 @@ } catch (e) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64103
20
961
198
1
+ Addedd@^1.0.1
+ Addedd@1.0.2(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addedtype@2.7.3(transitive)