Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anzenjs/joi

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anzenjs/joi - npm Package Compare versions

Comparing version 0.0.4-alpha.1 to 0.0.4-alpha.2

4

cjs/src/decoder.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc