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.18 to 0.1.19

2

lib/core/ContextManager.d.ts

@@ -6,3 +6,3 @@ import ApiClients from "../http/apiClients";

current: Context | null;
previous: Context | null;
history: Context[] | null;
};

@@ -9,0 +9,0 @@ export default class ContextManager extends ReliableDictionary<ContextCache> {

@@ -13,4 +13,10 @@ import { useState, useCallback, useEffect } from "react";

const currentContext = await this.getCurrentContextAsync();
const history = await this.getAsync("history");
await this.setAsync("current", context);
await this.setAsync("previous", currentContext);
if (!history) {
await this.setAsync("history", [currentContext]);
}
else {
await this.setAsync("history", [currentContext, ...history]);
}
}

@@ -17,0 +23,0 @@ getCurrentContext() {

{
"name": "@equinor/fusion",
"version": "0.1.18",
"version": "0.1.19",
"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