@sap/cds-dk 9.1.3 → 9.2.1
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/CHANGELOG.md +48 -0
- package/bin/bind.js +2 -0
- package/bin/cds.js +2 -0
- package/bin/repl.js +4 -2
- package/bin/up.js +12 -2
- package/bin/util/log.js +8 -1
- package/bin/version.js +20 -15
- package/lib/bind/shared.js +6 -2
- package/lib/build/plugins/helm/files/subcharts/web-application/Chart.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/web-application/templates/_helpers.tpl +1 -1
- package/lib/build/plugins/helm/files/subcharts/web-application/templates/deployment.yaml +8 -0
- package/lib/build/plugins/helm/files/subcharts/web-application/templates/virtual-service.yaml +38 -0
- package/lib/build/plugins/helm/files/subcharts/web-application/values.schema.json +15 -0
- package/lib/build/plugins/helm/files/subcharts/web-application/values.yaml +12 -9
- package/lib/build/plugins/helm/index.js +1 -1
- package/lib/build/provider/hana/index.js +5 -4
- package/lib/build/provider/hana/template/.hdiconfig-all +6 -0
- package/lib/compile/to-xsuaa.js +14 -4
- package/lib/deploy/to-hana/hana.js +1 -1
- package/lib/deploy/to-hana/hdiDeployUtil.js +1 -1
- package/lib/init/constants.js +5 -3
- package/lib/init/index.js +6 -1
- package/lib/init/merge.js +7 -3
- package/lib/init/projectReader.js +7 -2
- package/lib/init/registries/mta.js +6 -0
- package/lib/init/template/ams/files/values.yaml.hbs +5 -0
- package/lib/init/template/approuter/files/containerize.yaml.hbs +1 -1
- package/lib/init/template/approuter/files/values.yaml.hbs +1 -5
- package/lib/init/template/attachments/index.js +1 -1
- package/lib/init/template/audit-logging/index.js +1 -1
- package/lib/init/template/data/as-json.js +4 -3
- package/lib/init/template/data/index.js +1 -0
- package/lib/init/template/destination/files/mta.yaml.hbs +1 -20
- package/lib/init/template/extension/index.js +1 -1
- package/lib/init/template/github-actions/files/cf-github-deploy/action.yaml +48 -0
- package/lib/init/template/github-actions/files/cf-setup/action.yaml +53 -0
- package/lib/init/template/github-actions/files/kyma-info/action.yaml +37 -0
- package/lib/init/template/github-actions/files/kyma-setup/action.yaml +64 -0
- package/lib/init/template/github-actions/files/workflows/cf.yaml.hbs +52 -0
- package/lib/init/template/github-actions/files/workflows/kyma.yaml.hbs +39 -0
- package/lib/init/template/github-actions/files/workflows/test.yaml.hbs +21 -0
- package/lib/init/template/github-actions/index.js +69 -0
- package/lib/init/template/helm/index.js +5 -1
- package/lib/init/template/html5-repo/files/containerize.yaml.hbs +4 -4
- package/lib/init/template/html5-repo/files/mta.yaml.hbs +24 -0
- package/lib/init/template/html5-repo/files/values.yaml.hbs +2 -1
- package/lib/init/template/html5-repo/index.js +9 -3
- package/lib/init/template/http/index.js +4 -4
- package/lib/init/template/ias/files/package.json.hbs +7 -0
- package/lib/init/template/ias/files/values.yaml.hbs +1 -4
- package/lib/init/template/ias/index.js +2 -1
- package/lib/init/template/kyma/index.js +10 -0
- package/lib/init/template/lint/index.js +6 -11
- package/lib/init/template/malware-scanner/index.js +1 -1
- package/lib/init/template/multitenancy/files/values.yaml.hbs +53 -1
- package/lib/init/template/multitenancy/index.js +0 -13
- package/lib/init/template/nodejs/files/.vscode/settings.json +2 -2
- package/lib/init/template/notifications/index.js +1 -1
- package/lib/init/template/pipeline/files/Jenkinsfile +2 -2
- package/lib/init/template/pipeline/index.js +1 -1
- package/lib/init/template/portal/files/containerize.yaml.hbs +15 -0
- package/lib/init/template/portal/files/values.yaml.hbs +1 -1
- package/lib/init/template/portal/index.js +9 -1
- package/lib/init/template/postgres/index.js +1 -1
- package/lib/init/template/sample/index.js +1 -1
- package/lib/init/template/test/index.js +1 -1
- package/lib/init/template/tiny-sample/index.js +1 -1
- package/lib/init/template/typescript/index.js +1 -1
- package/lib/init/template/workzone-standard/index.js +13 -4
- package/lib/init/template/xsuaa/files/mta.yaml.hbs +8 -0
- package/lib/init/template/xsuaa/index.js +11 -0
- package/lib/init/template.js +38 -26
- package/lib/lint/eslintHelp.json +1 -1
- package/lib/util/cf.js +7 -7
- package/lib/watch/watched.js +1 -1
- package/npm-shrinkwrap.json +24 -24
- package/package.json +1 -1
- /package/lib/init/template/html5-repo/files/{ui-resources/package.json.hbs → html5-deployer.package.json.hbs} +0 -0
package/lib/util/cf.js
CHANGED
|
@@ -223,7 +223,7 @@ module.exports = new class CfUtil {
|
|
|
223
223
|
async env(app) {
|
|
224
224
|
const { spaceGuid: space_guids, orgGuid: organization_guids } = await this.target();
|
|
225
225
|
const apps = await this.curl('/v3/apps', { space_guids, organization_guids, names: app });
|
|
226
|
-
if (apps.resources.length < 1) throw `
|
|
226
|
+
if (apps.resources.length < 1) throw `cannot find app with name '${app}'`
|
|
227
227
|
const guid = apps.resources[0].guid;
|
|
228
228
|
return await this.curl('/v3/apps/' + guid + '/env', { space_guids, organization_guids, names: app });
|
|
229
229
|
}
|
|
@@ -257,15 +257,15 @@ module.exports = new class CfUtil {
|
|
|
257
257
|
if (!LOG._debug && serviceInstance?.last_operation?.description) {
|
|
258
258
|
throw serviceInstance.last_operation.description;
|
|
259
259
|
}
|
|
260
|
-
throw `
|
|
260
|
+
throw `the returned service reported state '${OPERATION_STATE_FAILED}'.\n${JSON.stringify(serviceInstance, null, 4)}`;
|
|
261
261
|
|
|
262
262
|
default:
|
|
263
|
-
console.error(`
|
|
263
|
+
console.error(`unsupported server response state '${serviceInstance?.last_operation?.state}' – waiting for next response`);
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
throw `
|
|
268
|
+
throw `timeout occurred while getting service ${bold(serviceName)}`;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
async getOrCreateService(serviceOfferingName, planName, serviceName, options) {
|
|
@@ -275,7 +275,7 @@ module.exports = new class CfUtil {
|
|
|
275
275
|
return probeService;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
console.log(`
|
|
278
|
+
console.log(`creating service ${bold(serviceName)} - please be patient...`);
|
|
279
279
|
|
|
280
280
|
const target = await this.target();
|
|
281
281
|
|
|
@@ -287,7 +287,7 @@ module.exports = new class CfUtil {
|
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
if (!servicePlan?.resources?.length) {
|
|
290
|
-
throw `
|
|
290
|
+
throw `no service plans found for ${planName} in service offering ${serviceOfferingName}`;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
const body = {
|
|
@@ -353,7 +353,7 @@ module.exports = new class CfUtil {
|
|
|
353
353
|
throw `The returned binding reported state '${OPERATION_STATE_FAILED}'.\n${JSON.stringify(binding, null, 4)}`;
|
|
354
354
|
|
|
355
355
|
default:
|
|
356
|
-
console.error(`
|
|
356
|
+
console.error(`unsupported server response state '${binding?.last_operation?.state}'. Waiting for next response.`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
359
|
}
|
package/lib/watch/watched.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
18
|
await bootstrap
|
|
19
|
-
if (
|
|
19
|
+
if (cds.service.providers.length === 0) return _no_services_found()
|
|
20
20
|
} catch (e) { switch (e.code) {
|
|
21
21
|
case 'NO_SERVICES_FOUND': return _no_services_found(e)
|
|
22
22
|
case 'MODEL_NOT_FOUND': return _no_models_found(e)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "9.1
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "9.1
|
|
9
|
+
"version": "9.2.1",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cap-js/asyncapi": "^1.0.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"node_modules/@cap-js/db-service": {
|
|
45
|
-
"version": "2.
|
|
46
|
-
"integrity": "sha512-
|
|
45
|
+
"version": "2.3.0",
|
|
46
|
+
"integrity": "sha512-KkYrnI05bx0PvwP5jxEUos8UQ+XYPucUMQt3i0muQXWJw3rEkWvEArvOwCYjTNnjzHqtVQfpPXsy1+ehkHUrWg==",
|
|
47
47
|
"devOptional": true,
|
|
48
48
|
"license": "Apache-2.0",
|
|
49
49
|
"dependencies": {
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"node_modules/@eslint/js": {
|
|
81
|
-
"version": "9.
|
|
82
|
-
"integrity": "sha512-
|
|
81
|
+
"version": "9.33.0",
|
|
82
|
+
"integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==",
|
|
83
83
|
"license": "MIT",
|
|
84
84
|
"peer": true,
|
|
85
85
|
"engines": {
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"node_modules/@sap/cds": {
|
|
93
|
-
"version": "9.1
|
|
94
|
-
"integrity": "sha512-
|
|
93
|
+
"version": "9.2.1",
|
|
94
|
+
"integrity": "sha512-0zjjZGlBvcJMyVj48hTs6Q22/w9hNnJR6O88rGoEj4R87uaP4uM5gFLf3PDnPDUwkAeveVHgJRnWPqDGqIMgvA==",
|
|
95
95
|
"license": "SEE LICENSE IN LICENSE",
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@sap/cds-compiler": "^6",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"js-yaml": "^4.1.0"
|
|
100
100
|
},
|
|
101
101
|
"bin": {
|
|
102
|
-
"cds-deploy": "
|
|
102
|
+
"cds-deploy": "bin/deploy.js",
|
|
103
103
|
"cds-serve": "bin/serve.js"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"node_modules/@sap/cds-compiler": {
|
|
123
|
-
"version": "6.
|
|
124
|
-
"integrity": "sha512-
|
|
123
|
+
"version": "6.2.2",
|
|
124
|
+
"integrity": "sha512-LqRNfBsWnEJpXVJ6/v52VqAdelWoETLbECMPcy7BfoHE63DGBpKA/ZIgoH11t7vUm7GYQDcSfR7ryy02Q/fP7A==",
|
|
125
125
|
"license": "SEE LICENSE IN LICENSE",
|
|
126
126
|
"bin": {
|
|
127
127
|
"cdsc": "bin/cdsc.js",
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"node_modules/@sap/cds-mtxs": {
|
|
145
|
-
"version": "3.
|
|
146
|
-
"integrity": "sha512-
|
|
145
|
+
"version": "3.2.0",
|
|
146
|
+
"integrity": "sha512-8X+fK0rsnOaKZpettVAXuzCJT9MRebpuzN1JjNEWPiYVafvIjXIQc2diYgq8rtzhfdFWk6QNlZUjMM7jLgNfsw==",
|
|
147
147
|
"license": "SEE LICENSE IN LICENSE",
|
|
148
148
|
"dependencies": {
|
|
149
149
|
"@sap/hdi-deploy": "^5"
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"node_modules/@sap/hdi": {
|
|
160
|
-
"version": "4.
|
|
161
|
-
"integrity": "sha512-
|
|
160
|
+
"version": "4.8.0",
|
|
161
|
+
"integrity": "sha512-tkJmY2ffm6mt4/LFwRBihlQkMxNAXa3ngvRe2N/6+qLIsUNdrH/M03S5mkygXq56K+KoVVZYuradajCusMWwsw==",
|
|
162
162
|
"license": "See LICENSE file",
|
|
163
163
|
"dependencies": {
|
|
164
164
|
"async": "^3.2.3"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
},
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"@sap/hana-client": "^2 >= 2.5",
|
|
171
|
-
"hdb": "^0"
|
|
171
|
+
"hdb": "^2 || ^0"
|
|
172
172
|
},
|
|
173
173
|
"peerDependenciesMeta": {
|
|
174
174
|
"@sap/hana-client": {
|
|
@@ -180,11 +180,11 @@
|
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
"node_modules/@sap/hdi-deploy": {
|
|
183
|
-
"version": "5.
|
|
184
|
-
"integrity": "sha512-
|
|
183
|
+
"version": "5.5.0",
|
|
184
|
+
"integrity": "sha512-nxamWIBz+D/4wcvgYgxGSJLsyJ1KNtU9X6gfMHiyi/IjozGN/3WdeT11++jy5qeZNkdinuND55RRlRcnsu3W5g==",
|
|
185
185
|
"license": "See LICENSE file",
|
|
186
186
|
"dependencies": {
|
|
187
|
-
"@sap/hdi": "^4.
|
|
187
|
+
"@sap/hdi": "^4.8.0",
|
|
188
188
|
"@sap/xsenv": "^5.2.0",
|
|
189
189
|
"async": "^3.2.6",
|
|
190
190
|
"dotenv": "^16.4.5",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
},
|
|
197
197
|
"peerDependencies": {
|
|
198
198
|
"@sap/hana-client": "^2 >= 2.6",
|
|
199
|
-
"hdb": "^0"
|
|
199
|
+
"hdb": "^2 || ^0"
|
|
200
200
|
},
|
|
201
201
|
"peerDependenciesMeta": {
|
|
202
202
|
"@sap/hana-client": {
|
|
@@ -789,8 +789,8 @@
|
|
|
789
789
|
"license": "MIT"
|
|
790
790
|
},
|
|
791
791
|
"node_modules/follow-redirects": {
|
|
792
|
-
"version": "1.15.
|
|
793
|
-
"integrity": "sha512-
|
|
792
|
+
"version": "1.15.11",
|
|
793
|
+
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
|
794
794
|
"funding": [
|
|
795
795
|
{
|
|
796
796
|
"type": "individual",
|
|
@@ -1833,8 +1833,8 @@
|
|
|
1833
1833
|
}
|
|
1834
1834
|
},
|
|
1835
1835
|
"node_modules/yaml": {
|
|
1836
|
-
"version": "2.8.
|
|
1837
|
-
"integrity": "sha512-
|
|
1836
|
+
"version": "2.8.1",
|
|
1837
|
+
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
|
|
1838
1838
|
"license": "ISC",
|
|
1839
1839
|
"bin": {
|
|
1840
1840
|
"yaml": "bin.mjs"
|
package/package.json
CHANGED
|
File without changes
|