Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-exponentiation-operator

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-exponentiation-operator - npm Package Compare versions

Comparing version 7.21.4-esm.2 to 7.21.4-esm.3

19

lib/index.js

@@ -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

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