@tryghost/algolia-netlify 0.4.2 → 0.4.4
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.
|
@@ -37,9 +37,9 @@ var parseWebhookBody = async (request) => {
|
|
|
37
37
|
|
|
38
38
|
// functions/utils/algolia.mts
|
|
39
39
|
import IndexFactory from "@tryghost/algolia-indexer";
|
|
40
|
-
import
|
|
41
|
-
import "algolia-html-extractor";
|
|
40
|
+
import { fragmentTransformer, transformToAlgoliaObject } from "@tryghost/algolia-fragmenter";
|
|
42
41
|
import "algoliasearch";
|
|
42
|
+
var transforms = { fragmentTransformer, transformToAlgoliaObject };
|
|
43
43
|
|
|
44
44
|
// functions/post-published.mts
|
|
45
45
|
async function postPublished(request) {
|
|
@@ -37,8 +37,7 @@ var parseWebhookBody = async (request) => {
|
|
|
37
37
|
|
|
38
38
|
// functions/utils/algolia.mts
|
|
39
39
|
import IndexFactory from "@tryghost/algolia-indexer";
|
|
40
|
-
import
|
|
41
|
-
import "algolia-html-extractor";
|
|
40
|
+
import { fragmentTransformer, transformToAlgoliaObject } from "@tryghost/algolia-fragmenter";
|
|
42
41
|
import "algoliasearch";
|
|
43
42
|
|
|
44
43
|
// functions/post-unpublished.mts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/algolia-netlify",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/algolia.git",
|
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
"typescript": "7.0.2"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"algolia-html-extractor": "0.0.1",
|
|
45
44
|
"algoliasearch": "5.56.0",
|
|
46
|
-
"@tryghost/algolia-fragmenter": "^0.
|
|
47
|
-
"@tryghost/algolia-indexer": "^0.3.
|
|
45
|
+
"@tryghost/algolia-fragmenter": "^0.3.0",
|
|
46
|
+
"@tryghost/algolia-indexer": "^0.3.4"
|
|
48
47
|
},
|
|
49
48
|
"scripts": {
|
|
50
49
|
"dev": "pnpm --dir ../.. exec netlify dev --filter @tryghost/algolia-netlify",
|
|
50
|
+
"prebuild": "pnpm --filter @tryghost/algolia-html-extractor build && pnpm --filter @tryghost/algolia-fragmenter build",
|
|
51
|
+
"pretest": "pnpm --filter @tryghost/algolia-html-extractor build && pnpm --filter @tryghost/algolia-fragmenter build",
|
|
51
52
|
"test": "NODE_ENV=testing vitest run --root .",
|
|
52
53
|
"typecheck": "tsc --project tsconfig.functions.json && tsc --project tsconfig.test.json",
|
|
53
54
|
"lint": "oxlint --quiet . && oxfmt --check .",
|