@anzenjs/joi
Advanced tools
Comparing version 0.0.4-alpha.1 to 0.0.4-alpha.2
@@ -1,2 +0,2 @@ | ||
import { Schema } from '@anzenjs/core'; | ||
import { Schema, SchemaLike } from '@anzenjs/core'; | ||
import { IDecoder } from '@anzenjs/extra'; | ||
@@ -16,4 +16,4 @@ import Joi, { Schema as JoiSchema } from 'joi'; | ||
constructor(options?: IJoiDecoderOptions); | ||
decode(schema: Schema): (value: unknown) => any; | ||
decode(schema: SchemaLike): (value: unknown) => any; | ||
} | ||
//# sourceMappingURL=decoder.d.ts.map |
@@ -109,3 +109,3 @@ "use strict"; | ||
return (value) => { | ||
const result = this.resolveJoiSchema(schema).validate(value, this.options.validationOptions); | ||
const result = this.resolveJoiSchema(core_1.resolveSchema(schema)).validate(value, this.options.validationOptions); | ||
if (result.error) { | ||
@@ -112,0 +112,0 @@ throw result.error; |
{ | ||
"name": "@anzenjs/joi", | ||
"version": "0.0.4-alpha.1", | ||
"version": "0.0.4-alpha.2", | ||
"main": "cjs/src/index.js", | ||
@@ -17,7 +17,7 @@ "types": "cjs/src/index.d.ts", | ||
"dependencies": { | ||
"@anzenjs/core": "^0.0.3", | ||
"@anzenjs/core": "^0.0.4-0.0.4-alpha.2.0", | ||
"@anzenjs/extra": "^0.0.4-alpha.1", | ||
"joi": "^14.3.1" | ||
}, | ||
"gitHead": "5022259a40c0508dae37df5404853765c18200dd" | ||
"gitHead": "2737e87c8a7c778de9c4adc7c705c6aa9cbec6c5" | ||
} |
Sorry, the diff of this file is not supported yet
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
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
277862
0
+ Added@anzenjs/core@0.0.4-0.0.4-alpha.2.0(transitive)
- Removed@anzenjs/core@0.0.3(transitive)