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

@perspect3vism/ad4m-connect

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perspect3vism/ad4m-connect - npm Package Compare versions

Comparing version 0.0.11-3 to 0.0.11-4

2

dist/utils.js

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

var u=(t,n,e)=>new Promise((r,s)=>{var a=o=>{try{c(e.next(o))}catch(i){s(i)}},l=o=>{try{c(e.throw(o))}catch(i){s(i)}},c=o=>o.done?r(o.value):Promise.resolve(o.value).then(a,l);c((e=e.apply(t,n)).next())});function m(){let t=new AbortController;return setTimeout(()=>t.abort(),20),t}function f(t){return u(this,null,function*(){try{return(yield fetch(`http://localhost:${t}/graphql/`,{signal:m().signal,mode:"no-cors"})).status===0?t:null}catch(n){throw n}})}function C(){return new Promise((t,n)=>{let e=document.querySelector("ad4m-connect"),r=e==null?void 0:e.getAd4mClient();r?t(r):n("No Ad4mClient found")})}function h(t){let n=document.querySelector("ad4m-connect");n==null||n.addEventListener("authStateChange",e=>{t(e.detail)})}function g(){return new Promise((t,n)=>{let e=document.querySelector("ad4m-connect"),r=e==null?void 0:e.connected();t(!!r)})}export{f as checkPort,C as getAd4mClient,g as isConnected,h as onAuthStateChanged};
var l=(t,e,n)=>new Promise((r,s)=>{var u=o=>{try{c(n.next(o))}catch(i){s(i)}},a=o=>{try{c(n.throw(o))}catch(i){s(i)}},c=o=>o.done?r(o.value):Promise.resolve(o.value).then(u,a);c((n=n.apply(t,e)).next())});function m(){let t=new AbortController;return setTimeout(()=>t.abort(),20),t}function C(t){return l(this,null,function*(){try{return(yield fetch(`http://localhost:${t}/graphql/`,{signal:m().signal,mode:"no-cors"})).status===0?t:null}catch(e){throw e}})}function f(){return new Promise((t,e)=>{let n=document.querySelector("ad4m-connect"),r=n==null?void 0:n.getAd4mClient();r?t(r):e("No Ad4mClient found")})}function h(t){let e=document.querySelector("ad4m-connect");e==null||e.addEventListener("authStateChange",n=>{t(n.detail)})}function g(){return document.querySelector("ad4m-connect").connected()}export{C as checkPort,f as getAd4mClient,g as isConnected,h as onAuthStateChanged};
{
"name": "@perspect3vism/ad4m-connect",
"version": "0.0.11-3",
"version": "0.0.11-4",
"description": "Lib for handling everything needed to setup a connection to a local or remote ad4m-executor",

@@ -55,2 +55,3 @@ "license": "CAL-1.0",

"dependencies": {
"auto-bind": "^5.0.1",
"electron": "^20.0.3",

@@ -57,0 +58,0 @@ "esbuild-plugin-inline-image": "^0.0.8",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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