New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bson-transpilers

Package Overview
Dependencies
Maintainers
29
Versions
503
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bson-transpilers - npm Package Compare versions

Comparing version 0.15.0 to 1.0.0

.eslintignore

4

codegeneration/java/Generator.js

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc