@orama/orama
Advanced tools
Comparing version
@@ -310,5 +310,5 @@ import { createError } from '../errors.js'; | ||
if (isArray) { | ||
filtersMap[param].push(...flatFilterArr(node, operation)); | ||
safeArrayPush(filtersMap[param], flatFilterArr(node, operation)); | ||
} else { | ||
filtersMap[param].push(...flatFilter(node, operation)); | ||
safeArrayPush(filtersMap[param], flatFilter(node, operation)); | ||
} | ||
@@ -315,0 +315,0 @@ continue; |
import { createError } from '../errors.js'; | ||
import { isVectorType } from './defaults.js'; | ||
import { getInternalDocumentId } from './internal-document-id-store.js'; | ||
import { safeArrayPush } from "../utils.js"; | ||
function innerCreate(orama, sharedInternalDocumentStore, schema, sortableDeniedProperties, prefix) { | ||
@@ -22,3 +23,3 @@ const sorter = { | ||
const ret = innerCreate(orama, sharedInternalDocumentStore, type, sortableDeniedProperties, path); | ||
sorter.sortableProperties.push(...ret.sortableProperties); | ||
safeArrayPush(sorter.sortableProperties, ret.sortableProperties); | ||
sorter.sorts = { | ||
@@ -25,0 +26,0 @@ ...sorter.sorts, |
@@ -1,2 +0,2 @@ | ||
import { intersect } from "../utils.js"; | ||
import { intersect, safeArrayPush } from "../utils.js"; | ||
export function create() { | ||
@@ -62,3 +62,3 @@ return { | ||
if (ids) { | ||
result.push(...ids); | ||
safeArrayPush(result, ids); | ||
} | ||
@@ -79,3 +79,3 @@ } | ||
if (ids) { | ||
result.push(...ids); | ||
safeArrayPush(result, ids); | ||
} | ||
@@ -82,0 +82,0 @@ } |
{ | ||
"name": "@orama/orama", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"type": "module", | ||
@@ -91,4 +91,4 @@ "description": "Next generation full-text and vector search engine, written in TypeScript", | ||
"vite": "^4.1.4", | ||
"@orama/stemmers": "1.2.9", | ||
"@orama/stopwords": "1.2.9" | ||
"@orama/stemmers": "1.2.10", | ||
"@orama/stopwords": "1.2.10" | ||
}, | ||
@@ -95,0 +95,0 @@ "engines": { |
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
553900
0.04%5738
0.02%