rajt 0.0.34 → 0.0.35
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/package.json +1 -1
- package/src/dynamodb/compact.ts +2 -2
package/package.json
CHANGED
package/src/dynamodb/compact.ts
CHANGED
|
@@ -121,7 +121,7 @@ export default class Compact {
|
|
|
121
121
|
if (!key) return undefined
|
|
122
122
|
|
|
123
123
|
if (typeof key == 'string')
|
|
124
|
-
return [key, value]
|
|
124
|
+
return [key, value || null]
|
|
125
125
|
|
|
126
126
|
const mainKey = Object.keys(key)[0]
|
|
127
127
|
const subKeys = key[mainKey]
|
|
@@ -135,7 +135,7 @@ export default class Compact {
|
|
|
135
135
|
: [mainKey, this.withSchema(value, subKeys)]
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
return [mainKey, value]
|
|
138
|
+
return [mainKey, value || null]
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
static memo(val: any, seen: any[]): any {
|