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

unctx

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unctx - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

CHANGELOG.md

11

dist/index.js

@@ -7,2 +7,3 @@ 'use strict';

let currentInstance = null;
let isSingleton = false;
const checkConflict = (instance) => {

@@ -20,5 +21,7 @@ if (currentInstance && currentInstance !== instance) {

currentInstance = instance;
isSingleton = true;
},
unset: () => {
currentInstance = null;
isSingleton = false;
},

@@ -30,6 +33,10 @@ call: (instance, cb) => {

const res = cb();
currentInstance = null;
if (!isSingleton) {
currentInstance = null;
}
return res;
} catch (err) {
currentInstance = null;
if (!isSingleton) {
currentInstance = null;
}
throw err;

@@ -36,0 +43,0 @@ }

2

package.json
{
"name": "unctx",
"version": "1.0.1",
"version": "1.0.2",
"description": "Composition-api in Vanilla js",

@@ -5,0 +5,0 @@ "repository": "unjs/unctx",

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