New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@magic-ext/farcaster

Package Overview
Dependencies
Maintainers
0
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-ext/farcaster - npm Package Compare versions

Comparing version 0.18.1-canary.841.12038986507.0 to 0.18.1-canary.841.12039007622.0

2

./dist/cjs/index.js

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

"use strict";var u=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var E=(r,n)=>{for(var e in n)u(r,e,{get:n[e],enumerable:!0})},m=(r,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of v(n))!C.call(r,t)&&t!==e&&u(r,t,{get:()=>n[t],enumerable:!(o=w(n,t))||o.enumerable});return r};var b=r=>m(u({},"__esModule",{value:!0}),r);var p=(r,n,e)=>new Promise((o,t)=>{var c=a=>{try{i(e.next(a))}catch(d){t(d)}},l=a=>{try{i(e.throw(a))}catch(d){t(d)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(c,l);i((e=e.apply(r,n)).next())});var S={};E(S,{FarcasterExtension:()=>g,isMobile:()=>s});module.exports=b(S);var f=require("@magic-sdk/commons");function A(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function y(){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 R(){return y()||x()}function s(){return A()||R()}function h(){return typeof window!="undefined"&&window===window.top}var I=!0;var O="https://relay.farcaster.xyz",g=class extends f.Extension.Internal{constructor(){super();this.name="farcaster";this.config={};this.login=e=>p(this,null,function*(){var i;let o=yield fetch(`${O}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let c=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=e==null?void 0:e.showUI)!=null?i:I,domain:window.location.origin,isMobile:s(),channel:t}}]),l=this.request(c);return s()&&h()&&(window.location.href=t.url),l})}};
"use strict";var u=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var E=(r,n)=>{for(var e in n)u(r,e,{get:n[e],enumerable:!0})},m=(r,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of v(n))!C.call(r,t)&&t!==e&&u(r,t,{get:()=>n[t],enumerable:!(o=w(n,t))||o.enumerable});return r};var b=r=>m(u({},"__esModule",{value:!0}),r);var p=(r,n,e)=>new Promise((o,t)=>{var c=a=>{try{i(e.next(a))}catch(d){t(d)}},l=a=>{try{i(e.throw(a))}catch(d){t(d)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(c,l);i((e=e.apply(r,n)).next())});var S={};E(S,{FarcasterExtension:()=>g,isMobile:()=>s});module.exports=b(S);var f=require("@magic-sdk/commons");function A(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function y(){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 R(){return y()||x()}function s(){return A()||R()}function h(){return typeof window!="undefined"&&window===window.top}var I=!0;var O="https://relay.farcaster.xyz",g=class extends f.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=e=>p(this,null,function*(){var i;let o=yield fetch(`${O}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let c=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=e==null?void 0:e.showUI)!=null?i:I,domain:window.location.origin,isMobile:s(),channel:t}}]),l=this.request(c);return s()&&h()&&(window.location.href=t.url),l})}};
//# sourceMappingURL=index.js.map

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

"use strict";var u=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var E=(r,n)=>{for(var e in n)u(r,e,{get:n[e],enumerable:!0})},m=(r,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of v(n))!C.call(r,t)&&t!==e&&u(r,t,{get:()=>n[t],enumerable:!(o=w(n,t))||o.enumerable});return r};var b=r=>m(u({},"__esModule",{value:!0}),r);var p=(r,n,e)=>new Promise((o,t)=>{var c=a=>{try{i(e.next(a))}catch(d){t(d)}},l=a=>{try{i(e.throw(a))}catch(d){t(d)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(c,l);i((e=e.apply(r,n)).next())});var S={};E(S,{FarcasterExtension:()=>g,isMobile:()=>s});module.exports=b(S);var f=require("@magic-sdk/commons");function A(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function y(){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 R(){return y()||x()}function s(){return A()||R()}function h(){return typeof window!="undefined"&&window===window.top}var I=!0;var O="https://relay.farcaster.xyz",g=class extends f.Extension.Internal{constructor(){super();this.name="farcaster";this.config={};this.login=e=>p(this,null,function*(){var i;let o=yield fetch(`${O}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let c=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=e==null?void 0:e.showUI)!=null?i:I,domain:window.location.origin,isMobile:s(),channel:t}}]),l=this.request(c);return s()&&h()&&(window.location.href=t.url),l})}};
"use strict";var u=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var E=(r,n)=>{for(var e in n)u(r,e,{get:n[e],enumerable:!0})},m=(r,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of v(n))!C.call(r,t)&&t!==e&&u(r,t,{get:()=>n[t],enumerable:!(o=w(n,t))||o.enumerable});return r};var b=r=>m(u({},"__esModule",{value:!0}),r);var p=(r,n,e)=>new Promise((o,t)=>{var c=a=>{try{i(e.next(a))}catch(d){t(d)}},l=a=>{try{i(e.throw(a))}catch(d){t(d)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(c,l);i((e=e.apply(r,n)).next())});var S={};E(S,{FarcasterExtension:()=>g,isMobile:()=>s});module.exports=b(S);var f=require("@magic-sdk/commons");function A(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function y(){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 R(){return y()||x()}function s(){return A()||R()}function h(){return typeof window!="undefined"&&window===window.top}var I=!0;var O="https://relay.farcaster.xyz",g=class extends f.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=e=>p(this,null,function*(){var i;let o=yield fetch(`${O}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let c=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=e==null?void 0:e.showUI)!=null?i:I,domain:window.location.origin,isMobile:s(),channel:t}}]),l=this.request(c);return s()&&h()&&(window.location.href=t.url),l})}};
//# sourceMappingURL=index.js.map

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

var u=(l,d,e)=>new Promise((o,t)=>{var a=n=>{try{r(e.next(n))}catch(s){t(s)}},i=n=>{try{r(e.throw(n))}catch(s){t(s)}},r=n=>n.done?o(n.value):Promise.resolve(n.value).then(a,i);r((e=e.apply(l,d)).next())});import{Extension as C}from"@magic-sdk/commons";function h(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function f(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function w(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function v(){return f()||w()}function c(){return h()||v()}function g(){return typeof window!="undefined"&&window===window.top}var E=!0;var m="https://relay.farcaster.xyz",p=class extends C.Internal{constructor(){super();this.name="farcaster";this.config={};this.login=e=>u(this,null,function*(){var r;let o=yield fetch(`${m}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let a=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(r=e==null?void 0:e.showUI)!=null?r:E,domain:window.location.origin,isMobile:c(),channel:t}}]),i=this.request(a);return c()&&g()&&(window.location.href=t.url),i})}};export{p as FarcasterExtension,c as isMobile};
var u=(l,d,e)=>new Promise((o,t)=>{var a=n=>{try{r(e.next(n))}catch(s){t(s)}},i=n=>{try{r(e.throw(n))}catch(s){t(s)}},r=n=>n.done?o(n.value):Promise.resolve(n.value).then(a,i);r((e=e.apply(l,d)).next())});import{Extension as C}from"@magic-sdk/commons";function h(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function f(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function w(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function v(){return f()||w()}function c(){return h()||v()}function g(){return typeof window!="undefined"&&window===window.top}var E=!0;var m="https://relay.farcaster.xyz",p=class extends C.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=e=>u(this,null,function*(){var r;let o=yield fetch(`${m}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let t=yield o.json();if(!t)throw new Error("Channel not created yet.");let a=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(r=e==null?void 0:e.showUI)!=null?r:E,domain:window.location.origin,isMobile:c(),channel:t}}]),i=this.request(a);return c()&&g()&&(window.location.href=t.url),i})}};export{p as FarcasterExtension,c as isMobile};
//# sourceMappingURL=index.js.map

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

"use strict";var MagicFarcasterExtension=(()=>{var E=Object.create;var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var y=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),R=(e,n)=>{for(var t in n)s(e,t,{get:n[t],enumerable:!0})},p=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of b(n))!x.call(e,r)&&r!==t&&s(e,r,{get:()=>n[r],enumerable:!(o=m(n,r))||o.enumerable});return e};var I=(e,n,t)=>(t=e!=null?E(A(e)):{},p(n||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),O=e=>p(s({},"__esModule",{value:!0}),e);var h=(e,n,t)=>new Promise((o,r)=>{var l=a=>{try{i(t.next(a))}catch(u){r(u)}},d=a=>{try{i(t.throw(a))}catch(u){r(u)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(l,d);i((t=t.apply(e,n)).next())});var w=y((T,f)=>{f.exports=Magic});var H={};R(H,{FarcasterExtension:()=>g,isMobile:()=>c});var C=I(w());function S(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function F(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function L(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function P(){return F()||L()}function c(){return S()||P()}function v(){return typeof window!="undefined"&&window===window.top}var _=!0;var U="https://relay.farcaster.xyz",g=class extends C.Extension.Internal{constructor(){super();this.name="farcaster";this.config={};this.login=t=>h(this,null,function*(){var i;let o=yield fetch(`${U}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let r=yield o.json();if(!r)throw new Error("Channel not created yet.");let l=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=t==null?void 0:t.showUI)!=null?i:_,domain:window.location.origin,isMobile:c(),channel:r}}]),d=this.request(l);return c()&&v()&&(window.location.href=r.url),d})}};return O(H);})();
"use strict";var MagicFarcasterExtension=(()=>{var E=Object.create;var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var y=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),R=(e,n)=>{for(var t in n)s(e,t,{get:n[t],enumerable:!0})},p=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of b(n))!x.call(e,r)&&r!==t&&s(e,r,{get:()=>n[r],enumerable:!(o=m(n,r))||o.enumerable});return e};var I=(e,n,t)=>(t=e!=null?E(A(e)):{},p(n||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),O=e=>p(s({},"__esModule",{value:!0}),e);var h=(e,n,t)=>new Promise((o,r)=>{var l=a=>{try{i(t.next(a))}catch(u){r(u)}},d=a=>{try{i(t.throw(a))}catch(u){r(u)}},i=a=>a.done?o(a.value):Promise.resolve(a.value).then(l,d);i((t=t.apply(e,n)).next())});var w=y((T,f)=>{f.exports=Magic});var H={};R(H,{FarcasterExtension:()=>g,isMobile:()=>c});var C=I(w());function S(){return typeof navigator!="undefined"&&/android/i.test(navigator.userAgent)}function F(){return typeof navigator!="undefined"&&/iPhone|iPod/.test(navigator.userAgent)}function L(){return typeof navigator!="undefined"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function P(){return F()||L()}function c(){return S()||P()}function v(){return typeof window!="undefined"&&window===window.top}var _=!0;var U="https://relay.farcaster.xyz",g=class extends C.Extension.Internal{constructor(){super(...arguments);this.name="farcaster";this.config={};this.login=t=>h(this,null,function*(){var i;let o=yield fetch(`${U}/v1/channel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:window.location.host,siweUri:window.location.origin})});if(!o.ok)throw new Error("Error creating channel.");let r=yield o.json();if(!r)throw new Error("Channel not created yet.");let l=this.utils.createJsonRpcRequestPayload("farcaster_show_QR",[{data:{showUI:(i=t==null?void 0:t.showUI)!=null?i:_,domain:window.location.origin,isMobile:c(),channel:r}}]),d=this.request(l);return c()&&v()&&(window.location.href=r.url),d})}};return O(H);})();
if (MagicFarcasterExtension && MagicFarcasterExtension.default != null) { MagicFarcasterExtension = Object.assign(MagicFarcasterExtension.default, MagicFarcasterExtension); delete MagicFarcasterExtension.default; }

@@ -9,5 +9,4 @@ import { Extension } from '@magic-sdk/commons';

config: {};
constructor();
login: (params?: LoginParams) => Promise<string>;
}
export { isMobile };
{
"name": "@magic-ext/farcaster",
"version": "0.18.1-canary.841.12038986507.0",
"version": "0.18.1-canary.841.12039007622.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.12038986507.0"
"@magic-sdk/commons": "24.18.1-canary.841.12039007622.0"
},
"gitHead": "3ef5d0ade2763c536437d48c0ea44018826cef07"
"gitHead": "1f787a1f478ed4ae19bb2e45e91c7798a9c2993b"
}

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