@atomicfinance/provider 2.5.1 → 3.0.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.
@@ -1,2 +1 @@
1
- @atomicfinance/provider:build: cache hit, replaying output 46c84bf8da6359a1
2
- @atomicfinance/provider:build: $ ../../node_modules/.bin/tsc --project tsconfig.json
1
+ @atomicfinance/provider:build: cache hit, replaying output 3c28940711455332
@@ -0,0 +1 @@
1
+ @atomicfinance/provider:lint: cache hit, replaying output 5bf03c3c779012de
@@ -0,0 +1 @@
1
+ @atomicfinance/provider:lint:fix: cache hit, replaying output ddae8aaf80c33daf
@@ -1,3 +1 @@
1
- @atomicfinance/provider:test: cache hit, replaying output ca67e6ee9dd770e3
2
- @atomicfinance/provider:test: $ yarn run build
3
- @atomicfinance/provider:test: $ ../../node_modules/.bin/tsc --project tsconfig.json
1
+ @atomicfinance/provider:test: cache hit, replaying output b0cbf2355ecd3aaa
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atomicfinance/provider
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - a06082e: Create unified standalone `bitcoin-abstraction-layer` package
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a06082e]
12
+ - @atomicfinance/types@3.0.0
13
+
3
14
  ## 2.5.1
4
15
 
5
16
  ### Patch Changes
@@ -1,16 +1,16 @@
1
- import { IFinanceClient } from '@atomicfinance/types';
1
+ import { IClient } from '@atomicfinance/types';
2
2
  export default abstract class Provider {
3
- client: IFinanceClient;
3
+ client: IClient;
4
4
  /**
5
5
  * Set client to a provider instance.
6
- * @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance
6
+ * @param client - The client instance
7
7
  */
8
- setClient(client?: any): void;
8
+ setClient(client?: IClient): void;
9
9
  /**
10
10
  * Get method for the provider
11
11
  * @param {!string} method - Name of the method
12
12
  * @return {function} Returns a method from a provider above current Provider
13
13
  * in the stack.
14
14
  */
15
- getMethod(method: string, requestor?: any): any;
15
+ getMethod(method: string, requestor?: any): (...args: any[]) => any;
16
16
  }
package/dist/Provider.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class Provider {
4
4
  /**
5
5
  * Set client to a provider instance.
6
- * @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance
6
+ * @param client - The client instance
7
7
  */
8
8
  setClient(client) {
9
9
  this.client = client;
@@ -14,6 +14,7 @@ class Provider {
14
14
  * @return {function} Returns a method from a provider above current Provider
15
15
  * in the stack.
16
16
  */
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
18
  getMethod(method, requestor = this) {
18
19
  return this.client.getMethod(method, requestor).bind(this);
19
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../lib/Provider.ts"],"names":[],"mappings":";;AAEA,MAA8B,QAAQ;IAEpC;;;OAGG;IACH,SAAS,CAAC,MAAY;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,MAAc,EAAE,YAAiB,IAAI;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CACF;AAnBD,2BAmBC"}
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../lib/Provider.ts"],"names":[],"mappings":";;AAEA,MAA8B,QAAQ;IAEpC;;;OAGG;IACH,SAAS,CAAC,MAAgB;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,8DAA8D;IAC9D,SAAS,CAAC,MAAc,EAAE,YAAiB,IAAI;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;CACF;AApBD,2BAoBC"}
package/lib/Provider.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { IFinanceClient } from '@atomicfinance/types';
1
+ import { IClient } from '@atomicfinance/types';
2
2
 
3
3
  export default abstract class Provider {
4
- client: IFinanceClient;
4
+ client: IClient;
5
5
  /**
6
6
  * Set client to a provider instance.
7
- * @param {!ChainAbstractionLayer} client - The ChainAbstractionLayer instance
7
+ * @param client - The client instance
8
8
  */
9
- setClient(client?: any) {
9
+ setClient(client?: IClient): void {
10
10
  this.client = client;
11
11
  }
12
12
 
@@ -16,7 +16,8 @@ export default abstract class Provider {
16
16
  * @return {function} Returns a method from a provider above current Provider
17
17
  * in the stack.
18
18
  */
19
- getMethod(method: string, requestor: any = this) {
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
+ getMethod(method: string, requestor: any = this): (...args: any[]) => any {
20
21
  return this.client.getMethod(method, requestor).bind(this);
21
22
  }
22
23
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@atomicfinance/provider",
3
3
  "umdName": "Provider",
4
- "version": "2.5.1",
5
- "description": "CAL Finance Provider",
4
+ "version": "3.0.0",
5
+ "description": "Bitcoin Abstraction Layer Provider",
6
6
  "author": "Atomic Finance <info@atomic.finance>",
7
7
  "homepage": "",
8
8
  "license": "ISC",
@@ -15,7 +15,7 @@
15
15
  "lint:fix": "../../node_modules/.bin/eslint --fix --ignore-path ../../.eslintignore -c ../../.eslintrc.js ."
16
16
  },
17
17
  "dependencies": {
18
- "@atomicfinance/types": "^2.5.1",
18
+ "@atomicfinance/types": "^3.0.0",
19
19
  "lodash": "^4.17.20"
20
20
  },
21
21
  "devDependencies": {