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

modelsafe

Package Overview
Dependencies
Maintainers
1
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 0.5.1 to 0.5.2

dist/ech.d.ts

4

CHANGELOG.md

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

# 0.5.2
* Fix `ValidationError` being able to use instanceof calls (gets around TypeScript 2.1+ issue)
# 0.5.1

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

@@ -108,2 +108,5 @@ "use strict";

_this.errors = errors;
// Required in order for error instances to be able to use instanceof.
// SEE: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md
_this.__proto__ = ValidationError.prototype;
return _this;

@@ -110,0 +113,0 @@ }

2

package.json
{
"name": "modelsafe",
"version": "0.5.1",
"version": "0.5.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/modelsafe/issues",

@@ -105,2 +105,6 @@ /** Contains the validation types. */

this.errors = errors;
// Required in order for error instances to be able to use instanceof.
// SEE: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md
(this as any).__proto__ = ValidationError.prototype;
}

@@ -107,0 +111,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