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

@babel/runtime

Package Overview
Dependencies
Maintainers
4
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/runtime - npm Package Compare versions

Comparing version 7.20.0 to 7.20.1

10

helpers/esm/wrapRegExp.js

@@ -29,3 +29,8 @@ import _typeof from "./typeof.js";

var result = _super.exec.call(this, str);
return result && (result.groups = buildGroups(result, this)), result;
if (result) {
result.groups = buildGroups(result, this);
var indices = result.indices;
indices && (indices.groups = buildGroups(indices, this));
}
return result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {

@@ -35,3 +40,4 @@ if ("string" == typeof substitution) {

return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
return "$" + groups[name];
var group = groups[name];
return "$" + (Array.isArray(group) ? group.join("$") : group);
}));

@@ -38,0 +44,0 @@ }

@@ -29,3 +29,8 @@ var _typeof = require("./typeof.js")["default"];

var result = _super.exec.call(this, str);
return result && (result.groups = buildGroups(result, this)), result;
if (result) {
result.groups = buildGroups(result, this);
var indices = result.indices;
indices && (indices.groups = buildGroups(indices, this));
}
return result;
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {

@@ -35,3 +40,4 @@ if ("string" == typeof substitution) {

return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
return "$" + groups[name];
var group = groups[name];
return "$" + (Array.isArray(group) ? group.join("$") : group);
}));

@@ -38,0 +44,0 @@ }

2

package.json
{
"name": "@babel/runtime",
"version": "7.20.0",
"version": "7.20.1",
"description": "babel's modular runtime helpers",

@@ -5,0 +5,0 @@ "license": "MIT",

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