New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

just-omit

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-omit - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

5

index.d.ts

@@ -1,2 +0,3 @@

export declare function omit<Obj extends object, Key extends string>(obj: Obj, remove: Key[]): Omit<Obj, Key>;
export declare function omit<Obj extends object, Key extends string>(obj: Obj, remove1: Key, ...removeN: Key[]): Omit<Obj, Key>;
declare function omit<Obj extends object, Key extends string>(obj: Obj, remove: Key[]): Omit<Obj, Key>;
declare function omit<Obj extends object, Key extends string>(obj: Obj, remove1: Key, ...removeN: Key[]): Omit<Obj, Key>;
export default omit

4

index.tests.ts

@@ -1,2 +0,2 @@

import { omit } from './index';
import omit from './index';

@@ -50,2 +50,2 @@ const obj = {

// @ts-expect-error
omit([1, 2, 3], 0);
omit([1, 2, 3], 0);
{
"name": "just-omit",
"version": "1.2.0",
"version": "1.3.0",
"description": "copy an object but omit the specified keys",

@@ -5,0 +5,0 @@ "main": "index.js",

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