@spinajs/http-swagger 2.0.491 → 2.0.494

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.
@@ -1,11 +1,11 @@
1
- window.onload = function () {
2
- var el = document.getElementById('swagger-ui');
3
- SwaggerUIBundle({
4
- url: el.getAttribute('data-spec-url'),
5
- dom_id: '#swagger-ui',
6
- deepLinking: true,
7
- presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
8
- plugins: [SwaggerUIBundle.plugins.DownloadUrl],
9
- layout: 'StandaloneLayout',
10
- });
11
- };
1
+ window.onload = function () {
2
+ var el = document.getElementById('swagger-ui');
3
+ SwaggerUIBundle({
4
+ url: el.getAttribute('data-spec-url'),
5
+ dom_id: '#swagger-ui',
6
+ deepLinking: true,
7
+ presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
8
+ plugins: [SwaggerUIBundle.plugins.DownloadUrl],
9
+ layout: 'StandaloneLayout',
10
+ });
11
+ };
@@ -1,16 +1,16 @@
1
- doctype html
2
- html(lang="en")
3
- head
4
- meta(charset="UTF-8")
5
- meta(name="viewport" content="width=device-width, initial-scale=1.0")
6
- title #{title}
7
- link(rel="stylesheet" href=cssUrl)
8
- style.
9
- html { box-sizing: border-box; overflow-y: scroll; }
10
- *, *:before, *:after { box-sizing: inherit; }
11
- body { margin: 0; background: #fafafa; }
12
- body
13
- div#swagger-ui(data-spec-url=specUrl)
14
- script(src=bundleUrl)
15
- script(src=presetUrl)
16
- script(src="/docs/static/swagger-ui-init.js")
1
+ doctype html
2
+ html(lang="en")
3
+ head
4
+ meta(charset="UTF-8")
5
+ meta(name="viewport" content="width=device-width, initial-scale=1.0")
6
+ title #{title}
7
+ link(rel="stylesheet" href=cssUrl)
8
+ style.
9
+ html { box-sizing: border-box; overflow-y: scroll; }
10
+ *, *:before, *:after { box-sizing: inherit; }
11
+ body { margin: 0; background: #fafafa; }
12
+ body
13
+ div#swagger-ui(data-spec-url=specUrl)
14
+ script(src=bundleUrl)
15
+ script(src=presetUrl)
16
+ script(src="/docs/static/swagger-ui-init.js")
package/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "@spinajs/http-swagger",
3
- "version": "2.0.491",
4
- "description": "Swagger/OpenAPI documentation generator for SpineJS HTTP controllers. Reads route metadata and JSDoc comments to produce OpenAPI 3.0 specs.",
5
- "main": "lib/cjs/index.js",
6
- "module": "lib/mjs/index.js",
7
- "exports": {
8
- ".": {
9
- "types": "./lib/mjs/index.d.ts",
10
- "import": "./lib/mjs/index.js",
11
- "require": "./lib/cjs/index.js"
12
- }
13
- },
14
- "type": "module",
15
- "private": false,
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "engines": {
20
- "node": ">=16.11"
21
- },
22
- "scripts": {
23
- "build": "npm run clean && npm run compile && npm run copy",
24
- "compile": "tsc -b tsconfig.mjs.json",
25
- "compile:cjs": "tsc -b tsconfig.cjs.json",
26
- "copy": "cpx \"src/views/**/*.{pug,js}\" lib/views/",
27
- "rimraf": "./node_modules/rimraf/bin.js",
28
- "clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo",
29
- "test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
30
- "coverage": "nyc npm run test",
31
- "build-docs": "rimraf docs && typedoc --options typedoc.json src/",
32
- "format": "prettier --write \"src/**/*.ts\"",
33
- "lint": "eslint -c .eslintrc.cjs --ext .ts src --fix",
34
- "preversion": "npm run lint",
35
- "version": "npm run format && git add -A src"
36
- },
37
- "files": [
38
- "lib/**/*"
39
- ],
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/spinajs/main.git"
43
- },
44
- "keywords": [
45
- "spinajs",
46
- "swagger",
47
- "openapi",
48
- "documentation"
49
- ],
50
- "author": "SpinaJS <spinajs@coderush.pl> (https://github.com/spinajs/main)",
51
- "license": "MIT",
52
- "bugs": {
53
- "url": "https://github.com/spinajs/main/issues"
54
- },
55
- "homepage": "https://github.com/spinajs/main#readme",
56
- "dependencies": {
57
- "@spinajs/configuration": "^2.0.491",
58
- "@spinajs/di": "^2.0.491",
59
- "@spinajs/exceptions": "^2.0.491",
60
- "@spinajs/util": "^2.0.491",
61
- "@spinajs/http": "^2.0.491",
62
- "@spinajs/log": "^2.0.491",
63
- "@spinajs/reflection": "^2.0.491",
64
- "@spinajs/fs": "^2.0.491",
65
- "@spinajs/templates": "^2.0.491",
66
- "@spinajs/templates-pug": "^2.0.491",
67
- "@spinajs/validation": "^2.0.491",
68
- "swagger-ui-dist": "^5.0.0"
69
- },
70
- "devDependencies": {
71
- "cpx": "1.5.0"
72
- }
73
- }
1
+ {
2
+ "name": "@spinajs/http-swagger",
3
+ "version": "2.0.494",
4
+ "description": "Swagger/OpenAPI documentation generator for SpineJS HTTP controllers. Reads route metadata and JSDoc comments to produce OpenAPI 3.0 specs.",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/mjs/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./lib/mjs/index.d.ts",
10
+ "import": "./lib/mjs/index.js",
11
+ "require": "./lib/cjs/index.js"
12
+ }
13
+ },
14
+ "type": "module",
15
+ "private": false,
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "engines": {
20
+ "node": ">=16.11"
21
+ },
22
+ "scripts": {
23
+ "build": "npm run clean && npm run compile && npm run copy",
24
+ "compile": "tsc -b tsconfig.mjs.json",
25
+ "compile:cjs": "tsc -b tsconfig.cjs.json",
26
+ "copy": "cpx \"src/views/**/*.{pug,js}\" lib/views/",
27
+ "rimraf": "./node_modules/rimraf/bin.js",
28
+ "clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo",
29
+ "test": "ts-mocha -p tsconfig.json test/**/*.test.ts",
30
+ "coverage": "nyc npm run test",
31
+ "build-docs": "rimraf docs && typedoc --options typedoc.json src/",
32
+ "format": "prettier --write \"src/**/*.ts\"",
33
+ "lint": "eslint -c .eslintrc.cjs --ext .ts src --fix",
34
+ "preversion": "npm run lint",
35
+ "version": "npm run format && git add -A src"
36
+ },
37
+ "files": [
38
+ "lib/**/*"
39
+ ],
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/spinajs/main.git"
43
+ },
44
+ "keywords": [
45
+ "spinajs",
46
+ "swagger",
47
+ "openapi",
48
+ "documentation"
49
+ ],
50
+ "author": "SpinaJS <spinajs@coderush.pl> (https://github.com/spinajs/main)",
51
+ "license": "MIT",
52
+ "bugs": {
53
+ "url": "https://github.com/spinajs/main/issues"
54
+ },
55
+ "homepage": "https://github.com/spinajs/main#readme",
56
+ "dependencies": {
57
+ "@spinajs/configuration": "2.0.494",
58
+ "@spinajs/di": "2.0.494",
59
+ "@spinajs/exceptions": "2.0.494",
60
+ "@spinajs/util": "2.0.494",
61
+ "@spinajs/http": "2.0.494",
62
+ "@spinajs/log": "2.0.494",
63
+ "@spinajs/reflection": "2.0.494",
64
+ "@spinajs/fs": "2.0.494",
65
+ "@spinajs/templates": "2.0.494",
66
+ "@spinajs/templates-pug": "2.0.494",
67
+ "@spinajs/validation": "2.0.494",
68
+ "swagger-ui-dist": "^5.0.0"
69
+ },
70
+ "devDependencies": {
71
+ "cpx": "1.5.0"
72
+ }
73
+ }