pgsql-test 3.1.0 → 4.0.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/esm/utils.js +1 -1
- package/package.json +6 -6
- package/utils.js +1 -1
package/esm/utils.js
CHANGED
|
@@ -48,7 +48,7 @@ export const pruneDates = (row) => mapValues(row, (v, k) => {
|
|
|
48
48
|
}
|
|
49
49
|
return v;
|
|
50
50
|
});
|
|
51
|
-
export const pruneIds = (row, idHash) => mapValues(row, (v, k) => (k === 'id' || (typeof k === 'string' && k.endsWith('_id'))) &&
|
|
51
|
+
export const pruneIds = (row, idHash) => mapValues(row, (v, k) => (k === 'id' || k === 'rowId' || (typeof k === 'string' && k.endsWith('_id'))) &&
|
|
52
52
|
(typeof v === 'string' || typeof v === 'number')
|
|
53
53
|
? idReplacement(v, idHash)
|
|
54
54
|
: v);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgsql-test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution",
|
|
6
6
|
"main": "index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"test:watch": "jest --watch"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@pgpmjs/core": "
|
|
58
|
+
"@pgpmjs/core": "6.0.0",
|
|
59
59
|
"@types/pg": "^8.16.0",
|
|
60
60
|
"@types/pg-copy-streams": "^1.2.5",
|
|
61
61
|
"makage": "^0.1.12"
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@pgpmjs/server-utils": "^3.1.0",
|
|
67
67
|
"@pgpmjs/types": "^2.16.0",
|
|
68
68
|
"pg": "^8.17.1",
|
|
69
|
-
"pg-cache": "^
|
|
69
|
+
"pg-cache": "^3.0.0",
|
|
70
70
|
"pg-env": "^1.4.0",
|
|
71
|
-
"pgsql-client": "^
|
|
72
|
-
"pgsql-seed": "^
|
|
71
|
+
"pgsql-client": "^3.0.0",
|
|
72
|
+
"pgsql-seed": "^2.0.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b2daeefe49cdefb3d01ea63cf778fb9b847ab5fe"
|
|
75
75
|
}
|
package/utils.js
CHANGED
|
@@ -54,7 +54,7 @@ const pruneDates = (row) => mapValues(row, (v, k) => {
|
|
|
54
54
|
return v;
|
|
55
55
|
});
|
|
56
56
|
exports.pruneDates = pruneDates;
|
|
57
|
-
const pruneIds = (row, idHash) => mapValues(row, (v, k) => (k === 'id' || (typeof k === 'string' && k.endsWith('_id'))) &&
|
|
57
|
+
const pruneIds = (row, idHash) => mapValues(row, (v, k) => (k === 'id' || k === 'rowId' || (typeof k === 'string' && k.endsWith('_id'))) &&
|
|
58
58
|
(typeof v === 'string' || typeof v === 'number')
|
|
59
59
|
? idReplacement(v, idHash)
|
|
60
60
|
: v);
|