@ui5/server 4.0.1 → 4.0.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 +15 -1
- package/lib/middleware/serveResources.js +7 -2
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.3...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.3"></a>
|
|
8
|
+
## [v4.0.3] - 2024-08-09
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- **serveResources:** Do not process manifest.json in test-resources [`964e784`](https://github.com/SAP/ui5-server/commit/964e784f41479300ba45eb4a4818ddd0449d41e7)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v4.0.2"></a>
|
|
14
|
+
## [v4.0.2] - 2024-08-01
|
|
15
|
+
### Dependency Updates
|
|
16
|
+
- Bump devcert-sanscache from 0.4.8 to 5.0.1 [`4a06c57`](https://github.com/SAP/ui5-server/commit/4a06c579c510d567ea214d565a490327c0b481d0)
|
|
17
|
+
|
|
6
18
|
|
|
7
19
|
<a name="v4.0.1"></a>
|
|
8
20
|
## [v4.0.1] - 2024-07-31
|
|
@@ -369,6 +381,8 @@ Only Node.js v10 or higher is supported.
|
|
|
369
381
|
|
|
370
382
|
<a name="v0.0.1"></a>
|
|
371
383
|
## v0.0.1 - 2018-06-06
|
|
384
|
+
[v4.0.3]: https://github.com/SAP/ui5-server/compare/v4.0.2...v4.0.3
|
|
385
|
+
[v4.0.2]: https://github.com/SAP/ui5-server/compare/v4.0.1...v4.0.2
|
|
372
386
|
[v4.0.1]: https://github.com/SAP/ui5-server/compare/v4.0.0...v4.0.1
|
|
373
387
|
[v4.0.0]: https://github.com/SAP/ui5-server/compare/v3.1.5...v4.0.0
|
|
374
388
|
[v3.2.1]: https://github.com/SAP/ui5-server/compare/v3.2.0...v3.2.1
|
|
@@ -9,6 +9,7 @@ const rProperties = /\.properties$/i;
|
|
|
9
9
|
const rReplaceVersion = /\.(library|js|json)$/i;
|
|
10
10
|
const rManifest = /\/manifest\.json$/i;
|
|
11
11
|
const rResourcesPrefix = /^\/resources\//i;
|
|
12
|
+
const rTestResourcesPrefix = /^\/test-resources\//i;
|
|
12
13
|
|
|
13
14
|
function isFresh(req, res) {
|
|
14
15
|
return fresh(req.headers, {
|
|
@@ -49,9 +50,13 @@ function createMiddleware({resources, middlewareUtil}) {
|
|
|
49
50
|
next();
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
52
|
-
} else if (
|
|
53
|
+
} else if (
|
|
54
|
+
rManifest.test(pathname) && !rTestResourcesPrefix.test(pathname) &&
|
|
55
|
+
resource.getProject()?.getNamespace()
|
|
56
|
+
) {
|
|
53
57
|
// Special handling for manifest.json file by adding additional content to the served manifest.json
|
|
54
|
-
// NOTE: This should only be done for manifest.json files that exist in the sources
|
|
58
|
+
// NOTE: This should only be done for manifest.json files that exist in the sources,
|
|
59
|
+
// not in test-resources.
|
|
55
60
|
// Files created by generateLibraryManifest (see above) should not be handled in here.
|
|
56
61
|
// Only manifest.json files in library / application projects should be handled.
|
|
57
62
|
// resource.getProject.getNamespace() returns null for all other kind of projects.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "UI5 Tooling - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"body-parser": "^1.20.2",
|
|
124
124
|
"compression": "^1.7.4",
|
|
125
125
|
"cors": "^2.8.5",
|
|
126
|
-
"devcert-sanscache": "^0.
|
|
126
|
+
"devcert-sanscache": "^0.5.1",
|
|
127
127
|
"escape-html": "^1.0.3",
|
|
128
128
|
"etag": "^1.8.1",
|
|
129
129
|
"express": "^4.19.2",
|
|
@@ -138,18 +138,20 @@
|
|
|
138
138
|
"yesno": "^0.4.0"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
|
+
"@eslint/js": "^9.8.0",
|
|
141
142
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
142
|
-
"@ui5/project": "^4.0.
|
|
143
|
+
"@ui5/project": "^4.0.2",
|
|
143
144
|
"ava": "^6.1.3",
|
|
144
145
|
"chokidar-cli": "^3.0.0",
|
|
145
146
|
"cross-env": "^7.0.3",
|
|
146
147
|
"depcheck": "^1.4.7",
|
|
147
148
|
"docdash": "^2.0.2",
|
|
148
|
-
"eslint": "^8.
|
|
149
|
+
"eslint": "^9.8.0",
|
|
149
150
|
"eslint-config-google": "^0.14.0",
|
|
150
|
-
"eslint-plugin-ava": "^
|
|
151
|
-
"eslint-plugin-jsdoc": "^48.
|
|
151
|
+
"eslint-plugin-ava": "^15.0.1",
|
|
152
|
+
"eslint-plugin-jsdoc": "^48.11.0",
|
|
152
153
|
"esmock": "^2.6.7",
|
|
154
|
+
"globals": "^15.9.0",
|
|
153
155
|
"jsdoc": "^4.0.3",
|
|
154
156
|
"nyc": "^17.0.0",
|
|
155
157
|
"open-cli": "^8.0.0",
|