bare-module-traverse 1.8.2 → 1.8.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/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -248,6 +248,12 @@ exports.module = function* (url, source, attributes, artifacts, visited, opts =
|
|
|
248
248
|
exports.package = function* (url, source, artifacts, visited, opts = {}) {
|
|
249
249
|
if (visited.has(url.href)) return false
|
|
250
250
|
|
|
251
|
+
if (source === null) {
|
|
252
|
+
source = yield { module: url }
|
|
253
|
+
|
|
254
|
+
if (source === null) return false
|
|
255
|
+
}
|
|
256
|
+
|
|
251
257
|
visited.add(url.href)
|
|
252
258
|
|
|
253
259
|
const info = JSON.parse(source)
|