forked from dumbmatter/fakeIndexedDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 5.32 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
{
"name": "fake-indexeddb",
"version": "4.0.2",
"description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",
"homepage": "https://github.com/dumbmatter/fakeIndexedDB",
"repository": {
"type": "git",
"url": "git://github.com/dumbmatter/fakeIndexedDB.git"
},
"bugs": {
"url": "https://github.com/dumbmatter/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 && yarn run build-esm && yarn 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": "yarn run build && rm -rf build/cjs/test && rm -rf build/esm/test",
"lint": "tslint 'src/**/*.ts' && yarn run 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": "yarn 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 && yarn run lint && yarn run build && yarn run test-jest && node test/test.js && node test/dexie.js && yarn run test-w3c && yarn run test-mocha && yarn 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"
],
"dependencies": {
"realistic-structured-clone": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/mocha": "^9.1.1",
"@types/node": "^18.0.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.23.3",
"dexie": "^3.2.2",
"glob": "^8.0.3",
"husky": "^7.0.4",
"jest": "^28.1.2",
"lint-staged": "^12.5.0",
"mocha": "^9.2.2",
"node-qunit-phantomjs": "^1.6.3",
"prettier": "^2.7.1",
"qunitjs": "^1.23.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0",
"typescript": "4.7.4"
},
"lint-staged": {
"*.{js,json,ts}": "prettier --write"
}
}