@decaf-ts/for-pouch 0.0.2
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.md +21 -0
- package/README.md +297 -0
- package/dist/esm/for-pouch.bundle.min.esm.js +2 -0
- package/dist/esm/for-pouch.bundle.min.esm.js.LICENSE.txt +14 -0
- package/dist/for-pouch.bundle.min.js +2 -0
- package/dist/for-pouch.bundle.min.js.LICENSE.txt +14 -0
- package/lib/PouchRepository.cjs +4 -0
- package/lib/PouchRepository.d.ts +7 -0
- package/lib/adapter.cjs +105 -0
- package/lib/adapter.d.ts +12 -0
- package/lib/esm/PouchRepository.d.ts +7 -0
- package/lib/esm/PouchRepository.js +3 -0
- package/lib/esm/adapter.d.ts +12 -0
- package/lib/esm/adapter.js +101 -0
- package/lib/esm/index.d.ts +15 -0
- package/lib/esm/index.js +17 -0
- package/lib/esm/utils.d.ts +21 -0
- package/lib/esm/utils.js +92 -0
- package/lib/index.cjs +34 -0
- package/lib/index.d.ts +15 -0
- package/lib/utils.cjs +96 -0
- package/lib/utils.d.ts +21 -0
- package/package.json +128 -0
package/package.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@decaf-ts/for-pouch",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "decaf-ts persistence adapter for PouchDB",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"require": "./lib/index.cjs",
|
|
8
|
+
"import": "./lib/esm/index.js"
|
|
9
|
+
},
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"do-install": "TOKEN=$(cat .token) npm install",
|
|
13
|
+
"update-dependencies": "rimraf node_modules/@decaf-ts package-lock.json && npm run do-install",
|
|
14
|
+
"flash-forward": "npx npm-check-updates -u && npm run do-install",
|
|
15
|
+
"reset": "rm -rf * && git checkout . && git pull && npm run do-install",
|
|
16
|
+
"build": "rimraf ./lib && rimraf ./dist && gulp dev",
|
|
17
|
+
"build:prod": "rimraf ./lib && rimraf ./dist && gulp prod",
|
|
18
|
+
"test": "jest --coverage --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
|
|
19
|
+
"test:integration": "jest --coverage --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles --globalSetup=./tests/integration/setup.ts --globalTeardown=./tests/integration/teardown.ts",
|
|
20
|
+
"test:all": "jest --coverage --testPathPattern=\"/tests/(unit|integration)\" --passWithNoTests",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"lint-fix": "eslint --fix ./src/*",
|
|
23
|
+
"test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
|
|
24
|
+
"prepare-release": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
|
|
25
|
+
"release": "./bin/tag-release.sh",
|
|
26
|
+
"clean-publish": "npx clean-publish",
|
|
27
|
+
"coverage": "npm run test:all && cd workdocs && jest-coverage-badges",
|
|
28
|
+
"drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/",
|
|
29
|
+
"uml": "cd workdocs/uml && for FILE in ./*.puml; do docker run --rm -v $(pwd):/work -w /work miy4/plantuml -DPLANTUML_LIMIT_SIZE=8192 -tpng $FILE; done && cd ../.. && cp -fr workdocs/uml/*.png workdocs/resources/",
|
|
30
|
+
"docs": "npx rimraf ./docs && mkdir docs && npm run do-install -- better-docs taffydb && gulp docs; npm remove better-docs taffydb"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/decaf-ts/for-pouch.git"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=20.0.0",
|
|
38
|
+
"npm": ">=10.0.0"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"lib",
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"keywords": [
|
|
45
|
+
"plantuml",
|
|
46
|
+
"mermaid",
|
|
47
|
+
"uml",
|
|
48
|
+
"drawio",
|
|
49
|
+
"mddocs",
|
|
50
|
+
"md",
|
|
51
|
+
"jsdoc",
|
|
52
|
+
"doc",
|
|
53
|
+
"docs",
|
|
54
|
+
"documentation",
|
|
55
|
+
"ci/cd",
|
|
56
|
+
"ci",
|
|
57
|
+
"cd",
|
|
58
|
+
"template",
|
|
59
|
+
"typescript",
|
|
60
|
+
"ts"
|
|
61
|
+
],
|
|
62
|
+
"author": "Tiago Venceslau",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/decaf-ts/for-pouch/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/decaf-ts/for-pouch#readme",
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@decaf-ts/for-nano": "^0.0.2",
|
|
70
|
+
"@eslint/js": "^9.13.0",
|
|
71
|
+
"@types/jest": "^29.5.14",
|
|
72
|
+
"@types/pouchdb": "^6.4.2",
|
|
73
|
+
"@types/pouchdb-core": "^7.0.15",
|
|
74
|
+
"@types/transform-pouch": "^1.0.6",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
76
|
+
"clean-publish": "^5.1.0",
|
|
77
|
+
"dpdm": "^3.14.0",
|
|
78
|
+
"eslint": "^9.13.0",
|
|
79
|
+
"eslint-config-prettier": "^9.1.0",
|
|
80
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
81
|
+
"globals": "^15.11.0",
|
|
82
|
+
"gulp": "^5.0.0",
|
|
83
|
+
"gulp-if": "^3.0.0",
|
|
84
|
+
"gulp-rename": "^2.0.0",
|
|
85
|
+
"gulp-replace": "^1.1.4",
|
|
86
|
+
"gulp-run-command": "^0.0.10",
|
|
87
|
+
"gulp-sourcemaps": "^2.6.5",
|
|
88
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
89
|
+
"gulp-uglify": "^3.0.2",
|
|
90
|
+
"jest": "^29.7.0",
|
|
91
|
+
"jest-coverage-badges": "^1.0.0",
|
|
92
|
+
"jest-junit": "^16.0.0",
|
|
93
|
+
"jsdoc": "^4.0.4",
|
|
94
|
+
"jsdoc-mermaid": "^1.0.0",
|
|
95
|
+
"markdown-include": "^0.4.3",
|
|
96
|
+
"merge-stream": "^2.0.0",
|
|
97
|
+
"nodemon": "^3.1.7",
|
|
98
|
+
"npm-check-updates": "^17.1.9",
|
|
99
|
+
"pouchdb-adapter-http": "^9.0.0",
|
|
100
|
+
"pouchdb-adapter-idb": "^9.0.0",
|
|
101
|
+
"pouchdb-adapter-leveldb": "^9.0.0",
|
|
102
|
+
"pouchdb-adapter-localstorage": "^9.0.0",
|
|
103
|
+
"pouchdb-adapter-memory": "^9.0.0",
|
|
104
|
+
"pouchdb-adapter-websql": "^7.0.0",
|
|
105
|
+
"pouchdb-mapreduce": "^9.0.0",
|
|
106
|
+
"pouchdb-replication": "^9.0.0",
|
|
107
|
+
"prettier": "^3.3.3",
|
|
108
|
+
"rimraf": "^6.0.1",
|
|
109
|
+
"transform-pouch": "^2.0.0",
|
|
110
|
+
"ts-jest": "^29.2.5",
|
|
111
|
+
"ts-loader": "^9.5.1",
|
|
112
|
+
"ts-node": "^10.9.2",
|
|
113
|
+
"typescript": "^5.6.3",
|
|
114
|
+
"typescript-eslint": "^8.12.2",
|
|
115
|
+
"vinyl-named": "^1.1.0",
|
|
116
|
+
"webpack-stream": "^7.0.0"
|
|
117
|
+
},
|
|
118
|
+
"peerDependencies": {
|
|
119
|
+
"@decaf-ts/core": "latest",
|
|
120
|
+
"@decaf-ts/db-decorators": "latest",
|
|
121
|
+
"@decaf-ts/decorator-validation": "latest",
|
|
122
|
+
"@decaf-ts/for-couchdb": "latest",
|
|
123
|
+
"@decaf-ts/injectable-decorators": "latest",
|
|
124
|
+
"@decaf-ts/reflection": "latest",
|
|
125
|
+
"pouchdb-core": "^9.0.0",
|
|
126
|
+
"pouchdb-find": "^9.0.0"
|
|
127
|
+
}
|
|
128
|
+
}
|