@naturalcycles/db-lib 9.14.0 → 9.14.1
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/testing/daoTest.js
CHANGED
|
@@ -186,7 +186,7 @@ function runCommonDaoTest(db, quirks = {}) {
|
|
|
186
186
|
// cleanup
|
|
187
187
|
await dao.query().deleteByQuery();
|
|
188
188
|
// Test that id, created, updated are created
|
|
189
|
-
const now = (0, js_lib_1.
|
|
189
|
+
const now = (0, js_lib_1.nowUnix)();
|
|
190
190
|
await dao.runInTransaction(async (tx) => {
|
|
191
191
|
const row = (0, js_lib_1._omit)(item1, ['id', 'created', 'updated']);
|
|
192
192
|
await tx.save(dao, row);
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@naturalcycles/nodejs-lib": "^13.1.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@naturalcycles/bench-lib": "^
|
|
11
|
+
"@naturalcycles/bench-lib": "^3.0.0",
|
|
12
12
|
"@naturalcycles/dev-lib": "^13.0.0",
|
|
13
13
|
"@types/node": "^20.2.1",
|
|
14
14
|
"jest": "^29.0.0"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18.12"
|
|
42
42
|
},
|
|
43
|
-
"version": "9.14.
|
|
43
|
+
"version": "9.14.1",
|
|
44
44
|
"description": "Lowest Common Denominator API to supported Databases",
|
|
45
45
|
"keywords": [
|
|
46
46
|
"db",
|
package/src/testing/daoTest.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Readable } from 'node:stream'
|
|
2
|
-
import { _deepCopy, _pick, _sortBy, _omit,
|
|
2
|
+
import { _deepCopy, _pick, _sortBy, _omit, nowUnix } from '@naturalcycles/js-lib'
|
|
3
3
|
import { _pipeline } from '@naturalcycles/nodejs-lib'
|
|
4
4
|
import { CommonDaoLogLevel, DBQuery } from '..'
|
|
5
5
|
import { CommonDB } from '../common.db'
|
|
@@ -255,7 +255,7 @@ export function runCommonDaoTest(db: CommonDB, quirks: CommonDBImplementationQui
|
|
|
255
255
|
await dao.query().deleteByQuery()
|
|
256
256
|
|
|
257
257
|
// Test that id, created, updated are created
|
|
258
|
-
const now =
|
|
258
|
+
const now = nowUnix()
|
|
259
259
|
|
|
260
260
|
await dao.runInTransaction(async tx => {
|
|
261
261
|
const row = _omit(item1, ['id', 'created', 'updated'])
|