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

@homebound/activesupport

Package Overview
Dependencies
Maintainers
37
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@homebound/activesupport - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

src/map.ts

6

dist/index.d.ts

@@ -136,2 +136,8 @@ type KeysOfType<T, TProp> = {

declare global {
interface Map<K, V> {
getOrCreate(key: K, create: () => V): V;
}
}
declare global {
interface Object {

@@ -138,0 +144,0 @@ toEntries<T, K extends string>(this: Record<K, T>): [K, T][];

@@ -227,2 +227,9 @@ var __defProp = Object.defineProperty;

// src/map.ts
Map.prototype.getOrCreate = function(key, create) {
const result = this.get(key) ?? create();
this.has(key) || this.set(key, result);
return result;
};
// src/object.ts

@@ -229,0 +236,0 @@ var allowOverwritingPrototypeExtension = {

2

package.json
{
"name": "@homebound/activesupport",
"version": "1.1.1",
"version": "1.2.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/index.mjs",

export * from "./array";
export * from "./map";
export * from "./object";
export * from "./utils";

Sorry, the diff of this file is not supported yet

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