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

@rushstack/eslint-patch

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rushstack/eslint-patch - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

1

lib/modern-module-resolution.d.ts
declare const path: any;
declare const fs: any;
declare const isModuleResolutionError: (ex: unknown) => boolean;
declare const isInvalidImporterPath: (ex: unknown) => boolean;
declare let eslintrcBundlePath: string | undefined;

@@ -5,0 +6,0 @@ declare let configArrayFactoryPath: string | undefined;

4

lib/modern-module-resolution.js

@@ -13,2 +13,4 @@ "use strict";

const isModuleResolutionError = (ex) => typeof ex === 'object' && !!ex && 'code' in ex && ex.code === 'MODULE_NOT_FOUND';
// error: "The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received ''"
const isInvalidImporterPath = (ex) => (ex === null || ex === void 0 ? void 0 : ex.code) === 'ERR_INVALID_ARG_VALUE';
// Module path for eslintrc.cjs

@@ -190,3 +192,3 @@ // Example: ".../@eslint/eslintrc/dist/eslintrc.cjs"

catch (e) {
if (isModuleResolutionError(e)) {
if (isModuleResolutionError(e) || isInvalidImporterPath(e)) {
return originalResolve.call(this, moduleName, relativeToPath);

@@ -193,0 +195,0 @@ }

{
"name": "@rushstack/eslint-patch",
"version": "1.3.0",
"version": "1.3.1",
"description": "A patch that improves how ESLint loads plugins when working in a monorepo with a reusable toolchain",

@@ -24,4 +24,4 @@ "main": "lib/usage.js",

"devDependencies": {
"@rushstack/heft": "0.50.4",
"@rushstack/heft-node-rig": "1.12.10",
"@rushstack/heft": "0.51.0",
"@rushstack/heft-node-rig": "2.0.1",
"@types/node": "14.18.36"

@@ -31,4 +31,4 @@ },

"build": "heft build --clean",
"_phase:build": "heft build --clean"
"_phase:build": "heft run --only build -- --clean"
}
}

Sorry, the diff of this file is not supported yet

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