Socket
Socket
Sign inDemoInstall

@babel/helper-plugin-test-runner

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-plugin-test-runner - npm Package Compare versions

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

24

lib/index.js

@@ -1,20 +0,26 @@

import testRunner from "@babel/helper-transform-fixture-test-runner";
import path from "path";
import { URL } from "url";
export default function (loc) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
var _helperTransformFixtureTestRunner = require("@babel/helper-transform-fixture-test-runner");
var _path = require("path");
var _url = require("url");
function _default(loc) {
{
if (!loc.startsWith("file://")) {
const name = path.basename(path.dirname(loc));
testRunner(loc + "/fixtures", name);
const name = _path.basename(_path.dirname(loc));
(0, _helperTransformFixtureTestRunner.default)(loc + "/fixtures", name);
return;
}
}
let fixtures = new URL("./fixtures", loc).pathname;
let fixtures = new _url.URL("./fixtures", loc).pathname;
if (process.platform === "win32") {
fixtures = fixtures.slice(1);
}
const name = path.basename(new URL("..", loc).pathname);
testRunner(fixtures, name);
const name = _path.basename(new _url.URL("..", loc).pathname);
(0, _helperTransformFixtureTestRunner.default)(fixtures, name);
}
//# sourceMappingURL=index.js.map
{
"name": "@babel/helper-plugin-test-runner",
"version": "7.21.4-esm.2",
"version": "7.21.4-esm.3",
"description": "Helper function to support test runner",

@@ -17,3 +17,3 @@ "repository": {

"dependencies": {
"@babel/helper-transform-fixture-test-runner": "7.21.4-esm.2"
"@babel/helper-transform-fixture-test-runner": "7.21.4-esm.3"
},

@@ -20,0 +20,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