@babel/plugin-transform-exponentiation-operator
Advanced tools
Comparing version 7.21.4-esm.2 to 7.21.4-esm.3
@@ -1,12 +0,18 @@ | ||
import { declare } from "@babel/helper-plugin-utils"; | ||
import build from "@babel/helper-builder-binary-assignment-operator-visitor"; | ||
import { types as t } from "@babel/core"; | ||
export default declare(api => { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _helperBuilderBinaryAssignmentOperatorVisitor = require("@babel/helper-builder-binary-assignment-operator-visitor"); | ||
var _core = require("@babel/core"); | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
api.assertVersion(7); | ||
return { | ||
name: "transform-exponentiation-operator", | ||
visitor: build({ | ||
visitor: (0, _helperBuilderBinaryAssignmentOperatorVisitor.default)({ | ||
operator: "**", | ||
build(left, right) { | ||
return t.callExpression(t.memberExpression(t.identifier("Math"), t.identifier("pow")), [left, right]); | ||
return _core.types.callExpression(_core.types.memberExpression(_core.types.identifier("Math"), _core.types.identifier("pow")), [left, right]); | ||
} | ||
@@ -16,3 +22,4 @@ }) | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-exponentiation-operator", | ||
"version": "7.21.4-esm.2", | ||
"version": "7.21.4-esm.3", | ||
"description": "Compile exponentiation operator to ES5", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-builder-binary-assignment-operator-visitor": "7.21.4-esm.2", | ||
"@babel/helper-plugin-utils": "7.21.4-esm.2" | ||
"@babel/helper-builder-binary-assignment-operator-visitor": "7.21.4-esm.3", | ||
"@babel/helper-plugin-utils": "7.21.4-esm.3" | ||
}, | ||
@@ -28,4 +28,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.2", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.2" | ||
"@babel/core": "7.21.4-esm.3", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.3" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
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
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
4980
22
+ Added@babel/helper-builder-binary-assignment-operator-visitor@7.21.4-esm.3(transitive)
+ Added@babel/helper-explode-assignable-expression@7.21.4-esm.3(transitive)
+ Added@babel/helper-plugin-utils@7.21.4-esm.3(transitive)
+ Added@babel/helper-string-parser@7.21.4-esm.3(transitive)
+ Added@babel/helper-validator-identifier@7.21.4-esm.3(transitive)
+ Added@babel/types@7.21.4-esm.3(transitive)
- Removed@babel/helper-builder-binary-assignment-operator-visitor@7.21.4-esm.2(transitive)
- Removed@babel/helper-explode-assignable-expression@7.21.4-esm.2(transitive)
- Removed@babel/helper-plugin-utils@7.21.4-esm.2(transitive)
- Removed@babel/helper-string-parser@7.21.4-esm.2(transitive)
- Removed@babel/helper-validator-identifier@7.21.4-esm.2(transitive)
- Removed@babel/types@7.21.4-esm.2(transitive)
Updated@babel/helper-builder-binary-assignment-operator-visitor@7.21.4-esm.3