hivesigner 3.3.5 → 4.1.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/README.md +29 -2
- package/lib/client.d.ts +19 -3
- package/lib/hivesigner.min.js +1 -10
- package/lib/index.d.ts +4 -0
- package/lib/index.js +194 -225
- package/lib/methods/send-operation.method.d.ts +1 -2
- package/lib/methods/send-operations.method.d.ts +1 -2
- package/lib/methods/send-transaction.method.d.ts +1 -2
- package/lib/pkce.d.ts +16 -0
- package/lib/types/callback-function.type.d.ts +1 -1
- package/lib/types/hive.types.d.ts +13 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/login-options.interface.d.ts +2 -0
- package/lib/types/send-response.type.d.ts +1 -1
- package/lib/types/token-response.interface.d.ts +8 -0
- package/package.json +11 -18
- package/.babelrc +0 -8
- package/.claude/settings.local.json +0 -12
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -16
- package/CLAUDE.md +0 -142
- package/docs/CNAME +0 -1
- package/docs/index.html +0 -221
- package/jest.config.js +0 -10
- package/rollup.config.js +0 -12
- package/src/client.spec.ts +0 -455
- package/src/client.ts +0 -317
- package/src/consts/api-url.const.ts +0 -1
- package/src/consts/base-url.const.ts +0 -1
- package/src/consts/beta-url.const.ts +0 -1
- package/src/consts/index.ts +0 -3
- package/src/default-import.spec.ts +0 -10
- package/src/factories/index.ts +0 -1
- package/src/factories/initialize.factory.spec.ts +0 -9
- package/src/factories/initialize.factory.ts +0 -7
- package/src/index.ts +0 -16
- package/src/methods/index.ts +0 -4
- package/src/methods/send-operation.method.spec.ts +0 -47
- package/src/methods/send-operation.method.ts +0 -15
- package/src/methods/send-operations.method.spec.ts +0 -47
- package/src/methods/send-operations.method.ts +0 -15
- package/src/methods/send-transaction.method.spec.ts +0 -47
- package/src/methods/send-transaction.method.ts +0 -15
- package/src/methods/sign.method.spec.ts +0 -60
- package/src/methods/sign.method.ts +0 -22
- package/src/modules-import.spec.ts +0 -11
- package/src/require-import.spec.js +0 -11
- package/src/require-import.spec.ts +0 -10
- package/src/types/callback-function.type.ts +0 -1
- package/src/types/client-config.interface.ts +0 -8
- package/src/types/index.ts +0 -5
- package/src/types/login-options.interface.ts +0 -3
- package/src/types/send-response.type.ts +0 -1
- package/src/types/sign-errors.interface.ts +0 -4
- package/src/utilities/index.ts +0 -1
- package/src/utilities/is-browser.util.ts +0 -3
- package/tsconfig.json +0 -15
- package/webpack.config.js +0 -26
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const hs = require('../lib/index');
|
|
2
|
-
|
|
3
|
-
describe('Require import testing', function () {
|
|
4
|
-
it('should be instance of Client and call me', function () {
|
|
5
|
-
const client = new hs.Client({ accessToken: 'some_wrong_access_token' });
|
|
6
|
-
expect(client).toBeInstanceOf(hs.Client);
|
|
7
|
-
|
|
8
|
-
const me = client.me();
|
|
9
|
-
expect(me).toBeInstanceOf(Promise);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const hivesigner = require('../lib/index')
|
|
2
|
-
|
|
3
|
-
describe('Testing default import', function () {
|
|
4
|
-
it('should contain Client class', function () {
|
|
5
|
-
expect(hivesigner.Client).toBeTruthy()
|
|
6
|
-
|
|
7
|
-
const client = new hivesigner.Client({})
|
|
8
|
-
expect(client).toBeInstanceOf(hivesigner.Client)
|
|
9
|
-
})
|
|
10
|
-
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CallbackFunction = (error: any, response: any) => any
|
package/src/types/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SendResponse = any
|
package/src/utilities/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './is-browser.util'
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./lib/",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"allowSyntheticDefaultImports": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"module": "commonjs",
|
|
9
|
-
"target": "es5",
|
|
10
|
-
"allowJs": false,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"rootDir": "src"
|
|
13
|
-
},
|
|
14
|
-
"exclude": ["./**/*.spec.ts", "jest.config.js", "rollup.config.js"]
|
|
15
|
-
}
|
package/webpack.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const pkg = require('./package.json');
|
|
3
|
-
const libraryName = pkg.name;
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
entry: [
|
|
7
|
-
path.resolve(__dirname, './src/index.ts')
|
|
8
|
-
],
|
|
9
|
-
output: {
|
|
10
|
-
path: path.resolve(__dirname, './lib'),
|
|
11
|
-
filename: `${libraryName}.min.js`,
|
|
12
|
-
library: libraryName,
|
|
13
|
-
},
|
|
14
|
-
module: {
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
test: /\.ts$/,
|
|
18
|
-
loader: 'babel-loader',
|
|
19
|
-
},
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
resolve: {
|
|
23
|
-
extensions: ['.ts', '.js'],
|
|
24
|
-
},
|
|
25
|
-
mode: 'production'
|
|
26
|
-
}
|