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 0.0.2 to 0.0.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.0.3](https://github.com/unjs/unctx/compare/v0.0.2...v0.0.3) (2021-03-30)
### Bug Fixes
* add missing return to createNamespace ([04886ef](https://github.com/unjs/unctx/commit/04886efb014f2715de924b936fd7b6b210454531))
### [0.0.2](https://github.com/unjs/unctx/compare/v0.0.1...v0.0.2) (2021-03-30)

@@ -7,0 +14,0 @@

2

dist/index.d.ts

@@ -10,3 +10,3 @@ interface UseContext<T> {

declare function createNamespace(): {
get<T>(key: any): void;
get(key: any): UseContext<any>;
};

@@ -13,0 +13,0 @@ declare const defaultNamespace: ContextNamespace;

@@ -21,4 +21,9 @@ 'use strict';

function createNamespace() {
const contexts = {};
return {
get(key) {
if (!contexts[key]) {
contexts[key] = createContext();
}
return contexts[key];
}

@@ -25,0 +30,0 @@ };

{
"name": "unctx",
"version": "0.0.2",
"version": "0.0.3",
"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