🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@testring/utils

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testring/utils - npm Package Compare versions

Comparing version
0.2.13
to
0.2.14
+1
-0
dist/index.js

@@ -5,2 +5,3 @@ "use strict";

exports.requirePackage = package_require_1.requirePackage;
exports.resolvePackage = package_require_1.resolvePackage;
var plugin_require_1 = require("./plugin-require");

@@ -7,0 +8,0 @@ exports.requirePlugin = plugin_require_1.requirePlugin;

+7
-2

@@ -10,7 +10,12 @@ "use strict";

const relativeModulePath = path.resolve(parentModuleDir, modulePath);
return require.resolve(relativeModulePath);
try {
return require.resolve(relativeModulePath);
}
catch (_a) {
return require.resolve(modulePath);
}
}
return require.resolve(modulePath);
}
catch (_a) {
catch (_b) {
return resolve.sync(modulePath, {

@@ -17,0 +22,0 @@ basedir: process.cwd()

{
"name": "@testring/utils",
"version": "0.2.13",
"version": "0.2.14",
"main": "./dist/index.js",

@@ -13,3 +13,3 @@ "types": "./src/index.ts",

"dependencies": {
"@testring/types": "0.2.13",
"@testring/types": "0.2.14",
"@types/resolve": "0.0.8",

@@ -16,0 +16,0 @@ "resolve": "1.8.1"

@@ -1,4 +0,4 @@

export { requirePackage } from './package-require';
export { requirePackage, resolvePackage } from './package-require';
export { requirePlugin } from './plugin-require';
export { Queue } from './queue';
export { Stack } from './stack';

@@ -10,3 +10,7 @@ import * as path from 'path';

return require.resolve(relativeModulePath);
try {
return require.resolve(relativeModulePath);
} catch {
return require.resolve(modulePath);
}
}

@@ -13,0 +17,0 @@