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

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.6.1 to 0.6.2

25

lib/types.js

@@ -523,7 +523,10 @@ var assert = require("assert");

assert.ok(
type.check(value),
shallowStringify(value) +
" does not match field " + field +
" of type " + self.typeName);
if (!type.check(value)) {
assert.ok(
false,
shallowStringify(value) +
" does not match field " + field +
" of type " + self.typeName
);
}

@@ -591,7 +594,9 @@ // TODO Could attach getters and setters here to enforce

assert.strictEqual(
"type" in object, false,
"did not recognize object of type " +
JSON.stringify(object.type)
);
if ("type" in object) {
assert.ok(
false,
"did not recognize object of type " +
JSON.stringify(object.type)
);
}

@@ -598,0 +603,0 @@ return Object.keys(object);

2

package.json

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

],
"version": "0.6.1",
"version": "0.6.2",
"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