@magic-ext/farcaster
Advanced tools
Comparing version 0.18.1-canary.841.12056364270.0 to 0.18.1-canary.841.12056983318.0
@@ -1,2 +0,2 @@ | ||
"use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var r in e)a(n,r,{get:e[r],enumerable:!0})},v=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!f.call(n,t)&&t!==r&&a(n,t,{get:()=>e[t],enumerable:!(o=g(e,t))||o.enumerable});return n};var m=n=>v(a({},"__esModule",{value:!0}),n);var w={};h(w,{FarcasterExtension:()=>l,isMobile:()=>i});module.exports=m(w);var u=require("@magic-sdk/commons");function C(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function b(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function x(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function A(){return b()||x()}function i(){return C()||A()}function s(){return typeof window!="undefined"&&window===window.top}var E=!0;var l=class extends u.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:E,domain:window.location.origin,isMobile:i(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",d=>{i()&&s()&&(window.location.href=d.url)}),t}}}; | ||
"use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var r in e)a(n,r,{get:e[r],enumerable:!0})},v=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!f.call(n,t)&&t!==r&&a(n,t,{get:()=>e[t],enumerable:!(o=g(e,t))||o.enumerable});return n};var m=n=>v(a({},"__esModule",{value:!0}),n);var w={};h(w,{FarcasterExtension:()=>l,isMobile:()=>i});module.exports=m(w);var d=require("@magic-sdk/commons");function C(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function b(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function x(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function A(){return b()||x()}function i(){return C()||A()}function s(){return typeof window!="undefined"&&window===window.top}var E=!0;var l=class extends d.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:E,domain:window.location.origin,isMobile:i(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",u=>{console.log("channel from res",u),i()&&s()&&(window.location.href=u.url)}),t}}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var r in e)a(n,r,{get:e[r],enumerable:!0})},v=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!f.call(n,t)&&t!==r&&a(n,t,{get:()=>e[t],enumerable:!(o=g(e,t))||o.enumerable});return n};var m=n=>v(a({},"__esModule",{value:!0}),n);var w={};h(w,{FarcasterExtension:()=>l,isMobile:()=>i});module.exports=m(w);var u=require("@magic-sdk/commons");function C(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function b(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function x(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function A(){return b()||x()}function i(){return C()||A()}function s(){return typeof window!="undefined"&&window===window.top}var E=!0;var l=class extends u.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:E,domain:window.location.origin,isMobile:i(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",d=>{i()&&s()&&(window.location.href=d.url)}),t}}}; | ||
"use strict";var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var r in e)a(n,r,{get:e[r],enumerable:!0})},v=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!f.call(n,t)&&t!==r&&a(n,t,{get:()=>e[t],enumerable:!(o=g(e,t))||o.enumerable});return n};var m=n=>v(a({},"__esModule",{value:!0}),n);var w={};h(w,{FarcasterExtension:()=>l,isMobile:()=>i});module.exports=m(w);var d=require("@magic-sdk/commons");function C(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function b(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function x(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function A(){return b()||x()}function i(){return C()||A()}function s(){return typeof window!="undefined"&&window===window.top}var E=!0;var l=class extends d.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:E,domain:window.location.origin,isMobile:i(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",u=>{console.log("channel from res",u),i()&&s()&&(window.location.href=u.url)}),t}}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Extension as g}from"@magic-sdk/commons";function l(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function c(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function u(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function d(){return c()||u()}function n(){return l()||d()}function r(){return typeof window!="undefined"&&window===window.top}var p=!0;var i=class extends g.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=e=>{var o;let a=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(o=e==null?void 0:e.showUI)!=null?o:p,domain:window.location.origin,isMobile:n(),isMainFrame:r()}}]),t=this.request(a);return t.on("channel",s=>{n()&&r()&&(window.location.href=s.url)}),t}}};export{i as FarcasterExtension,n as isMobile}; | ||
import{Extension as g}from"@magic-sdk/commons";function l(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function c(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function u(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function d(){return c()||u()}function n(){return l()||d()}function r(){return typeof window!="undefined"&&window===window.top}var p=!0;var a=class extends g.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=e=>{var o;let s=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(o=e==null?void 0:e.showUI)!=null?o:p,domain:window.location.origin,isMobile:n(),isMainFrame:r()}}]),t=this.request(s);return t.on("channel",i=>{console.log("channel from res",i),n()&&r()&&(window.location.href=i.url)}),t}}};export{a as FarcasterExtension,n as isMobile}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var MagicFarcasterExtension=(()=>{var h=Object.create;var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var x=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),A=(e,n)=>{for(var r in n)i(e,r,{get:n[r],enumerable:!0})},u=(e,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of m(n))!b.call(e,t)&&t!==r&&i(e,t,{get:()=>n[t],enumerable:!(o=v(n,t))||o.enumerable});return e};var E=(e,n,r)=>(r=e!=null?h(C(e)):{},u(n||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>u(i({},"__esModule",{value:!0}),e);var g=x((S,d)=>{d.exports=Magic});var P={};A(P,{FarcasterExtension:()=>l,isMobile:()=>a});var p=E(g());function I(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function R(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function y(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function F(){return R()||y()}function a(){return I()||F()}function s(){return typeof window!="undefined"&&window===window.top}var O=!0;var l=class extends p.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:O,domain:window.location.origin,isMobile:a(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",f=>{a()&&s()&&(window.location.href=f.url)}),t}}};return w(P);})(); | ||
"use strict";var MagicFarcasterExtension=(()=>{var h=Object.create;var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var x=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),A=(e,n)=>{for(var r in n)i(e,r,{get:n[r],enumerable:!0})},d=(e,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of m(n))!b.call(e,t)&&t!==r&&i(e,t,{get:()=>n[t],enumerable:!(o=v(n,t))||o.enumerable});return e};var E=(e,n,r)=>(r=e!=null?h(C(e)):{},d(n||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>d(i({},"__esModule",{value:!0}),e);var p=x((S,g)=>{g.exports=Magic});var P={};A(P,{FarcasterExtension:()=>l,isMobile:()=>a});var f=E(p());function I(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function R(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function y(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function F(){return R()||y()}function a(){return I()||F()}function s(){return typeof window!="undefined"&&window===window.top}var O=!0;var l=class extends f.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=r=>{var c;let o=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(c=r==null?void 0:r.showUI)!=null?c:O,domain:window.location.origin,isMobile:a(),isMainFrame:s()}}]),t=this.request(o);return t.on("channel",u=>{console.log("channel from res",u),a()&&s()&&(window.location.href=u.url)}),t}}};return w(P);})(); | ||
if (MagicFarcasterExtension && MagicFarcasterExtension.default != null) { MagicFarcasterExtension = Object.assign(MagicFarcasterExtension.default, MagicFarcasterExtension); delete MagicFarcasterExtension.default; } |
{ | ||
"name": "@magic-ext/farcaster", | ||
"version": "0.18.1-canary.841.12056364270.0", | ||
"version": "0.18.1-canary.841.12056983318.0", | ||
"description": "magic farcaster extension", | ||
@@ -31,5 +31,5 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
"devDependencies": { | ||
"@magic-sdk/commons": "24.18.1-canary.841.12056364270.0" | ||
"@magic-sdk/commons": "24.18.1-canary.841.12056983318.0" | ||
}, | ||
"gitHead": "6e030915d50d24cfd2b79aaf6f9861e67df57d30" | ||
"gitHead": "8b315490ee0c9175e112746b450e19a43311eb19" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34852