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

typedconverter

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedconverter - npm Package Compare versions

Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8

1

lib/index.d.ts

@@ -14,2 +14,3 @@ declare type Converter = (value: any, info: ObjectInfo<Function | Function[]>) => Promise<ConversionResult>;

decorators?: any[];
errorStatus?: number;
}

@@ -16,0 +17,0 @@ interface ConverterMap {

4

lib/index.js

@@ -247,6 +247,6 @@ "use strict";

{ path: [], decorators: [], type: option } : !!option ? option : { path: [], decorators: [], type: undefined };
const { type = factoryOption.type, path = [], decorators = [] } = opt, restOpt = tslib_1.__rest(opt, ["type", "path", "decorators"]);
const { type = factoryOption.type, path = [], decorators = [], errorStatus = 400 } = opt, restOpt = tslib_1.__rest(opt, ["type", "path", "decorators", "errorStatus"]);
const result = await convert(value, Object.assign({ visitors: factoryOption.visitors || [], converters: mergedConverters, path, type, decorators }, restOpt));
if (result.messages.length > 0)
throw new ConversionError(result.messages);
throw new ConversionError(result.messages, errorStatus);
else

@@ -253,0 +253,0 @@ return result.value;

{
"name": "typedconverter",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "Convert object into classes match with TypeScript type annotation",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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