bson-transpilers
Advanced tools
Comparing version 0.15.0 to 1.0.0
@@ -462,4 +462,4 @@ /* eslint complexity: 0 */ | ||
} else if (original.match( | ||
new RegExp(/{(?:'|")?\$meta(?:'|")?:(?:'|")textScore*(?:'|")}/) | ||
)) { | ||
new RegExp(/{(?:'|")?\$meta(?:'|")?:(?:'|")textScore*(?:'|")}/) | ||
)) { | ||
fields.push(`metaTextScore(${doubleQuoteStringify(field)})`); | ||
@@ -466,0 +466,0 @@ this.requiredImports[304].push('metaTextScore'); |
@@ -556,3 +556,3 @@ /* eslint camelcase: 0 complexity: 0*/ | ||
if ( | ||
('comp_for' in ctx && ctx.comp_for() !== null) || | ||
('comp_for' in ctx && ctx.comp_for() !== null) || | ||
('comp_if' in ctx && ctx.comp_if() !== null) | ||
@@ -559,0 +559,0 @@ ) { |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable no-sync */ | ||
const path = require('path'); | ||
@@ -2,0 +3,0 @@ |
12
index.js
@@ -105,8 +105,8 @@ const antlr4 = require('antlr4'); | ||
'BsonSymbols', 'NativeSymbols', 'SymbolTypes'].map((k) => { | ||
if (!(k in doc)) { | ||
throw new BsonTranspilersInternalError( | ||
`Invalid Symbol Table: missing ${k}` | ||
); | ||
} | ||
}); | ||
if (!(k in doc)) { | ||
throw new BsonTranspilersInternalError( | ||
`Invalid Symbol Table: missing ${k}` | ||
); | ||
} | ||
}); | ||
Object.assign(transpiler, { | ||
@@ -113,0 +113,0 @@ SYMBOL_TYPE: doc.SymbolTypes, |
#!/usr/bin/env node | ||
/* eslint-disable no-sync */ | ||
/* eslint-disable no-console */ | ||
@@ -169,23 +171,2 @@ const fs = require('fs'); | ||
}; | ||
const makeList = (side) => { | ||
return fs.readdirSync(testpath).reduce( | ||
(str0, file) => { | ||
if (!file.startsWith('error') && !file.startsWith('edge')) { | ||
const tests = readYAML(path.join(testpath, file)).tests; | ||
return str0 + Object.keys(tests).reduce( | ||
(str, key) => { | ||
return str + tests[key].reduce( | ||
(str2, test) => { | ||
if (output in test[side]) { | ||
const line = test[side][output]; | ||
return str2 + line + '\n'; | ||
} | ||
return str2; | ||
}, ''); | ||
}, ''); | ||
} | ||
return str0; | ||
}, ''); | ||
}; | ||
console.log(makeFile('output')); |
{ | ||
"name": "bson-transpilers", | ||
"version": "0.15.0", | ||
"version": "1.0.0", | ||
"apiVersion": "0.0.1", | ||
@@ -20,26 +20,23 @@ "productName": "BSON Transpilers", | ||
"symbol-table": "node compile-symbol-table.js", | ||
"pretest": "npm run compile", | ||
"test": "mocha", | ||
"prepublishOnly": "npm run compile", | ||
"test-ci": "mocha", | ||
"depcheck": "depcheck", | ||
"precheck": "npm run depcheck", | ||
"check": "mongodb-js-precommit './codegeneration/**/*{.js,.jsx}' './test/**/*.js' index.js" | ||
"check": "npm run lint && npm run depcheck", | ||
"lint": "eslint .", | ||
"check-ci": "npm run check" | ||
}, | ||
"homepage": "http://github.com/mongodb-js/bson-transpilers", | ||
"homepage": "http://github.com/mongodb-js/compass/packages/bson-transpilers", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/mongodb-js/bson-transpilers.git" | ||
"url": "git://github.com/mongodb-js/compass.git" | ||
}, | ||
"precommit": [ | ||
"check" | ||
], | ||
"license": "Apache-2.0", | ||
"license": "SSPL", | ||
"devDependencies": { | ||
"chai": "^4.3.4", | ||
"depcheck": "^1.4.1", | ||
"eslint": "^7.25.0", | ||
"eslint-config-mongodb-js": "^2.1.0", | ||
"eslint-plugin-react": "^6.10.3", | ||
"js-yaml": "^3.11.0", | ||
"mocha": "^8.4.0", | ||
"mongodb-js-precommit": "^0.2.8", | ||
"pre-commit": "^1.2.2" | ||
"mocha": "^8.4.0" | ||
}, | ||
@@ -50,3 +47,4 @@ "dependencies": { | ||
"context-eval": "^0.1.0" | ||
} | ||
}, | ||
"gitHead": "0819b7be289d05d770a45071692cb772806e61f0" | ||
} |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2217772
6
454
1
15
20
7
181
1
1
90
30322
26
2