@scalar/express-api-reference 0.4.189 → 0.4.190
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 +12 -0
- package/dist/apiReference.d.ts +2 -2
- package/dist/apiReference.d.ts.map +1 -1
- package/dist/apiReference.js +7 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scalar/express-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.4.190
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 12f1c67: fix: added types to fastify and express dockerfiles
|
|
8
|
+
- 989ad08: fix: include all packages in dockerfile
|
|
9
|
+
- Updated dependencies [89d8b75]
|
|
10
|
+
- Updated dependencies [479a2ef]
|
|
11
|
+
- Updated dependencies [b93b22f]
|
|
12
|
+
- Updated dependencies [89d8b75]
|
|
13
|
+
- @scalar/api-reference@1.25.128
|
|
14
|
+
|
|
3
15
|
## 0.4.189
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/apiReference.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from './types';
|
|
2
1
|
import type { Request, Response } from 'express';
|
|
2
|
+
import type { ApiReferenceConfiguration } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The custom theme CSS for the Express theme
|
|
5
5
|
*/
|
|
@@ -7,5 +7,5 @@ export declare const customTheme = "\n/* basic theme */\n.light-mode {\n --scal
|
|
|
7
7
|
/**
|
|
8
8
|
* The route handler to render the Scalar API Reference.
|
|
9
9
|
*/
|
|
10
|
-
export declare function apiReference(givenConfiguration: ApiReferenceConfiguration): (_: Request, res: Response) =>
|
|
10
|
+
export declare function apiReference(givenConfiguration: Partial<ApiReferenceConfiguration>): (_: Request, res: Response) => Response<any, Record<string, any>>;
|
|
11
11
|
//# sourceMappingURL=apiReference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,WAAW,mnGA8FvB,CAAA;AASD;;GAEG;AACH,wBAAgB,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,yBAAyB,CAAC,OAQtE,OAAO,OAAO,QAAQ,wCAClC"}
|
package/dist/apiReference.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { getHtmlDocument } from '@scalar/api-reference/lib/html-rendering';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* The default configuration for the API Reference.
|
|
5
|
-
*/
|
|
6
|
-
const DEFAULT_CONFIGURATION = {
|
|
7
|
-
_integration: 'express',
|
|
8
|
-
};
|
|
9
3
|
/**
|
|
10
4
|
* The custom theme CSS for the Express theme
|
|
11
5
|
*/
|
|
@@ -104,6 +98,12 @@ const customTheme = `
|
|
|
104
98
|
--scalar-radius-xl: 3px;
|
|
105
99
|
}
|
|
106
100
|
`;
|
|
101
|
+
/**
|
|
102
|
+
* The default configuration for the API Reference.
|
|
103
|
+
*/
|
|
104
|
+
const DEFAULT_CONFIGURATION = {
|
|
105
|
+
_integration: 'express',
|
|
106
|
+
};
|
|
107
107
|
/**
|
|
108
108
|
* The route handler to render the Scalar API Reference.
|
|
109
109
|
*/
|
|
@@ -114,9 +114,7 @@ function apiReference(givenConfiguration) {
|
|
|
114
114
|
...givenConfiguration,
|
|
115
115
|
};
|
|
116
116
|
// Respond with the HTML document
|
|
117
|
-
return (_, res) =>
|
|
118
|
-
res.type('text/html').send(getHtmlDocument(configuration, customTheme));
|
|
119
|
-
};
|
|
117
|
+
return (_, res) => res.type('text/html').send(getHtmlDocument(configuration, customTheme));
|
|
120
118
|
}
|
|
121
119
|
|
|
122
120
|
export { apiReference, customTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { apiReference } from './apiReference.ts';
|
|
2
|
+
export type { ApiReferenceConfiguration } from './types.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,YAAY,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { apiReference
|
|
1
|
+
export { apiReference } from './apiReference.js';
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "integrations/express"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.4.
|
|
13
|
+
"version": "0.4.190",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"module": "dist/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@scalar/api-reference": "1.25.
|
|
34
|
-
"@scalar/types": "0.0.36"
|
|
33
|
+
"@scalar/api-reference": "1.25.128"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/express": "^4.17.21",
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
"supertest": "^6.3.3",
|
|
41
40
|
"vite": "^5.4.10",
|
|
42
41
|
"vitest": "^1.6.0",
|
|
43
|
-
"@scalar/build-tooling": "0.1.
|
|
42
|
+
"@scalar/build-tooling": "0.1.16"
|
|
44
43
|
},
|
|
45
44
|
"scripts": {
|
|
46
45
|
"build": "scalar-build-rollup",
|