s3db.js 7.3.1 → 7.3.3
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/dist/s3db.cjs.js +2394 -191
- package/dist/s3db.cjs.min.js +1 -1
- package/dist/s3db.es.js +2394 -191
- package/dist/s3db.es.min.js +1 -1
- package/dist/s3db.iife.js +2393 -190
- package/dist/s3db.iife.min.js +1 -1
- package/package.json +25 -26
- package/src/plugins/cache/filesystem-cache.class.js +1 -1
- package/src/plugins/cache/partition-aware-filesystem-cache.class.js +1 -1
- package/src/plugins/cache/s3-cache.class.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "s3db.js",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.3",
|
|
4
4
|
"description": "Use AWS S3, the world's most reliable document storage, as a database with this ORM.",
|
|
5
5
|
"main": "dist/s3db.cjs.js",
|
|
6
6
|
"module": "dist/s3db.es.js",
|
|
@@ -43,6 +43,27 @@
|
|
|
43
43
|
"PLUGINS.md",
|
|
44
44
|
"UNLICENSE"
|
|
45
45
|
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "rollup -c",
|
|
48
|
+
"dev": "rollup -c -w",
|
|
49
|
+
"test": "npm run test:js && npm run test:ts",
|
|
50
|
+
"test:js": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand",
|
|
51
|
+
"test:ts": "tsc --noEmit --project tests/typescript/tsconfig.json",
|
|
52
|
+
"test:js-converage": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --coverage --runInBand",
|
|
53
|
+
"test:js-ai": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --runInBand",
|
|
54
|
+
"test:full": "npm run test:js && npm run test:ts",
|
|
55
|
+
"test:cache": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/plugin-cache*.test.js --runInBand",
|
|
56
|
+
"test:quick": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --testTimeout=10000",
|
|
57
|
+
"test:batch": "./test-batch.sh",
|
|
58
|
+
"test:plugins": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/ --runInBand --testTimeout=60000",
|
|
59
|
+
"test:plugins:fast": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/ --runInBand --testTimeout=15000 --testPathIgnorePatterns='plugin-audit.test.js|plugin-replicator-s3db.test.js|plugin-fulltext.test.js'",
|
|
60
|
+
"test:slow": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/plugin-audit.test.js tests/plugins/plugin-replicator-s3db.test.js tests/plugins/plugin-fulltext.test.js --runInBand --testTimeout=120000",
|
|
61
|
+
"test:types": "tsc --noEmit --project tests/typescript/tsconfig.json",
|
|
62
|
+
"test:types:basic": "tsc --noEmit tests/typescript/basic-usage.test.ts",
|
|
63
|
+
"test:types:direct": "tsc --noEmit tests/typescript/direct-type-test.ts",
|
|
64
|
+
"test:types:watch": "tsc --noEmit --watch --project tests/typescript/tsconfig.json",
|
|
65
|
+
"validate:types": "npm run test:types && echo 'TypeScript definitions are valid!'"
|
|
66
|
+
},
|
|
46
67
|
"dependencies": {
|
|
47
68
|
"@aws-sdk/client-s3": "^3.848.0",
|
|
48
69
|
"@supercharge/promise-pool": "^3.2.0",
|
|
@@ -50,8 +71,7 @@
|
|
|
50
71
|
"flat": "^6.0.1",
|
|
51
72
|
"json-stable-stringify": "^1.3.0",
|
|
52
73
|
"lodash-es": "^4.17.21",
|
|
53
|
-
"nanoid": "5.1.5"
|
|
54
|
-
"zlib": "^1.0.5"
|
|
74
|
+
"nanoid": "5.1.5"
|
|
55
75
|
},
|
|
56
76
|
"peerDependencies": {
|
|
57
77
|
"@aws-sdk/client-sqs": "^3.0.0",
|
|
@@ -95,26 +115,5 @@
|
|
|
95
115
|
},
|
|
96
116
|
"funding": [
|
|
97
117
|
"https://github.com/sponsors/forattini-dev"
|
|
98
|
-
]
|
|
99
|
-
|
|
100
|
-
"build": "rollup -c",
|
|
101
|
-
"dev": "rollup -c -w",
|
|
102
|
-
"test": "npm run test:js && npm run test:ts",
|
|
103
|
-
"test:js": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand",
|
|
104
|
-
"test:ts": "tsc --noEmit --project tests/typescript/tsconfig.json",
|
|
105
|
-
"test:js-converage": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --coverage --runInBand",
|
|
106
|
-
"test:js-ai": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --runInBand",
|
|
107
|
-
"test:full": "npm run test:js && npm run test:ts",
|
|
108
|
-
"test:cache": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/plugin-cache*.test.js --runInBand",
|
|
109
|
-
"test:quick": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --testTimeout=10000",
|
|
110
|
-
"test:batch": "./test-batch.sh",
|
|
111
|
-
"test:plugins": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/ --runInBand --testTimeout=60000",
|
|
112
|
-
"test:plugins:fast": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/ --runInBand --testTimeout=15000 --testPathIgnorePatterns='plugin-audit.test.js|plugin-replicator-s3db.test.js|plugin-fulltext.test.js'",
|
|
113
|
-
"test:slow": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js tests/plugins/plugin-audit.test.js tests/plugins/plugin-replicator-s3db.test.js tests/plugins/plugin-fulltext.test.js --runInBand --testTimeout=120000",
|
|
114
|
-
"test:types": "tsc --noEmit --project tests/typescript/tsconfig.json",
|
|
115
|
-
"test:types:basic": "tsc --noEmit tests/typescript/basic-usage.test.ts",
|
|
116
|
-
"test:types:direct": "tsc --noEmit tests/typescript/direct-type-test.ts",
|
|
117
|
-
"test:types:watch": "tsc --noEmit --watch --project tests/typescript/tsconfig.json",
|
|
118
|
-
"validate:types": "npm run test:types && echo 'TypeScript definitions are valid!'"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -29,7 +29,7 @@ import { FilesystemCache } from './filesystem-cache.class.js';
|
|
|
29
29
|
import tryFn from '../../concerns/try-fn.js';
|
|
30
30
|
|
|
31
31
|
const mkdir = promisify(fs.mkdir);
|
|
32
|
-
const rmdir = promisify(fs.
|
|
32
|
+
const rmdir = promisify(fs.rm);
|
|
33
33
|
const readdir = promisify(fs.readdir);
|
|
34
34
|
const stat = promisify(fs.stat);
|
|
35
35
|
const writeFile = promisify(fs.writeFile);
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
* - Metadata is useful for cache management and monitoring
|
|
105
105
|
* - TTL is enforced by checking object creation time
|
|
106
106
|
*/
|
|
107
|
-
import zlib from "zlib";
|
|
107
|
+
import zlib from "node:zlib";
|
|
108
108
|
import { join } from "path";
|
|
109
109
|
|
|
110
110
|
import { Cache } from "./cache.class.js"
|