decaffeinate-parser
Advanced tools
Comparing version 22.3.0 to 22.3.1
@@ -17,3 +17,4 @@ "use strict"; | ||
var parse = options.useCS2 ? parseCS2_1["default"] : parseCS1AsCS2_1["default"]; | ||
var context = ParseContext_1["default"].fromSource(source, coffee_lex_1["default"], parse); | ||
var sourceLex = function (s) { return coffee_lex_1["default"](s, { useCS2: options.useCS2 }); }; | ||
var context = ParseContext_1["default"].fromSource(source, sourceLex, parse); | ||
fixLocations_1["default"](context, context.ast); | ||
@@ -20,0 +21,0 @@ var program = mapProgram_1["default"](context); |
{ | ||
"name": "decaffeinate-parser", | ||
"description": "A better AST for CoffeeScript, inspired by CoffeeScriptRedux.", | ||
"version": "22.3.0", | ||
"version": "22.3.1", | ||
"main": "dist/parser.js", | ||
@@ -12,4 +12,4 @@ "module": "dist/parser.mjs", | ||
"lint-fix": "eslint src test --fix && tslint --config tslint.json --project tsconfig.json --fix", | ||
"pretest": "npm run lint", | ||
"test": "mocha" | ||
"pretest": "yarn lint", | ||
"test": "yarn build && mocha" | ||
}, | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"babylon": "^6.18.0", | ||
"coffee-lex": "^9.0.0", | ||
"coffee-lex": "^9.1.0", | ||
"decaffeinate-coffeescript": "1.12.7-patch.2", | ||
@@ -34,0 +34,0 @@ "decaffeinate-coffeescript2": "2.2.1-patch.3", |
Sorry, the diff of this file is not supported yet
385335
8672
Updatedcoffee-lex@^9.1.0