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

isotropy-ast-analyzer-keyvaluedb

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isotropy-ast-analyzer-keyvaluedb - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

.npmignore

3

dist/analyze-read.js

@@ -11,5 +11,2 @@ "use strict";

return (0, _makeAnalyzer2.default)([schemas.get], path, state, analysisState);
},
analyzeMemberExpression: function analyzeMemberExpression(path, state) {
return (0, _makeAnalyzer2.default)([schemas.count, schemas.collection, schemas.readMemberError], path, state, analysisState);
}

@@ -16,0 +13,0 @@ };

@@ -17,6 +17,6 @@ "use strict";

return (0, _chimpanzee.match)(schema, path);
}).first(function (x) {
return x instanceof _chimpanzee.Match;
}).first(function (x, i) {
return x instanceof _chimpanzee.Match || i === schemas.length - 1;
});
}
//# sourceMappingURL=make-analyzer.js.map

@@ -10,3 +10,3 @@ "use strict";

exports.default = function (state, analysisState) {
return (0, _isotropyAnalyzerUtils.composite)({
var schema = {
type: "CallExpression",

@@ -25,4 +25,6 @@ callee: {

}]
}, {
build: function build() {
};
return (0, _isotropyAnalyzerUtils.composite)(schema, {
build: function build(obj) {
return function () {

@@ -33,3 +35,3 @@ return function (result) {

key: result.value.arguments[0].body
}) : result;
}) : result instanceof _chimpanzee.Skip && canParse(schema.callee.object, obj.get("callee").get("object")) ? new _chimpanzee.Fault("Invalid database expression. Should look like myDb.todos.find(todo => todo.key === \"some_key\")") : result;
};

@@ -47,2 +49,7 @@ };

function canParse(schema, obj) {
var result = (0, _chimpanzee.parse)(schema)(obj)();
return result instanceof _chimpanzee.Match || result instanceof _chimpanzee.Empty;
}
var binaryExpression = (0, _isotropyAnalyzerUtils.composite)({

@@ -61,3 +68,3 @@ type: "BinaryExpression",

return function (result) {
return result.value.key;
return result instanceof _chimpanzee.Match ? result.value.key : result;
};

@@ -64,0 +71,0 @@ };

{
"name": "isotropy-ast-analyzer-keyvaluedb",
"version": "0.0.4",
"version": "0.0.5",
"author": "Isotropy Team<isotropy@agilehead.com>",

@@ -16,3 +16,3 @@ "contributors": [

"dependencies": {
"chimpanzee": "^0.0.60",
"chimpanzee": "^0.0.61",
"isotropy-analyzer-utils": "^0.0.1",

@@ -19,0 +19,0 @@ "lazily": "^0.0.17",

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

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