@feathersjs/schema
Advanced tools
Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.0.1-alpha.4](https://github.com/feathersjs/schema/compare/v0.0.1-alpha.3...v0.0.1-alpha.4) (2020-02-08) | ||
### Bug Fixes | ||
* Fix getting and resolving schemas from undefined objects ([#14](https://github.com/feathersjs/schema/issues/14)) ([511752e](https://github.com/feathersjs/schema/commit/511752e7992fc0100acd1189638a2bd8178abc70)) | ||
## [0.0.1-alpha.2](https://github.com/feathersjs/schema/compare/v0.0.1-alpha.1...v0.0.1-alpha.2) (2019-12-18) | ||
@@ -8,0 +19,0 @@ |
@@ -75,2 +75,5 @@ "use strict"; | ||
} | ||
if (!target) { | ||
return null; | ||
} | ||
let p = target; | ||
@@ -77,0 +80,0 @@ do { |
{ | ||
"name": "@feathersjs/schema", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1-alpha.4", | ||
"description": "Core Feathers schema", | ||
@@ -45,3 +45,3 @@ "homepage": "https://feathersjs.com", | ||
"dependencies": { | ||
"@hapi/joi": "^16.1.8", | ||
"@hapi/joi": "^17.0.2", | ||
"@types/hapi__joi": "^16.0.3", | ||
@@ -52,4 +52,4 @@ "reflect-metadata": "^0.1.13" | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.12", | ||
"mocha": "^6.2.1", | ||
"@types/node": "^13.1.6", | ||
"mocha": "^7.0.1", | ||
"shx": "^0.3.2", | ||
@@ -59,3 +59,3 @@ "ts-node": "^8.4.1", | ||
}, | ||
"gitHead": "16097e1f91e03c9cdf900d3e836d68d4f2f425c7" | ||
"gitHead": "b89b2115449d82b94a5c54017330d6ba17f2f8f8" | ||
} |
@@ -112,6 +112,10 @@ import Joi from '@hapi/joi'; | ||
if (typeof target === 'string') { | ||
if (typeof target === 'string') { | ||
return nameMap[target] || null; | ||
} | ||
if (!target) { | ||
return null; | ||
} | ||
let p = target; | ||
@@ -118,0 +122,0 @@ |
Sorry, the diff of this file is not supported yet
25022
401
+ Added@hapi/address@4.1.0(transitive)
+ Added@hapi/formula@2.0.0(transitive)
+ Added@hapi/hoek@9.3.0(transitive)
+ Added@hapi/joi@17.1.1(transitive)
+ Added@hapi/pinpoint@2.0.1(transitive)
+ Added@hapi/topo@5.1.0(transitive)
- Removed@hapi/address@2.1.4(transitive)
- Removed@hapi/formula@1.2.0(transitive)
- Removed@hapi/hoek@8.5.1(transitive)
- Removed@hapi/joi@16.1.8(transitive)
- Removed@hapi/pinpoint@1.0.2(transitive)
- Removed@hapi/topo@3.1.6(transitive)
Updated@hapi/joi@^17.0.2