Socket
Socket
Sign inDemoInstall

@babel/helper-plugin-test-runner

Package Overview
Dependencies
Maintainers
6
Versions
72
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.12.13 to 7.13.10

20

lib/index.js

@@ -10,10 +10,24 @@ "use strict";

var _path = _interopRequireDefault(require("path"));
var _url = require("url");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const path = require("path");
function _default(loc) {
const name = _path.default.basename(_path.default.dirname(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;
(0, _helperTransformFixtureTestRunner.default)(loc + "/fixtures", name);
if (process.platform === "win32") {
fixtures = fixtures.slice(1);
}
const name = path.basename(new _url.URL("..", loc).pathname);
(0, _helperTransformFixtureTestRunner.default)(fixtures, name);
}

4

package.json
{
"name": "@babel/helper-plugin-test-runner",
"version": "7.12.13",
"version": "7.13.10",
"description": "Helper function to support test runner",

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

"dependencies": {
"@babel/helper-transform-fixture-test-runner": "^7.12.13"
"@babel/helper-transform-fixture-test-runner": "^7.13.10"
}
}
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