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

modelsafe

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modelsafe - npm Package Compare versions

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.0-alpha.6
* [FIX] `ModelErrors` should have `PropertyError[]` per property, not a single `PropertyError`
# 1.0.0-alpha.5

@@ -2,0 +6,0 @@

2

dist/validation.d.ts

@@ -19,3 +19,3 @@ import { Model, ModelConstructor } from './model';

export declare type ModelErrors<T extends Model> = {
[P in keyof T]?: PropertyError;
[P in keyof T]?: PropertyError[];
};

@@ -22,0 +22,0 @@ /**

{
"name": "modelsafe",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"main": "dist/index.js",

@@ -23,3 +23,3 @@ "bugs": "https://github.com/creativecuriositystudio/modelsafe/issues",

"build": "tsc",
"docs": "typedoc --out docs src/index.ts",
"docs": "typedoc --name ModelSafe --mode modules --out docs src",
"docs:deploy": "npm run docs && gh-pages -d docs",

@@ -26,0 +26,0 @@ "test": "mocha --opts mocha.opts",

@@ -26,3 +26,3 @@ /** Contains the validation types. */

export type ModelErrors<T extends Model> = {
[P in keyof T]?: PropertyError;
[P in keyof T]?: PropertyError[];
};

@@ -29,0 +29,0 @@

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