@ikas/storefront-next 4.0.0-alpha.2 → 4.0.0-alpha.21
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/package.json +14 -14
- package/src/api/getTheme.ts +1 -1
- package/src/api/uploadTheme.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-next",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.21",
|
|
4
4
|
"description": "Next.js specific functions for ikas storefront themes.",
|
|
5
5
|
"author": "Umut Ozan Yıldırım",
|
|
6
6
|
"license": "ISC",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
"build": "rm -rf build && rollup -c"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"next": "
|
|
20
|
-
"@ikas/storefront-config": "^4.0.0-alpha.
|
|
21
|
-
"@ikas/storefront-providers": "^4.0.0-alpha.
|
|
22
|
-
"@ikas/storefront-models": "^4.0.0-alpha.
|
|
23
|
-
"@ikas/storefront-api": "^4.0.0-alpha.
|
|
24
|
-
"@ikas/storefront-assets": "^4.0.0-alpha.
|
|
19
|
+
"next": "12.0.7",
|
|
20
|
+
"@ikas/storefront-config": "^4.0.0-alpha.21",
|
|
21
|
+
"@ikas/storefront-providers": "^4.0.0-alpha.21",
|
|
22
|
+
"@ikas/storefront-models": "^4.0.0-alpha.21",
|
|
23
|
+
"@ikas/storefront-api": "^4.0.0-alpha.21",
|
|
24
|
+
"@ikas/storefront-assets": "^4.0.0-alpha.21",
|
|
25
25
|
"axios": "^0.21.0",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"archiver": "^5.3.0",
|
|
28
28
|
"cors": "^2.8.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@ikas/storefront-cmd": "^4.0.0-alpha.
|
|
32
|
-
"@ikas/storefront-config": "^4.0.0-alpha.
|
|
33
|
-
"@ikas/storefront-providers": "^4.0.0-alpha.
|
|
34
|
-
"@ikas/storefront-models": "^4.0.0-alpha.
|
|
35
|
-
"@ikas/storefront-api": "^4.0.0-alpha.
|
|
36
|
-
"@ikas/storefront-assets": "^4.0.0-alpha.
|
|
31
|
+
"@ikas/storefront-cmd": "^4.0.0-alpha.21",
|
|
32
|
+
"@ikas/storefront-config": "^4.0.0-alpha.21",
|
|
33
|
+
"@ikas/storefront-providers": "^4.0.0-alpha.21",
|
|
34
|
+
"@ikas/storefront-models": "^4.0.0-alpha.21",
|
|
35
|
+
"@ikas/storefront-api": "^4.0.0-alpha.21",
|
|
36
|
+
"@ikas/storefront-assets": "^4.0.0-alpha.21",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
38
38
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
39
39
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/node-fetch": "^2.5.7",
|
|
43
43
|
"@types/cors": "^2.8.9",
|
|
44
44
|
"@types/lodash": "^4.14.168",
|
|
45
|
-
"next": "
|
|
45
|
+
"next": "12.0.7",
|
|
46
46
|
"prettier": "^2.2.1",
|
|
47
47
|
"rollup": "^2.75.6",
|
|
48
48
|
"rollup-plugin-terser": "^7.0.2",
|
package/src/api/getTheme.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
2
2
|
import { corsMiddleware } from "./middleware";
|
|
3
|
-
import { ThemeJsonGenerator } from "@ikas/storefront-cmd
|
|
3
|
+
import { ThemeJsonGenerator } from "@ikas/storefront-cmd";
|
|
4
4
|
|
|
5
5
|
export const getTheme = async (req: NextApiRequest, res: NextApiResponse) => {
|
|
6
6
|
try {
|
package/src/api/uploadTheme.ts
CHANGED
|
@@ -166,7 +166,7 @@ async function saveTheme(theme: any, localization: Record<string, any>) {
|
|
|
166
166
|
// "Content-Type": "application/json",
|
|
167
167
|
// },
|
|
168
168
|
// });
|
|
169
|
-
const responseJSON = await response.data
|
|
169
|
+
const responseJSON = await response.data;
|
|
170
170
|
|
|
171
171
|
if (responseJSON.data && responseJSON.data.saveTheme) {
|
|
172
172
|
return responseJSON.data.saveTheme.uploadUrl as string;
|