decaffeinate-parser
Advanced tools
Comparing version 22.5.3 to 22.5.4
"use strict"; | ||
exports.__esModule = true; | ||
var babylon_1 = require("babylon"); | ||
var parser_1 = require("@babel/parser"); | ||
/** | ||
@@ -8,3 +8,3 @@ * Parses JavaScript source representing a number. | ||
function parseNumber(string) { | ||
var expressionStatement = babylon_1.parse("(" + string + ")").program.body[0]; | ||
var expressionStatement = parser_1.parse("(" + string + ")").program.body[0]; | ||
var literal = expressionStatement.expression; | ||
@@ -11,0 +11,0 @@ return literal.value; |
"use strict"; | ||
exports.__esModule = true; | ||
var babylon_1 = require("babylon"); | ||
var parser_1 = require("@babel/parser"); | ||
/** | ||
@@ -8,3 +8,3 @@ * Parses JavaScript source representing a regular expression. | ||
function parseRegExp(string) { | ||
var expressionStatement = babylon_1.parse("(" + string + ")").program.body[0]; | ||
var expressionStatement = parser_1.parse("(" + string + ")").program.body[0]; | ||
var literal = expressionStatement.expression; | ||
@@ -11,0 +11,0 @@ return literal; |
"use strict"; | ||
exports.__esModule = true; | ||
var babylon_1 = require("babylon"); | ||
var parser_1 = require("@babel/parser"); | ||
/** | ||
@@ -8,3 +8,3 @@ * Parses JavaScript source representing a string. | ||
function parseString(string) { | ||
var expressionStatement = babylon_1.parse("(" + string + ")").program.body[0]; | ||
var expressionStatement = parser_1.parse("(" + string + ")").program.body[0]; | ||
var literal = expressionStatement.expression; | ||
@@ -11,0 +11,0 @@ return literal.value; |
{ | ||
"name": "decaffeinate-parser", | ||
"description": "A better AST for CoffeeScript, inspired by CoffeeScriptRedux.", | ||
"version": "22.5.3", | ||
"version": "22.5.4", | ||
"main": "dist/parser.js", | ||
@@ -29,3 +29,3 @@ "module": "dist/parser.mjs", | ||
"dependencies": { | ||
"babylon": "^6.18.0", | ||
"@babel/parser": "^7.1.6", | ||
"coffee-lex": "^9.1.0", | ||
@@ -38,15 +38,14 @@ "decaffeinate-coffeescript": "1.12.7-patch.2", | ||
"devDependencies": { | ||
"@types/babylon": "^6.16.2", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-external-helpers": "^7.0.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-syntax-flow": "^7.0.0", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"@types/json-stable-stringify": "^1.0.32", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "10.10.1", | ||
"babel": "^6.5.2", | ||
"babel-plugin-external-helpers": "^6.8.0", | ||
"@types/node": "10.11.7", | ||
"babel-plugin-object-rest-spread": "0.0.0", | ||
"babel-plugin-syntax-flow": "^6.8.0", | ||
"babel-plugin-syntax-object-rest-spread": "^6.8.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.21.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-es2015": "^6.13.0", | ||
"babel-register": "^6.26.0", | ||
"coffee-script-redux": "^2.0.0-beta8", | ||
@@ -53,0 +52,0 @@ "mocha": "^5.0.0", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
403097
18
0
+ Added@babel/parser@^7.1.6
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.3(transitive)
+ Added@babel/types@7.26.3(transitive)
- Removedbabylon@^6.18.0
- Removedbabylon@6.18.0(transitive)