Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@usecapsule/web-sdk

Package Overview
Dependencies
Maintainers
7
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/web-sdk - npm Package Compare versions

Comparing version 1.8.0-dev.3 to 1.8.0

dist/utils/truncateEthAddress.d.ts

2

dist/CapsuleWeb.d.ts
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc