babymongo 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +27 -0
- package/README.md +712 -0
- package/dist/babymongo-browser.min.js +2 -0
- package/dist/babymongo-browser.min.js.map +1 -0
- package/dist/babymongo-node.min.js +2 -0
- package/dist/babymongo-node.min.js.map +1 -0
- package/dist/babymongo-server-worker.js +2 -0
- package/dist/babymongo-server-worker.js.map +1 -0
- package/package.json +70 -0
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "babymongo",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "MongoDB API compliant database that runs in the browser and Node.js using OPFS for storage.",
|
|
5
|
+
"main": "dist/babymongo-node.min.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha --reporter spec test/test.js test/test-advanced-indexes.js test/test-index-verification.js test/test-objectid.js test/test-aggregation-expressions.js test/test-aggregation-stages.js test/test-dot-notation.js test/test-change-streams.js test/test-queryoperators.js test/test-errors.js test/test-cursor-methods.js test/test-arrayfilters.js test/test-positional-operator.js test/test-geospatial-collection-index.js test/test-find-simple.js test/test-metadata-size.js test/test-opfs-storage.js",
|
|
8
|
+
"test:browser": "mocha --reporter spec test/test-browser.js",
|
|
9
|
+
"test:comparison": "mocha --reporter spec test/test-mongodb-comparison.js",
|
|
10
|
+
"test:all": "npm test && npm run test:browser",
|
|
11
|
+
"cover": "c8 --reporter=html --reporter=text --reporter=lcov npm test",
|
|
12
|
+
"build": "npm run build:clean && npm run build:min",
|
|
13
|
+
"build:clean": "rm -rf dist",
|
|
14
|
+
"build:dev": "vite build --config vite.browser.config.js && vite build --config vite.node.config.js && vite build --config vite.worker.config.js",
|
|
15
|
+
"build:min": "vite build --config vite.browser.config.js --mode production && vite build --config vite.node.config.js --mode production && vite build --config vite.worker.config.js --mode production",
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"preview": "vite preview"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"browser": "./dist/babymongo-browser.min.js",
|
|
23
|
+
"import": "./dist/babymongo-node.min.js",
|
|
24
|
+
"default": "./dist/babymongo-node.min.js"
|
|
25
|
+
},
|
|
26
|
+
"./browser": "./dist/babymongo-browser.min.js",
|
|
27
|
+
"./node": "./dist/babymongo-node.min.js",
|
|
28
|
+
"./worker": "./dist/babymongo-server-worker.js"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/belteshazzar/babymongo.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"mongo",
|
|
36
|
+
"db",
|
|
37
|
+
"mongodb",
|
|
38
|
+
"database",
|
|
39
|
+
"query",
|
|
40
|
+
"local"
|
|
41
|
+
],
|
|
42
|
+
"author": "Daniel Walton <daniel@belteshazzar.com> (http://www.belteshazzar.com)",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/belteshazzar/babymongo/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/belteshazzar/babymongo#readme",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@playwright/test": "^1.56.1",
|
|
50
|
+
"@rollup/plugin-commonjs": "^23.0.2",
|
|
51
|
+
"@rollup/plugin-json": "^5.0.1",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
53
|
+
"c8": "^9.1.0",
|
|
54
|
+
"chai": "^4.3.7",
|
|
55
|
+
"copyfiles": "^2.4.1",
|
|
56
|
+
"istanbul": "^0.4.5",
|
|
57
|
+
"mocha": "^10.1.0",
|
|
58
|
+
"playwright": "^1.56.1",
|
|
59
|
+
"rollup": "^2.79.1",
|
|
60
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
61
|
+
"vite": "^7.2.2"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@belteshazzar/binjson": "^1.0.1",
|
|
65
|
+
"events": "^3.3.0",
|
|
66
|
+
"mongodb": "^7.0.0",
|
|
67
|
+
"node-opfs": "^1.0.0",
|
|
68
|
+
"stemmer": "^2.0.1"
|
|
69
|
+
}
|
|
70
|
+
}
|