@sap/cds-dk 6.6.1 → 6.7.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/CHANGELOG.md +32 -1
- package/bin/add.js +5 -3
- package/bin/build/all.js +1 -1
- package/bin/cds.js +10 -8
- package/bin/env.js +4 -6
- package/bin/login.js +6 -4
- package/bin/migrate.js +0 -1
- package/bin/repl.js +1 -1
- package/bin/serve.js +7 -0
- package/bin/subscribe.js +5 -5
- package/bin/unsubscribe.js +4 -5
- package/bin/upgrade.js +67 -0
- package/bin/watch.js +8 -5
- package/lib/bind/bindingManager.js +3 -2
- package/lib/bind/cfKeyProvider.js +7 -6
- package/lib/bind/userCdsrcJsonStorageProvider.js +5 -4
- package/lib/client/activate.js +4 -3
- package/lib/client/auth_manager.js +4 -3
- package/lib/client/base_command.js +7 -2
- package/lib/client/helper/cf_helper.js +12 -11
- package/lib/client/helper/dependency_helper.js +3 -2
- package/lib/client/helper/logging.js +0 -7
- package/lib/client/params.js +4 -2
- package/lib/client/settings_manager.js +35 -34
- package/lib/client/tenant_action.js +78 -0
- package/lib/init/constants.js +1 -1
- package/lib/init/index.js +6 -4
- package/lib/init/template/_merging/registry-mta.js +31 -46
- package/lib/init/template/approuter/files/mta.yaml.hbs +12 -8
- package/lib/init/template/approuter/files/xs-app.json.hbs +0 -3
- package/lib/init/template/approuter/index.js +26 -34
- package/lib/init/template/auditlog/files/mta.yaml.hbs +2 -1
- package/lib/init/template/auditlog/index.js +8 -21
- package/lib/init/template/cf-manifest/files/manifest.yml.hbs +4 -4
- package/lib/init/template/cf-manifest/index.js +2 -1
- package/lib/init/template/connectivity/index.js +4 -5
- package/lib/init/template/data/index.js +19 -22
- package/lib/init/template/destinations/index.js +5 -17
- package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +2 -1
- package/lib/init/template/enterprise-messaging/index.js +7 -19
- package/lib/init/template/extensibility/index.js +3 -1
- package/lib/init/template/hana/files/mta.yaml.hbs +4 -5
- package/lib/init/template/hana/index.js +49 -84
- package/lib/init/template/helm/chart/templates/_helpers.tpl +4 -1
- package/lib/init/template/helm/files/Chart.yaml.hbs +1 -4
- package/lib/init/template/helm/index.js +45 -13
- package/lib/init/template/html5-repo/index.js +6 -29
- package/lib/init/template/java/index.js +1 -1
- package/lib/init/template/kibana-logging/files/mta.yaml.hbs +2 -1
- package/lib/init/template/kibana-logging/index.js +5 -8
- package/lib/init/template/lint/index.js +8 -8
- package/lib/init/template/mta/files/mta.yaml.hbs +3 -2
- package/lib/init/template/mta/index.js +3 -2
- package/lib/init/template/multitenancy/files/mta.yaml.hbs +25 -31
- package/lib/init/template/multitenancy/files/{java/mtxs-configmap.yaml → mtxs-configmap-java.yaml} +1 -1
- package/lib/init/template/multitenancy/files/{mtxs-configmap.yaml → mtxs-configmap-nodejs.yaml} +5 -1
- package/lib/init/template/multitenancy/files/package.json.hbs +28 -0
- package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +21 -0
- package/lib/init/template/multitenancy/files/values.yaml.hbs +15 -8
- package/lib/init/template/multitenancy/index.js +51 -99
- package/lib/init/template/nodejs/files/.vscode/extensions.json +1 -2
- package/lib/init/template/nodejs/files/.vscode/launch.json +2 -2
- package/lib/init/template/nodejs/files/.vscode/tasks.json +2 -2
- package/lib/init/template/nodejs/files/package.json.hbs +2 -2
- package/lib/init/template/nodejs/index.js +4 -3
- package/lib/init/template/pipeline/index.js +3 -2
- package/lib/init/template/samples/index.js +5 -4
- package/lib/init/template/sqlite/files/package.json.hbs +19 -0
- package/lib/init/template/sqlite/index.js +11 -0
- package/lib/init/template/toggles/index.js +3 -5
- package/lib/init/template/xsuaa/files/mta.yaml.hbs +4 -5
- package/lib/init/template/xsuaa/files/values.yaml.hbs +0 -2
- package/lib/init/template/xsuaa/index.js +14 -35
- package/lib/init/util/commandUtil.js +3 -2
- package/lib/init/util/fsUtil.js +19 -2
- package/lib/init/util/md5Tracking.js +36 -63
- package/lib/init/util/projectReader.js +13 -27
- package/lib/lint/Linter.js +0 -3
- package/lib/util/exec.js +2 -1
- package/lib/util/term.js +1 -1
- package/lib/watch/livereload-connect.js +5 -4
- package/lib/watch/livereload-server.js +3 -6
- package/lib/watch/node-watch.js +1 -1
- package/npm-shrinkwrap.json +91 -105
- package/package.json +4 -4
- package/readme.md +1 -1
- package/lib/client/subscription.js +0 -84
- package/lib/init/template/approuter/files/chart.yaml +0 -4
- package/lib/init/template/auditlog/files/auditlog.yaml +0 -4
- package/lib/init/template/destinations/files/destination.yaml +0 -4
- package/lib/init/template/enterprise-messaging/files/event-mesh.yaml +0 -4
- package/lib/init/template/hana/files/hana-deployer.yaml +0 -4
- package/lib/init/template/hana/files/hana.yaml +0 -4
- package/lib/init/template/html5-repo/files/html5-apps-deployer.yaml +0 -4
- package/lib/init/template/html5-repo/files/html5-apps-repo-host.yaml +0 -4
- package/lib/init/template/multitenancy/files/cds.package.json +0 -7
- package/lib/init/template/multitenancy/files/cds.package.json.hbs +0 -9
- package/lib/init/template/multitenancy/files/dependencies.package.json +0 -5
- package/lib/init/template/multitenancy/files/java/.cdsrc.json +0 -22
- package/lib/init/template/multitenancy/files/java/package.json +0 -33
- package/lib/init/template/multitenancy/files/saas-registry.yaml +0 -4
- package/lib/init/template/multitenancy/files/service-manager.yaml +0 -4
- package/lib/init/template/multitenancy/files/sidecar.yaml +0 -4
- package/lib/init/template/xsuaa/files/xsuaa.yaml +0 -4
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "6.
|
|
9
|
+
"version": "6.7.0",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@sap/cds": "^6.
|
|
12
|
+
"@sap/cds": "^6.7.0",
|
|
13
13
|
"@sap/cds-foss": "^4",
|
|
14
|
-
"@sap/cds-mtxs": "^1.
|
|
14
|
+
"@sap/cds-mtxs": "^1.7.0",
|
|
15
15
|
"@sap/eslint-plugin-cds": "^2.6.0",
|
|
16
16
|
"axios": ">=0.21",
|
|
17
17
|
"eslint": "^8",
|
|
18
18
|
"express": "^4.17.1",
|
|
19
|
-
"livereload-js": "^4.0.
|
|
19
|
+
"livereload-js": "^4.0.1",
|
|
20
20
|
"md5": "^2.3.0",
|
|
21
21
|
"mustache": "^4.0.1",
|
|
22
22
|
"node-watch": ">=0.7",
|
|
@@ -32,13 +32,33 @@
|
|
|
32
32
|
"sqlite3": "^5.0.4"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
+
"node_modules/@eslint-community/eslint-utils": {
|
|
36
|
+
"version": "4.4.0",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"eslint-visitor-keys": "^3.3.0"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"node_modules/@eslint-community/regexpp": {
|
|
49
|
+
"version": "4.5.0",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
35
55
|
"node_modules/@eslint/eslintrc": {
|
|
36
|
-
"version": "2.0.
|
|
56
|
+
"version": "2.0.2",
|
|
37
57
|
"license": "MIT",
|
|
38
58
|
"dependencies": {
|
|
39
59
|
"ajv": "^6.12.4",
|
|
40
60
|
"debug": "^4.3.2",
|
|
41
|
-
"espree": "^9.
|
|
61
|
+
"espree": "^9.5.1",
|
|
42
62
|
"globals": "^13.19.0",
|
|
43
63
|
"ignore": "^5.2.0",
|
|
44
64
|
"import-fresh": "^3.2.1",
|
|
@@ -73,7 +93,7 @@
|
|
|
73
93
|
"license": "MIT"
|
|
74
94
|
},
|
|
75
95
|
"node_modules/@eslint/js": {
|
|
76
|
-
"version": "8.
|
|
96
|
+
"version": "8.37.0",
|
|
77
97
|
"license": "MIT",
|
|
78
98
|
"engines": {
|
|
79
99
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
@@ -200,21 +220,22 @@
|
|
|
200
220
|
}
|
|
201
221
|
},
|
|
202
222
|
"node_modules/@sap/cds": {
|
|
203
|
-
"version": "6.
|
|
223
|
+
"version": "6.7.0",
|
|
204
224
|
"license": "SEE LICENSE IN LICENSE",
|
|
205
225
|
"dependencies": {
|
|
206
226
|
"@sap/cds-compiler": "^3.2.0",
|
|
207
227
|
"@sap/cds-foss": "^4"
|
|
208
228
|
},
|
|
209
229
|
"bin": {
|
|
210
|
-
"cds": "bin/cds.js"
|
|
230
|
+
"cds": "bin/cds.js",
|
|
231
|
+
"cds-serve": "bin/cds-serve.js"
|
|
211
232
|
},
|
|
212
233
|
"engines": {
|
|
213
234
|
"node": ">=14.18.0"
|
|
214
235
|
}
|
|
215
236
|
},
|
|
216
237
|
"node_modules/@sap/cds-compiler": {
|
|
217
|
-
"version": "3.
|
|
238
|
+
"version": "3.8.0",
|
|
218
239
|
"license": "SEE LICENSE IN LICENSE",
|
|
219
240
|
"dependencies": {
|
|
220
241
|
"antlr4": "4.9.3"
|
|
@@ -243,7 +264,7 @@
|
|
|
243
264
|
}
|
|
244
265
|
},
|
|
245
266
|
"node_modules/@sap/cds-mtxs": {
|
|
246
|
-
"version": "1.
|
|
267
|
+
"version": "1.7.0",
|
|
247
268
|
"license": "SEE LICENSE IN LICENSE",
|
|
248
269
|
"dependencies": {
|
|
249
270
|
"@sap/hdi-deploy": "^4",
|
|
@@ -272,7 +293,7 @@
|
|
|
272
293
|
}
|
|
273
294
|
},
|
|
274
295
|
"node_modules/@sap/hana-client": {
|
|
275
|
-
"version": "2.
|
|
296
|
+
"version": "2.16.21",
|
|
276
297
|
"hasInstallScript": true,
|
|
277
298
|
"license": "SEE LICENSE IN developer-license-3_1.txt",
|
|
278
299
|
"dependencies": {
|
|
@@ -305,10 +326,10 @@
|
|
|
305
326
|
}
|
|
306
327
|
},
|
|
307
328
|
"node_modules/@sap/hdi-deploy": {
|
|
308
|
-
"version": "4.
|
|
329
|
+
"version": "4.6.0",
|
|
309
330
|
"license": "See LICENSE file",
|
|
310
331
|
"dependencies": {
|
|
311
|
-
"@sap/hana-client": "2.
|
|
332
|
+
"@sap/hana-client": "2.16.21",
|
|
312
333
|
"@sap/hdi": "4.4.0",
|
|
313
334
|
"@sap/xsenv": "3.4.0",
|
|
314
335
|
"async": "3.2.3",
|
|
@@ -954,11 +975,13 @@
|
|
|
954
975
|
}
|
|
955
976
|
},
|
|
956
977
|
"node_modules/eslint": {
|
|
957
|
-
"version": "8.
|
|
978
|
+
"version": "8.37.0",
|
|
958
979
|
"license": "MIT",
|
|
959
980
|
"dependencies": {
|
|
960
|
-
"@eslint/
|
|
961
|
-
"@eslint/
|
|
981
|
+
"@eslint-community/eslint-utils": "^4.2.0",
|
|
982
|
+
"@eslint-community/regexpp": "^4.4.0",
|
|
983
|
+
"@eslint/eslintrc": "^2.0.2",
|
|
984
|
+
"@eslint/js": "8.37.0",
|
|
962
985
|
"@humanwhocodes/config-array": "^0.11.8",
|
|
963
986
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
964
987
|
"@nodelib/fs.walk": "^1.2.8",
|
|
@@ -969,9 +992,8 @@
|
|
|
969
992
|
"doctrine": "^3.0.0",
|
|
970
993
|
"escape-string-regexp": "^4.0.0",
|
|
971
994
|
"eslint-scope": "^7.1.1",
|
|
972
|
-
"eslint-
|
|
973
|
-
"
|
|
974
|
-
"espree": "^9.4.0",
|
|
995
|
+
"eslint-visitor-keys": "^3.4.0",
|
|
996
|
+
"espree": "^9.5.1",
|
|
975
997
|
"esquery": "^1.4.2",
|
|
976
998
|
"esutils": "^2.0.2",
|
|
977
999
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -993,7 +1015,6 @@
|
|
|
993
1015
|
"minimatch": "^3.1.2",
|
|
994
1016
|
"natural-compare": "^1.4.0",
|
|
995
1017
|
"optionator": "^0.9.1",
|
|
996
|
-
"regexpp": "^3.2.0",
|
|
997
1018
|
"strip-ansi": "^6.0.1",
|
|
998
1019
|
"strip-json-comments": "^3.1.0",
|
|
999
1020
|
"text-table": "^0.2.0"
|
|
@@ -1019,34 +1040,14 @@
|
|
|
1019
1040
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
1020
1041
|
}
|
|
1021
1042
|
},
|
|
1022
|
-
"node_modules/eslint-utils": {
|
|
1023
|
-
"version": "3.0.0",
|
|
1024
|
-
"license": "MIT",
|
|
1025
|
-
"dependencies": {
|
|
1026
|
-
"eslint-visitor-keys": "^2.0.0"
|
|
1027
|
-
},
|
|
1028
|
-
"engines": {
|
|
1029
|
-
"node": "^10.0.0 || ^12.0.0 || >= 14.0.0"
|
|
1030
|
-
},
|
|
1031
|
-
"funding": {
|
|
1032
|
-
"url": "https://github.com/sponsors/mysticatea"
|
|
1033
|
-
},
|
|
1034
|
-
"peerDependencies": {
|
|
1035
|
-
"eslint": ">=5"
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"node_modules/eslint-utils/node_modules/eslint-visitor-keys": {
|
|
1039
|
-
"version": "2.1.0",
|
|
1040
|
-
"license": "Apache-2.0",
|
|
1041
|
-
"engines": {
|
|
1042
|
-
"node": ">=10"
|
|
1043
|
-
}
|
|
1044
|
-
},
|
|
1045
1043
|
"node_modules/eslint-visitor-keys": {
|
|
1046
|
-
"version": "3.
|
|
1044
|
+
"version": "3.4.0",
|
|
1047
1045
|
"license": "Apache-2.0",
|
|
1048
1046
|
"engines": {
|
|
1049
1047
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
1048
|
+
},
|
|
1049
|
+
"funding": {
|
|
1050
|
+
"url": "https://opencollective.com/eslint"
|
|
1050
1051
|
}
|
|
1051
1052
|
},
|
|
1052
1053
|
"node_modules/eslint/node_modules/debug": {
|
|
@@ -1069,12 +1070,12 @@
|
|
|
1069
1070
|
"license": "MIT"
|
|
1070
1071
|
},
|
|
1071
1072
|
"node_modules/espree": {
|
|
1072
|
-
"version": "9.
|
|
1073
|
+
"version": "9.5.1",
|
|
1073
1074
|
"license": "BSD-2-Clause",
|
|
1074
1075
|
"dependencies": {
|
|
1075
1076
|
"acorn": "^8.8.0",
|
|
1076
1077
|
"acorn-jsx": "^5.3.2",
|
|
1077
|
-
"eslint-visitor-keys": "^3.
|
|
1078
|
+
"eslint-visitor-keys": "^3.4.0"
|
|
1078
1079
|
},
|
|
1079
1080
|
"engines": {
|
|
1080
1081
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
@@ -1412,7 +1413,7 @@
|
|
|
1412
1413
|
}
|
|
1413
1414
|
},
|
|
1414
1415
|
"node_modules/graceful-fs": {
|
|
1415
|
-
"version": "4.2.
|
|
1416
|
+
"version": "4.2.11",
|
|
1416
1417
|
"license": "ISC",
|
|
1417
1418
|
"optional": true
|
|
1418
1419
|
},
|
|
@@ -1703,7 +1704,7 @@
|
|
|
1703
1704
|
"license": "ISC"
|
|
1704
1705
|
},
|
|
1705
1706
|
"node_modules/js-sdsl": {
|
|
1706
|
-
"version": "4.
|
|
1707
|
+
"version": "4.4.0",
|
|
1707
1708
|
"license": "MIT",
|
|
1708
1709
|
"funding": {
|
|
1709
1710
|
"type": "opencollective",
|
|
@@ -1740,7 +1741,7 @@
|
|
|
1740
1741
|
}
|
|
1741
1742
|
},
|
|
1742
1743
|
"node_modules/livereload-js": {
|
|
1743
|
-
"version": "4.0.
|
|
1744
|
+
"version": "4.0.1",
|
|
1744
1745
|
"license": "MIT"
|
|
1745
1746
|
},
|
|
1746
1747
|
"node_modules/locate-path": {
|
|
@@ -2413,7 +2414,7 @@
|
|
|
2413
2414
|
}
|
|
2414
2415
|
},
|
|
2415
2416
|
"node_modules/readable-stream": {
|
|
2416
|
-
"version": "3.6.
|
|
2417
|
+
"version": "3.6.2",
|
|
2417
2418
|
"license": "MIT",
|
|
2418
2419
|
"optional": true,
|
|
2419
2420
|
"dependencies": {
|
|
@@ -2425,16 +2426,6 @@
|
|
|
2425
2426
|
"node": ">= 6"
|
|
2426
2427
|
}
|
|
2427
2428
|
},
|
|
2428
|
-
"node_modules/regexpp": {
|
|
2429
|
-
"version": "3.2.0",
|
|
2430
|
-
"license": "MIT",
|
|
2431
|
-
"engines": {
|
|
2432
|
-
"node": ">=8"
|
|
2433
|
-
},
|
|
2434
|
-
"funding": {
|
|
2435
|
-
"url": "https://github.com/sponsors/mysticatea"
|
|
2436
|
-
}
|
|
2437
|
-
},
|
|
2438
2429
|
"node_modules/resolve-from": {
|
|
2439
2430
|
"version": "4.0.0",
|
|
2440
2431
|
"license": "MIT",
|
|
@@ -2702,7 +2693,7 @@
|
|
|
2702
2693
|
}
|
|
2703
2694
|
},
|
|
2704
2695
|
"node_modules/sqlite3": {
|
|
2705
|
-
"version": "5.1.
|
|
2696
|
+
"version": "5.1.6",
|
|
2706
2697
|
"hasInstallScript": true,
|
|
2707
2698
|
"license": "BSD-3-Clause",
|
|
2708
2699
|
"optional": true,
|
|
@@ -2809,7 +2800,7 @@
|
|
|
2809
2800
|
}
|
|
2810
2801
|
},
|
|
2811
2802
|
"node_modules/tar/node_modules/minipass": {
|
|
2812
|
-
"version": "4.2.
|
|
2803
|
+
"version": "4.2.5",
|
|
2813
2804
|
"license": "ISC",
|
|
2814
2805
|
"optional": true,
|
|
2815
2806
|
"engines": {
|
|
@@ -3008,7 +2999,7 @@
|
|
|
3008
2999
|
"license": "ISC"
|
|
3009
3000
|
},
|
|
3010
3001
|
"node_modules/ws": {
|
|
3011
|
-
"version": "8.
|
|
3002
|
+
"version": "8.13.0",
|
|
3012
3003
|
"license": "MIT",
|
|
3013
3004
|
"engines": {
|
|
3014
3005
|
"node": ">=10.0.0"
|
|
@@ -3062,12 +3053,21 @@
|
|
|
3062
3053
|
}
|
|
3063
3054
|
},
|
|
3064
3055
|
"dependencies": {
|
|
3056
|
+
"@eslint-community/eslint-utils": {
|
|
3057
|
+
"version": "4.4.0",
|
|
3058
|
+
"requires": {
|
|
3059
|
+
"eslint-visitor-keys": "^3.3.0"
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
"@eslint-community/regexpp": {
|
|
3063
|
+
"version": "4.5.0"
|
|
3064
|
+
},
|
|
3065
3065
|
"@eslint/eslintrc": {
|
|
3066
|
-
"version": "2.0.
|
|
3066
|
+
"version": "2.0.2",
|
|
3067
3067
|
"requires": {
|
|
3068
3068
|
"ajv": "^6.12.4",
|
|
3069
3069
|
"debug": "^4.3.2",
|
|
3070
|
-
"espree": "^9.
|
|
3070
|
+
"espree": "^9.5.1",
|
|
3071
3071
|
"globals": "^13.19.0",
|
|
3072
3072
|
"ignore": "^5.2.0",
|
|
3073
3073
|
"import-fresh": "^3.2.1",
|
|
@@ -3088,7 +3088,7 @@
|
|
|
3088
3088
|
}
|
|
3089
3089
|
},
|
|
3090
3090
|
"@eslint/js": {
|
|
3091
|
-
"version": "8.
|
|
3091
|
+
"version": "8.37.0"
|
|
3092
3092
|
},
|
|
3093
3093
|
"@gar/promisify": {
|
|
3094
3094
|
"version": "1.1.3",
|
|
@@ -3168,14 +3168,14 @@
|
|
|
3168
3168
|
}
|
|
3169
3169
|
},
|
|
3170
3170
|
"@sap/cds": {
|
|
3171
|
-
"version": "6.
|
|
3171
|
+
"version": "6.7.0",
|
|
3172
3172
|
"requires": {
|
|
3173
3173
|
"@sap/cds-compiler": "^3.2.0",
|
|
3174
3174
|
"@sap/cds-foss": "^4"
|
|
3175
3175
|
}
|
|
3176
3176
|
},
|
|
3177
3177
|
"@sap/cds-compiler": {
|
|
3178
|
-
"version": "3.
|
|
3178
|
+
"version": "3.8.0",
|
|
3179
3179
|
"requires": {
|
|
3180
3180
|
"antlr4": "4.9.3"
|
|
3181
3181
|
}
|
|
@@ -3191,7 +3191,7 @@
|
|
|
3191
3191
|
}
|
|
3192
3192
|
},
|
|
3193
3193
|
"@sap/cds-mtxs": {
|
|
3194
|
-
"version": "1.
|
|
3194
|
+
"version": "1.7.0",
|
|
3195
3195
|
"requires": {
|
|
3196
3196
|
"@sap/hdi-deploy": "^4",
|
|
3197
3197
|
"axios": ">=0.27.2"
|
|
@@ -3205,7 +3205,7 @@
|
|
|
3205
3205
|
}
|
|
3206
3206
|
},
|
|
3207
3207
|
"@sap/hana-client": {
|
|
3208
|
-
"version": "2.
|
|
3208
|
+
"version": "2.16.21",
|
|
3209
3209
|
"requires": {
|
|
3210
3210
|
"debug": "3.1.0"
|
|
3211
3211
|
}
|
|
@@ -3217,9 +3217,9 @@
|
|
|
3217
3217
|
}
|
|
3218
3218
|
},
|
|
3219
3219
|
"@sap/hdi-deploy": {
|
|
3220
|
-
"version": "4.
|
|
3220
|
+
"version": "4.6.0",
|
|
3221
3221
|
"requires": {
|
|
3222
|
-
"@sap/hana-client": "2.
|
|
3222
|
+
"@sap/hana-client": "2.16.21",
|
|
3223
3223
|
"@sap/hdi": "4.4.0",
|
|
3224
3224
|
"@sap/xsenv": "3.4.0",
|
|
3225
3225
|
"async": "3.2.3",
|
|
@@ -3622,10 +3622,12 @@
|
|
|
3622
3622
|
"version": "4.0.0"
|
|
3623
3623
|
},
|
|
3624
3624
|
"eslint": {
|
|
3625
|
-
"version": "8.
|
|
3625
|
+
"version": "8.37.0",
|
|
3626
3626
|
"requires": {
|
|
3627
|
-
"@eslint/
|
|
3628
|
-
"@eslint/
|
|
3627
|
+
"@eslint-community/eslint-utils": "^4.2.0",
|
|
3628
|
+
"@eslint-community/regexpp": "^4.4.0",
|
|
3629
|
+
"@eslint/eslintrc": "^2.0.2",
|
|
3630
|
+
"@eslint/js": "8.37.0",
|
|
3629
3631
|
"@humanwhocodes/config-array": "^0.11.8",
|
|
3630
3632
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
3631
3633
|
"@nodelib/fs.walk": "^1.2.8",
|
|
@@ -3636,9 +3638,8 @@
|
|
|
3636
3638
|
"doctrine": "^3.0.0",
|
|
3637
3639
|
"escape-string-regexp": "^4.0.0",
|
|
3638
3640
|
"eslint-scope": "^7.1.1",
|
|
3639
|
-
"eslint-
|
|
3640
|
-
"
|
|
3641
|
-
"espree": "^9.4.0",
|
|
3641
|
+
"eslint-visitor-keys": "^3.4.0",
|
|
3642
|
+
"espree": "^9.5.1",
|
|
3642
3643
|
"esquery": "^1.4.2",
|
|
3643
3644
|
"esutils": "^2.0.2",
|
|
3644
3645
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -3660,7 +3661,6 @@
|
|
|
3660
3661
|
"minimatch": "^3.1.2",
|
|
3661
3662
|
"natural-compare": "^1.4.0",
|
|
3662
3663
|
"optionator": "^0.9.1",
|
|
3663
|
-
"regexpp": "^3.2.0",
|
|
3664
3664
|
"strip-ansi": "^6.0.1",
|
|
3665
3665
|
"strip-json-comments": "^3.1.0",
|
|
3666
3666
|
"text-table": "^0.2.0"
|
|
@@ -3684,26 +3684,15 @@
|
|
|
3684
3684
|
"estraverse": "^5.2.0"
|
|
3685
3685
|
}
|
|
3686
3686
|
},
|
|
3687
|
-
"eslint-utils": {
|
|
3688
|
-
"version": "3.0.0",
|
|
3689
|
-
"requires": {
|
|
3690
|
-
"eslint-visitor-keys": "^2.0.0"
|
|
3691
|
-
},
|
|
3692
|
-
"dependencies": {
|
|
3693
|
-
"eslint-visitor-keys": {
|
|
3694
|
-
"version": "2.1.0"
|
|
3695
|
-
}
|
|
3696
|
-
}
|
|
3697
|
-
},
|
|
3698
3687
|
"eslint-visitor-keys": {
|
|
3699
|
-
"version": "3.
|
|
3688
|
+
"version": "3.4.0"
|
|
3700
3689
|
},
|
|
3701
3690
|
"espree": {
|
|
3702
|
-
"version": "9.
|
|
3691
|
+
"version": "9.5.1",
|
|
3703
3692
|
"requires": {
|
|
3704
3693
|
"acorn": "^8.8.0",
|
|
3705
3694
|
"acorn-jsx": "^5.3.2",
|
|
3706
|
-
"eslint-visitor-keys": "^3.
|
|
3695
|
+
"eslint-visitor-keys": "^3.4.0"
|
|
3707
3696
|
}
|
|
3708
3697
|
},
|
|
3709
3698
|
"esquery": {
|
|
@@ -3918,7 +3907,7 @@
|
|
|
3918
3907
|
}
|
|
3919
3908
|
},
|
|
3920
3909
|
"graceful-fs": {
|
|
3921
|
-
"version": "4.2.
|
|
3910
|
+
"version": "4.2.11",
|
|
3922
3911
|
"optional": true
|
|
3923
3912
|
},
|
|
3924
3913
|
"grapheme-splitter": {
|
|
@@ -4094,7 +4083,7 @@
|
|
|
4094
4083
|
"version": "2.0.0"
|
|
4095
4084
|
},
|
|
4096
4085
|
"js-sdsl": {
|
|
4097
|
-
"version": "4.
|
|
4086
|
+
"version": "4.4.0"
|
|
4098
4087
|
},
|
|
4099
4088
|
"js-yaml": {
|
|
4100
4089
|
"version": "4.1.0",
|
|
@@ -4116,7 +4105,7 @@
|
|
|
4116
4105
|
}
|
|
4117
4106
|
},
|
|
4118
4107
|
"livereload-js": {
|
|
4119
|
-
"version": "4.0.
|
|
4108
|
+
"version": "4.0.1"
|
|
4120
4109
|
},
|
|
4121
4110
|
"locate-path": {
|
|
4122
4111
|
"version": "6.0.0",
|
|
@@ -4517,7 +4506,7 @@
|
|
|
4517
4506
|
}
|
|
4518
4507
|
},
|
|
4519
4508
|
"readable-stream": {
|
|
4520
|
-
"version": "3.6.
|
|
4509
|
+
"version": "3.6.2",
|
|
4521
4510
|
"optional": true,
|
|
4522
4511
|
"requires": {
|
|
4523
4512
|
"inherits": "^2.0.3",
|
|
@@ -4525,9 +4514,6 @@
|
|
|
4525
4514
|
"util-deprecate": "^1.0.1"
|
|
4526
4515
|
}
|
|
4527
4516
|
},
|
|
4528
|
-
"regexpp": {
|
|
4529
|
-
"version": "3.2.0"
|
|
4530
|
-
},
|
|
4531
4517
|
"resolve-from": {
|
|
4532
4518
|
"version": "4.0.0"
|
|
4533
4519
|
},
|
|
@@ -4685,7 +4671,7 @@
|
|
|
4685
4671
|
"version": "0.6.1"
|
|
4686
4672
|
},
|
|
4687
4673
|
"sqlite3": {
|
|
4688
|
-
"version": "5.1.
|
|
4674
|
+
"version": "5.1.6",
|
|
4689
4675
|
"optional": true,
|
|
4690
4676
|
"requires": {
|
|
4691
4677
|
"@mapbox/node-pre-gyp": "^1.0.0",
|
|
@@ -4748,7 +4734,7 @@
|
|
|
4748
4734
|
},
|
|
4749
4735
|
"dependencies": {
|
|
4750
4736
|
"minipass": {
|
|
4751
|
-
"version": "4.2.
|
|
4737
|
+
"version": "4.2.5",
|
|
4752
4738
|
"optional": true
|
|
4753
4739
|
},
|
|
4754
4740
|
"yallist": {
|
|
@@ -4872,7 +4858,7 @@
|
|
|
4872
4858
|
"version": "1.0.2"
|
|
4873
4859
|
},
|
|
4874
4860
|
"ws": {
|
|
4875
|
-
"version": "8.
|
|
4861
|
+
"version": "8.13.0",
|
|
4876
4862
|
"requires": {}
|
|
4877
4863
|
},
|
|
4878
4864
|
"xml-js": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Command line client and development toolkit for the SAP Cloud Application Programming Model",
|
|
5
5
|
"homepage": "https://cap.cloud.sap/",
|
|
6
6
|
"keywords": [
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
},
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sap/cds": "^6.
|
|
19
|
+
"@sap/cds": "^6.7.0",
|
|
20
20
|
"@sap/cds-foss": "^4",
|
|
21
|
-
"@sap/cds-mtxs": "^1.
|
|
21
|
+
"@sap/cds-mtxs": "^1.7.0",
|
|
22
22
|
"@sap/eslint-plugin-cds": "^2.6.0",
|
|
23
23
|
"axios": ">=0.21",
|
|
24
24
|
"eslint": "^8",
|
|
25
25
|
"express": "^4.17.1",
|
|
26
|
-
"livereload-js": "^4.0.
|
|
26
|
+
"livereload-js": "^4.0.1",
|
|
27
27
|
"md5": "^2.3.0",
|
|
28
28
|
"mustache": "^4.0.1",
|
|
29
29
|
"node-watch": ">=0.7",
|
package/readme.md
CHANGED
|
@@ -4,7 +4,7 @@ The command line client and development toolkit for the [SAP Cloud Application P
|
|
|
4
4
|
|
|
5
5
|
See the [documentation](https://cap.cloud.sap/docs/get-started/) for more details.
|
|
6
6
|
|
|
7
|
-
## How to Obtain Support
|
|
7
|
+
## How to Obtain Support
|
|
8
8
|
|
|
9
9
|
In case you find a bug, please report an [incident](https://cap.cloud.sap/docs/resources/#reporting-incidents) on SAP Support Portal.
|
|
10
10
|
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
let cds;
|
|
2
|
-
const BaseCommand = require('./base_command');
|
|
3
|
-
const { CliError } = require('./helper/errors');
|
|
4
|
-
const { ParamCollection } = require('./params');
|
|
5
|
-
const AuthManager = require('./auth_manager');
|
|
6
|
-
const { capitalize } = require('./helper/string_helper');
|
|
7
|
-
const { debug } = require('./helper/logging');
|
|
8
|
-
|
|
9
|
-
module.exports = class ToggleSubscription extends BaseCommand {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @param on {boolean} whether to switch subscription on
|
|
13
|
-
*/
|
|
14
|
-
constructor(on) {
|
|
15
|
-
super();
|
|
16
|
-
const prefix = on ? '' : 'un';
|
|
17
|
-
this.command = prefix + 'subscribe';
|
|
18
|
-
this.gerund = prefix + 'subscribing';
|
|
19
|
-
this.noun = prefix + 'subscription';
|
|
20
|
-
this.preposition = on ? 'to' : 'from';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
async run(paramValues, { tenant, local } = {}) {
|
|
24
|
-
cds = require('../cds');
|
|
25
|
-
let params = new ParamCollection(paramValues);
|
|
26
|
-
params.set('skipToken', true); // Token would have insufficient scopes for this command.
|
|
27
|
-
if (local) {
|
|
28
|
-
// Connect to locally-served MTXS
|
|
29
|
-
await this.runWithServer(params, tenant);
|
|
30
|
-
} else {
|
|
31
|
-
// Connect to running MTXS server
|
|
32
|
-
params = await AuthManager.login(params.toEntries());
|
|
33
|
-
if (!params.has('username')) {
|
|
34
|
-
throw new CliError('Username is required if app URL is given.', { command: this.command });
|
|
35
|
-
}
|
|
36
|
-
await this.runClientOnly(params, tenant);
|
|
37
|
-
}
|
|
38
|
-
console.log(`${capitalize(this.noun)} successful.`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
async runClientOnly(params, tenant) {
|
|
42
|
-
console.log(capitalize(this.gerund), { tenant }, this.preposition, { url: params.get('appUrl') });
|
|
43
|
-
const url = `${params.get('appUrl')}/-/cds/deployment/${this.command}`;
|
|
44
|
-
debug(`Sending request to ${url}`);
|
|
45
|
-
try {
|
|
46
|
-
await require('axios').post(url, { tenant }, params.get('reqAuth'));
|
|
47
|
-
} catch (error) {
|
|
48
|
-
BaseCommand.handleHttpError(error, params, { url });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
async runWithServer(params, tenant) {
|
|
53
|
-
if (!this.hasMtEnv()) {
|
|
54
|
-
throw new CliError('Local multitenant application environment with @sap/cds-mtxs module not found.', { command: this.command });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
console.log(capitalize(this.gerund), { tenant });
|
|
58
|
-
const { 'cds.xt.DeploymentService': deploymentService } = await cds.serve([
|
|
59
|
-
'@sap/cds-mtxs/srv/deployment-service',
|
|
60
|
-
'@sap/cds-mtxs/srv/model-provider'
|
|
61
|
-
]);
|
|
62
|
-
cds.emit('served');
|
|
63
|
-
if (this.command === 'unsubscribe') {
|
|
64
|
-
// MTXS doesn't connect automatically because unsubscribe requires no schema changes
|
|
65
|
-
await cds.connect.to('db');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
await deploymentService[this.command](tenant);
|
|
69
|
-
|
|
70
|
-
if (cds.db) {
|
|
71
|
-
await cds.disconnect(cds.env.requires.multitenancy?.t0 ?? 't0'); // REVISIT: Ideally not necessary
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Check for application environment.
|
|
77
|
-
* Fails for edge cases (ignored for now):
|
|
78
|
-
* - @sap/cds-mtx application with missing modules (no npm install)
|
|
79
|
-
* - dev scenario with both @sap/cds-mtx and @sap/cds-mtxs installed
|
|
80
|
-
*/
|
|
81
|
-
hasMtEnv() {
|
|
82
|
-
return cds.requires.multitenancy && !cds.mtx;
|
|
83
|
-
}
|
|
84
|
-
}
|