@ui5/server 3.0.1 → 3.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/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/v3.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v3.1.1...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.1.1"></a>
|
|
8
|
+
## [v3.1.1] - 2023-03-14
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- Allow serving of propertyfiles of non component project types [`1bc6ec7`](https://github.com/SAP/ui5-server/commit/1bc6ec72a15ae7df558c4938b2670d0e78af710b)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v3.1.0"></a>
|
|
14
|
+
## [v3.1.0] - 2023-03-01
|
|
15
|
+
### Features
|
|
16
|
+
- **CSP:** Increase defaultPolicy2 to sap-target-level-3 ([#580](https://github.com/SAP/ui5-server/issues/580)) [`5a981a1`](https://github.com/SAP/ui5-server/commit/5a981a1d7f2d2aaffbcd2f68e02206a8bdb0494b)
|
|
17
|
+
|
|
6
18
|
|
|
7
19
|
<a name="v3.0.1"></a>
|
|
8
20
|
## [v3.0.1] - 2023-02-16
|
|
@@ -296,6 +308,8 @@ Only Node.js v10 or higher is supported.
|
|
|
296
308
|
|
|
297
309
|
<a name="v0.0.1"></a>
|
|
298
310
|
## v0.0.1 - 2018-06-06
|
|
311
|
+
[v3.1.1]: https://github.com/SAP/ui5-server/compare/v3.1.0...v3.1.1
|
|
312
|
+
[v3.1.0]: https://github.com/SAP/ui5-server/compare/v3.0.1...v3.1.0
|
|
299
313
|
[v3.0.1]: https://github.com/SAP/ui5-server/compare/v3.0.0...v3.0.1
|
|
300
314
|
[v3.0.0]: https://github.com/SAP/ui5-server/compare/v2.4.0...v3.0.0
|
|
301
315
|
[v2.4.1]: https://github.com/SAP/ui5-server/compare/v2.4.0...v2.4.1
|
|
@@ -184,7 +184,7 @@ class MiddlewareManager {
|
|
|
184
184
|
const defaultSAPTargetConfig = {
|
|
185
185
|
defaultPolicy: "sap-target-level-1",
|
|
186
186
|
defaultPolicyIsReportOnly: true,
|
|
187
|
-
defaultPolicy2: "sap-target-level-
|
|
187
|
+
defaultPolicy2: "sap-target-level-3",
|
|
188
188
|
defaultPolicy2IsReportOnly: true,
|
|
189
189
|
ignorePaths: ["test-resources/sap/ui/qunit/testrunner.html"]
|
|
190
190
|
};
|
|
@@ -39,7 +39,7 @@ function createMiddleware({resources, middlewareUtil}) {
|
|
|
39
39
|
// Special handling for *.properties files escape non ascii characters.
|
|
40
40
|
const {default: nonAsciiEscaper} = await import("@ui5/builder/processors/nonAsciiEscaper");
|
|
41
41
|
const project = resource.getProject();
|
|
42
|
-
let propertiesFileSourceEncoding = project?.getPropertiesFileSourceEncoding();
|
|
42
|
+
let propertiesFileSourceEncoding = project?.getPropertiesFileSourceEncoding?.();
|
|
43
43
|
|
|
44
44
|
if (!propertiesFileSourceEncoding) {
|
|
45
45
|
if (project && project.getSpecVersion().lte("1.1")) {
|
package/lib/server.js
CHANGED
|
@@ -99,7 +99,7 @@ async function _addSsl({app, key, cert}) {
|
|
|
99
99
|
* @typedef {object} module:@ui5/server.SAPTargetCSPOptions
|
|
100
100
|
* @property {string} [defaultPolicy="sap-target-level-1"]
|
|
101
101
|
* @property {string} [defaultPolicyIsReportOnly=true]
|
|
102
|
-
* @property {string} [defaultPolicy2="sap-target-level-
|
|
102
|
+
* @property {string} [defaultPolicy2="sap-target-level-3"]
|
|
103
103
|
* @property {string} [defaultPolicy2IsReportOnly=true]
|
|
104
104
|
* @property {string[]} [ignorePaths=["test-resources/sap/ui/qunit/testrunner.html"]]
|
|
105
105
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "UI5 Tooling - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"@ui5/builder": "^3.0.1",
|
|
118
|
-
"@ui5/fs": "^3.0.
|
|
118
|
+
"@ui5/fs": "^3.0.2",
|
|
119
119
|
"@ui5/logger": "^3.0.0",
|
|
120
|
-
"body-parser": "^1.20.
|
|
120
|
+
"body-parser": "^1.20.2",
|
|
121
121
|
"compression": "^1.7.4",
|
|
122
122
|
"cors": "^2.8.5",
|
|
123
123
|
"devcert-sanscache": "^0.4.8",
|
|
@@ -130,27 +130,27 @@
|
|
|
130
130
|
"parseurl": "^1.3.3",
|
|
131
131
|
"portscanner": "^2.2.0",
|
|
132
132
|
"replacestream": "^4.0.3",
|
|
133
|
-
"router": "^1.3.
|
|
133
|
+
"router": "^1.3.8",
|
|
134
134
|
"spdy": "^4.0.2",
|
|
135
135
|
"yesno": "^0.4.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
139
|
-
"@ui5/project": "^3.0.
|
|
139
|
+
"@ui5/project": "^3.0.4",
|
|
140
140
|
"ava": "^5.2.0",
|
|
141
141
|
"chokidar-cli": "^3.0.0",
|
|
142
142
|
"cross-env": "^7.0.3",
|
|
143
143
|
"depcheck": "^1.4.3",
|
|
144
144
|
"docdash": "^2.0.1",
|
|
145
|
-
"eslint": "^8.
|
|
145
|
+
"eslint": "^8.36.0",
|
|
146
146
|
"eslint-config-google": "^0.14.0",
|
|
147
147
|
"eslint-plugin-ava": "^14.0.0",
|
|
148
|
-
"eslint-plugin-jsdoc": "^40.0.
|
|
148
|
+
"eslint-plugin-jsdoc": "^40.0.1",
|
|
149
149
|
"esmock": "^2.1.0",
|
|
150
|
-
"jsdoc": "^4.0.
|
|
150
|
+
"jsdoc": "^4.0.2",
|
|
151
151
|
"nyc": "^15.1.0",
|
|
152
152
|
"open-cli": "^7.1.0",
|
|
153
|
-
"rimraf": "^4.
|
|
153
|
+
"rimraf": "^4.4.0",
|
|
154
154
|
"sinon": "^15.0.1",
|
|
155
155
|
"supertest": "^6.3.3",
|
|
156
156
|
"tap-xunit": "^2.4.1"
|