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

es6-deps

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-deps - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

yarn.lock

8

index.js

@@ -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;

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