@teleporthq/teleport-uidl-validator
Advanced tools
Comparing version 0.27.3-alpha.2 to 0.27.3-alpha.3
@@ -147,3 +147,6 @@ "use strict"; | ||
pageSize: (0, json_type_validation_1.number)(), | ||
totalCountPath: (0, json_type_validation_1.optional)((0, json_type_validation_1.array)((0, json_type_validation_1.string)())), | ||
totalCountPath: (0, json_type_validation_1.object)({ | ||
type: (0, json_type_validation_1.union)((0, json_type_validation_1.constant)('headers'), (0, json_type_validation_1.constant)('body')), | ||
path: (0, json_type_validation_1.array)((0, json_type_validation_1.union)((0, json_type_validation_1.string)(), (0, json_type_validation_1.number)())), | ||
}), | ||
}); | ||
@@ -150,0 +153,0 @@ exports.stateDefinitionsDecoder = (0, json_type_validation_1.object)({ |
@@ -143,3 +143,6 @@ import { object, string, dict, constant, number, optional, union, boolean, array, lazy, oneOf, intersection, unknownJson, withDefault, anyJson, } from '@mojotech/json-type-validation'; | ||
pageSize: number(), | ||
totalCountPath: optional(array(string())), | ||
totalCountPath: object({ | ||
type: union(constant('headers'), constant('body')), | ||
path: array(union(string(), number())), | ||
}), | ||
}); | ||
@@ -146,0 +149,0 @@ export var stateDefinitionsDecoder = object({ |
{ | ||
"name": "@teleporthq/teleport-uidl-validator", | ||
"version": "0.27.3-alpha.2", | ||
"version": "0.27.3-alpha.3", | ||
"description": "A module that offers validation and parsing for non-standard UIDL structures", | ||
@@ -28,6 +28,6 @@ "author": "teleportHQ", | ||
"@mojotech/json-type-validation": "^3.1.0", | ||
"@teleporthq/teleport-shared": "^0.27.3-alpha.2", | ||
"@teleporthq/teleport-types": "^0.27.3-alpha.2" | ||
"@teleporthq/teleport-shared": "^0.27.3-alpha.3", | ||
"@teleporthq/teleport-types": "^0.27.3-alpha.3" | ||
}, | ||
"gitHead": "1826e455b9c5c73c972391f96f740d7cd548134b" | ||
"gitHead": "776fa2beea05204929e2ef93ab70aa619fe7b0e3" | ||
} |
@@ -336,3 +336,6 @@ import { | ||
pageSize: number(), | ||
totalCountPath: optional(array(string())), | ||
totalCountPath: object({ | ||
type: union(constant('headers'), constant('body')), | ||
path: array(union(string(), number())), | ||
}), | ||
}) | ||
@@ -339,0 +342,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
488226
7957