forked from dumbmatter/fakeIndexedDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
144 lines (144 loc) · 5.43 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "@gitliveapp/fake-indexeddb",
"version": "5.0.2",
"description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",
"homepage": "https://github.com/gitliveapp/fakeIndexedDB",
"repository": {
"type": "git",
"url": "git://github.com/gitliveapp/fakeIndexedDB.git"
},
"bugs": {
"url": "https://github.com/gitliveapp/fakeIndexedDB/issues"
},
"keywords": [
"indexeddb",
"datastore",
"database",
"embedded",
"nosql",
"in-memory",
"polyfill",
"shim"
],
"type": "module",
"main": "./build/cjs/index.js",
"module": "./build/esm/index.js",
"exports": {
".": {
"types": "./types.d.ts",
"import": "./build/esm/index.js",
"require": "./build/cjs/index.js"
},
"./auto": {
"import": "./auto/index.mjs",
"require": "./auto/index.js"
},
"./lib/fakeIndexedDB": {
"import": "./build/esm/fakeIndexedDB.js",
"require": "./build/cjs/fakeIndexedDB.js"
},
"./lib/FDBCursor": {
"import": "./build/esm/FDBCursor.js",
"require": "./build/cjs/FDBCursor.js"
},
"./lib/FDBCursorWithValue": {
"import": "./build/esm/FDBCursorWithValue.js",
"require": "./build/cjs/FDBCursorWithValue.js"
},
"./lib/FDBDatabase": {
"import": "./build/esm/FDBDatabase.js",
"require": "./build/cjs/FDBDatabase.js"
},
"./lib/FDBFactory": {
"import": "./build/esm/FDBFactory.js",
"require": "./build/cjs/FDBFactory.js"
},
"./lib/FDBIndex": {
"import": "./build/esm/FDBIndex.js",
"require": "./build/cjs/FDBIndex.js"
},
"./lib/FDBKeyRange": {
"import": "./build/esm/FDBKeyRange.js",
"require": "./build/cjs/FDBKeyRange.js"
},
"./lib/FDBObjectStore": {
"import": "./build/esm/FDBObjectStore.js",
"require": "./build/cjs/FDBObjectStore.js"
},
"./lib/FDBOpenDBRequest": {
"import": "./build/esm/FDBOpenDBRequest.js",
"require": "./build/cjs/FDBOpenDBRequest.js"
},
"./lib/FDBRequest": {
"import": "./build/esm/FDBRequest.js",
"require": "./build/cjs/FDBRequest.js"
},
"./lib/FDBTransaction": {
"import": "./build/esm/FDBTransaction.js",
"require": "./build/cjs/FDBTransaction.js"
},
"./lib/FDBVersionChangeEvent": {
"import": "./build/esm/FDBVersionChangeEvent.js",
"require": "./build/cjs/FDBVersionChangeEvent.js"
}
},
"types": "./types.d.ts",
"scripts": {
"build": "rm -rf build && npm run build-esm && npm run build-cjs",
"build-cjs": "BABEL_ENV=cjs babel src --out-dir build/cjs --extensions \".ts\" && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json",
"build-esm": "babel src --out-dir build/esm --extensions \".ts\"",
"prepublishOnly": "npm run build && rm -rf build/cjs/test && rm -rf build/esm/test",
"lint": "eslint 'src/**/*.ts' && tsc",
"prettier": "prettier --write *.json 'src/**/*.{js,ts}'",
"test-jest": "node --experimental-vm-modules node_modules/.bin/jest test/jest.js",
"test-mocha": "mocha --timeout 10000 build/esm/test/fakeIndexedDB",
"build-qunit": "mkdir build/esm/test/indexedDBmock && cp src/test/indexedDBmock/* build/esm/test/indexedDBmock && browserify src/test/indexedDBmock/exports-qunit-bundle.js -o build/esm/test/indexedDBmock/exports-qunit-bundle.js -t [ babelify --presets [ @babel/preset-env ] ]",
"test-qunit": "npm run build-qunit && node-qunit-phantomjs build/esm/test/indexedDBmock/index.html",
"test-w3c": "node src/test/web-platform-tests/run-all.js",
"test": "rm -rf build && npm run lint && npm run build && npm run test-jest && node test/test.js && node test/dexie.js && npm run test-w3c && npm run test-mocha && npm run test-qunit",
"prepare": "husky install"
},
"author": "Jeremy Scheff <[email protected]> (http://dumbmatter.com/)",
"license": "Apache-2.0",
"files": [
"auto",
"auto.d.ts",
"build",
"lib",
"types.d.ts"
],
"engines": {
"node": ">=18"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.5",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"babel-plugin-add-module-exports": "^1.0.4",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.33.0",
"dexie": "^3.2.4",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"glob": "^10.3.10",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"node-qunit-phantomjs": "^2.1.1",
"prettier": "^3.0.3",
"qunitjs": "^1.23.1",
"typescript": "^5.2.2"
},
"lint-staged": {
"*.{js,json,ts,cjs,mjs}": "prettier --write"
}
}