Comparing version 1.1.6 to 1.1.7
@@ -43,3 +43,5 @@ 'use strict'; | ||
return str.split('\n').map(function (line) { | ||
return line.replace(/'[^']+\*[^']*'/g, "''").replace(/"[^"]+\*[^"]*"/g, '""').replace(/\/\*+\//, ''); | ||
return line.replace(/'[^']+\*[^']*'/g, "''").replace(/"[^"]+\*[^"]*"/g, '""') | ||
// .replace(/\/\*+\//, '') | ||
.replace(/\/\S*\*+\S*\/[a-z]/g, ''); | ||
}).join('\n'); | ||
@@ -114,3 +116,5 @@ } | ||
stack.pop(_name); | ||
deps.push.apply(deps, cache[_name].concat(_name)); | ||
if (cache[_name]) { | ||
deps.push.apply(deps, cache[_name].concat(_name)); | ||
} | ||
} catch (e) { | ||
@@ -117,0 +121,0 @@ if (supressNotFound) return; |
{ | ||
"name": "es6-deps", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "a simple util to get es6/jsx dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,3 +42,4 @@ var isdir = require('isdir'); | ||
.replace(/"[^"]+\*[^"]*"/g, '""') | ||
.replace(/\/\*+\//, '') | ||
// .replace(/\/\*+\//, '') | ||
.replace(/\/\S*\*+\S*\/[a-z]/g, '') | ||
}) | ||
@@ -78,3 +79,3 @@ .join('\n'); | ||
for (let reg of regs) { | ||
let match = line.match(reg); | ||
let match = line.match(reg); | ||
if (match && match[1]) { | ||
@@ -102,3 +103,5 @@ if (builtin.indexOf(match[1]) > -1) { | ||
stack.pop(name); | ||
deps.push.apply(deps, cache[name].concat(name)); | ||
if (cache[name]) { | ||
deps.push.apply(deps, cache[name].concat(name)); | ||
} | ||
} catch (e) { | ||
@@ -105,0 +108,0 @@ if (supressNotFound) return; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69215
21
333
1