@ikas/storefront-next 4.0.0-alpha.2 → 4.0.0-alpha.20

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-next",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.20",
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": "canary",
20
- "@ikas/storefront-config": "^4.0.0-alpha.2",
21
- "@ikas/storefront-providers": "^4.0.0-alpha.2",
22
- "@ikas/storefront-models": "^4.0.0-alpha.2",
23
- "@ikas/storefront-api": "^4.0.0-alpha.2",
24
- "@ikas/storefront-assets": "^4.0.0-alpha.2",
19
+ "next": "12.0.7",
20
+ "@ikas/storefront-config": "^4.0.0-alpha.20",
21
+ "@ikas/storefront-providers": "^4.0.0-alpha.20",
22
+ "@ikas/storefront-models": "^4.0.0-alpha.20",
23
+ "@ikas/storefront-api": "^4.0.0-alpha.20",
24
+ "@ikas/storefront-assets": "^4.0.0-alpha.20",
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.2",
32
- "@ikas/storefront-config": "^4.0.0-alpha.2",
33
- "@ikas/storefront-providers": "^4.0.0-alpha.2",
34
- "@ikas/storefront-models": "^4.0.0-alpha.2",
35
- "@ikas/storefront-api": "^4.0.0-alpha.2",
36
- "@ikas/storefront-assets": "^4.0.0-alpha.2",
31
+ "@ikas/storefront-cmd": "^4.0.0-alpha.20",
32
+ "@ikas/storefront-config": "^4.0.0-alpha.20",
33
+ "@ikas/storefront-providers": "^4.0.0-alpha.20",
34
+ "@ikas/storefront-models": "^4.0.0-alpha.20",
35
+ "@ikas/storefront-api": "^4.0.0-alpha.20",
36
+ "@ikas/storefront-assets": "^4.0.0-alpha.20",
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": "canary",
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",
@@ -1,6 +1,6 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
2
  import { corsMiddleware } from "./middleware";
3
- import { ThemeJsonGenerator } from "@ikas/storefront-cmd/build/scripts/generators/theme";
3
+ import { ThemeJsonGenerator } from "@ikas/storefront-cmd";
4
4
 
5
5
  export const getTheme = async (req: NextApiRequest, res: NextApiResponse) => {
6
6
  try {
@@ -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;