Socket
Socket
Sign inDemoInstall

js-tokens

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

esprima-compare.js

5

changelog.md

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

2

index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc