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

@babel/helper-transform-fixture-test-runner

Package Overview
Dependencies
Maintainers
4
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-transform-fixture-test-runner - npm Package Compare versions

Comparing version 7.19.3 to 7.19.4

20

lib/index.js

@@ -15,4 +15,2 @@ "use strict";

var _traceMapping = require("@jridgewell/trace-mapping");
var helpers = require("./helpers");

@@ -308,7 +306,7 @@

if (task.sourceMap) {
if (opts.sourceMaps === true) {
try {
expect(result.map).toEqual(task.sourceMap);
} catch (e) {
if (!process.env.OVERWRITE || !task.sourceMapFile) throw e;
if (!process.env.OVERWRITE && task.sourceMap) throw e;
console.log(`Updated test file: ${task.sourceMapFile.loc}`);

@@ -320,14 +318,2 @@

if (task.sourceMappings) {
const consumer = new _traceMapping.TraceMap(result.map);
task.sourceMappings.forEach(function (mapping) {
const actual = mapping.original;
const expected = (0, _traceMapping.originalPositionFor)(consumer, mapping.generated);
expect({
line: expected.line,
column: expected.column
}).toEqual(actual);
});
}
if (execCode && resultExec) {

@@ -418,3 +404,3 @@ return resultExec;

if ("sourceMap" in task.options === false) {
task.options.sourceMap = !!(task.sourceMappings || task.sourceMap);
task.options.sourceMap = !!task.sourceMap;
}

@@ -421,0 +407,0 @@

5

package.json
{
"name": "@babel/helper-transform-fixture-test-runner",
"version": "7.19.3",
"version": "7.19.4",
"description": "Transform test runner for @babel/helper-fixtures module",

@@ -21,4 +21,3 @@ "author": "The Babel Team (https://babel.dev/team)",

"@babel/helper-check-duplicate-nodes": "^7.18.6",
"@babel/helper-fixtures": "^7.18.6",
"@jridgewell/trace-mapping": "^0.3.8",
"@babel/helper-fixtures": "^7.19.4",
"quick-lru": "5.1.0"

@@ -25,0 +24,0 @@ },

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