@babel/helper-member-expression-to-functions
Advanced tools
Comparing version 7.22.5 to 8.0.0-alpha.0
@@ -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 { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
56886
398
1
+ Added@babel/helper-string-parser@8.0.0-alpha.12(transitive)
+ Added@babel/helper-validator-identifier@8.0.0-alpha.12(transitive)
+ Added@babel/types@8.0.0-alpha.12(transitive)
+ Addedto-fast-properties@3.0.1(transitive)
- Removed@babel/helper-string-parser@7.24.8(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/types@7.25.6(transitive)
- Removedto-fast-properties@2.0.0(transitive)
Updated@babel/types@^8.0.0-alpha.0