@naturalcycles/db-lib 10.28.0 → 10.29.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.
@@ -22,8 +22,8 @@ export const testItemBMJsonSchema = j
22
22
  .rootObject({
23
23
  // todo: figure out how to not copy-paste these 3 fields
24
24
  id: j.string(), // todo: not strictly needed here
25
- created: j.unixTimestamp(),
26
- updated: j.unixTimestamp(),
25
+ created: j.integer().unixTimestamp(),
26
+ updated: j.integer().unixTimestamp(),
27
27
  k1: j.string(),
28
28
  k2: j.oneOf([j.string(), j.null()]).optional(),
29
29
  k3: j.number().optional(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/db-lib",
3
3
  "type": "module",
4
- "version": "10.28.0",
4
+ "version": "10.29.0",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@naturalcycles/nodejs-lib": "^15"
@@ -55,8 +55,8 @@ export const testItemBMJsonSchema: JsonSchemaObject<TestItemBM> = j
55
55
  .rootObject<TestItemBM>({
56
56
  // todo: figure out how to not copy-paste these 3 fields
57
57
  id: j.string(), // todo: not strictly needed here
58
- created: j.unixTimestamp(),
59
- updated: j.unixTimestamp(),
58
+ created: j.integer().unixTimestamp(),
59
+ updated: j.integer().unixTimestamp(),
60
60
  k1: j.string(),
61
61
  k2: j.oneOf([j.string(), j.null()]).optional(),
62
62
  k3: j.number().optional(),