@sap/cds 7.6.2 → 7.6.3
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
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
- The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5
5
|
- This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## Version 7.6.3 - 2024-02-13
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Event Mesh webhooks now add standard `before` middlewares in case of custom authorization
|
|
12
|
+
- `compile.to.serviceinfo` no longer fails for services marked with `@protocol:'none'`. Such internal services are not shown in the output.
|
|
13
|
+
|
|
7
14
|
## Version 7.6.2 - 2024-02-09
|
|
8
15
|
|
|
9
16
|
### Fixed
|
|
@@ -11,17 +11,20 @@ module.exports = (model, options={}) => {
|
|
|
11
11
|
const javaPrefix = _javaPrefix()
|
|
12
12
|
const isJavaProject = !!javaPrefix
|
|
13
13
|
|
|
14
|
-
cds.linked(model) .all ('service')
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (
|
|
14
|
+
cds.linked(model) .all ('service')
|
|
15
|
+
.filter(service => service['@protocol'] !== 'none') // 'none' means internal service
|
|
16
|
+
.forEach (service => {
|
|
17
|
+
if (isJavaProject) {
|
|
18
|
+
result.push(_makeJava(service))
|
|
19
|
+
if (isNodeProject) { // could be a node project as well (hybrid)
|
|
20
|
+
result.push(_makeNode(service))
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else { // assume this is node
|
|
18
24
|
result.push(_makeNode(service))
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
|
-
|
|
22
|
-
result.push(_makeNode(service))
|
|
23
|
-
}
|
|
24
|
-
})
|
|
27
|
+
)
|
|
25
28
|
|
|
26
29
|
return result
|
|
27
30
|
|
|
@@ -46,11 +49,13 @@ module.exports = (model, options={}) => {
|
|
|
46
49
|
|
|
47
50
|
// the URL path that is *likely* effective at runtime
|
|
48
51
|
function _url4 (p) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
if (p) {
|
|
53
|
+
p = p.replace(/\\/g, '/') // handle Windows
|
|
54
|
+
.replace(/^\/+/, '') // strip leading
|
|
55
|
+
.replace(/\/+$/, '') // strip trailing
|
|
56
|
+
p += '/' // end with /
|
|
57
|
+
return p
|
|
58
|
+
}
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
function _javaPath (service) {
|
|
@@ -17,9 +17,7 @@ class EndpointRegistry {
|
|
|
17
17
|
if (isSecured()) {
|
|
18
18
|
if (cds.requires.auth.impl) {
|
|
19
19
|
if (cds.env.requires.middlewares !== false) {
|
|
20
|
-
|
|
21
|
-
const custom_auth = require('../../../../lib/auth/index.js')
|
|
22
|
-
paths.forEach(path => cds.app.use(path, custom_auth()))
|
|
20
|
+
paths.forEach(path => cds.app.use(path, cds.middlewares.before)) // contains auth, trace, context
|
|
23
21
|
} else {
|
|
24
22
|
const impl = _require(cds.resolve(cds.requires.auth.impl))
|
|
25
23
|
paths.forEach(path => cds.app.use(path, impl))
|