@atscript/utils-db 0.1.29 → 0.1.30
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/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -302,10 +302,11 @@ var AtscriptDbTable = class {
|
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Counts records matching the query.
|
|
305
|
-
*/ async count(query
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
305
|
+
*/ async count(query) {
|
|
306
|
+
query ?? (query = {
|
|
307
|
+
filter: {},
|
|
308
|
+
controls: {}
|
|
309
|
+
});
|
|
309
310
|
return this.adapter.count(query);
|
|
310
311
|
}
|
|
311
312
|
async updateMany(filter, data) {
|
package/dist/index.mjs
CHANGED
|
@@ -278,10 +278,11 @@ var AtscriptDbTable = class {
|
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
280
|
* Counts records matching the query.
|
|
281
|
-
*/ async count(query
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
*/ async count(query) {
|
|
282
|
+
query ?? (query = {
|
|
283
|
+
filter: {},
|
|
284
|
+
controls: {}
|
|
285
|
+
});
|
|
285
286
|
return this.adapter.count(query);
|
|
286
287
|
}
|
|
287
288
|
async updateMany(filter, data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/utils-db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Database adapter utilities for atscript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@uniqu/core": "^0.0.1",
|
|
40
|
-
"@atscript/core": "^0.1.
|
|
41
|
-
"@atscript/typescript": "^0.1.
|
|
40
|
+
"@atscript/core": "^0.1.30",
|
|
41
|
+
"@atscript/typescript": "^0.1.30"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"pub": "pnpm publish --access public",
|