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

@greymass/account-creation

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greymass/account-creation - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

6

lib/account-creation.d.ts
/**
* @greymass/account-creation v0.0.5
* @greymass/account-creation v0.0.6
* https://github.com/greymass/account-creation-lib

@@ -48,3 +48,3 @@ *

}
declare type AccountCreationResponse = CallbackPayload | AccountCreationErrorResponse;
declare type AccountCreationResponse = CallbackPayload | undefined;

@@ -61,4 +61,4 @@ declare class AccountCreator {

createAccount(): Promise<AccountCreationResponse>;
closeDialog(): void;
cleanup(): void;
closeDialog(): void;
}

@@ -65,0 +65,0 @@

/**
* @greymass/account-creation v0.0.5
* @greymass/account-creation v0.0.6
* https://github.com/greymass/account-creation-lib

@@ -149,6 +149,4 @@ *

const listener = (event) => {
var _a;
window.removeEventListener('message', listener);
(_a = this.popupWindow) === null || _a === void 0 ? void 0 : _a.close();
this.cleanup();
this.closeDialog();
if (event.data.error) {

@@ -164,3 +162,3 @@ reject(event.data);

if (this.popupWindow && this.popupWindow.closed) {
this.cleanup();
this.closeDialog();
reject({ error: 'Popup window closed' });

@@ -172,2 +170,7 @@ }

}
closeDialog() {
var _a;
(_a = this.popupWindow) === null || _a === void 0 ? void 0 : _a.close();
this.cleanup();
}
cleanup() {

@@ -178,6 +181,2 @@ this.popupStatusInterval && clearInterval(this.popupStatusInterval);

}
closeDialog() {
var _a;
(_a = this.popupWindow) === null || _a === void 0 ? void 0 : _a.close();
}
}

@@ -184,0 +183,0 @@

/**
* @greymass/account-creation v0.0.5
* @greymass/account-creation v0.0.6
* https://github.com/greymass/account-creation-lib

@@ -145,4 +145,3 @@ *

window.removeEventListener('message', listener);
this.popupWindow?.close();
this.cleanup();
this.closeDialog();
if (event.data.error) {

@@ -158,3 +157,3 @@ reject(event.data);

if (this.popupWindow && this.popupWindow.closed) {
this.cleanup();
this.closeDialog();
reject({ error: 'Popup window closed' });

@@ -165,2 +164,6 @@ }

}
closeDialog() {
this.popupWindow?.close();
this.cleanup();
}
cleanup() {

@@ -171,5 +174,2 @@ this.popupStatusInterval && clearInterval(this.popupStatusInterval);

}
closeDialog() {
this.popupWindow?.close();
}
}

@@ -176,0 +176,0 @@

{
"name": "@greymass/account-creation",
"description": "An account creation library for EOSIO chains that leverages Anchor.",
"version": "0.0.5",
"version": "0.0.6",
"homepage": "https://github.com/greymass/account-creation-lib",

@@ -6,0 +6,0 @@ "license": "BSD-3-Clause",

@@ -33,3 +33,5 @@ Account Creation Library

// Open a popup window prompting the user to create an account.
const creationResult = await accountCreator.createAccount()
const creationResult = await accountCreator.createAccount().catch(({ error }) => {
// Handle error
})

@@ -36,0 +38,0 @@ console.log(creationResult);

@@ -50,6 +50,4 @@ import { Name } from '@greymass/eosio'

window.removeEventListener('message', listener)
this.popupWindow?.close()
this.closeDialog()
this.cleanup()
if (event.data.error) {

@@ -65,3 +63,3 @@ reject(event.data)

if (this.popupWindow && this.popupWindow.closed) {
this.cleanup()
this.closeDialog()

@@ -74,2 +72,8 @@ reject({ error: 'Popup window closed' })

closeDialog() {
this.popupWindow?.close()
this.cleanup()
}
cleanup() {

@@ -80,6 +84,2 @@ this.popupStatusInterval && clearInterval(this.popupStatusInterval)

}
closeDialog() {
this.popupWindow?.close()
}
}

@@ -15,2 +15,2 @@ import { NameType } from '@greymass/eosio'

export type AccountCreationResponse = CallbackPayload | AccountCreationErrorResponse
export type AccountCreationResponse = CallbackPayload | undefined

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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