@sap/cds-dk 7.1.0 → 7.1.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/bin/cds.js CHANGED
@@ -102,7 +102,8 @@ const cli = { //NOSONAR
102
102
  }
103
103
 
104
104
  // if (env) require('../lib/cds').env.add (env) //> avoid loading env
105
- process.env.CDS_CONFIG = JSON.stringify(env)
105
+ // unless it has already explicitly been set by the user
106
+ process.env.CDS_CONFIG ??= JSON.stringify(env)
106
107
  return [ args, options ]
107
108
  },
108
109
 
@@ -269,6 +269,7 @@ class BuildTaskEngine {
269
269
  "log-level": this._getLogLevel() // ensures that for tests the correct cds.env is used
270
270
  }
271
271
  deduplicateMessages(messages)
272
+ sortMessagesSeverityAware(messages)
272
273
  log(messages, options)
273
274
  }
274
275
  }
@@ -227,14 +227,11 @@ class BuildTaskHandler {
227
227
  // Returns the value of the given build option defined for this build task.
228
228
  _getBuildOption(qualifiedName) {
229
229
  // build task options overwriting other settings
230
- let value = getProperty(this.task.options, qualifiedName)
231
- if (value !== undefined) {
232
- return value
233
- }
234
- value = getProperty(this.context.options, qualifiedName)
235
- if (value !== undefined) {
236
- return value
230
+ let value = getProperty(this.context.options, qualifiedName) // command line
231
+ if (value === undefined) {
232
+ value = getProperty(this.task.options, qualifiedName) // task options
237
233
  }
234
+ return value
238
235
  }
239
236
  }
240
237
  module.exports = BuildTaskHandler
@@ -52,8 +52,9 @@ class FioriAppModuleBuilder extends BuildTaskHandlerEdmx {
52
52
  appModelGroups.set(appFolder, appModels)
53
53
  }
54
54
 
55
- const originFioriBuildOption = fioriBuildOptions[OUTPUT_MODE]
56
- fioriBuildOptions[OUTPUT_MODE] = OUTPUT_MODE_RESULT
55
+ // ensure edmx is cached as build result
56
+ const buildOption = this.context.options[OUTPUT_MODE]
57
+ this.context.options[OUTPUT_MODE] |= OUTPUT_MODE_RESULT
57
58
 
58
59
  try {
59
60
  const edmxOptions = { version: cds.env.odata?.version }
@@ -76,7 +77,7 @@ class FioriAppModuleBuilder extends BuildTaskHandlerEdmx {
76
77
  fioriBuildOptions.appEdmx.set(appFolder, this._result.edmx)
77
78
  }
78
79
  } finally {
79
- fioriBuildOptions[OUTPUT_MODE] = originFioriBuildOption
80
+ this.context.options[OUTPUT_MODE] = buildOption
80
81
  }
81
82
  return false
82
83
  }
@@ -2,7 +2,7 @@ const fs = require('fs')
2
2
  const path = require('path')
3
3
  const cds = require('../../../cds')
4
4
  const BuildTaskHandlerEdmx = require('../buildTaskHandlerEdmx')
5
- const { OUTPUT_MODE, OUTPUT_MODE_RESULT, FILE_EXT_CDS, CONTENT_LANGUAGE_BUNDLES, CONTENT_DEFAULT_CSN, DEFAULT_CSN_FILE_NAME } = require('../../constants')
5
+ const { OUTPUT_MODE, OUTPUT_MODE_RESULT, FILE_EXT_CDS, CONTENT_LANGUAGE_BUNDLES, CONTENT_DEFAULT_CSN, DEFAULT_CSN_FILE_NAME, OUTPUT_MODE_FILESYSTEM } = require('../../constants')
6
6
  const { getI18nDefaultFolder } = require('../../util')
7
7
  const DEFAULT_COMPILE_DEST_FOLDER = path.normalize('src/main/resources/edmx')
8
8
 
@@ -34,7 +34,7 @@ class JavaModuleBuilder extends BuildTaskHandlerEdmx {
34
34
  this._result.languageBundles = i18n.bundles
35
35
  }
36
36
  }
37
- if (this.isStagingBuild() && this.hasBuildOption(OUTPUT_MODE, OUTPUT_MODE_RESULT)) {
37
+ if (this.isStagingBuild() && this.hasBuildOption(OUTPUT_MODE, OUTPUT_MODE_FILESYSTEM)) {
38
38
  await this._copyNativeContent(src, dest)
39
39
  }
40
40
  return this._result
@@ -29,7 +29,12 @@ const messages = {
29
29
  UNSUPPORTED_PROPERTY_TYPE: 'Property cannot be of EntityType. Check the type: ',
30
30
  UNRESOLVED_SCHEMA_NAMESPACE: `Could not resolve the schema `,
31
31
  INVALID_DATATYPE: `Invalid Data Type `,
32
- ELEMENT_NAME_COLLISION: 'Collision between EntityContainer Element Name and Schema Element Name is currenlty not supported. Please check the element name: '
32
+ ELEMENT_NAME_COLLISION: 'Collision between EntityContainer Element Name and Schema Element Name is currenlty not supported. Please check the element name: ',
33
+ NO_DEFAULT_FOR_COLLECTIONS: 'WARNING: Collection type cannot have a Default value.',
34
+ BINARY_MAXLENGTH: 'WARNING: MaxLength for type Edm.Binary should not exceed 5000.',
35
+ SCALE_GT_PRECISION: 'WARNING: Scale value should not be greater than Precision value.',
36
+ FIXED_PRECISION_VARIABLE_SCALE: 'WARNING: Fixed Precision with Variable or Floating Scale is not supported in CDS.',
37
+ NULLABLE_KEY: 'WARNING: Key element cannot be Nullable.'
33
38
  };
34
39
 
35
40
  function getMessages() {
@@ -450,22 +450,26 @@ class Expression {
450
450
  XML: If no value is specified, the Scale facet defaults to zero.
451
451
  JSON: If no value is specified, the Scale facet defaults to zero
452
452
 
453
- XML | JSON
454
- -----------------------
455
- variable | variable
456
- 1-* | 1-*
457
- 0 | undefined
458
- undefined | undefined
453
+ OLD NEW
454
+ XML | JSON XML | JSON
455
+ --------------------- -----------------------
456
+ variable | variable variable | variable
457
+ 1-* | 1-* 0-* | 0-*
458
+ 0 | undefined undefined | undefined
459
+ undefined | undefined
460
+
461
+ * In case EDMX doesn't specify Scale, we are not adding default `0` for it anymore
462
+ * beause we want to easily identify and preserve the explicitly mentioned Scale="0" in EDMX
459
463
  */
460
464
  if (args.includes('$Scale') && (target.$Type === 'Edm.Decimal' || target.$UnderlyingType === 'Edm.Decimal')) {
461
465
  if (attribs.Scale != null) {
462
466
  if (attribs.Scale === 'variable' || attribs.Scale === 'floating') {
463
467
  target.$Scale = attribs.Scale;
464
- } else if (attribs.Scale !== '0') {
468
+ }
469
+ // for now considering only non-negative integers
470
+ else if (Number(attribs.Scale) >= 0) {
465
471
  target.$Scale = parseInt(attribs.Scale, 10);
466
472
  }
467
- } else {
468
- target.$Scale = 0;
469
473
  }
470
474
  }
471
475
 
@@ -190,10 +190,11 @@ function _updateElementObjectForDefaultValue(dataTypeObj, defaultvalue) {
190
190
  // for collection, default value isin't expected
191
191
  if (dataTypeObj.items === undefined) {
192
192
  dataTypeObj.default = {};
193
- dataTypeObj.default.val = (defaultvalue) ? defaultvalue : null;
193
+ // defaultvalue could be of type string (eg., '0') or number (eg., 0 or -1.5)
194
+ dataTypeObj.default.val = (defaultvalue !== undefined) ? defaultvalue : null;
194
195
  }
195
196
  else {
196
- console.log(warn("Collection type cannot have a Default value."));
197
+ console.log(warn(messages.NO_DEFAULT_FOR_COLLECTIONS));
197
198
  }
198
199
  }
199
200
 
@@ -204,22 +205,29 @@ function _updateDataTypeObjectForMaxLength(dataTypeObj, propertyDataType, maxLen
204
205
  dataTypeObj.type = mappedValue
205
206
  dataTypeObj.length = maxLength;
206
207
  }
207
- if (propertyDataType === 'Edm.Binary' && maxLength >= 5000) {
208
- console.log(warn("MaxLength for type Edm.Binary should not exceed 5000"));
208
+ if (propertyDataType === 'Edm.Binary' && maxLength > 5000) {
209
+ console.log(warn(messages.BINARY_MAXLENGTH));
209
210
  }
210
211
  }
211
212
 
212
213
  function _updateDataTypeObjectForPrecision(dataTypeObj, propertyDataType, precision, scale) {
213
214
  const mappedValue = edmToCdsTypeMappingWithPrecision[propertyDataType];
215
+ const numberedScale = Number(scale);
214
216
 
215
217
  if (mappedValue) {
216
218
  dataTypeObj.type = mappedValue;
217
- if (Number(precision) > 0) {
219
+ if (precision >= 0) {
218
220
  dataTypeObj.precision = precision;
219
221
  }
220
- if (Number(scale) > 0 || scale === 'floating' || scale === 'variable') {
222
+ if (numberedScale >= 0) {
221
223
  dataTypeObj.scale = scale;
222
224
  }
225
+ if (numberedScale > precision) {
226
+ console.log(warn(messages.SCALE_GT_PRECISION));
227
+ }
228
+ if (precision >= 0 && (scale === 'floating' || scale === 'variable')) {
229
+ console.log(warn(messages.FIXED_PRECISION_VARIABLE_SCALE));
230
+ }
223
231
  }
224
232
  }
225
233
 
@@ -469,7 +477,7 @@ function _generatePrimitiveDataTypeCsn(propertyObject, isPrimaryKey, parserConte
469
477
  if (isPrimaryKey) {
470
478
  dataTypeObj.key = true;
471
479
  if (nullable) {
472
- console.log(warn("Key element cannot be Nullable."));
480
+ console.log(warn(messages.NULLABLE_KEY));
473
481
  }
474
482
  }
475
483
  _captureAnnotationWithinElement(propertyObject, dataTypeObj, parserContext);
@@ -479,7 +487,11 @@ function _generatePrimitiveDataTypeCsn(propertyObject, isPrimaryKey, parserConte
479
487
  if (maxLength) {
480
488
  _updateDataTypeObjectForMaxLength(dataTypeObj, propertyDataType, maxLength);
481
489
  }
482
- if (precision || scale) {
490
+ /**
491
+ * Precision: non-negative integers
492
+ * Scale: non-negative integers, variable, floating
493
+ */
494
+ if (precision >= 0 || scale !== undefined) {
483
495
  _updateDataTypeObjectForPrecision(dataTypeObj, propertyDataType, precision, scale);
484
496
  }
485
497
  if (edmToCdsTypeSpecialHandling[propertyDataType]) {
@@ -503,7 +515,8 @@ function _generatePrimitiveDataTypeCsn(propertyObject, isPrimaryKey, parserConte
503
515
  if (isCollection) {
504
516
  _updateElementObjectForCollection(dataTypeObj, isPrimaryKey, propertyDataType);
505
517
  }
506
- if (defaultvalue) {
518
+ // defaultvalue could be of type string (eg., '0') or number (eg., 0 or -1.5)
519
+ if (defaultvalue !== undefined) {
507
520
  _updateElementObjectForDefaultValue(dataTypeObj, defaultvalue);
508
521
  }
509
522
 
@@ -538,7 +551,7 @@ function _generateStructuredDataTypeCsn(dataType, propertyObject, isPrimaryKey,
538
551
  if (isPrimaryKey) {
539
552
  dataTypeObj.key = true;
540
553
  if (nullable) {
541
- console.log(warn("Key element cannot be Nullable."));
554
+ console.log(warn(messages.NULLABLE_KEY));
542
555
  }
543
556
  }
544
557
 
@@ -566,9 +579,10 @@ function _generateStructuredDataTypeCsn(dataType, propertyObject, isPrimaryKey,
566
579
  * but compiler accepts it for TypeDefintion and ComplexType as well,
567
580
  * do we also need to handle it for TypeDefintion and ComplexType?
568
581
  *
569
- * For parameters, default value is added via OptionalParamter Annotation
582
+ * For parameters, defaultvalue is added via OptionalParamter Annotation
583
+ * defaultvalue could be of type string (eg., '0') or number (eg., 0 or -1.5)
570
584
  */
571
- if (defaultvalue && dataTypeKind === 'EnumType' && elementKind === 'property') {
585
+ if (defaultvalue !== undefined && dataTypeKind === 'EnumType' && elementKind === 'property') {
572
586
  _updateElementObjectForDefaultValue(dataTypeObj, defaultvalue);
573
587
  }
574
588
  else {
@@ -1,6 +1,6 @@
1
1
  const os = require('os');
2
2
 
3
- const MAVEN_ARCHETYPE_VERSION = '2.0.2';
3
+ const MAVEN_ARCHETYPE_VERSION = '2.1.0';
4
4
 
5
5
  const constants = {
6
6
  IS_WIN: (os.platform() === 'win32'),
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "7.1.0",
9
+ "version": "7.1.1",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@sap/cds": "^7",
@@ -80,25 +80,6 @@
80
80
  "url": "https://opencollective.com/eslint"
81
81
  }
82
82
  },
83
- "node_modules/@eslint/eslintrc/node_modules/debug": {
84
- "version": "4.3.4",
85
- "license": "MIT",
86
- "dependencies": {
87
- "ms": "2.1.2"
88
- },
89
- "engines": {
90
- "node": ">=6.0"
91
- },
92
- "peerDependenciesMeta": {
93
- "supports-color": {
94
- "optional": true
95
- }
96
- }
97
- },
98
- "node_modules/@eslint/eslintrc/node_modules/ms": {
99
- "version": "2.1.2",
100
- "license": "MIT"
101
- },
102
83
  "node_modules/@eslint/js": {
103
84
  "version": "8.46.0",
104
85
  "license": "MIT",
@@ -123,25 +104,6 @@
123
104
  "node": ">=10.10.0"
124
105
  }
125
106
  },
126
- "node_modules/@humanwhocodes/config-array/node_modules/debug": {
127
- "version": "4.3.4",
128
- "license": "MIT",
129
- "dependencies": {
130
- "ms": "2.1.2"
131
- },
132
- "engines": {
133
- "node": ">=6.0"
134
- },
135
- "peerDependenciesMeta": {
136
- "supports-color": {
137
- "optional": true
138
- }
139
- }
140
- },
141
- "node_modules/@humanwhocodes/config-array/node_modules/ms": {
142
- "version": "2.1.2",
143
- "license": "MIT"
144
- },
145
107
  "node_modules/@humanwhocodes/module-importer": {
146
108
  "version": "1.0.1",
147
109
  "license": "Apache-2.0",
@@ -249,7 +211,7 @@
249
211
  }
250
212
  },
251
213
  "node_modules/@sap/cds": {
252
- "version": "7.1.0",
214
+ "version": "7.1.1",
253
215
  "license": "SEE LICENSE IN LICENSE",
254
216
  "dependencies": {
255
217
  "@sap/cds-compiler": "^4",
@@ -327,8 +289,25 @@
327
289
  "eslint": ">=7"
328
290
  }
329
291
  },
330
- "node_modules/@sap/hana-client": {
331
- "version": "2.17.21",
292
+ "node_modules/@sap/hdi-deploy": {
293
+ "version": "4.8.0",
294
+ "license": "See LICENSE file",
295
+ "dependencies": {
296
+ "@sap/hana-client": "2.17.22",
297
+ "@sap/hdi": "4.5.0",
298
+ "@sap/xsenv": "3.4.0",
299
+ "async": "3.2.3",
300
+ "dotenv": "10.0.0",
301
+ "handlebars": "4.7.7",
302
+ "hdb": "0.19.3",
303
+ "micromatch": "4.0.4"
304
+ },
305
+ "engines": {
306
+ "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0"
307
+ }
308
+ },
309
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client": {
310
+ "version": "2.17.22",
332
311
  "hasInstallScript": true,
333
312
  "license": "SEE LICENSE IN developer-license-3_1.txt",
334
313
  "dependencies": {
@@ -338,14 +317,25 @@
338
317
  "node": ">=4.0.0"
339
318
  }
340
319
  },
341
- "node_modules/@sap/hdi": {
342
- "version": "4.4.0",
320
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/node_modules/debug": {
321
+ "version": "3.1.0",
322
+ "license": "MIT",
323
+ "dependencies": {
324
+ "ms": "2.0.0"
325
+ }
326
+ },
327
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client/node_modules/ms": {
328
+ "version": "2.0.0",
329
+ "license": "MIT"
330
+ },
331
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/hdi": {
332
+ "version": "4.5.0",
343
333
  "license": "See LICENSE file",
344
334
  "dependencies": {
345
335
  "async": "3.2.3"
346
336
  },
347
337
  "engines": {
348
- "node": ">=12 <=18"
338
+ "node": ">=12 <=20"
349
339
  },
350
340
  "peerDependencies": {
351
341
  "@sap/hana-client": "^2 >= 2.5",
@@ -360,24 +350,7 @@
360
350
  }
361
351
  }
362
352
  },
363
- "node_modules/@sap/hdi-deploy": {
364
- "version": "4.7.1",
365
- "license": "See LICENSE file",
366
- "dependencies": {
367
- "@sap/hana-client": "2.17.21",
368
- "@sap/hdi": "4.4.0",
369
- "@sap/xsenv": "3.4.0",
370
- "async": "3.2.3",
371
- "dotenv": "10.0.0",
372
- "handlebars": "4.7.7",
373
- "hdb": "0.19.3",
374
- "micromatch": "4.0.4"
375
- },
376
- "engines": {
377
- "node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
378
- }
379
- },
380
- "node_modules/@sap/xsenv": {
353
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv": {
381
354
  "version": "3.4.0",
382
355
  "license": "SEE LICENSE IN LICENSE file",
383
356
  "dependencies": {
@@ -389,7 +362,25 @@
389
362
  "node": "^10.0.0 || ^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
390
363
  }
391
364
  },
392
- "node_modules/@sap/xsenv/node_modules/debug": {
365
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/assert-plus": {
366
+ "version": "1.0.0",
367
+ "license": "MIT",
368
+ "engines": {
369
+ "node": ">=0.8"
370
+ }
371
+ },
372
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/clone": {
373
+ "version": "2.1.2",
374
+ "license": "MIT",
375
+ "engines": {
376
+ "node": ">=0.8"
377
+ }
378
+ },
379
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/core-util-is": {
380
+ "version": "1.0.2",
381
+ "license": "MIT"
382
+ },
383
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/debug": {
393
384
  "version": "4.3.3",
394
385
  "license": "MIT",
395
386
  "dependencies": {
@@ -404,10 +395,184 @@
404
395
  }
405
396
  }
406
397
  },
407
- "node_modules/@sap/xsenv/node_modules/ms": {
398
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/extsprintf": {
399
+ "version": "1.4.1",
400
+ "engines": [
401
+ "node >=0.6.0"
402
+ ],
403
+ "license": "MIT"
404
+ },
405
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/ms": {
406
+ "version": "2.1.2",
407
+ "license": "MIT"
408
+ },
409
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/node-cache": {
410
+ "version": "5.1.2",
411
+ "license": "MIT",
412
+ "dependencies": {
413
+ "clone": "2.x"
414
+ },
415
+ "engines": {
416
+ "node": ">= 8.0.0"
417
+ }
418
+ },
419
+ "node_modules/@sap/hdi-deploy/node_modules/@sap/xsenv/node_modules/verror": {
420
+ "version": "1.10.0",
421
+ "engines": [
422
+ "node >=0.6.0"
423
+ ],
424
+ "license": "MIT",
425
+ "dependencies": {
426
+ "assert-plus": "^1.0.0",
427
+ "core-util-is": "1.0.2",
428
+ "extsprintf": "^1.2.0"
429
+ }
430
+ },
431
+ "node_modules/@sap/hdi-deploy/node_modules/async": {
432
+ "version": "3.2.3",
433
+ "license": "MIT"
434
+ },
435
+ "node_modules/@sap/hdi-deploy/node_modules/braces": {
436
+ "version": "3.0.2",
437
+ "license": "MIT",
438
+ "dependencies": {
439
+ "fill-range": "^7.0.1"
440
+ },
441
+ "engines": {
442
+ "node": ">=8"
443
+ }
444
+ },
445
+ "node_modules/@sap/hdi-deploy/node_modules/dotenv": {
446
+ "version": "10.0.0",
447
+ "license": "BSD-2-Clause",
448
+ "engines": {
449
+ "node": ">=10"
450
+ }
451
+ },
452
+ "node_modules/@sap/hdi-deploy/node_modules/fill-range": {
453
+ "version": "7.0.1",
454
+ "license": "MIT",
455
+ "dependencies": {
456
+ "to-regex-range": "^5.0.1"
457
+ },
458
+ "engines": {
459
+ "node": ">=8"
460
+ }
461
+ },
462
+ "node_modules/@sap/hdi-deploy/node_modules/handlebars": {
463
+ "version": "4.7.7",
464
+ "license": "MIT",
465
+ "dependencies": {
466
+ "minimist": "^1.2.5",
467
+ "neo-async": "^2.6.0",
468
+ "source-map": "^0.6.1",
469
+ "wordwrap": "^1.0.0"
470
+ },
471
+ "bin": {
472
+ "handlebars": "bin/handlebars"
473
+ },
474
+ "engines": {
475
+ "node": ">=0.4.7"
476
+ },
477
+ "optionalDependencies": {
478
+ "uglify-js": "^3.1.4"
479
+ }
480
+ },
481
+ "node_modules/@sap/hdi-deploy/node_modules/hdb": {
482
+ "version": "0.19.3",
483
+ "license": "Apache-2.0",
484
+ "dependencies": {
485
+ "iconv-lite": "^0.4.18"
486
+ },
487
+ "engines": {
488
+ "node": ">= 0.12"
489
+ }
490
+ },
491
+ "node_modules/@sap/hdi-deploy/node_modules/iconv-lite": {
492
+ "version": "0.4.24",
493
+ "license": "MIT",
494
+ "dependencies": {
495
+ "safer-buffer": ">= 2.1.2 < 3"
496
+ },
497
+ "engines": {
498
+ "node": ">=0.10.0"
499
+ }
500
+ },
501
+ "node_modules/@sap/hdi-deploy/node_modules/is-number": {
502
+ "version": "7.0.0",
503
+ "license": "MIT",
504
+ "engines": {
505
+ "node": ">=0.12.0"
506
+ }
507
+ },
508
+ "node_modules/@sap/hdi-deploy/node_modules/micromatch": {
509
+ "version": "4.0.4",
510
+ "license": "MIT",
511
+ "dependencies": {
512
+ "braces": "^3.0.1",
513
+ "picomatch": "^2.2.3"
514
+ },
515
+ "engines": {
516
+ "node": ">=8.6"
517
+ }
518
+ },
519
+ "node_modules/@sap/hdi-deploy/node_modules/minimist": {
520
+ "version": "1.2.8",
521
+ "license": "MIT",
522
+ "funding": {
523
+ "url": "https://github.com/sponsors/ljharb"
524
+ }
525
+ },
526
+ "node_modules/@sap/hdi-deploy/node_modules/neo-async": {
527
+ "version": "2.6.2",
528
+ "license": "MIT"
529
+ },
530
+ "node_modules/@sap/hdi-deploy/node_modules/picomatch": {
531
+ "version": "2.3.1",
532
+ "license": "MIT",
533
+ "engines": {
534
+ "node": ">=8.6"
535
+ },
536
+ "funding": {
537
+ "url": "https://github.com/sponsors/jonschlinkert"
538
+ }
539
+ },
540
+ "node_modules/@sap/hdi-deploy/node_modules/safer-buffer": {
408
541
  "version": "2.1.2",
409
542
  "license": "MIT"
410
543
  },
544
+ "node_modules/@sap/hdi-deploy/node_modules/source-map": {
545
+ "version": "0.6.1",
546
+ "license": "BSD-3-Clause",
547
+ "engines": {
548
+ "node": ">=0.10.0"
549
+ }
550
+ },
551
+ "node_modules/@sap/hdi-deploy/node_modules/to-regex-range": {
552
+ "version": "5.0.1",
553
+ "license": "MIT",
554
+ "dependencies": {
555
+ "is-number": "^7.0.0"
556
+ },
557
+ "engines": {
558
+ "node": ">=8.0"
559
+ }
560
+ },
561
+ "node_modules/@sap/hdi-deploy/node_modules/uglify-js": {
562
+ "version": "3.17.4",
563
+ "license": "BSD-2-Clause",
564
+ "optional": true,
565
+ "bin": {
566
+ "uglifyjs": "bin/uglifyjs"
567
+ },
568
+ "engines": {
569
+ "node": ">=0.8.0"
570
+ }
571
+ },
572
+ "node_modules/@sap/hdi-deploy/node_modules/wordwrap": {
573
+ "version": "1.0.0",
574
+ "license": "MIT"
575
+ },
411
576
  "node_modules/@tootallnate/once": {
412
577
  "version": "1.1.2",
413
578
  "license": "MIT",
@@ -460,61 +625,17 @@
460
625
  "node": ">= 6.0.0"
461
626
  }
462
627
  },
463
- "node_modules/agent-base/node_modules/debug": {
464
- "version": "4.3.4",
465
- "license": "MIT",
466
- "optional": true,
467
- "dependencies": {
468
- "ms": "2.1.2"
469
- },
470
- "engines": {
471
- "node": ">=6.0"
472
- },
473
- "peerDependenciesMeta": {
474
- "supports-color": {
475
- "optional": true
476
- }
477
- }
478
- },
479
- "node_modules/agent-base/node_modules/ms": {
480
- "version": "2.1.2",
481
- "license": "MIT",
482
- "optional": true
483
- },
484
628
  "node_modules/agentkeepalive": {
485
- "version": "4.3.0",
629
+ "version": "4.5.0",
486
630
  "license": "MIT",
487
631
  "optional": true,
488
632
  "dependencies": {
489
- "debug": "^4.1.0",
490
- "depd": "^2.0.0",
491
633
  "humanize-ms": "^1.2.1"
492
634
  },
493
635
  "engines": {
494
636
  "node": ">= 8.0.0"
495
637
  }
496
638
  },
497
- "node_modules/agentkeepalive/node_modules/debug": {
498
- "version": "4.3.4",
499
- "license": "MIT",
500
- "optional": true,
501
- "dependencies": {
502
- "ms": "2.1.2"
503
- },
504
- "engines": {
505
- "node": ">=6.0"
506
- },
507
- "peerDependenciesMeta": {
508
- "supports-color": {
509
- "optional": true
510
- }
511
- }
512
- },
513
- "node_modules/agentkeepalive/node_modules/ms": {
514
- "version": "2.1.2",
515
- "license": "MIT",
516
- "optional": true
517
- },
518
639
  "node_modules/aggregate-error": {
519
640
  "version": "3.1.0",
520
641
  "license": "MIT",
@@ -593,17 +714,6 @@
593
714
  "version": "1.1.1",
594
715
  "license": "MIT"
595
716
  },
596
- "node_modules/assert-plus": {
597
- "version": "1.0.0",
598
- "license": "MIT",
599
- "engines": {
600
- "node": ">=0.8"
601
- }
602
- },
603
- "node_modules/async": {
604
- "version": "3.2.3",
605
- "license": "MIT"
606
- },
607
717
  "node_modules/asynckit": {
608
718
  "version": "0.4.0",
609
719
  "license": "MIT"
@@ -661,6 +771,10 @@
661
771
  "ms": "2.0.0"
662
772
  }
663
773
  },
774
+ "node_modules/body-parser/node_modules/ms": {
775
+ "version": "2.0.0",
776
+ "license": "MIT"
777
+ },
664
778
  "node_modules/brace-expansion": {
665
779
  "version": "1.1.11",
666
780
  "license": "MIT",
@@ -671,6 +785,7 @@
671
785
  },
672
786
  "node_modules/braces": {
673
787
  "version": "3.0.2",
788
+ "extraneous": true,
674
789
  "license": "MIT",
675
790
  "dependencies": {
676
791
  "fill-range": "^7.0.1"
@@ -785,13 +900,6 @@
785
900
  "node": ">=6"
786
901
  }
787
902
  },
788
- "node_modules/clone": {
789
- "version": "2.1.2",
790
- "license": "MIT",
791
- "engines": {
792
- "node": ">=0.8"
793
- }
794
- },
795
903
  "node_modules/color-convert": {
796
904
  "version": "2.0.1",
797
905
  "license": "MIT",
@@ -861,10 +969,6 @@
861
969
  "version": "1.0.6",
862
970
  "license": "MIT"
863
971
  },
864
- "node_modules/core-util-is": {
865
- "version": "1.0.2",
866
- "license": "MIT"
867
- },
868
972
  "node_modules/cross-spawn": {
869
973
  "version": "7.0.3",
870
974
  "license": "MIT",
@@ -885,10 +989,18 @@
885
989
  }
886
990
  },
887
991
  "node_modules/debug": {
888
- "version": "3.1.0",
992
+ "version": "4.3.4",
889
993
  "license": "MIT",
890
994
  "dependencies": {
891
- "ms": "2.0.0"
995
+ "ms": "2.1.2"
996
+ },
997
+ "engines": {
998
+ "node": ">=6.0"
999
+ },
1000
+ "peerDependenciesMeta": {
1001
+ "supports-color": {
1002
+ "optional": true
1003
+ }
892
1004
  }
893
1005
  },
894
1006
  "node_modules/deep-is": {
@@ -940,13 +1052,6 @@
940
1052
  "node": ">=6.0.0"
941
1053
  }
942
1054
  },
943
- "node_modules/dotenv": {
944
- "version": "10.0.0",
945
- "license": "BSD-2-Clause",
946
- "engines": {
947
- "node": ">=10"
948
- }
949
- },
950
1055
  "node_modules/ee-first": {
951
1056
  "version": "1.1.1",
952
1057
  "license": "MIT"
@@ -1085,25 +1190,6 @@
1085
1190
  "url": "https://opencollective.com/eslint"
1086
1191
  }
1087
1192
  },
1088
- "node_modules/eslint/node_modules/debug": {
1089
- "version": "4.3.4",
1090
- "license": "MIT",
1091
- "dependencies": {
1092
- "ms": "2.1.2"
1093
- },
1094
- "engines": {
1095
- "node": ">=6.0"
1096
- },
1097
- "peerDependenciesMeta": {
1098
- "supports-color": {
1099
- "optional": true
1100
- }
1101
- }
1102
- },
1103
- "node_modules/eslint/node_modules/ms": {
1104
- "version": "2.1.2",
1105
- "license": "MIT"
1106
- },
1107
1193
  "node_modules/espree": {
1108
1194
  "version": "9.6.1",
1109
1195
  "license": "BSD-2-Clause",
@@ -1207,11 +1293,8 @@
1207
1293
  "ms": "2.0.0"
1208
1294
  }
1209
1295
  },
1210
- "node_modules/extsprintf": {
1211
- "version": "1.4.1",
1212
- "engines": [
1213
- "node >=0.6.0"
1214
- ],
1296
+ "node_modules/express/node_modules/ms": {
1297
+ "version": "2.0.0",
1215
1298
  "license": "MIT"
1216
1299
  },
1217
1300
  "node_modules/fast-deep-equal": {
@@ -1245,6 +1328,7 @@
1245
1328
  },
1246
1329
  "node_modules/fill-range": {
1247
1330
  "version": "7.0.1",
1331
+ "extraneous": true,
1248
1332
  "license": "MIT",
1249
1333
  "dependencies": {
1250
1334
  "to-regex-range": "^5.0.1"
@@ -1276,6 +1360,10 @@
1276
1360
  "ms": "2.0.0"
1277
1361
  }
1278
1362
  },
1363
+ "node_modules/finalhandler/node_modules/ms": {
1364
+ "version": "2.0.0",
1365
+ "license": "MIT"
1366
+ },
1279
1367
  "node_modules/find-up": {
1280
1368
  "version": "5.0.0",
1281
1369
  "license": "MIT",
@@ -1457,25 +1545,6 @@
1457
1545
  "version": "1.4.0",
1458
1546
  "license": "MIT"
1459
1547
  },
1460
- "node_modules/handlebars": {
1461
- "version": "4.7.7",
1462
- "license": "MIT",
1463
- "dependencies": {
1464
- "minimist": "^1.2.5",
1465
- "neo-async": "^2.6.0",
1466
- "source-map": "^0.6.1",
1467
- "wordwrap": "^1.0.0"
1468
- },
1469
- "bin": {
1470
- "handlebars": "bin/handlebars"
1471
- },
1472
- "engines": {
1473
- "node": ">=0.4.7"
1474
- },
1475
- "optionalDependencies": {
1476
- "uglify-js": "^3.1.4"
1477
- }
1478
- },
1479
1548
  "node_modules/has": {
1480
1549
  "version": "1.0.3",
1481
1550
  "license": "MIT",
@@ -1518,16 +1587,6 @@
1518
1587
  "license": "ISC",
1519
1588
  "optional": true
1520
1589
  },
1521
- "node_modules/hdb": {
1522
- "version": "0.19.3",
1523
- "license": "Apache-2.0",
1524
- "dependencies": {
1525
- "iconv-lite": "^0.4.18"
1526
- },
1527
- "engines": {
1528
- "node": ">= 0.12"
1529
- }
1530
- },
1531
1590
  "node_modules/http-cache-semantics": {
1532
1591
  "version": "4.1.1",
1533
1592
  "license": "BSD-2-Clause",
@@ -1560,27 +1619,6 @@
1560
1619
  "node": ">= 6"
1561
1620
  }
1562
1621
  },
1563
- "node_modules/http-proxy-agent/node_modules/debug": {
1564
- "version": "4.3.4",
1565
- "license": "MIT",
1566
- "optional": true,
1567
- "dependencies": {
1568
- "ms": "2.1.2"
1569
- },
1570
- "engines": {
1571
- "node": ">=6.0"
1572
- },
1573
- "peerDependenciesMeta": {
1574
- "supports-color": {
1575
- "optional": true
1576
- }
1577
- }
1578
- },
1579
- "node_modules/http-proxy-agent/node_modules/ms": {
1580
- "version": "2.1.2",
1581
- "license": "MIT",
1582
- "optional": true
1583
- },
1584
1622
  "node_modules/https-proxy-agent": {
1585
1623
  "version": "5.0.1",
1586
1624
  "license": "MIT",
@@ -1593,27 +1631,6 @@
1593
1631
  "node": ">= 6"
1594
1632
  }
1595
1633
  },
1596
- "node_modules/https-proxy-agent/node_modules/debug": {
1597
- "version": "4.3.4",
1598
- "license": "MIT",
1599
- "optional": true,
1600
- "dependencies": {
1601
- "ms": "2.1.2"
1602
- },
1603
- "engines": {
1604
- "node": ">=6.0"
1605
- },
1606
- "peerDependenciesMeta": {
1607
- "supports-color": {
1608
- "optional": true
1609
- }
1610
- }
1611
- },
1612
- "node_modules/https-proxy-agent/node_modules/ms": {
1613
- "version": "2.1.2",
1614
- "license": "MIT",
1615
- "optional": true
1616
- },
1617
1634
  "node_modules/humanize-ms": {
1618
1635
  "version": "1.2.1",
1619
1636
  "license": "MIT",
@@ -1733,6 +1750,7 @@
1733
1750
  },
1734
1751
  "node_modules/is-number": {
1735
1752
  "version": "7.0.0",
1753
+ "extraneous": true,
1736
1754
  "license": "MIT",
1737
1755
  "engines": {
1738
1756
  "node": ">=0.12.0"
@@ -1869,11 +1887,12 @@
1869
1887
  }
1870
1888
  },
1871
1889
  "node_modules/micromatch": {
1872
- "version": "4.0.4",
1890
+ "version": "4.0.5",
1891
+ "extraneous": true,
1873
1892
  "license": "MIT",
1874
1893
  "dependencies": {
1875
- "braces": "^3.0.1",
1876
- "picomatch": "^2.2.3"
1894
+ "braces": "^3.0.2",
1895
+ "picomatch": "^2.3.1"
1877
1896
  },
1878
1897
  "engines": {
1879
1898
  "node": ">=8.6"
@@ -1916,13 +1935,6 @@
1916
1935
  "node": "*"
1917
1936
  }
1918
1937
  },
1919
- "node_modules/minimist": {
1920
- "version": "1.2.8",
1921
- "license": "MIT",
1922
- "funding": {
1923
- "url": "https://github.com/sponsors/ljharb"
1924
- }
1925
- },
1926
1938
  "node_modules/minipass": {
1927
1939
  "version": "3.3.6",
1928
1940
  "license": "ISC",
@@ -2028,7 +2040,7 @@
2028
2040
  }
2029
2041
  },
2030
2042
  "node_modules/ms": {
2031
- "version": "2.0.0",
2043
+ "version": "2.1.2",
2032
2044
  "license": "MIT"
2033
2045
  },
2034
2046
  "node_modules/mustache": {
@@ -2049,25 +2061,11 @@
2049
2061
  "node": ">= 0.6"
2050
2062
  }
2051
2063
  },
2052
- "node_modules/neo-async": {
2053
- "version": "2.6.2",
2054
- "license": "MIT"
2055
- },
2056
2064
  "node_modules/node-addon-api": {
2057
2065
  "version": "4.3.0",
2058
2066
  "license": "MIT",
2059
2067
  "optional": true
2060
2068
  },
2061
- "node_modules/node-cache": {
2062
- "version": "5.1.2",
2063
- "license": "MIT",
2064
- "dependencies": {
2065
- "clone": "2.x"
2066
- },
2067
- "engines": {
2068
- "node": ">= 8.0.0"
2069
- }
2070
- },
2071
2069
  "node_modules/node-fetch": {
2072
2070
  "version": "2.6.12",
2073
2071
  "license": "MIT",
@@ -2155,7 +2153,7 @@
2155
2153
  }
2156
2154
  },
2157
2155
  "node_modules/node-watch": {
2158
- "version": "0.7.3",
2156
+ "version": "0.7.4",
2159
2157
  "license": "MIT",
2160
2158
  "engines": {
2161
2159
  "node": ">=6"
@@ -2317,6 +2315,7 @@
2317
2315
  },
2318
2316
  "node_modules/picomatch": {
2319
2317
  "version": "2.3.1",
2318
+ "extraneous": true,
2320
2319
  "license": "MIT",
2321
2320
  "engines": {
2322
2321
  "node": ">=8.6"
@@ -2680,34 +2679,6 @@
2680
2679
  "node": ">= 10"
2681
2680
  }
2682
2681
  },
2683
- "node_modules/socks-proxy-agent/node_modules/debug": {
2684
- "version": "4.3.4",
2685
- "license": "MIT",
2686
- "optional": true,
2687
- "dependencies": {
2688
- "ms": "2.1.2"
2689
- },
2690
- "engines": {
2691
- "node": ">=6.0"
2692
- },
2693
- "peerDependenciesMeta": {
2694
- "supports-color": {
2695
- "optional": true
2696
- }
2697
- }
2698
- },
2699
- "node_modules/socks-proxy-agent/node_modules/ms": {
2700
- "version": "2.1.2",
2701
- "license": "MIT",
2702
- "optional": true
2703
- },
2704
- "node_modules/source-map": {
2705
- "version": "0.6.1",
2706
- "license": "BSD-3-Clause",
2707
- "engines": {
2708
- "node": ">=0.10.0"
2709
- }
2710
- },
2711
2682
  "node_modules/sqlite3": {
2712
2683
  "version": "5.1.6",
2713
2684
  "hasInstallScript": true,
@@ -2834,6 +2805,7 @@
2834
2805
  },
2835
2806
  "node_modules/to-regex-range": {
2836
2807
  "version": "5.0.1",
2808
+ "extraneous": true,
2837
2809
  "license": "MIT",
2838
2810
  "dependencies": {
2839
2811
  "is-number": "^7.0.0"
@@ -2885,17 +2857,6 @@
2885
2857
  "node": ">= 0.6"
2886
2858
  }
2887
2859
  },
2888
- "node_modules/uglify-js": {
2889
- "version": "3.17.4",
2890
- "license": "BSD-2-Clause",
2891
- "optional": true,
2892
- "bin": {
2893
- "uglifyjs": "bin/uglifyjs"
2894
- },
2895
- "engines": {
2896
- "node": ">=0.8.0"
2897
- }
2898
- },
2899
2860
  "node_modules/unique-filename": {
2900
2861
  "version": "1.1.1",
2901
2862
  "license": "ISC",
@@ -2952,18 +2913,6 @@
2952
2913
  "node": ">= 0.8"
2953
2914
  }
2954
2915
  },
2955
- "node_modules/verror": {
2956
- "version": "1.10.0",
2957
- "engines": [
2958
- "node >=0.6.0"
2959
- ],
2960
- "license": "MIT",
2961
- "dependencies": {
2962
- "assert-plus": "^1.0.0",
2963
- "core-util-is": "1.0.2",
2964
- "extsprintf": "^1.2.0"
2965
- }
2966
- },
2967
2916
  "node_modules/webidl-conversions": {
2968
2917
  "version": "3.0.1",
2969
2918
  "license": "BSD-2-Clause",
@@ -2999,10 +2948,6 @@
2999
2948
  "string-width": "^1.0.2 || 2 || 3 || 4"
3000
2949
  }
3001
2950
  },
3002
- "node_modules/wordwrap": {
3003
- "version": "1.0.0",
3004
- "license": "MIT"
3005
- },
3006
2951
  "node_modules/wrappy": {
3007
2952
  "version": "1.0.2",
3008
2953
  "license": "ISC"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
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": [
@@ -39,5 +39,6 @@
39
39
  "lib/",
40
40
  "npm-shrinkwrap.json",
41
41
  "LICENSE"
42
- ]
42
+ ],
43
+ "_hasShrinkwrap": true
43
44
  }