Comparing version 0.2.2 to 0.2.3
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.2.3](https://github.com/unjs/untyped/compare/v0.2.2...v0.2.3) (2021-04-02) | ||
### Bug Fixes | ||
* handle empty object type ([98e6172](https://github.com/unjs/untyped/commit/98e617262cf4dac19ebe8f3a588dd02b3b268e97)) | ||
### [0.2.2](https://github.com/unjs/untyped/compare/v0.2.1...v0.2.2) (2021-03-28) | ||
@@ -7,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
declare type JSValue = string | number | bigint | boolean | symbol | Function | Array<any> | undefined | null; | ||
declare type JSValue = string | number | bigint | boolean | symbol | Function | Array<any> | undefined | object | null; | ||
declare type JSType = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'function' | 'object' | 'any' | 'array'; | ||
@@ -3,0 +3,0 @@ declare type ResolveFn = ((value: any, get: (key: string) => any) => JSValue); |
@@ -131,2 +131,5 @@ 'use strict'; | ||
} | ||
if (!("default" in schema) && (schema.type === "object" || schema.type === "any")) { | ||
schema.default = {}; | ||
} | ||
} | ||
@@ -133,0 +136,0 @@ |
{ | ||
"name": "untyped", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/untyped", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3312766
41039