sb-mig 5.1.2-beta.4 → 5.1.2-beta.6
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/cli/commands/init.js +1 -17
- package/dist/config/constants.d.ts +17 -0
- package/dist/config/constants.js +17 -0
- package/package.json +2 -2
|
@@ -2,25 +2,9 @@ import * as fs from "fs";
|
|
|
2
2
|
import StoryblokClient from "storyblok-js-client";
|
|
3
3
|
import { v4 as uuidv4 } from "uuid";
|
|
4
4
|
import { managementApi } from "../../api/managementApi.js";
|
|
5
|
+
import { storyblokApiMapping } from "../../config/constants.js";
|
|
5
6
|
import Logger from "../../utils/logger.js";
|
|
6
7
|
import { apiConfig } from "../api-config.js";
|
|
7
|
-
const storyblokApiMapping = {
|
|
8
|
-
eu: {
|
|
9
|
-
managementApi: "https://mapi.storyblok.com/v1",
|
|
10
|
-
deliveryApi: "https://api.storyblok.com/v2",
|
|
11
|
-
graphql: "https://gapi.storyblok.com/v1/api",
|
|
12
|
-
},
|
|
13
|
-
us: {
|
|
14
|
-
managementApi: "https://api-us.storyblok.com/v1",
|
|
15
|
-
deliveryApi: "https://api-us.storyblok.com/v2",
|
|
16
|
-
graphql: "https://gapi-us.storyblok.com/v1/api",
|
|
17
|
-
},
|
|
18
|
-
cn: {
|
|
19
|
-
managementApi: "https://app.storyblokchina.cn",
|
|
20
|
-
deliveryApi: "https://app.storyblokchina.cn",
|
|
21
|
-
graphql: "",
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
8
|
const INIT_COMMANDS = {
|
|
25
9
|
project: "project",
|
|
26
10
|
};
|
|
@@ -2,3 +2,20 @@ export declare const SCHEMA: {
|
|
|
2
2
|
readonly TS: "ts";
|
|
3
3
|
readonly JS: "js";
|
|
4
4
|
};
|
|
5
|
+
export declare const storyblokApiMapping: {
|
|
6
|
+
eu: {
|
|
7
|
+
managementApi: string;
|
|
8
|
+
deliveryApi: string;
|
|
9
|
+
graphql: string;
|
|
10
|
+
};
|
|
11
|
+
us: {
|
|
12
|
+
managementApi: string;
|
|
13
|
+
deliveryApi: string;
|
|
14
|
+
graphql: string;
|
|
15
|
+
};
|
|
16
|
+
cn: {
|
|
17
|
+
managementApi: string;
|
|
18
|
+
deliveryApi: string;
|
|
19
|
+
graphql: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/config/constants.js
CHANGED
|
@@ -2,3 +2,20 @@ export const SCHEMA = {
|
|
|
2
2
|
TS: "ts",
|
|
3
3
|
JS: "js",
|
|
4
4
|
};
|
|
5
|
+
export const storyblokApiMapping = {
|
|
6
|
+
eu: {
|
|
7
|
+
managementApi: "https://mapi.storyblok.com/v1",
|
|
8
|
+
deliveryApi: "https://api.storyblok.com/v2",
|
|
9
|
+
graphql: "https://gapi.storyblok.com/v1/api",
|
|
10
|
+
},
|
|
11
|
+
us: {
|
|
12
|
+
managementApi: "https://api-us.storyblok.com/v1",
|
|
13
|
+
deliveryApi: "https://api-us.storyblok.com/v2",
|
|
14
|
+
graphql: "https://gapi-us.storyblok.com/v1/api",
|
|
15
|
+
},
|
|
16
|
+
cn: {
|
|
17
|
+
managementApi: "https://app.storyblokchina.cn",
|
|
18
|
+
deliveryApi: "https://app.storyblokchina.cn",
|
|
19
|
+
graphql: "",
|
|
20
|
+
},
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sb-mig",
|
|
3
|
-
"version": "5.1.2-beta.
|
|
3
|
+
"version": "5.1.2-beta.6",
|
|
4
4
|
"description": "CLI to rule the world. (and handle stuff related to Storyblok CMS)",
|
|
5
5
|
"author": "Marcin Krawczyk <marckraw@icloud.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@typescript-eslint/parser": "^6.0.0",
|
|
88
88
|
"chai": "^4.3.7",
|
|
89
89
|
"chokidar-cli": "^3.0.0",
|
|
90
|
-
"eslint": "^8.
|
|
90
|
+
"eslint": "^8.45.0",
|
|
91
91
|
"eslint-config-prettier": "^8.8.0",
|
|
92
92
|
"eslint-plugin-import": "^2.27.5",
|
|
93
93
|
"esm": "^3.2.25",
|