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

@equinor/fusion

Package Overview
Dependencies
Maintainers
2
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

6

lib/core/ContextManager.js

@@ -68,4 +68,6 @@ import { useState, useCallback, useEffect } from "react";

useDebouncedAbortable(async (query) => {
var response = await apiClients.context.queryContextsAsync(query, type);
setContexts(response.data);
if (query && query.length > 2) {
var response = await apiClients.context.queryContextsAsync(query, type);
setContexts(response.data);
}
}, queryText);

@@ -72,0 +74,0 @@ return [contexts, setQueryText];

@@ -9,3 +9,3 @@ import { useEffect } from "react";

abort = abortable(async () => await abortableAction(value));
});
}, delay);
return () => {

@@ -12,0 +12,0 @@ if (abort !== null) {

@@ -23,8 +23,14 @@ import uuid from "uuid/v1";

init = ensureRequestInit(init, init => (Object.assign({}, init, { method: "GET" })));
const request = this.performFetchAsync(url, init);
this.requestsInProgress[url] = request;
const response = await request;
delete this.requestsInProgress[url];
await this.resourceCache.updateAsync(url, response);
return response;
try {
const request = this.performFetchAsync(url, init);
this.requestsInProgress[url] = request;
const response = await request;
delete this.requestsInProgress[url];
await this.resourceCache.updateAsync(url, response);
return response;
}
catch (error) {
delete this.requestsInProgress[url];
throw error;
}
}

@@ -31,0 +37,0 @@ async postAsync(url, body, init) {

{
"name": "@equinor/fusion",
"version": "0.1.12",
"version": "0.1.13",
"description": "Everything a Fusion app needs to communicate with the core",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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