@lousy-agents/lint 5.14.2 → 5.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1334,10 +1334,9 @@ function getFsSafePythonConfig() {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
function canFallbackFromPythonError(error) {
|
|
1337
|
+
const code = error instanceof Error && "code" in error ? error.code : undefined;
|
|
1337
1338
|
return (getFsSafePythonConfig().mode !== "require" &&
|
|
1338
|
-
|
|
1339
|
-
"code" in error &&
|
|
1340
|
-
error.code === "helper-unavailable");
|
|
1339
|
+
(code === "helper-unavailable" || code === "unsupported-platform"));
|
|
1341
1340
|
}
|
|
1342
1341
|
|
|
1343
1342
|
// EXTERNAL MODULE: external "node:child_process"
|
package/package.json
CHANGED