@magicpages/ghost-typesense-core 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var GhostTypesenseManager = class {
|
|
|
174
174
|
*/
|
|
175
175
|
async clearCollection() {
|
|
176
176
|
const collection = this.typesense.collections(this.collectionName);
|
|
177
|
-
await collection.documents().delete();
|
|
177
|
+
await collection.documents().delete({ filter_by: "*" });
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -150,7 +150,7 @@ var GhostTypesenseManager = class {
|
|
|
150
150
|
*/
|
|
151
151
|
async clearCollection() {
|
|
152
152
|
const collection = this.typesense.collections(this.collectionName);
|
|
153
|
-
await collection.documents().delete();
|
|
153
|
+
await collection.documents().delete({ filter_by: "*" });
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicpages/ghost-typesense-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Core functionality for Ghost-Typesense integration",
|
|
5
5
|
"author": "MagicPages",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@magicpages/ghost-typesense-config": "
|
|
27
|
+
"@magicpages/ghost-typesense-config": "^1.3.1",
|
|
28
28
|
"@ts-ghost/content-api": "^4.0.6",
|
|
29
29
|
"@ts-ghost/core-api": "^4.0.6",
|
|
30
30
|
"typesense": "^1.7.2",
|