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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rajt",
3
3
  "description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
4
- "version": "0.0.34",
4
+ "version": "0.0.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
@@ -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 {