odata-v4-inmemory
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -67,2 +67,4 @@ import { Token } from 'odata-v4-parser/lib/lexer'; | ||
protected VisitIsOfExpression(node: Token, context: any): (a: any) => boolean; | ||
protected VisitQualifiedEntityTypeName(node: Token, context: any): (a: any) => any; | ||
protected VisitEntityTypeName(node: Token, context: any): (a: any) => any; | ||
protected VisitOrExpression(node: Token, context: any): (a: any) => any; | ||
@@ -69,0 +71,0 @@ private resolveIdentifier(node); |
@@ -237,2 +237,9 @@ "use strict"; | ||
}; | ||
FilterVisitor.prototype.VisitQualifiedEntityTypeName = function (node, context) { | ||
var _this = this; | ||
return function (a) { return _this.Visit(node.value, context)(a); }; | ||
}; | ||
FilterVisitor.prototype.VisitEntityTypeName = function (node, context) { | ||
return function (a) { return node.value.name; }; | ||
}; | ||
FilterVisitor.prototype.VisitOrExpression = function (node, context) { | ||
@@ -239,0 +246,0 @@ var _a = this.VisitBinaryExpression(node, context), left = _a[0], right = _a[1]; |
{ | ||
"name": "odata-v4-inmemory", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Service OData requests from an inmemory data store", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"odata-v4-parser": "^0.1.5" | ||
"odata-v4-parser": "^0.1.9" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -10,3 +10,3 @@ # OData V4 Service modules - InMemory Connector | ||
In most cases servicing data from memory is not possible - in this case you can use the | ||
[OData V4 MongoDB Connector](https://github.com/jaystack/odata-server-example) | ||
[OData V4 MongoDB Connector](https://github.com/jaystack/odata-v4-mongodb) | ||
@@ -157,7 +157,1 @@ The InMemory connector can be safely used in IoT devices. | ||
- expression 5.1.1.4.31: geo.length(A) | ||
@@ -268,2 +268,11 @@ import { TokenType, Token } from 'odata-v4-parser/lib/lexer' | ||
} | ||
protected VisitQualifiedEntityTypeName(node: Token, context: any) { | ||
return a => this.Visit(node.value, context)(a); | ||
} | ||
protected VisitEntityTypeName(node: Token, context: any) { | ||
return a => node.value.name; | ||
} | ||
protected VisitOrExpression(node: Token, context: any) { | ||
@@ -270,0 +279,0 @@ var [left, right] = this.VisitBinaryExpression(node, context) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
65411
1049
0
156
Updatedodata-v4-parser@^0.1.9