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

@magic-sdk/types

Package Overview
Dependencies
Maintainers
22
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-sdk/types - npm Package Compare versions

Comparing version 8.1.0 to 9.0.0

24

CHANGELOG.md

@@ -0,1 +1,25 @@

# v9.0.0 (Wed Sep 28 2022)
#### 💥 Breaking Change
- drop legacy testnet support [#364](https://github.com/magiclabs/magic-js/pull/364) ([@harryEth](https://github.com/harryEth))
#### Authors: 1
- [@harryEth](https://github.com/harryEth)
---
# v8.1.0 (Tue Sep 27 2022)
#### 🚀 Enhancement
- Harryxue sc 61854 m2 magic sdk support goerli testnet and release [#362](https://github.com/magiclabs/magic-js/pull/362) ([@harryEth](https://github.com/harryEth))
#### Authors: 1
- [@harryEth](https://github.com/harryEth)
---
# v8.0.0 (Fri Aug 05 2022)

@@ -2,0 +26,0 @@

2

dist/cjs/index.js

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

var p=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=i=>p(i,"__esModule",{value:!0});var L=(i,n)=>{for(var s in n)p(i,s,{get:n[s],enumerable:!0})},x=(i,n,s,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of E(n))!N.call(i,_)&&(s||_!=="default")&&p(i,_,{get:()=>n[_],enumerable:!(o=A(n,_))||o.enumerable});return i};var f=(i=>(n,s)=>i&&i.get(n)||(s=x(R({}),n,1),i&&i.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var O={};L(O,{EthChainType:()=>T,MagicIncomingWindowMessage:()=>c,MagicOutgoingWindowMessage:()=>I,MagicPayloadMethod:()=>r,RPCErrorCode:()=>l,SDKErrorCode:()=>u,SDKWarningCode:()=>g});var u=(a=>(a.MissingApiKey="MISSING_API_KEY",a.ModalNotReady="MODAL_NOT_READY",a.MalformedResponse="MALFORMED_RESPONSE",a.InvalidArgument="INVALID_ARGUMENT",a.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",a.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",a))(u||{}),g=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(g||{}),l=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e))(l||{});var r=(t=>(t.LoginWithSms="magic_auth_login_with_sms",t.LoginWithEmailOTP="magic_auth_login_with_email_otp",t.LoginWithMagicLink="magic_auth_login_with_magic_link",t.LoginWithCredential="magic_auth_login_with_credential",t.GetIdToken="magic_auth_get_id_token",t.GenerateIdToken="magic_auth_generate_id_token",t.GetMetadata="magic_auth_get_metadata",t.IsLoggedIn="magic_auth_is_logged_in",t.Logout="magic_auth_logout",t.UpdateEmail="magic_auth_update_email",t.UserSettings="magic_auth_settings",t.UserSettingsTestMode="magic_auth_settings_testing_mode",t.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",t.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",t.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",t.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",t.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",t.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",t.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",t.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",t.LogoutTestMode="magic_auth_logout_testing_mode",t.UpdateEmailTestMode="magic_auth_update_email_testing_mode",t))(r||{});var c=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m))(c||{}),I=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(I||{});var T=(n=>(n.Harmony="HARMONY",n))(T||{});module.exports=f(O);
var p=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=i=>p(i,"__esModule",{value:!0});var L=(i,n)=>{for(var s in n)p(i,s,{get:n[s],enumerable:!0})},x=(i,n,s,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of E(n))!N.call(i,_)&&(s||_!=="default")&&p(i,_,{get:()=>n[_],enumerable:!(u=A(n,_))||u.enumerable});return i};var f=(i=>(n,s)=>i&&i.get(n)||(s=x(R({}),n,1),i&&i.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var O={};L(O,{EthChainType:()=>T,MagicIncomingWindowMessage:()=>c,MagicOutgoingWindowMessage:()=>I,MagicPayloadMethod:()=>r,RPCErrorCode:()=>l,SDKErrorCode:()=>g,SDKWarningCode:()=>o});var g=(a=>(a.MissingApiKey="MISSING_API_KEY",a.ModalNotReady="MODAL_NOT_READY",a.MalformedResponse="MALFORMED_RESPONSE",a.InvalidArgument="INVALID_ARGUMENT",a.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",a.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",a))(g||{}),o=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(o||{}),l=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e))(l||{});var r=(t=>(t.LoginWithSms="magic_auth_login_with_sms",t.LoginWithEmailOTP="magic_auth_login_with_email_otp",t.LoginWithMagicLink="magic_auth_login_with_magic_link",t.LoginWithCredential="magic_auth_login_with_credential",t.GetIdToken="magic_auth_get_id_token",t.GenerateIdToken="magic_auth_generate_id_token",t.GetMetadata="magic_auth_get_metadata",t.IsLoggedIn="magic_auth_is_logged_in",t.Logout="magic_auth_logout",t.UpdateEmail="magic_auth_update_email",t.UserSettings="magic_auth_settings",t.UserSettingsTestMode="magic_auth_settings_testing_mode",t.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",t.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",t.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",t.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",t.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",t.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",t.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",t.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",t.LogoutTestMode="magic_auth_logout_testing_mode",t.UpdateEmailTestMode="magic_auth_update_email_testing_mode",t))(r||{});var c=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m))(c||{}),I=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(I||{});var T=(n=>(n.Harmony="HARMONY",n))(T||{});module.exports=f(O);
//# sourceMappingURL=index.js.map

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

var a=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(a||{}),m=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(m||{}),p=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e))(p||{});var o=(t=>(t.LoginWithSms="magic_auth_login_with_sms",t.LoginWithEmailOTP="magic_auth_login_with_email_otp",t.LoginWithMagicLink="magic_auth_login_with_magic_link",t.LoginWithCredential="magic_auth_login_with_credential",t.GetIdToken="magic_auth_get_id_token",t.GenerateIdToken="magic_auth_generate_id_token",t.GetMetadata="magic_auth_get_metadata",t.IsLoggedIn="magic_auth_is_logged_in",t.Logout="magic_auth_logout",t.UpdateEmail="magic_auth_update_email",t.UserSettings="magic_auth_settings",t.UserSettingsTestMode="magic_auth_settings_testing_mode",t.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",t.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",t.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",t.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",t.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",t.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",t.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",t.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",t.LogoutTestMode="magic_auth_logout_testing_mode",t.UpdateEmailTestMode="magic_auth_update_email_testing_mode",t))(o||{});var u=(i=>(i.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",i.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",i.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",i.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",i.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",i))(u||{}),g=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s))(g||{});var l=(s=>(s.Harmony="HARMONY",s))(l||{});export{l as EthChainType,u as MagicIncomingWindowMessage,g as MagicOutgoingWindowMessage,o as MagicPayloadMethod,p as RPCErrorCode,a as SDKErrorCode,m as SDKWarningCode};
var a=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(a||{}),m=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(m||{}),p=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e))(p||{});var u=(t=>(t.LoginWithSms="magic_auth_login_with_sms",t.LoginWithEmailOTP="magic_auth_login_with_email_otp",t.LoginWithMagicLink="magic_auth_login_with_magic_link",t.LoginWithCredential="magic_auth_login_with_credential",t.GetIdToken="magic_auth_get_id_token",t.GenerateIdToken="magic_auth_generate_id_token",t.GetMetadata="magic_auth_get_metadata",t.IsLoggedIn="magic_auth_is_logged_in",t.Logout="magic_auth_logout",t.UpdateEmail="magic_auth_update_email",t.UserSettings="magic_auth_settings",t.UserSettingsTestMode="magic_auth_settings_testing_mode",t.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",t.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",t.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",t.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",t.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",t.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",t.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",t.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",t.LogoutTestMode="magic_auth_logout_testing_mode",t.UpdateEmailTestMode="magic_auth_update_email_testing_mode",t))(u||{});var g=(i=>(i.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",i.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",i.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",i.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",i.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",i))(g||{}),o=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s))(o||{});var l=(s=>(s.Harmony="HARMONY",s))(l||{});export{l as EthChainType,g as MagicIncomingWindowMessage,o as MagicOutgoingWindowMessage,u as MagicPayloadMethod,p as RPCErrorCode,a as SDKErrorCode,m as SDKWarningCode};
//# sourceMappingURL=index.js.map

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

export declare type EthNetworkName = 'mainnet' | 'goerli' | 'rinkeby' | 'ropsten' | 'kovan';
export declare type EthNetworkName = 'mainnet' | 'goerli';
export declare enum EthChainType {

@@ -3,0 +3,0 @@ Harmony = "HARMONY"

{
"name": "@magic-sdk/types",
"version": "8.1.0",
"version": "9.0.0",
"description": "Core typings for Magic SDK packages.",

@@ -23,3 +23,3 @@ "author": "Magic Labs <team@magic.link> (https://magic.link/)",

},
"gitHead": "1ef062ea699d48d5e9a9375a93b7c147632b05ca"
"gitHead": "000a2a4fd91b5d94a0a31bf0ebb0f11983abcad0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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