odata-query
Advanced tools
Comparing version 7.0.6 to 7.0.7
@@ -337,3 +337,3 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
var COLLECTION_OPERATORS = ['any', 'all']; | ||
var BOOLEAN_FUNCTIONS = ['startswith', 'endswith', 'contains']; | ||
var BOOLEAN_FUNCTIONS = ['startswith', 'endswith', 'contains', 'matchespattern']; | ||
var SUPPORTED_EXPAND_PROPERTIES = [ | ||
@@ -569,3 +569,3 @@ 'expand', | ||
else if (BOOLEAN_FUNCTIONS.indexOf(op) !== -1) { | ||
// Simple boolean functions (startswith, endswith, contains) | ||
// Simple boolean functions (startswith, endswith, contains, matchespattern) | ||
result.push("".concat(op, "(").concat(propName, ",").concat(handleValue(value[op], aliases), ")")); | ||
@@ -572,0 +572,0 @@ } |
@@ -5,3 +5,3 @@ import { __assign, __rest } from "tslib"; | ||
var COLLECTION_OPERATORS = ['any', 'all']; | ||
var BOOLEAN_FUNCTIONS = ['startswith', 'endswith', 'contains']; | ||
var BOOLEAN_FUNCTIONS = ['startswith', 'endswith', 'contains', 'matchespattern']; | ||
var SUPPORTED_EXPAND_PROPERTIES = [ | ||
@@ -229,3 +229,3 @@ 'expand', | ||
else if (BOOLEAN_FUNCTIONS.indexOf(op) !== -1) { | ||
// Simple boolean functions (startswith, endswith, contains) | ||
// Simple boolean functions (startswith, endswith, contains, matchespattern) | ||
result.push("".concat(op, "(").concat(propName, ",").concat(handleValue(value[op], aliases), ")")); | ||
@@ -232,0 +232,0 @@ } |
{ | ||
"name": "odata-query", | ||
"description": "OData v4 query builder that uses a simple object-based syntax similar to MongoDB and js-data", | ||
"version": "7.0.6", | ||
"version": "7.0.7", | ||
"author": "Sean Lynch <techniq35@gmail.com>", | ||
@@ -28,7 +28,9 @@ "license": "MIT", | ||
"prebuild": "rimraf dist", | ||
"prepare": "npm run build", | ||
"build": "tsc -p tsconfig.cjs.json & tsc -p tsconfig.esm.json & tsc -p tsconfig.dts.json & browserify -e src/index-browser.ts -p [ tsify ] -o dist/browser/index.js", | ||
"test": "jest", | ||
"test-watch": "jest --watchAll", | ||
"preversion": "npm run build" | ||
"preversion": "npm run build", | ||
"prepublishOnly": "npm run build" | ||
} | ||
} | ||
} |
@@ -298,3 +298,3 @@ # odata-query | ||
``` | ||
Supported operators: `startswith`, `endswith`, `contains` | ||
Supported operators: `startswith`, `endswith`, `contains`, `matchespattern` | ||
@@ -301,0 +301,0 @@ ##### Functions returning non-boolean values (string, int) |
82137
6
1413