@scalar/express-api-reference 0.6.1 → 0.6.3

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @scalar/express-api-reference
2
2
 
3
+ ## 0.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b502cf1: fix(express): restore express middleware return value type
8
+ - @scalar/core@0.2.3
9
+
10
+ ## 0.6.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [7a8965c]
15
+ - @scalar/core@0.2.2
16
+
3
17
  ## 0.6.1
4
18
 
5
19
  ### Patch Changes
@@ -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: Partial<ApiReferenceConfiguration>): (_: Request, res: Response) => Response<any, Record<string, any>>;
10
+ export declare function apiReference(givenConfiguration: Partial<ApiReferenceConfiguration>): (_: Request, res: Response) => void;
11
11
  //# 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,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEhD,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"}
1
+ {"version":3,"file":"apiReference.d.ts","sourceRoot":"","sources":["../src/apiReference.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEhD,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,UAGlC"}
@@ -114,7 +114,9 @@ function apiReference(givenConfiguration) {
114
114
  ...givenConfiguration,
115
115
  };
116
116
  // Respond with the HTML document
117
- return (_, res) => res.type('text/html').send(getHtmlDocument(configuration, customTheme));
117
+ return (_, res) => {
118
+ res.type('text/html').send(getHtmlDocument(configuration, customTheme));
119
+ };
118
120
  }
119
121
 
120
122
  export { apiReference, customTheme };
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.6.1",
13
+ "version": "0.6.3",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "module": "dist/index.js",
32
32
  "dependencies": {
33
- "@scalar/core": "0.2.1"
33
+ "@scalar/core": "0.2.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/express": "^4.17.21",