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

singleton-manager

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

singleton-manager - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

index.d.ts

24

CHANGELOG.md
# Change Log
## 1.1.2
### Patch Changes
- 3c61fd29: Add types to form-core, for everything except form-group, choice-group and validate. Also added index.d.ts (re-)export files to git so that interdependent packages can use their types locally.
- 09d96759: Added basic JSDocs types to SingletonManager, in order for localize to be able to be typed correctly.
All notable changes to this project will be documented in this file.

@@ -10,27 +17,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.1.0](https://github.com/ing-bank/lion/compare/singleton-manager@1.0.0...singleton-manager@1.1.0) (2020-06-18)
### Features
* use markdown javascript (mdjs) for documentation ([bcd074d](https://github.com/ing-bank/lion/commit/bcd074d1fbce8754d428538df723ba402603e2c8))
- use markdown javascript (mdjs) for documentation ([bcd074d](https://github.com/ing-bank/lion/commit/bcd074d1fbce8754d428538df723ba402603e2c8))
# 1.0.0 (2020-05-18)
### Features
* manager to support single instances with nested npm installations ([7f49f2c](https://github.com/ing-bank/lion/commit/7f49f2c6a60a68d609243f77c5c01ba1047deef2))
- manager to support single instances with nested npm installations ([7f49f2c](https://github.com/ing-bank/lion/commit/7f49f2c6a60a68d609243f77c5c01ba1047deef2))
### BREAKING CHANGES
* add singleton-manager
- add singleton-manager
{
"name": "singleton-manager",
"version": "1.1.1",
"version": "1.1.2",
"description": "Manage singletons across multiple major versions so they converge to a single instance",

@@ -40,4 +40,3 @@ "license": "MIT",

"access": "public"
},
"gitHead": "b7ea11c767cd3c3998db65c64aa9e36794fee0c2"
}
}

@@ -6,2 +6,7 @@ export class SingletonManagerClass {

/**
* @param {string} key
* @param {any} value
* @throws {Error} Will throw if the key is already defined
*/
set(key, value) {

@@ -14,2 +19,6 @@ if (this.has(key)) {

/**
* @param {string} key
* @returns
*/
get(key) {

@@ -19,2 +28,5 @@ return this._map.get(key);

/**
* @param {string} key
*/
has(key) {

@@ -21,0 +33,0 @@ return this._map.has(key);

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