@brandlab-digital/site-next 0.1.0-alpha.17 → 0.1.0-alpha.18
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FetchGooglePlaceReviewsOptions } from '@brandlab-digital/site-core/google-reviews';
|
|
2
|
+
export declare const GOOGLE_PLACE_REVIEWS_NO_STORE_HEADERS: {
|
|
3
|
+
readonly 'Cache-Control': "private, no-store, max-age=0";
|
|
4
|
+
};
|
|
5
|
+
export interface GooglePlaceReviewsRouteOptions extends FetchGooglePlaceReviewsOptions {
|
|
6
|
+
responseInit?: ResponseInit;
|
|
7
|
+
}
|
|
8
|
+
export declare function createGooglePlaceReviewsRouteResponse(options: GooglePlaceReviewsRouteOptions): Promise<Response>;
|
|
9
|
+
//# sourceMappingURL=google-reviews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-reviews.d.ts","sourceRoot":"","sources":["../src/google-reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,8BAA8B,EAEpC,MAAM,4CAA4C,CAAA;AAEnD,eAAO,MAAM,qCAAqC;;CAExC,CAAA;AAEV,MAAM,WAAW,8BAA+B,SAAQ,8BAA8B;IACpF,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,wBAAsB,qCAAqC,CACzD,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,QAAQ,CAAC,CAUnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { fetchGooglePlaceReviewsSnapshot, } from '@brandlab-digital/site-core/google-reviews';
|
|
2
|
+
export const GOOGLE_PLACE_REVIEWS_NO_STORE_HEADERS = {
|
|
3
|
+
'Cache-Control': 'private, no-store, max-age=0',
|
|
4
|
+
};
|
|
5
|
+
export async function createGooglePlaceReviewsRouteResponse(options) {
|
|
6
|
+
const snapshot = await fetchGooglePlaceReviewsSnapshot(options);
|
|
7
|
+
return Response.json(snapshot, {
|
|
8
|
+
...options.responseInit,
|
|
9
|
+
headers: {
|
|
10
|
+
...GOOGLE_PLACE_REVIEWS_NO_STORE_HEADERS,
|
|
11
|
+
...options.responseInit?.headers,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=google-reviews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-reviews.js","sourceRoot":"","sources":["../src/google-reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,GAGhC,MAAM,4CAA4C,CAAA;AAEnD,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,eAAe,EAAE,8BAA8B;CACvC,CAAA;AAMV,MAAM,CAAC,KAAK,UAAU,qCAAqC,CACzD,OAAuC;IAEvC,MAAM,QAAQ,GAA+B,MAAM,+BAA+B,CAAC,OAAO,CAAC,CAAA;IAE3F,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC7B,GAAG,OAAO,CAAC,YAAY;QACvB,OAAO,EAAE;YACP,GAAG,qCAAqC;YACxC,GAAG,OAAO,CAAC,YAAY,EAAE,OAAO;SACjC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brandlab-digital/site-next",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@brandlab-digital/site-core": "0.1.0-alpha.
|
|
16
|
+
"@brandlab-digital/site-core": "0.1.0-alpha.18"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"next": ">=16",
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"./headers": {
|
|
48
48
|
"types": "./dist/headers.d.ts",
|
|
49
49
|
"import": "./dist/headers.js"
|
|
50
|
+
},
|
|
51
|
+
"./google-reviews": {
|
|
52
|
+
"types": "./dist/google-reviews.d.ts",
|
|
53
|
+
"import": "./dist/google-reviews.js"
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|