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

@babel/helper-fixtures

Package Overview
Dependencies
Maintainers
5
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-fixtures - npm Package Compare versions

Comparing version 7.0.0 to 7.2.0

23

lib/index.js

@@ -131,3 +131,3 @@ "use strict";

return matches[0] || filepath + ".js";
return matches[0];
}

@@ -159,6 +159,21 @@

function push(taskName, taskDir) {
const actualLoc = findFile(taskDir + "/input");
const expectLoc = findFile(taskDir + "/output", true);
const taskDirStats = _fs().default.statSync(taskDir);
let actualLoc = findFile(taskDir + "/input");
let execLoc = findFile(taskDir + "/exec");
if (taskDirStats.isDirectory() && !actualLoc && !execLoc) {
if (_fs().default.readdirSync(taskDir).length > 0) {
console.warn(`Skipped test folder with invalid layout: ${taskDir}`);
}
return;
} else if (!actualLoc) {
actualLoc = taskDir + "/input.js";
} else if (!execLoc) {
execLoc = taskDir + "/exec.js";
}
const expectLoc = findFile(taskDir + "/output", true) || taskDir + "/output.js";
const actualLocAlias = suiteName + "/" + taskName + "/" + _path().default.basename(actualLoc);

@@ -170,3 +185,3 @@

if (_fs().default.statSync(taskDir).isFile()) {
if (taskDirStats.isFile()) {
const ext = _path().default.extname(taskDir);

@@ -173,0 +188,0 @@

5

package.json
{
"name": "@babel/helper-fixtures",
"version": "7.0.0",
"version": "7.2.0",
"description": "Helper function to support fixtures",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-fixtures",

@@ -8,0 +11,0 @@ "main": "lib/index.js",

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