Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gasket/resolve

Package Overview
Dependencies
Maintainers
7
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasket/resolve - npm Package Compare versions

Comparing version 6.38.5 to 6.38.6

7

lib/config.js
const path = require('path');
const { readdir } = require('fs').promises;
const defaultsDeep = require('lodash.defaultsdeep');
const { applyConfigOverrides, tryRequire } = require('@gasket/utils');
const { applyConfigOverrides, tryResolve } = require('@gasket/utils');
const { flattenPresets } = require('./preset-utils');

@@ -21,3 +21,6 @@ const jsExtension = /\.(js|cjs)$/i;

const absolutePath = !path.isAbsolute(configFile) ? path.join(root, configFile) : configFile;
return tryRequire(absolutePath);
const resolvedPath = tryResolve(absolutePath);
if (resolvedPath) {
return require(resolvedPath);
}
}

@@ -24,0 +27,0 @@

{
"name": "@gasket/resolve",
"version": "6.38.5",
"version": "6.38.6",
"description": "Essential module resolution & configuration management for gasket plugins & presets.",

@@ -50,3 +50,3 @@ "main": "lib",

"devDependencies": {
"@gasket/engine": "^6.38.5",
"@gasket/engine": "^6.38.6",
"@godaddy/dmd": "^1.0.0",

@@ -74,6 +74,9 @@ "eslint": "^8.7.0",

},
"eslintIgnore": [
"test/fixtures"
],
"jest": {
"testEnvironment": "node"
},
"gitHead": "e440984a7bdbd12ee13052dad690fee6a60cc360"
"gitHead": "cc8c019699952d22567b85fd742fac81414b84a2"
}
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