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.22.5 to 8.0.0-alpha.0

27

lib/index.js

@@ -1,26 +0,15 @@

"use strict";
import testRunner from '@babel/helper-transform-fixture-test-runner';
import path from 'path';
import { URL } from 'url';
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));
(0, _helperTransformFixtureTestRunner.default)(loc + "/fixtures", name);
return;
}
}
let fixtures = new _url.URL("./fixtures", loc).pathname;
function index (loc) {
let fixtures = new URL("./fixtures", loc).pathname;
if (process.platform === "win32") {
fixtures = fixtures.slice(1);
}
const name = _path.basename(new _url.URL("..", loc).pathname);
(0, _helperTransformFixtureTestRunner.default)(fixtures, name);
const name = path.basename(new URL("..", loc).pathname);
testRunner(fixtures, name);
}
export { index as default };
//# sourceMappingURL=index.js.map
{
"name": "@babel/helper-plugin-test-runner",
"version": "7.22.5",
"version": "8.0.0-alpha.0",
"description": "Helper function to support test runner",

@@ -16,7 +16,14 @@ "repository": {

"main": "./lib/index.js",
"exports": {
".": {
"import": "./esm.mjs",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"dependencies": {
"@babel/helper-transform-fixture-test-runner": "^7.22.5"
"@babel/helper-transform-fixture-test-runner": "^8.0.0-alpha.0"
},
"engines": {
"node": ">=6.9.0"
"node": "^16.20.0 || ^18.16.0 || >=20.0.0"
},

@@ -23,0 +30,0 @@ "author": "The Babel Team (https://babel.dev/team)",

@@ -5,3 +5,3 @@ # @babel/helper-plugin-test-runner

See our website [@babel/helper-plugin-test-runner](https://babeljs.io/docs/en/babel-helper-plugin-test-runner) for more information.
See our website [@babel/helper-plugin-test-runner](https://babeljs.io/docs/babel-helper-plugin-test-runner) for more information.

@@ -8,0 +8,0 @@ ## Install

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