@faststore/core 3.0.35 → 3.0.37
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/functions-config-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/account.json +1 -1
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/trace +91 -91
- package/.turbo/turbo-test.log +10 -10
- package/package.json +3 -3
- package/src/server/cms/plp.ts +2 -2
- /package/.next/static/{xgj3UJasm3DsIrzOKl0DQ → 5t60whP1owjFekL_BC-jV}/_buildManifest.js +0 -0
- /package/.next/static/{xgj3UJasm3DsIrzOKl0DQ → 5t60whP1owjFekL_BC-jV}/_ssgManifest.js +0 -0
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/server/index.test.ts (23.
|
|
2
|
+
PASS test/server/index.test.ts (23.645 s)
|
|
3
3
|
FastStore GraphQL Layer
|
|
4
4
|
@faststore/api
|
|
5
|
-
✓ should return a valid GraphQL schema (
|
|
6
|
-
✓ should return a valid GraphQL schema contain all expected types (
|
|
7
|
-
✓ should return a valid GraphQL schema contain all expected queries (
|
|
8
|
-
✓ should return a valid GraphQL schema contain all expected mutations
|
|
5
|
+
✓ should return a valid GraphQL schema (6 ms)
|
|
6
|
+
✓ should return a valid GraphQL schema contain all expected types (5 ms)
|
|
7
|
+
✓ should return a valid GraphQL schema contain all expected queries (2 ms)
|
|
8
|
+
✓ should return a valid GraphQL schema contain all expected mutations (1 ms)
|
|
9
9
|
VTEX API Extension
|
|
10
10
|
✓ getTypeDefsFromFolder function should return an Array (10 ms)
|
|
11
11
|
Third Party API Extension
|
|
12
|
-
✓ getTypeDefsFromFolder function should return an Array (
|
|
12
|
+
✓ getTypeDefsFromFolder function should return an Array (14 ms)
|
|
13
13
|
Final Schema after merging
|
|
14
|
-
✓ should return a valid merged GraphQL schema (
|
|
14
|
+
✓ should return a valid merged GraphQL schema (44 ms)
|
|
15
15
|
Envelop
|
|
16
|
-
✓ should exist with its plugins (
|
|
17
|
-
✓ should handle options and execute (
|
|
16
|
+
✓ should exist with its plugins (42 ms)
|
|
17
|
+
✓ should handle options and execute (190 ms)
|
|
18
18
|
|
|
19
19
|
Test Suites: 1 passed, 1 total
|
|
20
20
|
Tests: 9 passed, 9 total
|
|
21
21
|
Snapshots: 0 total
|
|
22
|
-
Time: 23.
|
|
22
|
+
Time: 23.738 s
|
|
23
23
|
Ran all test suites.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@envelop/graphql-jit": "^1.1.1",
|
|
40
40
|
"@envelop/parser-cache": "^2.2.0",
|
|
41
41
|
"@envelop/validation-cache": "^2.2.0",
|
|
42
|
-
"@faststore/api": "^3.0.
|
|
42
|
+
"@faststore/api": "^3.0.37",
|
|
43
43
|
"@faststore/components": "^3.0.24",
|
|
44
44
|
"@faststore/graphql-utils": "^3.0.24",
|
|
45
45
|
"@faststore/sdk": "^3.0.34",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"node": "18.19.0",
|
|
129
129
|
"yarn": "1.19.1"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "371b07bd85482f3b77629cef773f4167ba5a5b72"
|
|
132
132
|
}
|
package/src/server/cms/plp.ts
CHANGED
|
@@ -28,13 +28,13 @@ export const getPLP = async (slug: string, previewData: Locator) => {
|
|
|
28
28
|
const cmsData = JSON.parse(config.cms.data)
|
|
29
29
|
const allPLPsFromCmsEnvData: PLPfromCmsEnvData[] = cmsData['plp']
|
|
30
30
|
|
|
31
|
-
return await getPLPFromCmsEnvData(`/${slug}
|
|
31
|
+
return await getPLPFromCmsEnvData(`/${slug}/`, allPLPsFromCmsEnvData, {
|
|
32
32
|
...(previewData?.contentType === 'plp' ? previewData : null),
|
|
33
33
|
contentType: 'plp',
|
|
34
34
|
})
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
return (await getPLPFromCms(`/${slug}
|
|
37
|
+
return (await getPLPFromCms(`/${slug}/`, {
|
|
38
38
|
...(previewData?.contentType === 'plp' ? previewData : null),
|
|
39
39
|
contentType: 'plp',
|
|
40
40
|
})) as PLPContentType
|
|
File without changes
|
|
File without changes
|