@usecapsule/web-sdk
Advanced tools
Comparing version 1.8.0-dev.3 to 1.8.0
import CoreCapsule from '@usecapsule/core-sdk'; | ||
import { WebUtils } from './WebUtils'; | ||
import { WebUtils } from './WebUtils.js'; | ||
export declare class Capsule extends CoreCapsule { | ||
protected getPlatformUtils(): WebUtils; | ||
} |
import CoreCapsule from '@usecapsule/core-sdk'; | ||
import { WebUtils } from './WebUtils'; | ||
import { WebUtils } from './WebUtils.js'; | ||
export class Capsule extends CoreCapsule { | ||
@@ -4,0 +4,0 @@ getPlatformUtils() { |
export * from '@usecapsule/core-sdk'; | ||
import { Capsule as CapsuleWeb } from './CapsuleWeb'; | ||
import { Capsule as CapsuleWeb } from './CapsuleWeb.js'; | ||
import CoreCapsule from '@usecapsule/core-sdk'; | ||
export type { StorageUtils } from '@usecapsule/core-sdk'; | ||
export { createCredential, generateSignature, parseCredentialCreationRes } from './cryptography/webAuth'; | ||
export { CapsuleWeb, CoreCapsule, }; | ||
export { createCredential, generateSignature, parseCredentialCreationRes, } from './cryptography/webAuth.js'; | ||
export { truncateEthAddress } from './utils/truncateEthAddress.js'; | ||
export { CapsuleWeb, CoreCapsule }; | ||
export default CapsuleWeb; |
@@ -1,8 +0,7 @@ | ||
import { Buffer as NodeBuffer } from 'buffer'; | ||
global.Buffer = global.Buffer || NodeBuffer; | ||
export * from '@usecapsule/core-sdk'; | ||
import { Capsule as CapsuleWeb } from './CapsuleWeb'; | ||
import { Capsule as CapsuleWeb } from './CapsuleWeb.js'; | ||
import CoreCapsule from '@usecapsule/core-sdk'; | ||
export { createCredential, generateSignature, parseCredentialCreationRes } from './cryptography/webAuth'; | ||
export { CapsuleWeb, CoreCapsule, }; | ||
export { createCredential, generateSignature, parseCredentialCreationRes, } from './cryptography/webAuth.js'; | ||
export { truncateEthAddress } from './utils/truncateEthAddress.js'; | ||
export { CapsuleWeb, CoreCapsule }; | ||
export default CapsuleWeb; |
@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import { setupWorker } from '../workers/workerWrapper'; | ||
import { setupWorker } from '../workers/workerWrapper.js'; | ||
import { distributeNewShare, waitUntilTrue } from '@usecapsule/core-sdk'; | ||
@@ -13,0 +13,0 @@ function isKeygenComplete(ctx, userId, walletId) { |
@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import { setupWorker } from '../workers/workerWrapper'; | ||
import { setupWorker } from '../workers/workerWrapper.js'; | ||
export function signTransaction(ctx, userId, walletId, share, tx, chainId, sessionCookie, isDKLS) { | ||
@@ -13,0 +13,0 @@ return __awaiter(this, void 0, void 0, function* () { |
/// <reference types="node" /> | ||
import { Ctx, PlatformUtils, SignatureRes } from '@usecapsule/core-sdk'; | ||
import { LocalStorage } from './LocalStorage'; | ||
import { SessionStorage } from './SessionStorage'; | ||
import { LocalStorage } from './LocalStorage.js'; | ||
import { SessionStorage } from './SessionStorage.js'; | ||
import { BackupKitEmailProps } from '@usecapsule/user-management-client'; | ||
@@ -6,0 +6,0 @@ export declare class WebUtils implements PlatformUtils { |
@@ -1,5 +0,5 @@ | ||
import { LocalStorage } from './LocalStorage'; | ||
import { SessionStorage } from './SessionStorage'; | ||
import { keygen, preKeygen } from './wallet/keygen'; | ||
import { signMessage, sendTransaction, signTransaction } from './wallet/signing'; | ||
import { LocalStorage } from './LocalStorage.js'; | ||
import { SessionStorage } from './SessionStorage.js'; | ||
import { keygen, preKeygen } from './wallet/keygen.js'; | ||
import { signMessage, sendTransaction, signTransaction } from './wallet/signing.js'; | ||
export class WebUtils { | ||
@@ -6,0 +6,0 @@ constructor() { |
@@ -14,3 +14,3 @@ // ANY CHANGES TO THIS FILE REQUIRE A REBUILD OF THE WORKER | ||
import '../wasm/wasm_exec.js'; | ||
import * as walletUtils from './walletUtils'; | ||
import * as walletUtils from './walletUtils.js'; | ||
import { getPortalBaseURL, initClient, mpcComputationClient, } from '@usecapsule/core-sdk'; | ||
@@ -17,0 +17,0 @@ /* eslint-disable no-restricted-globals */ |
@@ -11,3 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { getPortalBaseURL } from '@usecapsule/core-sdk'; | ||
import { handleMessage } from './worker'; | ||
import { handleMessage } from './worker.js'; | ||
export function setupWorker(ctx, resFunction) { | ||
@@ -14,0 +14,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@usecapsule/web-sdk", | ||
"version": "1.8.0-dev.3", | ||
"version": "1.8.0", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
@@ -10,4 +11,4 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@usecapsule/core-sdk": "1.7.0-dev.3", | ||
"@usecapsule/user-management-client": "1.4.0", | ||
"@usecapsule/core-sdk": "1.7.0", | ||
"@usecapsule/user-management-client": "1.4.1", | ||
"assert": "^2.1.0", | ||
@@ -35,3 +36,3 @@ "base64url": "3.0.1", | ||
], | ||
"gitHead": "10ecce9873131e6a1b114fb0642a94bb02040bef" | ||
"gitHead": "c24680c3434c791c2bde2b060fb91087daf6182e" | ||
} |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
89511
34
1565
1
Yes
+ Added@usecapsule/core-sdk@1.7.0(transitive)
+ Added@usecapsule/user-management-client@1.4.1(transitive)
- Removed@usecapsule/core-sdk@1.7.0-dev.3(transitive)
- Removed@usecapsule/user-management-client@1.4.0(transitive)
Updated@usecapsule/core-sdk@1.7.0