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

@magic-sdk/types

Package Overview
Dependencies
Maintainers
15
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 7.1.0 to 7.1.1

12

CHANGELOG.md

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

# v7.1.1 (Wed Apr 20 2022)
#### 🐛 Bug Fix
- [Chore]: added `loginWithEmailOTP` method [#302](https://github.com/magiclabs/magic-js/pull/302) ([@adenekan41](https://github.com/adenekan41))
#### Authors: 1
- Adenekan Wonderful ([@adenekan41](https://github.com/adenekan41))
---
# v7.1.0 (Mon Mar 07 2022)

@@ -2,0 +14,0 @@

2

dist/cjs/index.js

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

var m=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var R=i=>m(i,"__esModule",{value:!0});var L=(i,n)=>{for(var s in n)m(i,s,{get:n[s],enumerable:!0})},x=(i,n,s,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of N(n))!T.call(i,_)&&(s||_!=="default")&&m(i,_,{get:()=>n[_],enumerable:!(u=E(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:()=>A,MagicIncomingWindowMessage:()=>c,MagicOutgoingWindowMessage:()=>I,MagicPayloadMethod:()=>r,RPCErrorCode:()=>l,SDKErrorCode:()=>o,SDKWarningCode:()=>g});var o=(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))(o||{}),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.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.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=(p=>(p.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",p.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",p.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",p.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",p.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",p))(c||{}),I=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(I||{});var A=(n=>(n.Harmony="HARMONY",n))(A||{});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,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);
//# 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||{}),p=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(p||{}),m=(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))(m||{});var u=(t=>(t.LoginWithSms="magic_auth_login_with_sms",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.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 o=(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))(o||{}),g=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s))(g||{});var l=(s=>(s.Harmony="HARMONY",s))(l||{});export{l as EthChainType,o as MagicIncomingWindowMessage,g as MagicOutgoingWindowMessage,u as MagicPayloadMethod,m as RPCErrorCode,a as SDKErrorCode,p 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 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};
//# sourceMappingURL=index.js.map

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

LoginWithSms = "magic_auth_login_with_sms",
LoginWithEmailOTP = "magic_auth_login_with_email_otp",
LoginWithMagicLink = "magic_auth_login_with_magic_link",

@@ -44,2 +45,3 @@ LoginWithCredential = "magic_auth_login_with_credential",

LoginWithSmsTestMode = "magic_auth_login_with_sms_testing_mode",
LoginWithEmailOTPTestMode = "magic_auth_login_with_email_otp_testing_mode",
LoginWithMagicLinkTestMode = "magic_login_with_magic_link_testing_mode",

@@ -46,0 +48,0 @@ LoginWithCredentialTestMode = "magic_auth_login_with_credential_testing_mode",

@@ -21,3 +21,12 @@ export interface LoginWithMagicLinkConfiguration {

export interface LoginWithSmsConfiguration {
/**
* Specify the phone number of the user attempting to login.
*/
phoneNumber: string;
}
export interface LoginWithEmailOTPConfiguration {
/**
* Specify the email address of the user attempting to login.
*/
email: string;
}
{
"name": "@magic-sdk/types",
"version": "7.1.0",
"version": "7.1.1",
"description": "Core typings for Magic SDK packages.",

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

},
"gitHead": "6aa5a25b33865cfe27444ca6094efade16a82f9f"
"gitHead": "376264068d4f5a2c5a61ac131a3c2e0bc2bef101"
}

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