Socket
Socket
Sign inDemoInstall

@babel/types

Package Overview
Dependencies
Maintainers
5
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/types - npm Package Compare versions

Comparing version 7.0.0-beta.52 to 7.0.0-beta.53

4

lib/definitions/jsx.js

@@ -114,2 +114,6 @@ "use strict";

validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute", "JSXSpreadAttribute")))
},
typeParameters: {
validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: true
}

@@ -116,0 +120,0 @@ }

@@ -20,2 +20,3 @@ "use strict";

const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type);
const visitorKeys = _definitions.VISITOR_KEYS[a.type];

@@ -45,2 +46,12 @@ for (const field of fields) {

if (typeof a[field] === "object" && (!visitorKeys || !visitorKeys.includes(field))) {
for (const key in a[field]) {
if (a[field][key] !== b[field][key]) {
return false;
}
}
continue;
}
if (!isNodesEquivalent(a[field], b[field])) {

@@ -47,0 +58,0 @@ return false;

6

package.json
{
"name": "@babel/types",
"version": "7.0.0-beta.52",
"version": "7.0.0-beta.53",
"description": "Babel Types is a Lodash-esque utility library for AST nodes",

@@ -17,5 +17,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"devDependencies": {
"@babel/generator": "7.0.0-beta.52",
"@babel/parser": "7.0.0-beta.52"
"@babel/generator": "7.0.0-beta.53",
"@babel/parser": "7.0.0-beta.53"
}
}

Sorry, the diff of this file is too big to display

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