shogun-core 2.0.1 → 2.0.4
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/dist/browser/shogun-core.js +2 -2
- package/dist/browser/shogun-core.js.map +1 -1
- package/dist/core.js +2 -2
- package/dist/index.js +1 -1
- package/dist/types/core.d.ts +3 -3
- package/dist/types/gundb/db.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/plugins/base.d.ts +2 -2
- package/dist/types/plugins/index.d.ts +1 -1
- package/dist/types/plugins/nostr/nostrConnectorPlugin.d.ts +1 -1
- package/dist/types/plugins/nostr/types.d.ts +2 -2
- package/dist/types/plugins/oauth/oauthPlugin.d.ts +1 -1
- package/dist/types/plugins/oauth/types.d.ts +2 -2
- package/dist/types/plugins/web3/types.d.ts +2 -2
- package/dist/types/plugins/web3/web3ConnectorPlugin.d.ts +1 -1
- package/dist/types/plugins/webauthn/types.d.ts +2 -2
- package/dist/types/plugins/webauthn/webauthnPlugin.d.ts +1 -1
- package/dist/types/utils/errorHandler.d.ts +1 -1
- package/package.json +9 -9
- /package/dist/{types → interfaces}/common.js +0 -0
- /package/dist/{types → interfaces}/events.js +0 -0
- /package/dist/{types → interfaces}/plugin.js +0 -0
- /package/dist/{types → interfaces}/shogun.js +0 -0
- /package/dist/types/{types → interfaces}/common.d.ts +0 -0
- /package/dist/types/{types → interfaces}/events.d.ts +0 -0
- /package/dist/types/{types → interfaces}/plugin.d.ts +0 -0
- /package/dist/types/{types → interfaces}/shogun.d.ts +0 -0
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ShogunEventEmitter } from "./
|
|
1
|
+
import { ShogunEventEmitter } from "./interfaces/events";
|
|
2
2
|
import { ErrorHandler, ErrorType } from "./utils/errorHandler";
|
|
3
3
|
import { ShogunStorage } from "./storage/storage";
|
|
4
|
-
import { CorePlugins, } from "./
|
|
4
|
+
import { CorePlugins, } from "./interfaces/shogun";
|
|
5
5
|
import { WebauthnPlugin } from "./plugins/webauthn/webauthnPlugin";
|
|
6
6
|
import { Web3ConnectorPlugin } from "./plugins/web3/web3ConnectorPlugin";
|
|
7
7
|
import { NostrConnectorPlugin } from "./plugins/nostr/nostrConnectorPlugin";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { SEA, RxJS, crypto, derive, GunErrors, DataBase } from "./gundb/db";
|
|
|
4
4
|
import Gun from "./gundb/db";
|
|
5
5
|
export * from "./utils/errorHandler";
|
|
6
6
|
export * from "./plugins";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./interfaces/shogun";
|
|
8
8
|
export { SEA, RxJS, crypto, derive, GunErrors, DataBase };
|
|
9
9
|
export { Gun };
|
|
10
10
|
export { ShogunCore };
|
package/dist/types/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ShogunEventMap } from "./
|
|
1
|
+
import { ShogunEventMap } from "./interfaces/events";
|
|
2
2
|
import { ShogunError } from "./utils/errorHandler";
|
|
3
3
|
import { ShogunStorage } from "./storage/storage";
|
|
4
|
-
import { IShogunCore, ShogunCoreConfig, AuthResult, SignUpResult, PluginCategory, AuthMethod, Wallets } from "./
|
|
4
|
+
import { IShogunCore, ShogunCoreConfig, AuthResult, SignUpResult, PluginCategory, AuthMethod, Wallets } from "./interfaces/shogun";
|
|
5
5
|
import { ethers } from "ethers";
|
|
6
|
-
import { ShogunPlugin } from "./
|
|
6
|
+
import { ShogunPlugin } from "./interfaces/plugin";
|
|
7
7
|
import { IGunUserInstance, IGunInstance, DataBase, RxJS } from "./gundb";
|
|
8
8
|
import { ISEAPair } from "gun";
|
|
9
9
|
/**
|
package/dist/types/gundb/db.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - Direct authentication through Gun.user()
|
|
6
6
|
*/
|
|
7
7
|
import type { GunUser, UserInfo, AuthCallback, GunData, EventData, EventListener, GunOperationResult } from "./types";
|
|
8
|
-
import type { AuthResult, SignUpResult } from "../
|
|
8
|
+
import type { AuthResult, SignUpResult } from "../interfaces/shogun";
|
|
9
9
|
import Gun from "gun/gun";
|
|
10
10
|
import SEA from "gun/sea";
|
|
11
11
|
import "gun/lib/then";
|
|
@@ -19,7 +19,7 @@ import "gun/lib/les";
|
|
|
19
19
|
import { restrictedPut } from "./restricted-put";
|
|
20
20
|
import derive, { DeriveOptions } from "./derive";
|
|
21
21
|
import type { IGunUserInstance, IGunInstance, IGunChain, ISEAPair } from "gun/types";
|
|
22
|
-
import { GunDataEventData, GunPeerEventData } from "../
|
|
22
|
+
import { GunDataEventData, GunPeerEventData } from "../interfaces/events";
|
|
23
23
|
import { RxJS } from "./rxjs";
|
|
24
24
|
import * as GunErrors from "./errors";
|
|
25
25
|
import * as crypto from "./crypto";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { SEA, RxJS, crypto, derive, GunErrors, DataBase } from "./gundb/db";
|
|
|
4
4
|
import Gun from "./gundb/db";
|
|
5
5
|
export * from "./utils/errorHandler";
|
|
6
6
|
export * from "./plugins";
|
|
7
|
-
export * from "./
|
|
8
|
-
export type * from "./
|
|
7
|
+
export * from "./interfaces/shogun";
|
|
8
|
+
export type * from "./interfaces/plugin";
|
|
9
9
|
export type { IGunUserInstance, IGunInstance, GunDataEventData, GunPeerEventData, DeriveOptions, };
|
|
10
10
|
export { SEA, RxJS, crypto, derive, GunErrors, DataBase };
|
|
11
11
|
export { Gun };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ShogunCore } from "../core";
|
|
2
|
-
import { ShogunPlugin } from "../
|
|
3
|
-
import { PluginCategory } from "../
|
|
2
|
+
import { ShogunPlugin } from "../interfaces/plugin";
|
|
3
|
+
import { PluginCategory } from "../interfaces/shogun";
|
|
4
4
|
import { EventEmitter } from "../utils/eventEmitter";
|
|
5
5
|
/**
|
|
6
6
|
* Classe base per tutti i plugin di ShogunCore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BasePlugin } from "./base";
|
|
2
|
-
export type { ShogunPlugin, PluginManager } from "../
|
|
2
|
+
export type { ShogunPlugin, PluginManager } from "../interfaces/plugin";
|
|
3
3
|
export { Webauthn } from "./webauthn/webauthn";
|
|
4
4
|
export { WebauthnPlugin } from "./webauthn/webauthnPlugin";
|
|
5
5
|
export type { WebauthnPluginInterface } from "./webauthn/types";
|
|
@@ -2,7 +2,7 @@ import { BasePlugin } from "../base";
|
|
|
2
2
|
import { ShogunCore } from "../../core";
|
|
3
3
|
import { NostrSigningCredential } from "./nostrSigner";
|
|
4
4
|
import { NostrConnectorCredentials, ConnectionResult, NostrConnectorPluginInterface } from "./types";
|
|
5
|
-
import { AuthResult, SignUpResult } from "../../
|
|
5
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
6
6
|
/**
|
|
7
7
|
* Plugin for managing Bitcoin wallet functionality in ShogunCore
|
|
8
8
|
* Supports Alby, Nostr extensions, or direct key management
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../
|
|
2
|
-
import { AuthResult, SignUpResult } from "../../
|
|
1
|
+
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../interfaces/common";
|
|
2
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
3
3
|
/**
|
|
4
4
|
* Result of connection attempt
|
|
5
5
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BasePlugin } from "../base";
|
|
2
2
|
import { ShogunCore } from "../../core";
|
|
3
3
|
import { OAuthPluginInterface, OAuthConfig, OAuthProvider, OAuthConnectionResult, OAuthCredentials, OAuthUserInfo } from "./types";
|
|
4
|
-
import { AuthResult, SignUpResult } from "../../
|
|
4
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
5
5
|
/**
|
|
6
6
|
* OAuth Plugin for ShogunCore
|
|
7
7
|
* Provides authentication with external OAuth providers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../
|
|
2
|
-
import { AuthResult, SignUpResult } from "../../
|
|
1
|
+
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../interfaces/common";
|
|
2
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
3
3
|
/**
|
|
4
4
|
* Supported OAuth providers
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISEAPair } from "gun";
|
|
2
|
-
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../
|
|
3
|
-
import { AuthResult, SignUpResult } from "../../
|
|
2
|
+
import { BaseConfig, BaseResult, BaseCacheEntry } from "../../interfaces/common";
|
|
3
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
4
4
|
/**
|
|
5
5
|
* Result of connection attempt
|
|
6
6
|
*/
|
|
@@ -3,7 +3,7 @@ import { ShogunCore } from "../../core";
|
|
|
3
3
|
import { Web3SigningCredential } from "./web3Signer";
|
|
4
4
|
import { ConnectionResult, Web3ConnectorPluginInterface } from "./types";
|
|
5
5
|
import { ethers } from "ethers";
|
|
6
|
-
import { AuthResult, SignUpResult } from "../../
|
|
6
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
7
7
|
import { ISEAPair } from "gun";
|
|
8
8
|
/**
|
|
9
9
|
* Plugin per la gestione delle funzionalità Web3 in ShogunCore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthResult, SignUpResult } from "../../
|
|
2
|
-
import { BaseEvent, BaseConfig, BaseDeviceInfo, BaseResult, BaseAuthResult } from "../../
|
|
1
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
2
|
+
import { BaseEvent, BaseConfig, BaseDeviceInfo, BaseResult, BaseAuthResult } from "../../interfaces/common";
|
|
3
3
|
/**
|
|
4
4
|
* WebAuthn types definitions
|
|
5
5
|
*/
|
|
@@ -2,7 +2,7 @@ import { BasePlugin } from "../base";
|
|
|
2
2
|
import { ShogunCore } from "../../core";
|
|
3
3
|
import { WebAuthnSigningCredential } from "./webauthnSigner";
|
|
4
4
|
import { WebAuthnCredentials, CredentialResult, WebauthnPluginInterface, WebAuthnUniformCredentials } from "./types";
|
|
5
|
-
import { AuthResult, SignUpResult } from "../../
|
|
5
|
+
import { AuthResult, SignUpResult } from "../../interfaces/shogun";
|
|
6
6
|
/**
|
|
7
7
|
* Plugin per la gestione delle funzionalità WebAuthn in ShogunCore
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shogun-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "SHOGUN CORE - Core library for Shogun Ecosystem",
|
|
5
|
-
"main": "./dist/
|
|
6
|
-
"module": "./dist/
|
|
7
|
-
"types": "./dist/types/
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./dist/types/
|
|
11
|
-
"import": "./dist/
|
|
12
|
-
"require": "./dist/
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
13
|
"browser": "./dist/browser/shogun-core.js",
|
|
14
|
-
"default": "./dist/
|
|
15
|
-
"node": "./dist/
|
|
14
|
+
"default": "./dist/index.js",
|
|
15
|
+
"node": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|