@based/db 0.0.60 → 0.0.61

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.
Binary file
Binary file
@@ -7,7 +7,7 @@ export function writeReferences(value, ctx, schema, def, res, mod) {
7
7
  if (typeof value !== 'object') {
8
8
  return new ModifyError(def, value);
9
9
  }
10
- if (value === null) {
10
+ if (value === null || (Array.isArray(value) && value.length === 0)) {
11
11
  if (ctx.len + 11 > ctx.max) {
12
12
  return RANGE_ERR;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@based/db",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",