Socket
Socket
Sign inDemoInstall

@babel/types

Package Overview
Dependencies
3
Maintainers
4
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.22.19 to 7.23.0

lib/builders/productions.js

4

lib/asserts/generated/index.js

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

exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier;
exports.assertImportExpression = assertImportExpression;
exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier;

@@ -515,2 +516,5 @@ exports.assertImportOrExportDeclaration = assertImportOrExportDeclaration;

}
function assertImportExpression(node, opts) {
assert("ImportExpression", node, opts);
}
function assertMetaProperty(node, opts) {

@@ -517,0 +521,0 @@ assert("MetaProperty", node, opts);

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

exports.importDefaultSpecifier = importDefaultSpecifier;
exports.importExpression = importExpression;
exports.importNamespaceSpecifier = importNamespaceSpecifier;

@@ -733,2 +734,9 @@ exports.importSpecifier = importSpecifier;

}
function importExpression(source, options = null) {
return (0, _validateNode.default)({
type: "ImportExpression",
source,
options
});
}
function metaProperty(meta, property) {

@@ -735,0 +743,0 @@ return (0, _validateNode.default)({

@@ -498,2 +498,8 @@ "use strict";

});
Object.defineProperty(exports, "ImportExpression", {
enumerable: true,
get: function () {
return _index.importExpression;
}
});
Object.defineProperty(exports, "ImportNamespaceSpecifier", {

@@ -500,0 +506,0 @@ enumerable: true,

@@ -40,3 +40,3 @@ "use strict";

left: {
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal", "OptionalMemberExpression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
},

@@ -1174,2 +1174,6 @@ right: {

},
phase: {
default: null,
validate: (0, _utils.assertOneOf)("source", "defer")
},
specifiers: {

@@ -1221,2 +1225,19 @@ validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier")))

});
defineType("ImportExpression", {
visitor: ["source", "options"],
aliases: ["Expression"],
fields: {
phase: {
default: null,
validate: (0, _utils.assertOneOf)("source", "defer")
},
source: {
validate: (0, _utils.assertNodeType)("Expression")
},
options: {
validate: (0, _utils.assertNodeType)("Expression"),
optional: true
}
}
});
defineType("MetaProperty", {

@@ -1223,0 +1244,0 @@ visitor: ["meta", "property"],

@@ -452,2 +452,14 @@ "use strict";

});
var _productions = require("./builders/productions.js");
Object.keys(_productions).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _productions[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _productions[key];
}
});
});
var _cloneNode = require("./clone/cloneNode.js");

@@ -454,0 +466,0 @@ var _clone = require("./clone/clone.js");

8

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

@@ -28,8 +28,8 @@ "author": "The Babel Team (https://babel.dev/team)",

"@babel/helper-string-parser": "^7.22.5",
"@babel/helper-validator-identifier": "^7.22.19",
"@babel/helper-validator-identifier": "^7.22.20",
"to-fast-properties": "^2.0.0"
},
"devDependencies": {
"@babel/generator": "^7.22.15",
"@babel/parser": "^7.22.16",
"@babel/generator": "^7.23.0",
"@babel/parser": "^7.23.0",
"glob": "^7.2.0"

@@ -36,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc