Socket
Socket
Sign inDemoInstall

amdextract

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amdextract - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

8

index.js

@@ -15,3 +15,3 @@ /*

var defineRegExp = /(?:\/[\*\/]\s*exceptsPaths\s*\:\s*([^]+?)\s*(?:(?:\*\/)|(?:[\r\n]+)))?\s*define\s*\(\s*(?:['"](.*)['"]\s*,\s*)?(?:\[\s*([^]*?)\s*\]\s*,)?\s*function\s*\(\s*([^]*?)\s*\)\s*\{/gm;
var commentRegExp = /(?:[^\\](\/\*[^]*?\*\/))|(?:[^\\](\/\/.*?)$)/gm;
var commentRegExp = /(?:([^\\])(\/\*[^]*?\*\/))|(?:([^\\])(\/\/.*?)$)/gm;
var commaRegExp = /(\s*),(\s*)/;

@@ -82,5 +82,7 @@

if (text) {
text = text.replace(commentRegExp, function (match, comment) {
text = text.replace(commentRegExp, function (match, chr1, comment1, chr2, comment2) {
var chr = chr1 || chr2;
var comment = comment1 || comment2;
comments.push(comment);
return '';
return chr;
});

@@ -87,0 +89,0 @@ }

{
"name": "amdextract",
"version": "2.0.2",
"version": "2.0.3",
"description": "Extracts AMD modules, their parts and an optimized output without unused dependencies. (Uses AST to find out unused dependencies)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -121,2 +121,3 @@ # amdextract [![Build Status](https://travis-ci.org/mehdishojaei/amdextract.png)](https://travis-ci.org/mehdishojaei/amdextract)

## Release History
* 2014-07-21   v2.0.3   Fix an issue related to comment detection.
* 2014-07-21   v2.0.2   Fix an issue related to RegExp literals.

@@ -123,0 +124,0 @@ * 2014-07-20   v2.0.0   Uses AST to find out unused dependencies.

@@ -0,0 +0,0 @@ // General test for all cases.

@@ -0,0 +0,0 @@ // General test for all cases.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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