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

ts-gems

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-gems - npm Package Compare versions

Comparing version 2.7.3 to 2.7.4

5

lib/common.d.ts

@@ -27,4 +27,5 @@ /**

export type Builtin = Primitive | Function | String | Number | Date | Error | RegExp |
ArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array |
Int32Array | Uint32Array | Float32Array | Float64Array;
Buffer | ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray |
Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array |
URL | ReadableStream | WritableStream;

@@ -31,0 +32,0 @@ /**

6

lib/deep-buildable.d.ts

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -8,3 +8,3 @@ /**

type _DeepBuildable<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { -readonly [P in keyof T]?: _DeepBuildable<Exclude<T[P], undefined>> };

@@ -18,4 +18,4 @@

T extends (infer U)[] ? _HighDeepBuildable<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: T extends (infer U)[] ? _HighDeepBuildable<U>[]
: { -readonly [P in keyof T]?: _HighDeepBuildable<Exclude<T[P], undefined>> };
import { DeepRequired, HighDeepRequired } from './deep-required.js';
import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -9,3 +9,3 @@ /**

type _DeepNullish<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in keyof T]?: _DeepNullish<Exclude<T[P], undefined>> | null };

@@ -20,4 +20,4 @@

T extends (infer U)[] ? _HighDeepNullish<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in keyof T]?: _HighDeepNullish<Exclude<T[P], undefined>> | null };

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';
import { OptionalKeys, ReadonlyKeys, RequiredKeys, WritableKeys } from './keys';

@@ -9,3 +9,3 @@

type _DeepOmitOptional<T, K extends keyof T = Exclude<keyof T, OptionalKeys<T>>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in K]-?: DeepOmitOptional<T[P]> };

@@ -19,3 +19,3 @@

T extends (infer U)[] ? HighDeepOmitOptional<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in K]-?: HighDeepOmitOptional<T[P]> };

@@ -29,3 +29,3 @@

type _DeepOmitRequired<T, J extends keyof T = Exclude<keyof T, RequiredKeys<T>>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in J]?: DeepOmitRequired<Exclude<T[P], undefined>> };

@@ -40,3 +40,3 @@

T extends (infer U)[] ? HighDeepOmitRequired<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in J]?: HighDeepOmitRequired<Exclude<T[P], undefined>> };

@@ -50,3 +50,3 @@

type _DeepOmitReadonly<T, J extends keyof T = Exclude<keyof T, ReadonlyKeys<T>>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in J]: DeepOmitReadonly<T[P]> };

@@ -61,3 +61,3 @@

T extends (infer U)[] ? HighDeepOmitReadonly<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in J]: HighDeepOmitReadonly<T[P]> };

@@ -71,3 +71,3 @@

type _DeepOmitWritable<T, K extends keyof T = Exclude<keyof T, WritableKeys<T>>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { readonly [P in K]: DeepOmitWritable<T[P]> }

@@ -82,3 +82,3 @@

T extends (infer U)[] ? HighDeepOmitWritable<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { readonly [P in K]: HighDeepOmitWritable<T[P]> }

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -8,3 +8,3 @@ /**

type _DeepPartial<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in keyof T]?: _DeepPartial<Exclude<T[P], undefined>> };

@@ -18,3 +18,3 @@

T extends (infer U)[] ? _HighDeepPartial<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in keyof T]?: _HighDeepPartial<Exclude<T[P], undefined>> };

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';
import { JsonKeys, OptionalKeys, ReadonlyKeys, RequiredKeys, WritableKeys } from './keys';

@@ -9,3 +9,3 @@

type _DeepPickOptional<T, K extends keyof T = OptionalKeys<T>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in K]?: DeepPickOptional<T[P]> };

@@ -19,3 +19,3 @@

T extends (infer U)[] ? HighDeepPickOptional<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in K]?: HighDeepPickOptional<T[P]> };

@@ -29,3 +29,3 @@

type _DeepPickRequired<T, J extends keyof T = RequiredKeys<T>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in J]-?: DeepPickRequired<T[P]> };

@@ -40,3 +40,3 @@

T extends (infer U)[] ? HighDeepPickRequired<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in J]-?: HighDeepPickRequired<T[P]> };

@@ -50,3 +50,3 @@

type _DeepPickReadonly<T, K extends keyof T = ReadonlyKeys<T>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in K]: DeepPickReadonly<T[P]> };

@@ -60,3 +60,3 @@

T extends (infer U)[] ? HighDeepPickReadonly<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in K]: HighDeepPickReadonly<T[P]> };

@@ -70,3 +70,3 @@

type _DeepPickWritable<T, K extends keyof T = WritableKeys<T>> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in K]: DeepPickWritable<T[P]> };

@@ -80,3 +80,3 @@

T extends (infer U)[] ? HighDeepPickWritable<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in K]: HighDeepPickWritable<T[P]> };

@@ -91,3 +91,3 @@

T extends (infer U)[] ? DeepPickJson<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in Keys]: DeepPickJson<T[P]> };

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -8,3 +8,3 @@ /**

type _DeepReadonly<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { readonly [P in keyof T]: _DeepReadonly<T[P]> };

@@ -18,4 +18,4 @@

T extends (infer U)[] ? _HighDeepReadonly<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { readonly [P in keyof T]: _HighDeepReadonly<T[P]> };

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -8,3 +8,3 @@ /**

type _DeepRequired<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { [P in keyof T]-?: _DeepRequired<Exclude<T[P], undefined>> };

@@ -19,3 +19,3 @@

T extends (infer U)[] ? _HighDeepRequired<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { [P in keyof T]-?: _HighDeepRequired<Exclude<T[P], undefined>> };

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

import { IsDeepExcluded } from './helpers.js';
import { IfNoDeepValue } from './helpers.js';

@@ -8,3 +8,3 @@ /**

type _DeepWritable<T> =
IsDeepExcluded<T> extends true ? T
IfNoDeepValue<T> extends true ? T
: { -readonly [P in keyof T]: _DeepWritable<T[P]> };

@@ -19,3 +19,3 @@

T extends (infer U)[] ? _HighDeepWritable<U>[]
: IsDeepExcluded<T> extends true ? T
: IfNoDeepValue<T> extends true ? T
: { -readonly [P in keyof T]: _HighDeepWritable<T[P]> };

@@ -7,4 +7,4 @@ import { Builtin } from './common.js';

*/
export type IsDeepExcluded<T> = _IsHighDeepObject<T>;
type _IsHighDeepObject<T> =
export type IfNoDeepValue<T> = _IfNoDeepValue<T>
type _IfNoDeepValue<T> =
T extends Builtin ? true

@@ -11,0 +11,0 @@ : IfTuple<T> extends true ? true

@@ -59,3 +59,2 @@ import {

: never
}>;

@@ -62,0 +61,0 @@

@@ -15,3 +15,3 @@ {

],
"version": "2.7.3",
"version": "2.7.4",
"types": "lib/index.d.ts",

@@ -18,0 +18,0 @@ "main": "lib/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