Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-runtime

Package Overview
Dependencies
Maintainers
5
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-runtime - npm Package Compare versions

Comparing version 7.9.0 to 7.9.6

lib/get-runtime-path/browser.js

28

lib/index.js

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

var _path = _interopRequireDefault(require("path"));
var _resolve = _interopRequireDefault(require("resolve"));
var _helperPluginUtils = require("@babel/helper-plugin-utils");

@@ -25,19 +21,6 @@

var _getRuntimePath = _interopRequireDefault(require("./get-runtime-path"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function resolveAbsoluteRuntime(moduleName, dirname) {
try {
return _path.default.dirname(_resolve.default.sync(`${moduleName}/package.json`, {
basedir: dirname
}));
} catch (err) {
if (err.code !== "MODULE_NOT_FOUND") throw err;
throw Object.assign(new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`), {
code: "BABEL_RUNTIME_NOT_FOUND",
runtime: moduleName,
dirname
});
}
}
function supportsStaticESM(caller) {

@@ -166,8 +149,3 @@ return !!(caller && caller.supportsStaticESM);

const HEADER_HELPERS = ["interopRequireWildcard", "interopRequireDefault"];
let modulePath = moduleName;
if (absoluteRuntime !== false) {
modulePath = resolveAbsoluteRuntime(moduleName, _path.default.resolve(dirname, absoluteRuntime === true ? "." : absoluteRuntime));
}
const modulePath = (0, _getRuntimePath.default)(moduleName, dirname, absoluteRuntime);
return {

@@ -174,0 +152,0 @@ name: "transform-runtime",

{
"name": "@babel/plugin-transform-runtime",
"version": "7.9.0",
"version": "7.9.6",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",

@@ -14,2 +14,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime",

],
"browser": {
"./lib/get-runtime-path/index.js": "./lib/get-runtime-path/browser.js",
"./src/get-runtime-path/index.js": "./src/get-runtime-path/browser.js"
},
"dependencies": {

@@ -25,12 +29,12 @@ "@babel/helper-module-imports": "^7.8.3",

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/core": "^7.9.6",
"@babel/helper-plugin-test-runner": "^7.8.3",
"@babel/helpers": "^7.9.0",
"@babel/helpers": "^7.9.6",
"@babel/plugin-transform-typeof-symbol": "^7.8.3",
"@babel/preset-env": "^7.9.0",
"@babel/runtime": "^7.9.0",
"@babel/preset-env": "^7.9.6",
"@babel/runtime": "^7.9.6",
"@babel/template": "^7.8.3",
"@babel/types": "^7.9.0"
"@babel/types": "^7.9.6"
},
"gitHead": "8d5e422be27251cfaadf8dd2536b31b4a5024b02"
"gitHead": "9c2846bcacc75aa931ea9d556950c2113765d43d"
}
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