@kubun/http-client 0.4.1 → 0.5.0

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/lib/index.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- import type { TokenSigner } from '@enkaku/token';
1
+ import type { SigningIdentity } from '@enkaku/token';
2
2
  import { KubunClient } from '@kubun/client';
3
3
  import type { Logger } from '@kubun/logger';
4
4
  export type ClientParams = {
5
+ identity: SigningIdentity;
5
6
  logger?: Logger;
6
7
  serverID?: string;
7
- signer: TokenSigner;
8
8
  url: string;
9
9
  };
10
10
  export declare class HTTPClient extends KubunClient {
11
11
  constructor(params: ClientParams);
12
12
  }
13
- //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,16 +1 @@
1
- import { ClientTransport } from '@enkaku/http-client-transport';
2
- import { KubunClient } from '@kubun/client';
3
- export class HTTPClient extends KubunClient {
4
- constructor(params){
5
- const { logger, serverID, signer, url } = params;
6
- const transport = new ClientTransport({
7
- url
8
- });
9
- super({
10
- logger,
11
- serverID,
12
- signer,
13
- transport
14
- });
15
- }
16
- }
1
+ import{ClientTransport as t}from"@enkaku/http-client-transport";import{KubunClient as r}from"@kubun/client";export class HTTPClient extends r{constructor(r){let{identity:e,logger:n,serverID:o,url:p}=r;super({identity:e,logger:n,serverID:o,transport:new t({url:p})})}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubun/http-client",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "license": "see LICENSE.md",
5
5
  "keywords": [],
6
6
  "type": "module",
@@ -15,13 +15,13 @@
15
15
  ],
16
16
  "sideEffects": false,
17
17
  "dependencies": {
18
- "@enkaku/http-client-transport": "^0.12.0",
19
- "@kubun/client": "^0.4.1"
18
+ "@enkaku/http-client-transport": "^0.13.0",
19
+ "@kubun/client": "^0.5.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@enkaku/token": "0.12.3",
23
- "@kubun/logger": "^0.4.0",
24
- "@kubun/protocol": "^0.4.1"
22
+ "@enkaku/token": "0.13.0",
23
+ "@kubun/protocol": "^0.5.0",
24
+ "@kubun/logger": "^0.5.0"
25
25
  },
26
26
  "scripts": {
27
27
  "build:clean": "del lib",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,WAAW,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,qBAAa,UAAW,SAAQ,WAAW;gBAC7B,MAAM,EAAE,YAAY;CAKjC"}