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 2.1.1 to 2.1.2

6

CHANGELOG.md
# just-omit
## 2.1.2
### Patch Changes
- Type improvements
## 2.1.1

@@ -4,0 +10,0 @@

13

index.d.ts

@@ -1,3 +0,12 @@

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>;
declare function omit<Obj extends object, Key extends keyof Obj>(
obj: Obj,
remove: Key[]
): Omit<Obj, Key>;
declare function omit<Obj extends object, Key extends keyof Obj>(
obj: Obj,
remove1: Key,
...removeN: Key[]
): Omit<Obj, Key>;
export default omit

5

index.tests.ts

@@ -13,5 +13,2 @@ import omit from './index';

{
const test: { a: number } = omit(obj, ['b', 'c', 'd'])
}
{
const test: { a: number, c: number } = omit(obj, ['b', 'b', 'b'])

@@ -51,2 +48,2 @@ }

// @ts-expect-error
omit([1, 2, 3], 0);
omit({ a: 1}, ['a', 'b'])
{
"name": "just-omit",
"version": "2.1.1",
"version": "2.1.2",
"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