bson-transpilers
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -62,3 +62,3 @@ /* eslint-disable no-sync */ | ||
const inputLangs = ['javascript', 'shell', 'python']; | ||
const outputLangs = ['java', 'shell', 'python', 'csharp', 'javascript', 'object', 'ruby']; | ||
const outputLangs = ['java', 'shell', 'python', 'csharp', 'javascript', 'object', 'ruby', 'rust']; | ||
if (!fs.existsSync(dir)) { | ||
@@ -65,0 +65,0 @@ fs.mkdirSync(dir); |
22
index.js
@@ -30,2 +30,3 @@ const antlr4 = require('antlr4'); | ||
const getRubyGenerator = require('./codegeneration/ruby/Generator.js'); | ||
const getRustGenerator = require('./codegeneration/rust/Generator.js'); | ||
@@ -38,2 +39,3 @@ const javascriptjavasymbols = require('./lib/symbol-table/javascripttojava'); | ||
const javascriptrubysymbols = require('./lib/symbol-table/javascripttoruby'); | ||
const javascriptrustsymbols = require('./lib/symbol-table/javascripttorust'); | ||
@@ -46,2 +48,3 @@ const shelljavasymbols = require('./lib/symbol-table/shelltojava'); | ||
const shellrubysymbols = require('./lib/symbol-table/shelltoruby'); | ||
const shellrustsymbols = require('./lib/symbol-table/shelltorust'); | ||
@@ -54,2 +57,3 @@ const pythonjavasymbols = require('./lib/symbol-table/pythontojava'); | ||
const pythonrubysymbols = require('./lib/symbol-table/pythontoruby'); | ||
const pythonrustsymbols = require('./lib/symbol-table/pythontorust'); | ||
@@ -220,2 +224,8 @@ /** | ||
javascriptrubysymbols | ||
), | ||
rust: getTranspiler( | ||
loadJSTree, | ||
getJavascriptVisitor(getCodeGenerationVisitor(JavascriptANTLRVisitor)), | ||
getRustGenerator, | ||
javascriptrustsymbols | ||
) | ||
@@ -259,2 +269,8 @@ }, | ||
shellrubysymbols | ||
), | ||
rust: getTranspiler( | ||
loadJSTree, | ||
getShellVisitor(getJavascriptVisitor(getCodeGenerationVisitor(JavascriptANTLRVisitor))), | ||
getRustGenerator, | ||
shellrustsymbols | ||
) | ||
@@ -298,2 +314,8 @@ }, | ||
pythonrubysymbols | ||
), | ||
rust: getTranspiler( | ||
loadPyTree, | ||
getPythonVisitor(getCodeGenerationVisitor(PythonANTLRVisitor)), | ||
getRustGenerator, | ||
pythonrustsymbols | ||
) | ||
@@ -300,0 +322,0 @@ }, |
{ | ||
"name": "bson-transpilers", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"apiVersion": "0.0.1", | ||
@@ -13,6 +13,3 @@ "productName": "BSON Transpilers", | ||
"main": "index.js", | ||
"exports": { | ||
"webpack": "./index.js", | ||
"require": "./index.js" | ||
}, | ||
"compass:main": "index.js", | ||
"scripts": { | ||
@@ -57,3 +54,3 @@ "start": "node index.js", | ||
}, | ||
"gitHead": "c125a379bd769b3305e494b68a4fc9bdfdc7d1bb" | ||
"gitHead": "2c4149184e87b8340851590663287b914d7ee63e" | ||
} |
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
2609523
64
31416
1