@sap/cds-dk 8.1.1 → 8.1.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 CHANGED
@@ -7,6 +7,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
9
9
 
10
+ ## Version 8.1.2 - 2024-08-17
11
+
12
+ ### Fixed
13
+
14
+ - Dependency update for `axios` to fix CVE-2024-39338
15
+ - `cds login` now fetches the passcode URL for the subscriber tenant if the subdomain is given.
16
+ - `cds build` now correctly generates migration tables for `CodeList` entities.
17
+
10
18
  ## Version 8.1.1 - 2024-08-07
11
19
 
12
20
  ### Added
@@ -195,11 +195,11 @@ function _filterJournalArtifacts(afterImage) {
195
195
  function _isPersistedAsJournalTable(artifact) {
196
196
  return (
197
197
  artifact.kind === 'entity' &&
198
- artifact['@cds.persistence.journal'] &&
198
+ artifact['@cds.persistence.journal'] === true &&
199
199
  !artifact.abstract &&
200
- !artifact['@cds.persistence.skip'] &&
201
- !artifact['@cds.persistence.exists'] &&
202
- ((!artifact.query && !artifact.projection) || artifact['@cds.persistence.table'])
200
+ artifact['@cds.persistence.skip'] !== true && // might have value 'if-unused'
201
+ artifact['@cds.persistence.exists'] !== true &&
202
+ (!artifact.query && !artifact.projection || artifact['@cds.persistence.table'] === true)
203
203
  )
204
204
  }
205
205
 
@@ -115,7 +115,10 @@ async function fetchPasscodeUrl(params) {
115
115
  DEBUG?.(`Trying to get passcode URL from GET`, url);
116
116
  let responseData;
117
117
  try {
118
- const response = await axios.get(url /* no auth required */);
118
+ const config = params.has('subdomain')
119
+ ? { params: { subdomain: params.get('subdomain') } }
120
+ : undefined;
121
+ const response = await axios.get(url, config /* no auth required */);
119
122
  responseData = response.data;
120
123
  } catch (error) {
121
124
  if (error.status === 404) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "8.1.1",
9
+ "version": "8.1.2",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@cap-js/asyncapi": "^1.0.0",
@@ -138,7 +138,7 @@
138
138
  }
139
139
  },
140
140
  "node_modules/@eslint/js": {
141
- "version": "9.8.0",
141
+ "version": "9.9.0",
142
142
  "license": "MIT",
143
143
  "engines": {
144
144
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -203,7 +203,7 @@
203
203
  }
204
204
  },
205
205
  "node_modules/@sap/cds": {
206
- "version": "8.1.0",
206
+ "version": "8.1.1",
207
207
  "license": "SEE LICENSE IN LICENSE",
208
208
  "dependencies": {
209
209
  "@sap/cds-compiler": ">=5",
@@ -313,12 +313,12 @@
313
313
  }
314
314
  },
315
315
  "node_modules/@sap/hdi-deploy": {
316
- "version": "5.2.0",
316
+ "version": "5.2.1",
317
317
  "hasInstallScript": true,
318
318
  "license": "See LICENSE file",
319
319
  "dependencies": {
320
320
  "@sap/hdi": "4.5.2",
321
- "@sap/xsenv": "5.1.0",
321
+ "@sap/xsenv": "5.2.0",
322
322
  "async": "3.2.5",
323
323
  "dotenv": "16.4.5",
324
324
  "handlebars": "4.7.8",
@@ -345,10 +345,10 @@
345
345
  "license": "MIT"
346
346
  },
347
347
  "node_modules/@sap/xsenv": {
348
- "version": "5.1.0",
348
+ "version": "5.2.0",
349
349
  "license": "SEE LICENSE IN LICENSE file",
350
350
  "dependencies": {
351
- "debug": "4.3.4",
351
+ "debug": "4.3.5",
352
352
  "node-cache": "^5.1.0",
353
353
  "verror": "1.10.1"
354
354
  },
@@ -449,7 +449,7 @@
449
449
  "license": "MIT"
450
450
  },
451
451
  "node_modules/axios": {
452
- "version": "1.7.3",
452
+ "version": "1.7.4",
453
453
  "license": "MIT",
454
454
  "dependencies": {
455
455
  "follow-redirects": "^1.15.6",
@@ -723,7 +723,7 @@
723
723
  }
724
724
  },
725
725
  "node_modules/debug": {
726
- "version": "4.3.4",
726
+ "version": "4.3.5",
727
727
  "license": "MIT",
728
728
  "dependencies": {
729
729
  "ms": "2.1.2"
@@ -869,14 +869,14 @@
869
869
  }
870
870
  },
871
871
  "node_modules/eslint": {
872
- "version": "9.8.0",
872
+ "version": "9.9.0",
873
873
  "license": "MIT",
874
874
  "dependencies": {
875
875
  "@eslint-community/eslint-utils": "^4.2.0",
876
876
  "@eslint-community/regexpp": "^4.11.0",
877
877
  "@eslint/config-array": "^0.17.1",
878
878
  "@eslint/eslintrc": "^3.1.0",
879
- "@eslint/js": "9.8.0",
879
+ "@eslint/js": "9.9.0",
880
880
  "@humanwhocodes/module-importer": "^1.0.1",
881
881
  "@humanwhocodes/retry": "^0.3.0",
882
882
  "@nodelib/fs.walk": "^1.2.8",
@@ -915,6 +915,14 @@
915
915
  },
916
916
  "funding": {
917
917
  "url": "https://eslint.org/donate"
918
+ },
919
+ "peerDependencies": {
920
+ "jiti": "*"
921
+ },
922
+ "peerDependenciesMeta": {
923
+ "jiti": {
924
+ "optional": true
925
+ }
918
926
  }
919
927
  },
920
928
  "node_modules/eslint-scope": {
@@ -1345,7 +1353,7 @@
1345
1353
  }
1346
1354
  },
1347
1355
  "node_modules/hdb": {
1348
- "version": "0.19.8",
1356
+ "version": "0.19.9",
1349
1357
  "license": "Apache-2.0",
1350
1358
  "dependencies": {
1351
1359
  "iconv-lite": "^0.4.18"
@@ -1398,7 +1406,7 @@
1398
1406
  "optional": true
1399
1407
  },
1400
1408
  "node_modules/ignore": {
1401
- "version": "5.3.1",
1409
+ "version": "5.3.2",
1402
1410
  "license": "MIT",
1403
1411
  "engines": {
1404
1412
  "node": ">= 4"
@@ -2304,7 +2312,7 @@
2304
2312
  }
2305
2313
  },
2306
2314
  "node_modules/uglify-js": {
2307
- "version": "3.19.1",
2315
+ "version": "3.19.2",
2308
2316
  "license": "BSD-2-Clause",
2309
2317
  "optional": true,
2310
2318
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.1.1",
3
+ "version": "8.1.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": [