@clairejs/server 3.0.1 → 3.0.2

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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.0.1: improve http response
3
+ #### 3.0.2: improve http response
4
+
5
+ - add binary response
4
6
 
5
7
  #### 3.0.0:
6
8
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  declare type Dict = {
2
3
  [key: string]: string;
3
4
  };
@@ -16,7 +17,7 @@ export declare class ResponseBuilder<T> {
16
17
  get(): HttpResponse<T>;
17
18
  static json<T>(jsonValue?: T): ResponseBuilder<T>;
18
19
  static html(htmlValue?: string): ResponseBuilder<unknown>;
19
- static binary(buffer?: string): ResponseBuilder<unknown>;
20
+ static binary(buffer?: Buffer): ResponseBuilder<unknown>;
20
21
  static success(): HttpResponse<unknown>;
21
22
  static notFound(data?: any): HttpResponse<unknown>;
22
23
  static accessDenied(data?: any): HttpResponse<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",