@contentful/create-contentful-app 2.2.2 → 2.2.7-alpha.0
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.
|
@@ -10,7 +10,14 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
10
10
|
exports.CONTENTFUL_APPS_EXAMPLE_FOLDER = 'https://api.github.com/repos/contentful/apps/contents/examples';
|
|
11
11
|
async function getGithubFolderNames() {
|
|
12
12
|
try {
|
|
13
|
-
const
|
|
13
|
+
const options = {};
|
|
14
|
+
const githubToken = process.env.GITHUB_TOKEN;
|
|
15
|
+
if (githubToken) {
|
|
16
|
+
options.headers = {
|
|
17
|
+
Authorization: `Bearer ${githubToken}`,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const response = await (0, node_fetch_1.default)(exports.CONTENTFUL_APPS_EXAMPLE_FOLDER, options);
|
|
14
21
|
if (!response.ok) {
|
|
15
22
|
throw new types_1.HTTPResponseError(`${chalk_1.default.red('Error:')} Failed to fetch Contentful app templates: ${response.status} ${response.statusText}`);
|
|
16
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/create-contentful-app",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7-alpha.0",
|
|
4
4
|
"description": "A template for building Contentful Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contentful",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test": "mocha 'test/**/*.spec.{js,ts}'"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@contentful/app-scripts": "2.5.
|
|
39
|
+
"@contentful/app-scripts": "^2.5.11-alpha.0",
|
|
40
40
|
"@segment/analytics-node": "^2.2.0",
|
|
41
41
|
"chalk": "4.1.2",
|
|
42
42
|
"commander": "12.1.0",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"lib"
|
|
56
56
|
],
|
|
57
57
|
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
58
|
+
"access": "public",
|
|
59
|
+
"registry": "https://npm.pkg.github.com/"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@tsconfig/node20": "^20.1.4",
|
|
@@ -67,17 +68,17 @@
|
|
|
67
68
|
"@types/node": "14.18.63",
|
|
68
69
|
"@types/node-fetch": "^2.6.2",
|
|
69
70
|
"@types/rimraf": "3.0.2",
|
|
70
|
-
"@types/sinon": "^
|
|
71
|
+
"@types/sinon": "^21.0.0",
|
|
71
72
|
"@types/sinon-chai": "^3.2.9",
|
|
72
73
|
"@types/tildify": "2.0.2",
|
|
73
74
|
"@types/validate-npm-package-name": "4.0.2",
|
|
74
75
|
"chai": "^4.3.7",
|
|
75
76
|
"chai-as-promised": "^7.1.1",
|
|
76
|
-
"contentful-management": "11.
|
|
77
|
+
"contentful-management": "11.66.0",
|
|
77
78
|
"mocha": "^11.2.2",
|
|
78
79
|
"sinon": "^21.0.0",
|
|
79
80
|
"sinon-chai": "^3.7.0",
|
|
80
81
|
"ts-node": "^10.9.2"
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "cd17123bde29ceb2dfcacdfa5a1018aaff5e225e"
|
|
83
84
|
}
|