@proteinjs/db 1.5.4 → 1.5.6
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/CHANGELOG.md +41 -0
- package/LICENSE +21 -0
- package/dist/generated/index.js +5 -5
- package/dist/generated/index.js.map +1 -1
- package/dist/src/Columns.d.ts.map +1 -1
- package/dist/src/Columns.js +7 -11
- package/dist/src/Columns.js.map +1 -1
- package/dist/src/Record.d.ts.map +1 -1
- package/dist/src/Record.js +4 -2
- package/dist/src/Record.js.map +1 -1
- package/generated/index.ts +18 -21
- package/package.json +5 -4
- package/src/Columns.ts +1 -3
- package/src/Record.ts +4 -2
package/src/Record.ts
CHANGED
|
@@ -73,7 +73,8 @@ export class RecordSerializer<T extends Record> {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (omittedFields.length > 0) {
|
|
76
|
-
|
|
76
|
+
// could mean the developer is passing in an object they don't expect
|
|
77
|
+
this.logger.warn(`Fields were omitted during serialization: ${omittedFields.join(', ')}`);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
return serialized;
|
|
@@ -94,7 +95,8 @@ export class RecordSerializer<T extends Record> {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
if (omittedFields.length > 0) {
|
|
97
|
-
|
|
98
|
+
// expected when passing a base table into the query api
|
|
99
|
+
this.logger.debug(`Fields were omitted during deserialization: ${omittedFields.join(', ')}`);
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
return deserialized;
|