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.19 to 0.1.20

15

lib/core/ContextManager.js

@@ -15,8 +15,15 @@ import { useState, useCallback, useEffect } from "react";

await this.setAsync("current", context);
if (!history) {
await this.setAsync("history", [currentContext]);
if (!currentContext) {
return;
}
else {
await this.setAsync("history", [currentContext, ...history]);
const newHistory = [currentContext];
if (history) {
history
// Remove the current context from the previous history (it's added to the start of the history)
.filter(c => c.id !== currentContext.id)
// Remove historical contexts after the last 10 (currentContext + 9)
.slice(0, 9)
.forEach(c => newHistory.push(c));
}
await this.setAsync("history", newHistory);
}

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

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