@privy-io/js-sdk-core
Advanced tools
Comparing version 0.4.0 to 0.5.0-beta-20231017002745
import { OAuthProviderType } from "@privy-io/public-api"; | ||
import EventEmitter from "eventemitter3"; | ||
interface Storage { | ||
get(key: string): unknown; | ||
export interface Storage { | ||
get(key: string): unknown | Promise<unknown>; | ||
put(key: string, value: unknown): void; | ||
del(key: string): void; | ||
getKeys(): string[]; | ||
getKeys(): string[] | Promise<string[]>; | ||
} | ||
@@ -267,2 +267,3 @@ declare class CustomProviderApi { | ||
} | ||
export function errorIndicatesRecoveryIsNeeded(error: unknown): boolean; | ||
type ProviderConnectInfo = { | ||
@@ -357,4 +358,3 @@ chainId: string; | ||
/** | ||
* Class definition for `Privy` | ||
* TODO: need doc pass | ||
* Privy API Client SDK | ||
*/ | ||
@@ -380,3 +380,3 @@ declare class Privy { | ||
export class LocalStorage implements Storage { | ||
get(key: string): any; | ||
get(key: string): Promise<any>; | ||
put(key: string, val: unknown): void; | ||
@@ -383,0 +383,0 @@ del(key: string): void; |
{ | ||
"name": "@privy-io/js-sdk-core", | ||
"version": "0.4.0", | ||
"version": "0.5.0-beta-20231017002745", | ||
"description": "Vanilla JS client for the Privy Auth API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,2 +43,3 @@ # @privy-io/js-sdk-core | ||
// create a viem client from the privy embedded wallet | ||
const viemWalletClient = createWalletClient({ | ||
@@ -45,0 +46,0 @@ chain: mainnet, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
190133
4612
55