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
0
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 2.2.4 to 2.2.5

37

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

@@ -233,3 +233,3 @@ 'use strict';

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -378,2 +378,8 @@ }

}
class PermissionDeniedError extends WebrpcError {
constructor(name = 'PermissionDenied', code = 1001, message = 'Permission denied', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, PermissionDeniedError.prototype);
}
}
class SessionExpiredError extends WebrpcError {

@@ -385,2 +391,14 @@ constructor(name = 'SessionExpired', code = 1002, message = 'Session expired', status = 0, cause) {

}
class MethodNotFoundError extends WebrpcError {
constructor(name = 'MethodNotFound', code = 1003, message = 'Method not found', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, MethodNotFoundError.prototype);
}
}
class RequestConflictError extends WebrpcError {
constructor(name = 'RequestConflict', code = 1004, message = 'Conflict with target resource', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RequestConflictError.prototype);
}
}
class AbortedError extends WebrpcError {

@@ -392,2 +410,14 @@ constructor(name = 'Aborted', code = 1005, message = 'Request aborted', status = 0, cause) {

}
class GeoblockedError extends WebrpcError {
constructor(name = 'Geoblocked', code = 1006, message = 'Geoblocked region', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, GeoblockedError.prototype);
}
}
class RateLimitedError extends WebrpcError {
constructor(name = 'RateLimited', code = 1007, message = 'Rate-limited. Please slow down.', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RateLimitedError.prototype);
}
}
class InvalidArgumentError extends WebrpcError {

@@ -436,4 +466,9 @@ constructor(name = 'InvalidArgument', code = 2001, message = 'Invalid argument', status = 0, cause) {

[1000]: UnauthorizedError,
[1001]: PermissionDeniedError,
[1002]: SessionExpiredError,
[1003]: MethodNotFoundError,
[1004]: RequestConflictError,
[1005]: AbortedError,
[1006]: GeoblockedError,
[1007]: RateLimitedError,
[2001]: InvalidArgumentError,

@@ -440,0 +475,0 @@ [2002]: UnavailableError,

@@ -233,3 +233,3 @@ 'use strict';

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -378,2 +378,8 @@ }

}
class PermissionDeniedError extends WebrpcError {
constructor(name = 'PermissionDenied', code = 1001, message = 'Permission denied', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, PermissionDeniedError.prototype);
}
}
class SessionExpiredError extends WebrpcError {

@@ -385,2 +391,14 @@ constructor(name = 'SessionExpired', code = 1002, message = 'Session expired', status = 0, cause) {

}
class MethodNotFoundError extends WebrpcError {
constructor(name = 'MethodNotFound', code = 1003, message = 'Method not found', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, MethodNotFoundError.prototype);
}
}
class RequestConflictError extends WebrpcError {
constructor(name = 'RequestConflict', code = 1004, message = 'Conflict with target resource', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RequestConflictError.prototype);
}
}
class AbortedError extends WebrpcError {

@@ -392,2 +410,14 @@ constructor(name = 'Aborted', code = 1005, message = 'Request aborted', status = 0, cause) {

}
class GeoblockedError extends WebrpcError {
constructor(name = 'Geoblocked', code = 1006, message = 'Geoblocked region', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, GeoblockedError.prototype);
}
}
class RateLimitedError extends WebrpcError {
constructor(name = 'RateLimited', code = 1007, message = 'Rate-limited. Please slow down.', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RateLimitedError.prototype);
}
}
class InvalidArgumentError extends WebrpcError {

@@ -436,4 +466,9 @@ constructor(name = 'InvalidArgument', code = 2001, message = 'Invalid argument', status = 0, cause) {

[1000]: UnauthorizedError,
[1001]: PermissionDeniedError,
[1002]: SessionExpiredError,
[1003]: MethodNotFoundError,
[1004]: RequestConflictError,
[1005]: AbortedError,
[1006]: GeoblockedError,
[1007]: RateLimitedError,
[2001]: InvalidArgumentError,

@@ -440,0 +475,0 @@ [2002]: UnavailableError,

@@ -229,3 +229,3 @@ import { commons, universal } from '@0xsequence/core';

};
this.hostname = hostname;
this.hostname = hostname.replace(/\/*$/, '');
this.fetch = (input, init) => fetch(input, init);

@@ -374,2 +374,8 @@ }

}
class PermissionDeniedError extends WebrpcError {
constructor(name = 'PermissionDenied', code = 1001, message = 'Permission denied', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, PermissionDeniedError.prototype);
}
}
class SessionExpiredError extends WebrpcError {

@@ -381,2 +387,14 @@ constructor(name = 'SessionExpired', code = 1002, message = 'Session expired', status = 0, cause) {

}
class MethodNotFoundError extends WebrpcError {
constructor(name = 'MethodNotFound', code = 1003, message = 'Method not found', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, MethodNotFoundError.prototype);
}
}
class RequestConflictError extends WebrpcError {
constructor(name = 'RequestConflict', code = 1004, message = 'Conflict with target resource', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RequestConflictError.prototype);
}
}
class AbortedError extends WebrpcError {

@@ -388,2 +406,14 @@ constructor(name = 'Aborted', code = 1005, message = 'Request aborted', status = 0, cause) {

}
class GeoblockedError extends WebrpcError {
constructor(name = 'Geoblocked', code = 1006, message = 'Geoblocked region', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, GeoblockedError.prototype);
}
}
class RateLimitedError extends WebrpcError {
constructor(name = 'RateLimited', code = 1007, message = 'Rate-limited. Please slow down.', status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, RateLimitedError.prototype);
}
}
class InvalidArgumentError extends WebrpcError {

@@ -432,4 +462,9 @@ constructor(name = 'InvalidArgument', code = 2001, message = 'Invalid argument', status = 0, cause) {

[1000]: UnauthorizedError,
[1001]: PermissionDeniedError,
[1002]: SessionExpiredError,
[1003]: MethodNotFoundError,
[1004]: RequestConflictError,
[1005]: AbortedError,
[1006]: GeoblockedError,
[1007]: RateLimitedError,
[2001]: InvalidArgumentError,

@@ -436,0 +471,0 @@ [2002]: UnavailableError,

export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.4.0";
export declare const WebRPCSchemaHash = "5b203e30a5c79b2b9a37483ce17500a51b94ebe1";
export declare const WebRPCSchemaHash = "d6b4a3c89539b494875af543fff459df65bb7b9e";
export interface Version {

@@ -236,8 +236,23 @@ webrpcVersion: string;

}
export declare class PermissionDeniedError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class SessionExpiredError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class MethodNotFoundError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class RequestConflictError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class AbortedError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class GeoblockedError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class RateLimitedError extends WebrpcError {
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
}
export declare class InvalidArgumentError extends WebrpcError {

@@ -271,4 +286,9 @@ constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);

Unauthorized = "Unauthorized",
PermissionDenied = "PermissionDenied",
SessionExpired = "SessionExpired",
MethodNotFound = "MethodNotFound",
RequestConflict = "RequestConflict",
Aborted = "Aborted",
Geoblocked = "Geoblocked",
RateLimited = "RateLimited",
InvalidArgument = "InvalidArgument",

@@ -275,0 +295,0 @@ Unavailable = "Unavailable",

10

package.json
{
"name": "@0xsequence/guard",
"version": "2.2.4",
"version": "2.2.5",
"description": "guard sub-package for Sequence",

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

"dependencies": {
"@0xsequence/core": "2.2.4",
"@0xsequence/utils": "2.2.4",
"@0xsequence/signhub": "2.2.4",
"@0xsequence/account": "2.2.4"
"@0xsequence/account": "2.2.5",
"@0xsequence/utils": "2.2.5",
"@0xsequence/core": "2.2.5",
"@0xsequence/signhub": "2.2.5"
},

@@ -21,0 +21,0 @@ "devDependencies": {

/* eslint-disable */
// sequence-guard v0.4.0 5b203e30a5c79b2b9a37483ce17500a51b94ebe1
// sequence-guard v0.4.0 d6b4a3c89539b494875af543fff459df65bb7b9e
// --
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
// Code generated by webrpc-gen@v0.20.3 with typescript generator. DO NOT EDIT.
//

@@ -15,3 +15,3 @@ // webrpc-gen -schema=guard.ridl -target=typescript -client -out=./clients/guard.gen.ts

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

@@ -212,3 +212,3 @@ //

constructor(hostname: string, fetch: Fetch) {
this.hostname = hostname
this.hostname = hostname.replace(/\/*$/, '')
this.fetch = (input: RequestInfo, init?: RequestInit) => fetch(input, init)

@@ -681,2 +681,15 @@ }

export class PermissionDeniedError extends WebrpcError {
constructor(
name: string = 'PermissionDenied',
code: number = 1001,
message: string = 'Permission denied',
status: number = 0,
cause?: string
) {
super(name, code, message, status, cause)
Object.setPrototypeOf(this, PermissionDeniedError.prototype)
}
}
export class SessionExpiredError extends WebrpcError {

@@ -695,2 +708,28 @@ constructor(

export class MethodNotFoundError extends WebrpcError {
constructor(
name: string = 'MethodNotFound',
code: number = 1003,
message: string = 'Method not found',
status: number = 0,
cause?: string
) {
super(name, code, message, status, cause)
Object.setPrototypeOf(this, MethodNotFoundError.prototype)
}
}
export class RequestConflictError extends WebrpcError {
constructor(
name: string = 'RequestConflict',
code: number = 1004,
message: string = 'Conflict with target resource',
status: number = 0,
cause?: string
) {
super(name, code, message, status, cause)
Object.setPrototypeOf(this, RequestConflictError.prototype)
}
}
export class AbortedError extends WebrpcError {

@@ -709,2 +748,28 @@ constructor(

export class GeoblockedError extends WebrpcError {
constructor(
name: string = 'Geoblocked',
code: number = 1006,
message: string = 'Geoblocked region',
status: number = 0,
cause?: string
) {
super(name, code, message, status, cause)
Object.setPrototypeOf(this, GeoblockedError.prototype)
}
}
export class RateLimitedError extends WebrpcError {
constructor(
name: string = 'RateLimited',
code: number = 1007,
message: string = 'Rate-limited. Please slow down.',
status: number = 0,
cause?: string
) {
super(name, code, message, status, cause)
Object.setPrototypeOf(this, RateLimitedError.prototype)
}
}
export class InvalidArgumentError extends WebrpcError {

@@ -788,4 +853,9 @@ constructor(

Unauthorized = 'Unauthorized',
PermissionDenied = 'PermissionDenied',
SessionExpired = 'SessionExpired',
MethodNotFound = 'MethodNotFound',
RequestConflict = 'RequestConflict',
Aborted = 'Aborted',
Geoblocked = 'Geoblocked',
RateLimited = 'RateLimited',
InvalidArgument = 'InvalidArgument',

@@ -811,4 +881,9 @@ Unavailable = 'Unavailable',

[1000]: UnauthorizedError,
[1001]: PermissionDeniedError,
[1002]: SessionExpiredError,
[1003]: MethodNotFoundError,
[1004]: RequestConflictError,
[1005]: AbortedError,
[1006]: GeoblockedError,
[1007]: RateLimitedError,
[2001]: InvalidArgumentError,

@@ -815,0 +890,0 @@ [2002]: UnavailableError,

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