@farm.js/sanity 0.1.66 → 0.1.68
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/webhook.d.ts +1 -1
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js +2 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineIntegration } from "@farm.js/core";
|
|
1
|
+
import { defineIntegration } from "@farm.js/core/integrations";
|
|
2
2
|
import { createSanityClient } from "./client.js";
|
|
3
3
|
import { resolveSanityConfig, sanityIntegrationConfig, } from "./config.js";
|
|
4
4
|
import { createSanityWebhookRoute } from "./webhook.js";
|
package/dist/webhook.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FarmIntegrationRoute, RouteDataCacheKey } from "@farm.js/core";
|
|
2
2
|
import type { SanityWebhookChange, SanityWebhookOptions } from "./config.js";
|
|
3
3
|
export declare const DEFAULT_SANITY_WEBHOOK_PATH = "/api/sanity/webhook";
|
|
4
4
|
/** The cache operations the route performs. Injected so tests need no cache. */
|
package/dist/webhook.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAI7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7E,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AAEjE,gFAAgF;AAChF,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AAID,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACrF,MAAM,EAAE,MAAM,CAAC;CAChB;AASD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,mBAAmB,GAAG,IAAI,EAClC,YAAY,GAAE,yBAA4C,GACzD,OAAO,CAAC,MAAM,CAAC,CAWjB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,yBAAyB,EAClC,YAAY,GAAE,yBAA4C,GACzD,oBAAoB,CAgCtB"}
|
package/dist/webhook.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { invalidate, revalidatePath } from "@farm.js/core/cache";
|
|
2
|
+
import { integrationRoute } from "@farm.js/core/integrations";
|
|
2
3
|
import { isValidSignature, SIGNATURE_HEADER_NAME } from "@sanity/webhook";
|
|
3
4
|
export const DEFAULT_SANITY_WEBHOOK_PATH = "/api/sanity/webhook";
|
|
4
5
|
const farmInvalidation = { invalidate, revalidatePath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/sanity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"description": "Sanity CMS integration for Farm.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@sanity/image-url": "^2.1.1",
|
|
29
29
|
"@sanity/webhook": "^4.0.4",
|
|
30
|
-
"@farm.js/
|
|
31
|
-
"@farm.js/
|
|
30
|
+
"@farm.js/integration-utils": "0.1.68",
|
|
31
|
+
"@farm.js/core": "0.1.68"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@sanity/client": "^8.4.0",
|
|
35
35
|
"typescript": "^5.3.3",
|
|
36
36
|
"vite": "8.3.4",
|
|
37
37
|
"vitest": "5.0.5",
|
|
38
|
-
"@farm.js/content": "0.1.0-beta.
|
|
38
|
+
"@farm.js/content": "0.1.0-beta.52"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@sanity/client": "^7.0.0 || ^8.0.0",
|
|
42
|
-
"@farm.js/content": "^0.1.0-beta.
|
|
42
|
+
"@farm.js/content": "^0.1.0-beta.52"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@farm.js/content": {
|