js-tokens
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,6 @@ | ||
### Version 1.0.1 (2015-06-20) ### | ||
- Fixed: Declared an undeclared variable. | ||
### Version 1.0.0 (2015-02-26) ### | ||
@@ -2,0 +7,0 @@ |
@@ -9,3 +9,3 @@ // Copyright 2014, 2015 Simon Lydell | ||
module.exports.matchToToken = function(match) { | ||
token = {type: "invalid", value: match[0]} | ||
var token = {type: "invalid", value: match[0]} | ||
if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4]) | ||
@@ -12,0 +12,0 @@ else if (match[ 5]) token.type = "comment" |
{ | ||
"name": "js-tokens", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Simon Lydell", | ||
@@ -17,2 +17,3 @@ "license": "MIT", | ||
"test": "mocha --ui tdd", | ||
"esprima-compare": "node esprima-compare ./index.js everything.js/es5.js", | ||
"build": "node generate-index.js", | ||
@@ -22,5 +23,7 @@ "dev": "npm run build && npm test" | ||
"devDependencies": { | ||
"coffee-script": "^1.8.0", | ||
"mocha": "^2.0.1" | ||
"coffee-script": "~1.9.3", | ||
"esprima": "^2.3.0", | ||
"everything.js": "^1.0.3", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
@@ -100,2 +100,7 @@ Overview [![Build Status](https://travis-ci.org/lydell/js-tokens.png?branch=master)](https://travis-ci.org/lydell/js-tokens) | ||
You may compare jsTokens with [esprima] by using `esprima-compare.js`. | ||
See `npm run esprima-compare`! | ||
[esprima]: http://esprima.org/ | ||
### Template string interpolation ### | ||
@@ -102,0 +107,0 @@ |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
47547
19
1131
205
4
6