@scalar/express-api-reference 0.8.44 → 0.8.45
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 +10 -0
- package/dist/apiReference.d.ts +2 -8
- package/dist/apiReference.d.ts.map +1 -1
- package/dist/apiReference.js +2 -4
- package/dist/apiReference.js.map +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @scalar/express-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.8.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix(express): remove unused `customTheme`
|
|
8
|
+
|
|
9
|
+
#### Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- **@scalar/core@0.3.42**
|
|
12
|
+
|
|
3
13
|
## 0.8.44
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/apiReference.d.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RequestHandler } from 'express';
|
|
2
2
|
import type { ApiReferenceConfiguration } from './types.js';
|
|
3
|
-
/**
|
|
4
|
-
* The custom theme CSS for the Express theme
|
|
5
|
-
*
|
|
6
|
-
* @deprecated we have removed this custom theme, the variable is just here because it is exported
|
|
7
|
-
*/
|
|
8
|
-
export declare const customTheme = "";
|
|
9
3
|
/**
|
|
10
4
|
* The route handler to render the Scalar API Reference.
|
|
11
5
|
*/
|
|
12
|
-
export declare function apiReference(givenConfiguration: Partial<ApiReferenceConfiguration>):
|
|
6
|
+
export declare function apiReference(givenConfiguration: Partial<ApiReferenceConfiguration>): RequestHandler<never, string>;
|
|
13
7
|
//# sourceMappingURL=apiReference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AASxD;;GAEG;AACH,wBAAgB,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAWlH"}
|
package/dist/apiReference.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getHtmlDocument } from "@scalar/core/libs/html-rendering";
|
|
2
|
-
const customTheme = "";
|
|
3
2
|
const DEFAULT_CONFIGURATION = {
|
|
4
3
|
_integration: "express"
|
|
5
4
|
};
|
|
@@ -9,11 +8,10 @@ function apiReference(givenConfiguration) {
|
|
|
9
8
|
...givenConfiguration
|
|
10
9
|
};
|
|
11
10
|
return (_, res) => {
|
|
12
|
-
res.type("text/html").send(getHtmlDocument(configuration
|
|
11
|
+
res.type("text/html").send(getHtmlDocument(configuration));
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
14
|
export {
|
|
16
|
-
apiReference
|
|
17
|
-
customTheme
|
|
15
|
+
apiReference
|
|
18
16
|
};
|
|
19
17
|
//# sourceMappingURL=apiReference.js.map
|
package/dist/apiReference.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/apiReference.ts"],
|
|
4
|
-
"sourcesContent": ["import { getHtmlDocument } from '@scalar/core/libs/html-rendering'\nimport type {
|
|
5
|
-
"mappings": "AAAA,SAAS,uBAAuB;
|
|
4
|
+
"sourcesContent": ["import { getHtmlDocument } from '@scalar/core/libs/html-rendering'\nimport type { RequestHandler } from 'express'\n\nimport type { ApiReferenceConfiguration } from './types'\n\n/**\n * The default configuration for the API Reference.\n */\nconst DEFAULT_CONFIGURATION: Partial<ApiReferenceConfiguration> = {\n _integration: 'express',\n}\n\n/**\n * The route handler to render the Scalar API Reference.\n */\nexport function apiReference(givenConfiguration: Partial<ApiReferenceConfiguration>): RequestHandler<never, string> {\n // Merge the defaults\n const configuration = {\n ...DEFAULT_CONFIGURATION,\n ...givenConfiguration,\n }\n\n // Respond with the HTML document\n return (_, res) => {\n res.type('text/html').send(getHtmlDocument(configuration))\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAQhC,MAAM,wBAA4D;AAAA,EAChE,cAAc;AAChB;AAKO,SAAS,aAAa,oBAAuF;AAElH,QAAM,gBAAgB;AAAA,IACpB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAGA,SAAO,CAAC,GAAG,QAAQ;AACjB,QAAI,KAAK,WAAW,EAAE,KAAK,gBAAgB,aAAa,CAAC;AAAA,EAC3D;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
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.8.
|
|
13
|
+
"version": "0.8.45",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"documentation": "https://scalar.com/products/api-references/integrations/express"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@scalar/core": "0.3.
|
|
48
|
+
"@scalar/core": "0.3.42"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/express": "5.0.3",
|