Package: node-resolve / 1.19.0+~cs5.20.8-2

revert-opts.package-support-in-non-relative-lookups.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Revert "support opts.package in non-relative lookups"
 This upstream change breaks node-browser-resolve (from same upstream).
Author: Xavier Guimard <yadd@debian.org>
Origin: vendor, https://github.com/browserify/resolve/pull/152/files
Bug: https://github.com/defunctzombie/node-browser-resolve/issues/93
Forwarded: no
Last-Update: 2020-03-09

--- a/lib/async.js
+++ b/lib/async.js
@@ -274,13 +274,13 @@
         function isdir(err, isdir) {
             if (err) return cb(err);
             if (!isdir) return processDirs(cb, dirs.slice(1));
-            loadAsFile(dir, opts.package, onfile);
+            loadAsFile(dir, undefined, onfile);
         }
 
         function onfile(err, m, pkg) {
             if (err) return cb(err);
             if (m) return cb(null, m, pkg);
-            loadAsDirectory(dir, opts.package, ondir);
+            loadAsDirectory(dir, undefined, ondir);
         }
 
         function ondir(err, n, pkg) {