@contentful/app-scripts 1.24.0 → 1.26.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.
package/README.md
CHANGED
|
@@ -70,10 +70,9 @@ async function promptForParameter() {
|
|
|
70
70
|
type: 'list',
|
|
71
71
|
choices(answers) {
|
|
72
72
|
const parameterTypes = ['Boolean', 'Symbol', 'Number', 'Enum'];
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// }
|
|
73
|
+
if (answers.instanceOrInstallation === 'Installation') {
|
|
74
|
+
parameterTypes.push('Secret');
|
|
75
|
+
}
|
|
77
76
|
return parameterTypes;
|
|
78
77
|
},
|
|
79
78
|
},
|
|
@@ -101,10 +100,9 @@ async function promptForParameter() {
|
|
|
101
100
|
{
|
|
102
101
|
name: 'default',
|
|
103
102
|
message: 'Default value (leave blank if none):',
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
// },
|
|
103
|
+
when(answers) {
|
|
104
|
+
return answers.type !== 'Secret';
|
|
105
|
+
},
|
|
108
106
|
validate(input, answers) {
|
|
109
107
|
return validateDefault(input, answers.type, answers.options);
|
|
110
108
|
},
|
package/lib/utils.js
CHANGED
|
@@ -115,7 +115,7 @@ function getEntityFromManifest(type) {
|
|
|
115
115
|
// eslint-disable-next-line no-process-exit
|
|
116
116
|
process.exit(1);
|
|
117
117
|
}
|
|
118
|
-
// EntryFile is not used but we do want to strip it
|
|
118
|
+
// EntryFile is not used but we do want to strip it.
|
|
119
119
|
// eslint-disable-next-line no-unused-vars
|
|
120
120
|
const { entryFile: _, ...itemWithoutEntryFile } = item;
|
|
121
121
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/app-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "A collection of scripts for building Contentful Apps",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,31 +48,31 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@segment/analytics-node": "^2.0.0",
|
|
51
|
-
"adm-zip": "0.5.
|
|
51
|
+
"adm-zip": "0.5.15",
|
|
52
52
|
"bottleneck": "2.19.5",
|
|
53
53
|
"chalk": "4.1.2",
|
|
54
54
|
"commander": "12.1.0",
|
|
55
|
-
"contentful-management": "11.
|
|
55
|
+
"contentful-management": "11.31.7",
|
|
56
56
|
"dotenv": "16.4.5",
|
|
57
|
-
"ignore": "5.3.
|
|
57
|
+
"ignore": "5.3.2",
|
|
58
58
|
"inquirer": "8.2.6",
|
|
59
59
|
"lodash": "4.17.21",
|
|
60
60
|
"open": "8.4.2",
|
|
61
61
|
"ora": "5.4.1"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "346dbb95c0dc70c95d15ed22ecc57c110e2c6c51",
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@tsconfig/node18": "18.2.4",
|
|
66
66
|
"@types/adm-zip": "0.5.5",
|
|
67
67
|
"@types/analytics-node": "3.1.14",
|
|
68
68
|
"@types/chai": "4.3.16",
|
|
69
69
|
"@types/inquirer": "8.2.1",
|
|
70
|
-
"@types/lodash": "4.17.
|
|
71
|
-
"@types/mocha": "10.0.
|
|
70
|
+
"@types/lodash": "4.17.7",
|
|
71
|
+
"@types/mocha": "10.0.7",
|
|
72
72
|
"@types/proxyquire": "1.3.31",
|
|
73
73
|
"@types/sinon": "17.0.3",
|
|
74
|
-
"chai": "5.
|
|
75
|
-
"mocha": "10.
|
|
74
|
+
"chai": "4.5.0",
|
|
75
|
+
"mocha": "10.7.3",
|
|
76
76
|
"proxyquire": "2.1.3",
|
|
77
77
|
"sinon": "18.0.0",
|
|
78
78
|
"ts-mocha": "10.0.0",
|