@ui5/server 3.0.0-alpha.4 → 3.0.0-beta.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/.reuse/dep5 +2 -2
- package/CHANGELOG.md +5 -1
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -4
- package/lib/middleware/MiddlewareManager.js +2 -2
- package/lib/middleware/discovery.js +1 -1
- package/lib/middleware/serveIndex.js +4 -4
- package/lib/middleware/serveResources.js +2 -2
- package/lib/middleware/serveThemes.js +2 -2
- package/lib/middleware/versionInfo.js +2 -2
- package/package.json +13 -13
package/.reuse/dep5
CHANGED
|
@@ -25,7 +25,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
|
|
|
25
25
|
parties the right to use of access any SAP External Product, through API Calls.
|
|
26
26
|
|
|
27
27
|
Files: *
|
|
28
|
-
Copyright: 2018-
|
|
28
|
+
Copyright: 2018-2022 SAP SE or an SAP affiliate company and UI5 Tooling contributors
|
|
29
29
|
License: Apache-2.0
|
|
30
30
|
|
|
31
31
|
Files: lib/middleware/serveIndex/*
|
|
@@ -36,5 +36,5 @@ Copyright: 2010 Sencha Inc.
|
|
|
36
36
|
License: MIT
|
|
37
37
|
|
|
38
38
|
Files: lib/middleware/testRunner/*
|
|
39
|
-
Copyright: 2009-
|
|
39
|
+
Copyright: 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
40
40
|
License: Apache-2.0
|
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
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.0.0-
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v3.0.0-beta.1...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.0.0-beta.1"></a>
|
|
8
|
+
## [v3.0.0-beta.1] - 2022-11-07
|
|
6
9
|
|
|
7
10
|
<a name="v3.0.0-alpha.4"></a>
|
|
8
11
|
## [v3.0.0-alpha.4] - 2022-10-24
|
|
@@ -290,6 +293,7 @@ Only Node.js v10 or higher is supported.
|
|
|
290
293
|
<a name="v0.0.1"></a>
|
|
291
294
|
## v0.0.1 - 2018-06-06
|
|
292
295
|
|
|
296
|
+
[v3.0.0-beta.1]: https://github.com/SAP/ui5-server/compare/v3.0.0-alpha.4...v3.0.0-beta.1
|
|
293
297
|
[v3.0.0-alpha.4]: https://github.com/SAP/ui5-server/compare/v3.0.0-alpha.3...v3.0.0-alpha.4
|
|
294
298
|
[v3.0.0-alpha.3]: https://github.com/SAP/ui5-server/compare/v3.0.0-alpha.2...v3.0.0-alpha.3
|
|
295
299
|
[v3.0.0-alpha.2]: https://github.com/SAP/ui5-server/compare/v3.0.0-alpha.1...v3.0.0-alpha.2
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Contributing to the UI5 Tooling
|
|
2
2
|
|
|
3
|
-
See CONTRIBUTING.md in the [SAP/ui5-tooling](https://github.com/SAP/ui5-tooling/blob/
|
|
3
|
+
See CONTRIBUTING.md in the [SAP/ui5-tooling](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md) repository.
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# ui5-server
|
|
4
4
|
> Modules for running a UI5 development server
|
|
5
5
|
> Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)
|
|
6
6
|
|
|
7
7
|
[](https://api.reuse.software/info/github.com/SAP/ui5-server)
|
|
8
|
-
[](https://dev.azure.com/sap/opensource/_build/latest?definitionId=34&branchName=main)
|
|
9
9
|
[](https://www.npmjs.com/package/@ui5/server)
|
|
10
10
|
[](https://coveralls.io/github/SAP/ui5-server)
|
|
11
11
|
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
Can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/pages/Server/)
|
|
14
14
|
|
|
15
15
|
## Contributing
|
|
16
|
-
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/
|
|
16
|
+
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md).
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
|
-
Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/
|
|
19
|
+
Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue.
|
|
20
20
|
|
|
21
21
|
Please report issues in the main [UI5 Tooling](https://github.com/SAP/ui5-tooling) repository.
|
|
22
22
|
|
|
@@ -5,9 +5,9 @@ const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
|
5
5
|
/**
|
|
6
6
|
* @private
|
|
7
7
|
* @typedef {object} MiddlewareResources
|
|
8
|
-
* @property {@ui5/fs
|
|
8
|
+
* @property {@ui5/fs/AbstractReader} all Reader or Collection to read resources of the
|
|
9
9
|
* root project and its dependencies
|
|
10
|
-
* @property {@ui5/fs
|
|
10
|
+
* @property {@ui5/fs/AbstractReader} rootProject Reader or Collection to read resources of
|
|
11
11
|
* the project the server is started in
|
|
12
12
|
* @memberof @ui5/server/internal/MiddlewareManager
|
|
13
13
|
*/
|
|
@@ -14,7 +14,7 @@ const urlPattern = /\/(app_pages|all_libs|all_tests)(?:[?#].*)?$/;
|
|
|
14
14
|
*
|
|
15
15
|
* @module @ui5/server/middleware/discovery
|
|
16
16
|
* @param {object} parameters Parameters
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {@ui5/server/internal/MiddlewareManager.middlewareResources} parameters.resources Parameters
|
|
18
18
|
* @returns {Function} Returns a server middleware closure.
|
|
19
19
|
*/
|
|
20
20
|
function createMiddleware({resources}) {
|
|
@@ -10,7 +10,7 @@ const GB = KB * KB * KB;
|
|
|
10
10
|
/**
|
|
11
11
|
* Returns the mime type of the given resource
|
|
12
12
|
*
|
|
13
|
-
* @param {module:@ui5/fs
|
|
13
|
+
* @param {module:@ui5/fs/Resource} resource the resource
|
|
14
14
|
* @returns {string} mime type
|
|
15
15
|
*/
|
|
16
16
|
function getMimeType(resource) {
|
|
@@ -41,7 +41,7 @@ function formatSize(bytes) {
|
|
|
41
41
|
* Creates a resource info object which is used to create the HTML
|
|
42
42
|
* content for the resource listing
|
|
43
43
|
*
|
|
44
|
-
* @param {
|
|
44
|
+
* @param {@ui5/fs/Resource} resource the resource to convert
|
|
45
45
|
* @returns {object} resource info object
|
|
46
46
|
*/
|
|
47
47
|
function createResourceInfo(resource) {
|
|
@@ -63,7 +63,7 @@ function createResourceInfo(resource) {
|
|
|
63
63
|
/**
|
|
64
64
|
* Creates a resource info array from the given resource array
|
|
65
65
|
*
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {@ui5/fs/Resource[]} resources an array of resources
|
|
67
67
|
* @returns {object[]} sorted array of resource infos
|
|
68
68
|
*/
|
|
69
69
|
function createResourceInfos(resources) {
|
|
@@ -87,7 +87,7 @@ function createResourceInfos(resources) {
|
|
|
87
87
|
* @module @ui5/server/middleware/serveIndex
|
|
88
88
|
* @param {object} parameters Parameters
|
|
89
89
|
* @param {object} parameters.resources Contains the resource reader or collection to access project related files
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {@ui5/fs/AbstractReader} parameters.resources.all Resource collection which contains the workspace
|
|
91
91
|
* and the project dependencies
|
|
92
92
|
* @param {boolean} [parameters.simpleIndex=false] Use a simplified view for the server directory listing
|
|
93
93
|
* @param {boolean} [parameters.showHidden=true] Show hidden files in the server directory listing
|
|
@@ -19,9 +19,9 @@ function isFresh(req, res) {
|
|
|
19
19
|
*
|
|
20
20
|
* @module @ui5/server/middleware/serveResources
|
|
21
21
|
* @param {object} parameters Parameters
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {@ui5/server/internal/MiddlewareManager.middlewareResources} parameters.resources Parameters
|
|
23
23
|
* @param {object} parameters.middlewareUtil Specification version dependent interface to a
|
|
24
|
-
* [MiddlewareUtil]{@link
|
|
24
|
+
* [MiddlewareUtil]{@link @ui5/server/middleware/MiddlewareUtil} instance
|
|
25
25
|
* @returns {Function} Returns a server middleware closure.
|
|
26
26
|
*/
|
|
27
27
|
function createMiddleware({resources, middlewareUtil}) {
|
|
@@ -34,9 +34,9 @@ const themeResources = [
|
|
|
34
34
|
*
|
|
35
35
|
* @module @ui5/server/middleware/serveThemes
|
|
36
36
|
* @param {object} parameters Parameters
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {@ui5/server/internal/MiddlewareManager.middlewareResources} parameters.resources Parameters
|
|
38
38
|
* @param {object} parameters.middlewareUtil Specification version dependent interface to a
|
|
39
|
-
* [MiddlewareUtil]{@link
|
|
39
|
+
* [MiddlewareUtil]{@link @ui5/server/middleware/MiddlewareUtil} instance
|
|
40
40
|
* @returns {Function} Returns a server middleware closure.
|
|
41
41
|
*/
|
|
42
42
|
function createMiddleware({resources, middlewareUtil}) {
|
|
@@ -8,8 +8,8 @@ const MANIFEST_JSON = "manifest.json";
|
|
|
8
8
|
*
|
|
9
9
|
* @module @ui5/server/middleware/versionInfo
|
|
10
10
|
* @param {object} parameters Parameters
|
|
11
|
-
* @param {@ui5/server
|
|
12
|
-
* @param {@ui5/project
|
|
11
|
+
* @param {@ui5/server/internal/MiddlewareManager.middlewareResources} parameters.resources Parameters
|
|
12
|
+
* @param {@ui5/project/graph/ProjectGraph} parameters.graph Project graph
|
|
13
13
|
* @returns {Function} Returns a server middleware closure.
|
|
14
14
|
*/
|
|
15
15
|
function createMiddleware({resources, graph}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "UI5 Tooling - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -115,17 +115,17 @@
|
|
|
115
115
|
"url": "git@github.com:SAP/ui5-server.git"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@ui5/builder": "^3.0.0-
|
|
119
|
-
"@ui5/fs": "^3.0.0-
|
|
120
|
-
"@ui5/logger": "^3.0.1-
|
|
121
|
-
"body-parser": "^1.
|
|
118
|
+
"@ui5/builder": "^3.0.0-beta.1",
|
|
119
|
+
"@ui5/fs": "^3.0.0-beta.2",
|
|
120
|
+
"@ui5/logger": "^3.0.1-beta.0",
|
|
121
|
+
"body-parser": "^1.20.1",
|
|
122
122
|
"compression": "^1.7.4",
|
|
123
123
|
"connect-openui5": "^0.10.2",
|
|
124
124
|
"cors": "^2.8.5",
|
|
125
125
|
"devcert-sanscache": "^0.4.8",
|
|
126
126
|
"escape-html": "^1.0.3",
|
|
127
127
|
"etag": "^1.8.1",
|
|
128
|
-
"express": "^4.
|
|
128
|
+
"express": "^4.18.2",
|
|
129
129
|
"fresh": "^0.5.2",
|
|
130
130
|
"graceful-fs": "^4.2.9",
|
|
131
131
|
"make-dir": "^3.1.0",
|
|
@@ -141,22 +141,22 @@
|
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
143
143
|
"@ui5/project": "^3.0.0-alpha.10",
|
|
144
|
-
"ava": "^
|
|
144
|
+
"ava": "^5.0.1",
|
|
145
145
|
"chokidar-cli": "^3.0.0",
|
|
146
146
|
"cross-env": "^7.0.3",
|
|
147
147
|
"depcheck": "^1.4.3",
|
|
148
148
|
"docdash": "^1.2.0",
|
|
149
|
-
"eslint": "^8.
|
|
149
|
+
"eslint": "^8.26.0",
|
|
150
150
|
"eslint-config-google": "^0.14.0",
|
|
151
151
|
"eslint-plugin-ava": "^13.0.2",
|
|
152
|
-
"eslint-plugin-jsdoc": "^
|
|
153
|
-
"esmock": "^2.0.
|
|
152
|
+
"eslint-plugin-jsdoc": "^39.6.2",
|
|
153
|
+
"esmock": "^2.0.7",
|
|
154
154
|
"jsdoc": "^3.6.7",
|
|
155
155
|
"nyc": "^15.1.0",
|
|
156
|
-
"open-cli": "^
|
|
156
|
+
"open-cli": "^7.1.0",
|
|
157
157
|
"rimraf": "^3.0.2",
|
|
158
|
-
"sinon": "^14.0.
|
|
159
|
-
"supertest": "^6.
|
|
158
|
+
"sinon": "^14.0.1",
|
|
159
|
+
"supertest": "^6.3.1",
|
|
160
160
|
"tap-nyan": "^1.1.0",
|
|
161
161
|
"tap-xunit": "^2.4.1"
|
|
162
162
|
}
|