File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import type {RpcCaller} from '../../common/rpc/caller/RpcCaller';
1515import type { ServerLogger } from './types' ;
1616import type { ConnectionContext } from '../types' ;
1717import { ObjectValueCaller } from '../../common/rpc/caller/ObjectValueCaller' ;
18- import { ObjectValue } from 'json-joy/lib/json-type-value/ObjectValue' ;
19- import { ObjectType } from 'json-joy/lib/json-type/type/classes' ;
18+ import type { ObjectValue } from 'json-joy/lib/json-type-value/ObjectValue' ;
19+ import type { ObjectType } from 'json-joy/lib/json-type/type/classes' ;
2020import { gzip } from '@jsonjoy.com/util/lib/compression/gzip' ;
2121
2222const DEFAULT_MAX_PAYLOAD = 4 * 1024 * 1024 ;
@@ -137,7 +137,7 @@ export class RpcServer implements Printable {
137137 msgCodec : http1 . codecs . messages . compact ,
138138 } ) ;
139139 }
140-
140+
141141 public enableJsonRcp2HttpRpc ( path = '/rpc' ) : void {
142142 const http1 = this . http1 ;
143143 http1 . route ( {
@@ -218,7 +218,7 @@ export class RpcServer implements Printable {
218218 responseBody = Buffer . from ( JSON . stringify ( schema ) ) ;
219219 }
220220 let responseBodyCompressed : Uint8Array = new Uint8Array ( 0 ) ;
221- gzip ( responseBody ) . then ( ( compressed ) => responseBodyCompressed = compressed ) ;
221+ gzip ( responseBody ) . then ( ( compressed ) => ( responseBodyCompressed = compressed ) ) ;
222222 this . http1 . route ( {
223223 method,
224224 path,
You can’t perform that action at this time.
0 commit comments