ozone-search-helper
Advanced tools
Comparing version 5.9.2 to 6.0.0
@@ -64,6 +64,2 @@ /** | ||
get searchRequest(): SearchRequest; | ||
get size(): number; | ||
set size(size: number); | ||
get offset(): number; | ||
set offset(size: number); | ||
/** | ||
@@ -157,3 +153,3 @@ * create boolQuery mustClauses. | ||
* Search inside a tenant | ||
* @param {Mode} mode | ||
* @param {ModeType} mode | ||
* @param {string} tenantId | ||
@@ -160,0 +156,0 @@ * @return {SearchQuery} |
@@ -66,6 +66,2 @@ /** | ||
get searchRequest() { return this._searchRequest; } | ||
get size() { return this._searchRequest.size || 0; } | ||
set size(size) { this._searchRequest.size = size; } | ||
get offset() { return this._searchRequest.offset || 0; } | ||
set offset(size) { this._searchRequest.offset = size; } | ||
/** | ||
@@ -99,3 +95,3 @@ * create boolQuery mustClauses. | ||
setSize(size) { | ||
this.size = size; | ||
this._searchRequest.size = size; | ||
return this; | ||
@@ -110,3 +106,3 @@ } | ||
setOffset(offset) { | ||
this.offset = offset; | ||
this._searchRequest.offset = offset; | ||
return this; | ||
@@ -230,3 +226,3 @@ } | ||
* Search inside a tenant | ||
* @param {Mode} mode | ||
* @param {ModeType} mode | ||
* @param {string} tenantId | ||
@@ -250,3 +246,3 @@ * @return {SearchQuery} | ||
suggestion(searchString, lastTerm = '', size) { | ||
const suggestSize = size || this.size; | ||
const suggestSize = size || this._searchRequest.size; | ||
this._searchRequest.aggregations = [{ | ||
@@ -253,0 +249,0 @@ '$type': 'TermsAggregation', |
{ | ||
"name": "ozone-search-helper", | ||
"version": "5.9.2", | ||
"version": "6.0.0", | ||
"publishConfig": { | ||
@@ -26,5 +26,5 @@ "access": "public" | ||
"devDependencies": { | ||
"ozone-type": "^5.9.2" | ||
"ozone-type": "^6.0.0" | ||
}, | ||
"gitHead": "2149ba1c9dac6270f63c0c2bc6bea97fc1e341fb" | ||
"gitHead": "1c98ef43283bbd0b01a06b4c36cbdf9fa2a47ef6" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 10 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5928136
169
58394
2
80
32
6