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

@matchlighter/common_library

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matchlighter/common_library - npm Package Compare versions

Comparing version 1.3.17 to 1.3.18

5

cjs/components/Block.js

@@ -18,3 +18,4 @@ "use strict";

if (this.usedPortals[key] && this.activeBlock(key) == newEntry) {
lastUsed.setUsed(false);
if (lastUsed)
lastUsed.setUsed(false);
newEntry.setUsed(true);

@@ -37,3 +38,3 @@ }

activeBlock(key) {
if (this.blocks[key].length === 0)
if (!this.blocks[key]?.length)
return null;

@@ -40,0 +41,0 @@ return this.blocks[key].reduce((last, current) => current.priority >= last.priority ? current : last);

6

lib/components/Block.js

@@ -16,3 +16,4 @@ import React, { useContext, useLayoutEffect, useRef, useState } from "react";

if (this.usedPortals[key] && this.activeBlock(key) == newEntry) {
lastUsed.setUsed(false);
if (lastUsed)
lastUsed.setUsed(false);
newEntry.setUsed(true);

@@ -36,3 +37,4 @@ }

activeBlock(key) {
if (this.blocks[key].length === 0)
var _a;
if (!((_a = this.blocks[key]) === null || _a === void 0 ? void 0 : _a.length))
return null;

@@ -39,0 +41,0 @@ return this.blocks[key].reduce((last, current) => current.priority >= last.priority ? current : last);

{
"name": "@matchlighter/common_library",
"version": "1.3.17",
"version": "1.3.18",
"description": "Shared Functions, Helpers, Patterns & Utilities for Apps and Libraries",

@@ -5,0 +5,0 @@ "author": "Matchlighter",

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