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

@magic-sdk/types

Package Overview
Dependencies
Maintainers
23
Versions
560
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 11.2.0 to 11.3.0

22

CHANGELOG.md

@@ -0,1 +1,23 @@

# v11.3.0 (Wed Feb 15 2023)
#### ๐Ÿš€ Enhancement
- Update Package versions [#454](https://github.com/magiclabs/magic-js/pull/454) ([@Ariflo](https://github.com/Ariflo))
- Add updatePhoneNumber sdk method [#450](https://github.com/magiclabs/magic-js/pull/450) ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic))
#### ๐Ÿ› Bug Fix
- Update Package versions ([@Ariflo](https://github.com/Ariflo))
- Updates PR Template warning about one label [#453](https://github.com/magiclabs/magic-js/pull/453) ([@Ariflo](https://github.com/Ariflo))
- removed arguments for updatePhoneNumber method ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic))
- changed name from updateSms to updatePhoneNumber ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic))
- added update sms sdk method ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic))
#### Authors: 2
- Arian Flores ([@Ariflo](https://github.com/Ariflo))
- Mushfi Chowdhury ([@mushfichowdhury-magic](https://github.com/mushfichowdhury-magic))
---
# v11.2.0 (Thu Feb 09 2023)

@@ -2,0 +24,0 @@

2

dist/cjs/index.js

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

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

@@ -69,3 +69,5 @@ import { RPCErrorCode } from './exception-types';

RequestUserInfoWithUI = "mc_request_user_info",
Disconnect = "mc_disconnect"
Disconnect = "mc_disconnect",
UpdatePhoneNumber = "magic_auth_update_phone_number",
UpdatePhoneNumberTestMode = "magic_auth_update_phone_number_testing_mode"
}
{
"name": "@magic-sdk/types",
"version": "11.2.0",
"version": "11.3.0",
"description": "Core typings for Magic SDK packages.",

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

},
"gitHead": "1c4c72cf1354c6177c3764144bd121a051a2f0c1"
"gitHead": "b47d6e0f3679e61fc9b87e5b9bd72c9fc0120249"
}

@@ -10,3 +10,3 @@ # โœจ Magic JavaScript SDK Types

<a href="https://github.com/magiclabs/magic-js/blob/master/packages/@magic-sdk/types/CHANGELOG.md">Changelog</a> ยท
<a href="https://github.com/magiclabs/magic-js/blob/master/CONTRIBUTING.md">Contributing Guide</a>
<a href="https://github.com/magiclabs/magic-js/blob/master/CONTRIBUTING.md ">Contributing Guide</a>
</p>

@@ -13,0 +13,0 @@

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