@sap/cds-dk 4.7.3 → 4.8.2
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 +42 -1
- package/bin/activate.js +5 -1
- package/bin/add.js +2 -2
- package/lib/bind/bindingUtil.js +6 -1
- package/lib/client/activate.js +8 -3
- package/lib/client/base_command.js +5 -1
- package/lib/client/helper/cf_helper.js +5 -2
- package/lib/client/params.js +16 -2
- package/lib/client/settings_manager.js +15 -8
- package/lib/compile/openapi/csdl2openapi.js +6 -8
- package/lib/compile/to-xsuaa.js +0 -14
- package/lib/import/utils/MetadataConverter.js +6 -4
- package/lib/import/v2parser.js +59 -35
- package/lib/import/v4parser.js +72 -47
- package/lib/init/constants.js +10 -4
- package/lib/init/index.js +13 -7
- package/lib/init/template/_merging/existences.js +161 -0
- package/lib/init/template/approuter/files/default-env.json +9 -0
- package/lib/init/template/approuter/files/mta.yaml.hbs +48 -0
- package/lib/init/template/approuter/files/package.json +9 -0
- package/lib/init/template/approuter/files/xs-app.json +8 -0
- package/lib/init/template/approuter/index.js +66 -0
- package/lib/init/template/auditlog/files/dependencies.package.json +5 -0
- package/lib/init/template/auditlog/files/mta.yaml.hbs +13 -0
- package/lib/init/template/auditlog/index.js +38 -0
- package/lib/init/template/cf-manifest/index.js +1 -1
- package/lib/init/template/hana/files/mta.yaml.hbs +42 -0
- package/lib/init/template/hana/files/nodejs/dependencies.package.json +5 -0
- package/lib/init/template/hana/index.js +53 -24
- package/lib/init/template/java/index.js +1 -5
- package/lib/init/template/mta/files/mta.yaml.hbs +24 -220
- package/lib/init/template/mta/index.js +25 -17
- package/lib/init/template/mtx/files/cds.package.json +24 -0
- package/lib/init/template/mtx/files/dependencies.package.json +5 -0
- package/lib/init/template/mtx/files/mta.yaml.hbs +74 -0
- package/lib/init/template/mtx/files/xs-security.json.hbs +23 -9
- package/lib/init/template/mtx/index.js +126 -29
- package/lib/init/template/templateBase.js +14 -0
- package/lib/init/template/xsuaa/files/cds.package.json +9 -0
- package/lib/init/template/xsuaa/files/dependencies.package.json +6 -0
- package/lib/init/template/xsuaa/files/mta.yaml.hbs +17 -0
- package/lib/init/template/xsuaa/index.js +75 -0
- package/lib/init/util/fsUtil.js +17 -3
- package/lib/init/util/logger.js +3 -1
- package/lib/init/{template/mta → util}/projectReader.js +26 -11
- package/lib/init/util/templateUtil.js +267 -3
- package/lib/util/exec.d.ts +54 -0
- package/lib/util/exec.js +210 -0
- package/lib/watch/livereload-server.js +43 -31
- package/lib/watch/open.js +1 -1
- package/npm-shrinkwrap.json +3762 -15624
- package/package.json +7 -8
- package/readme.md +1 -1
- package/lib/import/internalDoc/edm2cdsTypeMapping.md +0 -38
- package/lib/init/template/mtx/package/cds.package.json +0 -29
- package/lib/init/template/mtx/package/dependencies.package.json +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.2",
|
|
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": [
|
|
@@ -19,22 +19,21 @@
|
|
|
19
19
|
"@sap/cds": "^5.6.4",
|
|
20
20
|
"@sap/cds-foss": "^3",
|
|
21
21
|
"@sap/eslint-plugin-cds": "^2.3.0",
|
|
22
|
-
"axios": "
|
|
22
|
+
"axios": ">=0.21",
|
|
23
23
|
"connect-livereload": "^0.6.1",
|
|
24
|
-
"eslint": "^
|
|
24
|
+
"eslint": "^8",
|
|
25
25
|
"express": "^4.17.1",
|
|
26
|
-
"htmlparser2": "
|
|
26
|
+
"htmlparser2": "^7.2.0",
|
|
27
27
|
"livereload-js": "^3.3.1",
|
|
28
28
|
"md5": "^2.3.0",
|
|
29
29
|
"mustache": "^4.0.1",
|
|
30
|
-
"node-watch": "0.
|
|
31
|
-
"passport": "^0.4.1",
|
|
30
|
+
"node-watch": ">=0.7",
|
|
32
31
|
"pluralize": "^8.0.0",
|
|
33
|
-
"ws": "^
|
|
32
|
+
"ws": "^8.4.2",
|
|
34
33
|
"xml-js": "^1.6.11"
|
|
35
34
|
},
|
|
36
35
|
"optionalDependencies": {
|
|
37
|
-
"sqlite3": "
|
|
36
|
+
"sqlite3": "npm:@mendix/sqlite3@^5.0.2"
|
|
38
37
|
},
|
|
39
38
|
"files": [
|
|
40
39
|
"bin/",
|
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @sap/cds-dk
|
|
2
2
|
|
|
3
|
-
The command line client and development toolkit for the [SAP Cloud Application Programming Model (CAP)](https://cap.cloud.sap).
|
|
3
|
+
The command line client and development toolkit for the [SAP Cloud Application Programming Model (CAP)](https://cap.cloud.sap/).
|
|
4
4
|
|
|
5
5
|
See the [documentation](https://cap.cloud.sap/docs/get-started/) for more details.
|
|
6
6
|
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# OData V2 or V4 EDM Datatype mapping to CAP CDS
|
|
2
|
-
|
|
3
|
-
oData V2/V4 | CAP CDS | Comments (if any) |
|
|
4
|
-
------------|----------| ----------|
|
|
5
|
-
Edm.Guid |cds.UUID | |
|
|
6
|
-
Edm.Boolean |cds.Boolean| |
|
|
7
|
-
Edm.Int16 |cds.Integer| |
|
|
8
|
-
Edm.Int32 |cds.Integer| |
|
|
9
|
-
Edm.Int64 | cds.Integer64| |
|
|
10
|
-
Edm.Decimal | cds.DecimalFloat| |
|
|
11
|
-
Edm.Decimal Precision > 0 | cds.Decimal| |
|
|
12
|
-
Edm.Single | cds.Double @odata.type: “Edm.Single”| |
|
|
13
|
-
Edm.Double | cds.Double| |
|
|
14
|
-
Edm.Double Precision > 0 |cds.Double| |
|
|
15
|
-
Edm.String | cds.LargeString| |
|
|
16
|
-
Edm.String MaxLength > 0 |cds.String| |
|
|
17
|
-
Edm.Binary MaxLength > 0 | cds.Binary | |
|
|
18
|
-
Edm.Binary | cds.LargeBinary | |
|
|
19
|
-
Edm.Byte |cds.Integer| |
|
|
20
|
-
Edm.Byte MaxLength > 0 |cds.Binary| |
|
|
21
|
-
Edm.SByte |cds.Integer| |
|
|
22
|
-
Edm.Stream | cds.LargeBinary @odata.type: “Edm.Stream” | |
|
|
23
|
-
Edm.DateTimeOffset Precision : Microsecond | cds.Timestamp, @odata.type: “Edm.DateTimeOffset”, @odata.precision:<> | The value of precision from odata will be mapped to @odata.precision |
|
|
24
|
-
Edm.DateTimeOffset Precision : Second | cds.DateTime, @odata.type: “Edm.DateTimeOffset”, @odata.precision:0| |
|
|
25
|
-
| |
|
|
26
|
-
**Below attributes are applicable to V2 only** |
|
|
27
|
-
| |
|
|
28
|
-
Edm.DateTime Precision : Microsecond | cds.Timestamp, @odata.type: “Edm.DateTime”, @odata.precision:<> | The value of precision from odata will be mapped to @odata.precision | |
|
|
29
|
-
Edm.DateTime Precision : Second | cds.DateTime, @odata.type: “Edm.DateTime”, @odata.precision:0| |
|
|
30
|
-
Edm.Time |cds.Time| |
|
|
31
|
-
Edm.DateTime sap:display-format="Date" |cds.Date| |
|
|
32
|
-
Edm.DateTimeOffset sap:display-format="Date" |cds.Date||
|
|
33
|
-
**Below attributes are applicable to V4 only** |
|
|
34
|
-
| |
|
|
35
|
-
Edm.TimeOfDay |cds.Time||
|
|
36
|
-
Edm.Date |cds.Date||
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"requires": {
|
|
3
|
-
"auth": {
|
|
4
|
-
"strategy": "JWT"
|
|
5
|
-
},
|
|
6
|
-
"db": {
|
|
7
|
-
"kind": "hana",
|
|
8
|
-
"vcap": {
|
|
9
|
-
"label": "service-manager"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"uaa": {
|
|
13
|
-
"kind": "xsuaa"
|
|
14
|
-
},
|
|
15
|
-
"multitenancy": true
|
|
16
|
-
},
|
|
17
|
-
"hana": {
|
|
18
|
-
"deploy-format": "hdbtable"
|
|
19
|
-
},
|
|
20
|
-
"mtx": {
|
|
21
|
-
"element-prefix": "Z_",
|
|
22
|
-
"namespace-blocklist": ["com.sap.", "sap."]
|
|
23
|
-
},
|
|
24
|
-
"auth": {
|
|
25
|
-
"passport": {
|
|
26
|
-
"strategy": "JWT"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|