Socket
Socket
Sign inDemoInstall

@babel/helper-member-expression-to-functions

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-member-expression-to-functions - npm Package Compare versions

Comparing version 7.22.5 to 8.0.0-alpha.0

38

lib/index.js

@@ -1,27 +0,3 @@

'use strict';
import * as _t from '@babel/types';
Object.defineProperty(exports, '__esModule', { value: true });
var _t = require('@babel/types');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var _t__namespace = /*#__PURE__*/_interopNamespace(_t);
function willPathCastToBoolean(path) {

@@ -82,6 +58,6 @@ const maybeWrapped = path;

updateExpression
} = _t__namespace;
} = _t;
class AssignmentMemoiser {
_map;
constructor() {
this._map = void 0;
this._map = new WeakMap();

@@ -207,3 +183,3 @@ }

const baseNeedsMemoised = scope.maybeGenerateMemoised(startingNode);
const baseRef = baseNeedsMemoised != null ? baseNeedsMemoised : startingNode;
const baseRef = baseNeedsMemoised ?? startingNode;
const parentIsOptionalCall = parentPath.isOptionalCallExpression({

@@ -225,3 +201,3 @@ callee: node

member.replaceWith(this.boundGet(member));
} else if (this.delete && parentPath.isUnaryExpression({
} else if (parentPath.isUnaryExpression({
operator: "delete"

@@ -360,3 +336,3 @@ })) {

}
if (this.delete && parentPath.isUnaryExpression({
if (parentPath.isUnaryExpression({
operator: "delete"

@@ -394,3 +370,3 @@ })) {

exports["default"] = memberExpressionToFunctions;
export { memberExpressionToFunctions as default };
//# sourceMappingURL=index.js.map

@@ -1,8 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.willPathCastToBoolean = willPathCastToBoolean;
function willPathCastToBoolean(path) {
export function willPathCastToBoolean(path) {
const maybeWrapped = path;

@@ -9,0 +3,0 @@ const {

14

package.json
{
"name": "@babel/helper-member-expression-to-functions",
"version": "7.22.5",
"version": "8.0.0-alpha.0",
"description": "Helper function to replace certain member expressions with function calls",

@@ -18,11 +18,15 @@ "repository": {

"dependencies": {
"@babel/types": "^7.22.5"
"@babel/types": "^8.0.0-alpha.0"
},
"devDependencies": {
"@babel/traverse": "^7.22.5"
"@babel/traverse": "^8.0.0-alpha.0"
},
"engines": {
"node": ">=6.9.0"
"node": "^16.20.0 || ^18.16.0 || >=20.0.0"
},
"type": "commonjs"
"exports": {
".": "./lib/index.js",
"./package.json": "./package.json"
},
"type": "module"
}

@@ -5,3 +5,3 @@ # @babel/helper-member-expression-to-functions

See our website [@babel/helper-member-expression-to-functions](https://babeljs.io/docs/en/babel-helper-member-expression-to-functions) for more information.
See our website [@babel/helper-member-expression-to-functions](https://babeljs.io/docs/babel-helper-member-expression-to-functions) for more information.

@@ -8,0 +8,0 @@ ## Install

Sorry, the diff of this file is not supported yet

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