Socket
Socket
Sign inDemoInstall

ast-types

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-types - npm Package Compare versions

Comparing version 0.2.12 to 0.2.13

11

lib/types.js

@@ -49,5 +49,8 @@ var assert = require("assert");

Tp.assert = function(value, deep) {
var result = this.check(value, deep);
assert.ok(result, shallowStringify(value) + " does not match type " + this);
return result;
if (!this.check(value, deep)) {
var str = shallowStringify(value);
assert.ok(false, str + " does not match type " + this);
return false;
}
return true;
};

@@ -507,4 +510,2 @@

value: function(object, fieldName) {
isObject.assert(object);
var d = Def.fromValue(object);

@@ -511,0 +512,0 @@ if (d) {

@@ -21,3 +21,3 @@ {

],
"version": "0.2.12",
"version": "0.2.13",
"homepage": "http://github.com/benjamn/ast-types",

@@ -24,0 +24,0 @@ "repository": {

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