@babel/helper-plugin-test-runner
Advanced tools
Comparing version 7.12.13 to 7.13.10
@@ -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); | ||
} |
{ | ||
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2904
23