@uform/utils
Advanced tools
Comparing version 0.3.11 to 0.4.0-beta.0
@@ -401,3 +401,3 @@ "use strict"; | ||
var schema = getSchema(pathArr.slice(0, i)); | ||
if (schema.type === 'array') { | ||
if (!schema || schema.type === 'array') { | ||
obj[p] = []; | ||
@@ -404,0 +404,0 @@ } |
@@ -7,7 +7,7 @@ import { ISchema } from '@uform/types'; | ||
} | ||
export declare const getSchemaNodeFromPath: (schema: ISchema, path: string | number | (string | number)[]) => ISchema; | ||
export declare const schemaIs: (schema: ISchema, type: string) => boolean; | ||
export declare const getSchemaNodeFromPath: (schema: ISchema<any>, path: string | number | (string | number)[]) => ISchema<any>; | ||
export declare const schemaIs: (schema: ISchema<any>, type: string) => boolean; | ||
export declare const isVirtualBox: (name: string) => boolean; | ||
export declare const registerVirtualboxFlag: (name: string) => void; | ||
export declare const calculateSchemaInitialValues: (schema: ISchema, initialValues: any, callback?: (pathInfo: IPathInfo, schema: ISchema, value: any) => void) => any; | ||
export declare const calculateSchemaInitialValues: (schema: ISchema<any>, initialValues: any, callback?: (pathInfo: IPathInfo, schema: ISchema<any>, value: any) => void) => any; | ||
export {}; |
{ | ||
"name": "@uform/utils", | ||
"version": "0.3.11", | ||
"version": "0.4.0-beta.0", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "fb1ebbb1613b89775378748b90a7854efb9c1c2e", | ||
"gitHead": "197f94a17cb1ba4f3ec8ccb1f8e35a4d684c9f48", | ||
"scripts": { | ||
@@ -33,5 +33,5 @@ "build": "tsc --declaration" | ||
"dependencies": { | ||
"@uform/types": "^0.3.11", | ||
"@uform/types": "^0.4.0-beta.0", | ||
"camel-case": "^3.0.0" | ||
} | ||
} |
@@ -507,3 +507,4 @@ import { | ||
const schema = getSchema(pathArr.slice(0, i) as string[]) | ||
if (schema.type === 'array') { | ||
if (!schema || schema.type === 'array') { | ||
obj[p] = [] | ||
@@ -510,0 +511,0 @@ } else { |
87020
+ Added@uform/types@0.4.4(transitive)
- Removed@uform/types@0.3.11(transitive)
Updated@uform/types@^0.4.0-beta.0