@uform/utils
Advanced tools
Comparing version 0.3.10 to 0.3.11-beta.0
@@ -11,3 +11,3 @@ import { ISchema } from '@uform/types'; | ||
export declare const registerVirtualboxFlag: (name: string) => void; | ||
export declare const caculateSchemaInitialValues: (schema: ISchema, initialValues: any, callback?: (pathInfo: IPathInfo, schema: ISchema, value: any) => void) => any; | ||
export declare const calculateSchemaInitialValues: (schema: ISchema, initialValues: any, callback?: (pathInfo: IPathInfo, schema: ISchema, value: any) => void) => any; | ||
export {}; |
@@ -60,3 +60,3 @@ "use strict"; | ||
}; | ||
exports.caculateSchemaInitialValues = function (schema, initialValues, callback) { | ||
exports.calculateSchemaInitialValues = function (schema, initialValues, callback) { | ||
initialValues = initialValues || schema.default || {}; | ||
@@ -63,0 +63,0 @@ schemaTraverse(schema, function (subSchema, $path, parentPath) { |
{ | ||
"name": "@uform/utils", | ||
"version": "0.3.10", | ||
"version": "0.3.11-beta.0", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "7490ed84460a39a1d9bb8e0121fe7918fd4e999d", | ||
"gitHead": "214691b311de7452bf37bd0aec31af50d2a2f3c4", | ||
"scripts": { | ||
@@ -33,5 +33,5 @@ "build": "tsc --declaration" | ||
"dependencies": { | ||
"@uform/types": "^0.3.10", | ||
"@uform/types": "^0.3.11-beta.0", | ||
"camel-case": "^3.0.0" | ||
} | ||
} |
@@ -100,3 +100,3 @@ import { each, toArr } from './array' | ||
export const caculateSchemaInitialValues = ( | ||
export const calculateSchemaInitialValues = ( | ||
schema: ISchema, | ||
@@ -103,0 +103,0 @@ initialValues: any, |
86974
Updated@uform/types@^0.3.11-beta.0