@sap/cds-dk 4.3.3 → 4.5.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 +62 -1
- package/bin/activate.js +1 -2
- package/bin/deploy/index.js +1 -1
- package/bin/deploy/to-sqlite.js +2 -2
- package/bin/extend.js +2 -4
- package/bin/help.js +1 -1
- package/bin/login.js +7 -8
- package/bin/logout.js +1 -2
- package/bin/repl.js +1 -1
- package/bin/watch.js +12 -8
- package/lib/client/activate.js +243 -0
- package/lib/client/auth_manager.js +115 -0
- package/lib/client/base_command.js +55 -0
- package/lib/client/extend.js +179 -0
- package/lib/client/helper/cf_helper.js +186 -0
- package/lib/client/helper/dependency_helper.js +26 -0
- package/lib/client/helper/env_helper.js +4 -0
- package/lib/client/helper/fs_helper.js +83 -0
- package/lib/client/helper/logging.js +37 -0
- package/lib/client/helper/question.js +50 -0
- package/lib/client/helper/string_helper.js +53 -0
- package/lib/client/helper/url_helper.js +17 -0
- package/lib/client/index.js +14 -0
- package/lib/client/params.js +435 -0
- package/lib/client/settings_manager.js +526 -0
- package/lib/import/index.js +17 -38
- package/lib/import/message.js +6 -7
- package/lib/import/v2parser.js +340 -64
- package/lib/import/v4parser.js +346 -59
- package/lib/init/constants.js +1 -1
- package/lib/init/index.js +13 -10
- package/lib/init/template/data/index.js +38 -46
- package/lib/init/template/hana/index.js +2 -2
- package/lib/init/template/lint/files/.eslint/tests/no-entity-moo/fixed/schema.cds +4 -0
- package/lib/init/template/lint/files/.eslint/tests/no-entity-moo/invalid/schema.cds +4 -0
- package/lib/init/template/lint/files/.eslint/tests/no-entity-moo/test.js +10 -0
- package/lib/init/template/lint/files/.eslint/tests/no-entity-moo/valid/schema.cds +6 -0
- package/lib/init/template/lint/index.js +8 -6
- package/lib/init/template/mta/projectReader.js +8 -5
- package/lib/init/template/nodejs/files/.vscode/extensions.json +1 -1
- package/lib/init/template/nodejs/index.js +1 -8
- package/lib/init/util/logger.js +1 -1
- package/lib/lint/Linter.js +82 -65
- package/lib/lint/io.js +9 -33
- package/npm-shrinkwrap.json +6327 -11301
- package/package.json +6 -7
- package/lib/init/template/lint/files/.eslint/tests/no-entity-moo.test.js +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.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,17 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sap/cds": "^5.
|
|
20
|
-
"@sap/cds-foss": "^
|
|
21
|
-
"@sap/
|
|
22
|
-
"
|
|
23
|
-
"axios": "^0.21.0",
|
|
19
|
+
"@sap/cds": "^5.5.0",
|
|
20
|
+
"@sap/cds-foss": "^3",
|
|
21
|
+
"@sap/eslint-plugin-cds": "^2.1.0",
|
|
22
|
+
"axios": "^0.21.4",
|
|
24
23
|
"connect-livereload": "^0.6.1",
|
|
25
24
|
"eslint": "^7.0.0",
|
|
26
25
|
"express": "^4.17.1",
|
|
27
26
|
"htmlparser2": "5.0.1",
|
|
28
27
|
"livereload-js": "^3.3.1",
|
|
29
|
-
"mustache": "4.0.1",
|
|
28
|
+
"mustache": "^4.0.1",
|
|
30
29
|
"node-watch": "0.6.4",
|
|
31
30
|
"passport": "^0.4.1",
|
|
32
31
|
"pluralize": "^8.0.0",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const rule = require("../rules/no-entity-moo");
|
|
2
|
-
const cdsLint = require("@sap/eslint-plugin-cds/lib/api");
|
|
3
|
-
|
|
4
|
-
// Create ruleTester by passing relative path from here to project root
|
|
5
|
-
const ruleTester = cdsLint.getRuleTester('../..');
|
|
6
|
-
|
|
7
|
-
ruleTester.run("no-entity-moo", rule, {
|
|
8
|
-
valid: [
|
|
9
|
-
{
|
|
10
|
-
code: `namespace my.bookshop;
|
|
11
|
-
entity Books {
|
|
12
|
-
key ID : Integer;
|
|
13
|
-
title : String;
|
|
14
|
-
stock : Integer;
|
|
15
|
-
}`,
|
|
16
|
-
filename: "books.cds",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
|
|
20
|
-
invalid: [
|
|
21
|
-
{
|
|
22
|
-
code: `namespace my.bookshop;
|
|
23
|
-
entity Moo {
|
|
24
|
-
key ID : Integer;
|
|
25
|
-
}`,
|
|
26
|
-
errors: [{ message: "Entity 'Moo' not allowed!" }],
|
|
27
|
-
output: `namespace my.bookshop;
|
|
28
|
-
entity Moon {
|
|
29
|
-
key ID : Integer;
|
|
30
|
-
}`,
|
|
31
|
-
filename: "books.cds",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
});
|