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.0-alpha.1 to 1.1.0

2

dist/index.d.ts

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

unique(): Array<T>;
uniqueObjectsByKey(key: string): Array<T>;
uniqueByKey(key: keyof T): Array<T>;
compact(): Array<NonNullable<T>>;

@@ -11,0 +11,0 @@ isEmpty: boolean;

@@ -26,4 +26,3 @@ var __defProp = Object.defineProperty;

};
Array.prototype.uniqueObjectsByKey = function(key) {
debugger;
Array.prototype.uniqueByKey = function(key) {
const result = [];

@@ -30,0 +29,0 @@ const group = this.groupBy((item) => item[key]);

{
"name": "@homebound/activesupport",
"version": "1.1.0-alpha.1",
"version": "1.1.0",
"main": "./dist/index.js",

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

@@ -6,3 +6,3 @@ import type { KeysOfType } from "./utils";

unique(): Array<T>;
uniqueObjectsByKey(key: string): Array<T>;
uniqueByKey(key: keyof T): Array<T>;
compact(): Array<NonNullable<T>>;

@@ -150,4 +150,3 @@ isEmpty: boolean;

/** Would be cool to allow an array of keys to make the criteria of "unique" more flexible */
Array.prototype.uniqueObjectsByKey = function <T>(key: string) {
debugger;
Array.prototype.uniqueByKey = function <T>(key: keyof T): T[] {
const result: T[] = [];

@@ -154,0 +153,0 @@ const group = this.groupBy((item) => item[key]);

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