@loopback/rest-explorer 4.1.1 → 5.0.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/LICENSE +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/rest-explorer.component.js +5 -5
- package/dist/rest-explorer.component.js.map +1 -1
- package/dist/rest-explorer.controller.js +12 -12
- package/dist/rest-explorer.controller.js.map +1 -1
- package/dist/rest-explorer.keys.js +1 -1
- package/dist/rest-explorer.keys.js.map +1 -1
- package/dist/rest-explorer.types.js +1 -1
- package/dist/rest-explorer.types.js.map +1 -1
- package/package.json +18 -18
- package/src/index.ts +1 -1
- package/src/rest-explorer.component.ts +1 -1
- package/src/rest-explorer.controller.ts +2 -2
- package/src/rest-explorer.keys.ts +1 -1
- package/src/rest-explorer.types.ts +1 -1
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/rest-explorer
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -15,7 +15,7 @@ const tslib_1 = require("tslib");
|
|
|
15
15
|
*
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
tslib_1.__exportStar(require("./rest-explorer.component"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./rest-explorer.keys"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./rest-explorer.types"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAEhE;;;;;;;;;GASG;AAEH,oEAA0C;AAC1C,+DAAqC;AACrC,gEAAsC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/rest-explorer
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -35,11 +35,11 @@ let RestExplorerComponent = class RestExplorerComponent {
|
|
|
35
35
|
}, rest_explorer_controller_1.ExplorerController, (0, rest_1.createControllerFactoryForClass)(rest_explorer_controller_1.ExplorerController), methodName);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
RestExplorerComponent =
|
|
38
|
+
RestExplorerComponent = tslib_1.__decorate([
|
|
39
39
|
(0, core_1.injectable)({ tags: { [core_1.ContextTags.KEY]: rest_explorer_keys_1.RestExplorerBindings.COMPONENT.key } }),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
41
|
+
tslib_1.__param(1, (0, core_1.config)()),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [rest_1.RestApplication, Object])
|
|
43
43
|
], RestExplorerComponent);
|
|
44
44
|
exports.RestExplorerComponent = RestExplorerComponent;
|
|
45
45
|
//# sourceMappingURL=rest-explorer.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-explorer.component.js","sourceRoot":"","sources":["../src/rest-explorer.component.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"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;AA1CY,qBAAqB;IADjC,IAAA,iBAAU,EAAC,EAAC,IAAI,EAAE,EAAC,CAAC,kBAAW,CAAC,GAAG,CAAC,EAAE,yCAAoB,CAAC,SAAS,CAAC,GAAG,EAAC,EAAC,CAAC;IAGvE,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;IAEzC,mBAAA,IAAA,aAAM,GAAE,CAAA;6CADY,sBAAe;GAH3B,qBAAqB,CA0CjC;AA1CY,sDAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/rest-explorer
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -8,9 +8,9 @@ exports.ExplorerController = void 0;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
|
-
const ejs_1 =
|
|
12
|
-
const fs_1 =
|
|
13
|
-
const path_1 =
|
|
11
|
+
const ejs_1 = tslib_1.__importDefault(require("ejs"));
|
|
12
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
13
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
14
14
|
const rest_explorer_keys_1 = require("./rest-explorer.keys");
|
|
15
15
|
let prevIndexTemplatePath;
|
|
16
16
|
let templateFn;
|
|
@@ -36,7 +36,7 @@ let ExplorerController = class ExplorerController {
|
|
|
36
36
|
// as a _relative_ URL
|
|
37
37
|
const lastSlash = url.lastIndexOf('/');
|
|
38
38
|
if (lastSlash >= 0) {
|
|
39
|
-
url = './' + url.
|
|
39
|
+
url = './' + url.slice(lastSlash + 1) + '/';
|
|
40
40
|
}
|
|
41
41
|
response.redirect(301, url);
|
|
42
42
|
}
|
|
@@ -94,13 +94,13 @@ ExplorerController.OPENAPI_FORM = Object.freeze({
|
|
|
94
94
|
version: '3.0.0',
|
|
95
95
|
format: 'json',
|
|
96
96
|
});
|
|
97
|
-
ExplorerController =
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
ExplorerController = tslib_1.__decorate([
|
|
98
|
+
tslib_1.__param(0, (0, core_1.inject)(rest_1.RestBindings.CONFIG, { optional: true })),
|
|
99
|
+
tslib_1.__param(1, (0, core_1.config)({ fromBinding: rest_explorer_keys_1.RestExplorerBindings.COMPONENT })),
|
|
100
|
+
tslib_1.__param(2, (0, core_1.inject)(rest_1.RestBindings.BASE_PATH)),
|
|
101
|
+
tslib_1.__param(3, (0, core_1.inject)(rest_1.RestBindings.SERVER)),
|
|
102
|
+
tslib_1.__param(4, (0, core_1.inject)(rest_1.RestBindings.Http.CONTEXT)),
|
|
103
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, String, rest_1.RestServer,
|
|
104
104
|
rest_1.RequestContext])
|
|
105
105
|
], ExplorerController);
|
|
106
106
|
exports.ExplorerController = ExplorerController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-explorer.controller.js","sourceRoot":"","sources":["../src/rest-explorer.controller.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"rest-explorer.controller.js","sourceRoot":"","sources":["../src/rest-explorer.controller.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,yCAMwB;AACxB,sDAAsB;AACtB,oDAAoB;AACpB,wDAAwB;AACxB,6DAA0D;AAG1D,IAAI,qBAA6B,CAAC;AAClC,IAAI,UAAgC,CAAC;AAErC,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAa7B,YAEE,aAA+B,EAAE,EAEjC,iB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MAAM,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/rest-explorer
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-explorer.keys.js","sourceRoot":"","sources":["../src/rest-explorer.keys.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"rest-explorer.keys.js","sourceRoot":"","sources":["../src/rest-explorer.keys.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yCAA0D;AAI1D;;GAEG;AACH,IAAiB,oBAAoB,CAepC;AAfD,WAAiB,oBAAoB;IACnC;;OAEG;IACU,8BAAS,GAAG,iBAAU,CAAC,MAAM,CACxC,kCAAkC,CACnC,CAAC;IACF;;;;;OAKG;IACU,2BAAM,GACjB,iBAAU,CAAC,iBAAiB,CAAqB,qBAAA,SAAS,CAAC,CAAC;AAChE,CAAC,EAfgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAepC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/rest-explorer
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-explorer.types.js","sourceRoot":"","sources":["../src/rest-explorer.types.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"rest-explorer.types.js","sourceRoot":"","sources":["../src/rest-explorer.types.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,uCAAuC;AACvC,+CAA+C;AAC/C,gEAAgE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/rest-explorer",
|
|
3
3
|
"description": "LoopBack's API Explorer",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LoopBack",
|
|
7
7
|
"Explorer",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
|
-
"author": "IBM Corp.",
|
|
14
|
-
"copyright.owner": "IBM Corp.",
|
|
13
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
14
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
18
18
|
"directory": "packages/rest-explorer"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": "
|
|
21
|
+
"node": "14 || 16 || 17 || 18"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "lb-tsc",
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
"templates"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@loopback/core": "^
|
|
42
|
-
"@loopback/rest": "^
|
|
41
|
+
"@loopback/core": "^4.0.1",
|
|
42
|
+
"@loopback/rest": "^12.0.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"ejs": "^3.1.
|
|
46
|
-
"swagger-ui-dist": "4.
|
|
47
|
-
"tslib": "^2.
|
|
45
|
+
"ejs": "^3.1.8",
|
|
46
|
+
"swagger-ui-dist": "4.12.0",
|
|
47
|
+
"tslib": "^2.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@loopback/build": "^
|
|
51
|
-
"@loopback/core": "^
|
|
52
|
-
"@loopback/eslint-config": "^
|
|
53
|
-
"@loopback/rest": "^
|
|
54
|
-
"@loopback/testlab": "^
|
|
55
|
-
"@types/ejs": "^3.1.
|
|
50
|
+
"@loopback/build": "^9.0.1",
|
|
51
|
+
"@loopback/core": "^4.0.1",
|
|
52
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
53
|
+
"@loopback/rest": "^12.0.1",
|
|
54
|
+
"@loopback/testlab": "^5.0.1",
|
|
55
|
+
"@types/ejs": "^3.1.1",
|
|
56
56
|
"@types/express": "^4.17.13",
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"express": "^4.
|
|
57
|
+
"@types/node": "^14.18.21",
|
|
58
|
+
"express": "^4.18.1"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
61
61
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/rest-explorer
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/rest-explorer
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/rest-explorer
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -60,7 +60,7 @@ export class ExplorerController {
|
|
|
60
60
|
// as a _relative_ URL
|
|
61
61
|
const lastSlash = url.lastIndexOf('/');
|
|
62
62
|
if (lastSlash >= 0) {
|
|
63
|
-
url = './' + url.
|
|
63
|
+
url = './' + url.slice(lastSlash + 1) + '/';
|
|
64
64
|
}
|
|
65
65
|
response.redirect(301, url);
|
|
66
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/rest-explorer
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/rest-explorer
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|