New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/guard

Package Overview
Dependencies
Maintainers
6
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/guard - npm Package Compare versions

Comparing version 0.0.0-20240718140827 to 0.0.0-20240807210827

16

dist/0xsequence-guard.cjs.dev.js

@@ -115,2 +115,15 @@ 'use strict';

};
this.patch = (args, headers, signal) => {
return this.fetch(this.url('Patch'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
txs: _data.txs
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.authMethods = (args, headers, signal) => {

@@ -434,3 +447,3 @@ return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers, signal)).then(res => {

const fetch = typeof global === 'object' ? global.fetch : window.fetch;
const fetch = globalThis.fetch;
class GuardSigner {

@@ -699,2 +712,3 @@ constructor(address, url, appendSuffix = false) {

exports.AuthMethod = AuthMethod;
exports.Guard = Guard;
exports.GuardSigner = GuardSigner;

@@ -701,0 +715,0 @@ exports.getAuthUpdateProofTypedData = getAuthUpdateProofTypedData;

@@ -115,2 +115,15 @@ 'use strict';

};
this.patch = (args, headers, signal) => {
return this.fetch(this.url('Patch'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
txs: _data.txs
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.authMethods = (args, headers, signal) => {

@@ -434,3 +447,3 @@ return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers, signal)).then(res => {

const fetch = typeof global === 'object' ? global.fetch : window.fetch;
const fetch = globalThis.fetch;
class GuardSigner {

@@ -699,2 +712,3 @@ constructor(address, url, appendSuffix = false) {

exports.AuthMethod = AuthMethod;
exports.Guard = Guard;
exports.GuardSigner = GuardSigner;

@@ -701,0 +715,0 @@ exports.getAuthUpdateProofTypedData = getAuthUpdateProofTypedData;

@@ -111,2 +111,15 @@ import { commons, universal } from '@0xsequence/core';

};
this.patch = (args, headers, signal) => {
return this.fetch(this.url('Patch'), createHTTPRequest(args, headers, signal)).then(res => {
return buildResponse(res).then(_data => {
return {
txs: _data.txs
};
});
}, error => {
throw WebrpcRequestFailedError.new({
cause: `fetch(): ${error.message || ''}`
});
});
};
this.authMethods = (args, headers, signal) => {

@@ -430,3 +443,3 @@ return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers, signal)).then(res => {

const fetch = typeof global === 'object' ? global.fetch : window.fetch;
const fetch = globalThis.fetch;
class GuardSigner {

@@ -694,2 +707,2 @@ constructor(address, url, appendSuffix = false) {

export { AuthMethod, GuardSigner, getAuthUpdateProofTypedData, getOwnershipProofTypedData, isSignedOwnershipProof, signOwnershipProof };
export { AuthMethod, Guard, GuardSigner, getAuthUpdateProofTypedData, getOwnershipProofTypedData, isSignedOwnershipProof, signOwnershipProof };
export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "12059311f086716f467356ed38189f565d5f172a";
export declare const WebRPCSchemaHash = "5b203e30a5c79b2b9a37483ce17500a51b94ebe1";
export interface Version {

@@ -52,2 +52,3 @@ webrpcVersion: string;

signWith(args: SignWithArgs, headers?: object, signal?: AbortSignal): Promise<SignWithReturn>;
patch(args: PatchArgs, headers?: object, signal?: AbortSignal): Promise<PatchReturn>;
authMethods(args: AuthMethodsArgs, headers?: object, signal?: AbortSignal): Promise<AuthMethodsReturn>;

@@ -99,2 +100,10 @@ setPIN(args: SetPINArgs, headers?: object, signal?: AbortSignal): Promise<SetPINReturn>;

}
export interface PatchArgs {
signer: string;
chainId: number;
secret: string;
}
export interface PatchReturn {
txs: any;
}
export interface AuthMethodsArgs {

@@ -171,2 +180,3 @@ proof?: OwnershipProof;

signWith: (args: SignWithArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SignWithReturn>;
patch: (args: PatchArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<PatchReturn>;
authMethods: (args: AuthMethodsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AuthMethodsReturn>;

@@ -173,0 +183,0 @@ setPIN: (args: SetPINArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<SetPINReturn>;

@@ -0,1 +1,2 @@

export { Guard } from "./guard.gen.js";
export * from "./signer.js";

10

package.json
{
"name": "@0xsequence/guard",
"version": "0.0.0-20240718140827",
"version": "0.0.0-20240807210827",
"description": "guard sub-package for Sequence",

@@ -13,6 +13,6 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/guard",

"ethers": "^5.7.2",
"@0xsequence/account": "0.0.0-20240718140827",
"@0xsequence/core": "0.0.0-20240718140827",
"@0xsequence/signhub": "0.0.0-20240718140827",
"@0xsequence/utils": "0.0.0-20240718140827"
"@0xsequence/account": "0.0.0-20240807210827",
"@0xsequence/core": "0.0.0-20240807210827",
"@0xsequence/signhub": "0.0.0-20240807210827",
"@0xsequence/utils": "0.0.0-20240807210827"
},

@@ -19,0 +19,0 @@ "files": [

/* eslint-disable */
// sequence-guard v0.4.0 12059311f086716f467356ed38189f565d5f172a
// sequence-guard v0.4.0 5b203e30a5c79b2b9a37483ce17500a51b94ebe1
// --

@@ -15,3 +15,3 @@ // Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = '12059311f086716f467356ed38189f565d5f172a'
export const WebRPCSchemaHash = '5b203e30a5c79b2b9a37483ce17500a51b94ebe1'

@@ -78,2 +78,3 @@ //

signWith(args: SignWithArgs, headers?: object, signal?: AbortSignal): Promise<SignWithReturn>
patch(args: PatchArgs, headers?: object, signal?: AbortSignal): Promise<PatchReturn>
authMethods(args: AuthMethodsArgs, headers?: object, signal?: AbortSignal): Promise<AuthMethodsReturn>

@@ -129,2 +130,11 @@ setPIN(args: SetPINArgs, headers?: object, signal?: AbortSignal): Promise<SetPINReturn>

}
export interface PatchArgs {
signer: string
chainId: number
secret: string
}
export interface PatchReturn {
txs: any
}
export interface AuthMethodsArgs {

@@ -302,2 +312,17 @@ proof?: OwnershipProof

patch = (args: PatchArgs, headers?: object, signal?: AbortSignal): Promise<PatchReturn> => {
return this.fetch(this.url('Patch'), createHTTPRequest(args, headers, signal)).then(
res => {
return buildResponse(res).then(_data => {
return {
txs: <any>_data.txs
}
})
},
error => {
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
}
)
}
authMethods = (args: AuthMethodsArgs, headers?: object, signal?: AbortSignal): Promise<AuthMethodsReturn> => {

@@ -304,0 +329,0 @@ return this.fetch(this.url('AuthMethods'), createHTTPRequest(args, headers, signal)).then(

@@ -0,1 +1,2 @@

export { Guard } from './guard.gen'
export * from './signer'

@@ -8,3 +8,3 @@ import { Account } from '@0xsequence/account'

const fetch = typeof global === 'object' ? global.fetch : window.fetch
const fetch = globalThis.fetch

@@ -11,0 +11,0 @@ export class GuardSigner implements signers.SapientSigner {

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