@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.
- package/.turbo/turbo-build.log +1 -2
- package/.turbo/turbo-lint.log +1 -0
- package/.turbo/turbo-lint:fix.log +1 -0
- package/.turbo/turbo-test.log +1 -3
- package/CHANGELOG.md +11 -0
- package/dist/Provider.d.ts +5 -5
- package/dist/Provider.js +2 -1
- package/dist/Provider.js.map +1 -1
- package/lib/Provider.ts +6 -5
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
[33m@atomicfinance/provider:build: [0m$ ../../node_modules/.bin/tsc --project tsconfig.json
|
|
1
|
+
@atomicfinance/provider:build: cache hit, replaying output [2m3c28940711455332[0m
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[36m@atomicfinance/provider:lint: [0mcache hit, replaying output [2m5bf03c3c779012de[0m
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[36m@atomicfinance/provider:lint:fix: [0mcache hit, replaying output [2mddae8aaf80c33daf[0m
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
[36m@atomicfinance/provider:test: [0m$ yarn run build
|
|
3
|
-
[36m@atomicfinance/provider:test: [0m$ ../../node_modules/.bin/tsc --project tsconfig.json
|
|
1
|
+
@atomicfinance/provider:test: cache hit, replaying output [2mb0cbf2355ecd3aaa[0m
|
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
|
package/dist/Provider.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IClient } from '@atomicfinance/types';
|
|
2
2
|
export default abstract class Provider {
|
|
3
|
-
client:
|
|
3
|
+
client: IClient;
|
|
4
4
|
/**
|
|
5
5
|
* Set client to a provider instance.
|
|
6
|
-
* @param
|
|
6
|
+
* @param client - The client instance
|
|
7
7
|
*/
|
|
8
|
-
setClient(client?:
|
|
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
|
|
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
|
}
|
package/dist/Provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../lib/Provider.ts"],"names":[],"mappings":";;AAEA,MAA8B,QAAQ;IAEpC;;;OAGG;IACH,SAAS,CAAC,
|
|
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 {
|
|
1
|
+
import { IClient } from '@atomicfinance/types';
|
|
2
2
|
|
|
3
3
|
export default abstract class Provider {
|
|
4
|
-
client:
|
|
4
|
+
client: IClient;
|
|
5
5
|
/**
|
|
6
6
|
* Set client to a provider instance.
|
|
7
|
-
* @param
|
|
7
|
+
* @param client - The client instance
|
|
8
8
|
*/
|
|
9
|
-
setClient(client?:
|
|
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
|
-
|
|
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": "
|
|
5
|
-
"description": "
|
|
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": "^
|
|
18
|
+
"@atomicfinance/types": "^3.0.0",
|
|
19
19
|
"lodash": "^4.17.20"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|