ts-essentials
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -1,2 +0,3 @@ | ||
import { PickKeysByValue } from "../pick-keys-by-value"; | ||
export type OmitProperties<Type, Value> = Omit<Type, PickKeysByValue<Type, Value>>; | ||
export type OmitProperties<Type, Value> = { | ||
[Key in keyof Type as Type[Key] extends Value ? never : Key]: Type[Key]; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvb21pdC1wcm9wZXJ0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaWNrS2V5c0J5VmFsdWUgfSBmcm9tIFwiLi4vcGljay1rZXlzLWJ5LXZhbHVlXCI7XG5cbmV4cG9ydCB0eXBlIE9taXRQcm9wZXJ0aWVzPFR5cGUsIFZhbHVlPiA9IE9taXQ8VHlwZSwgUGlja0tleXNCeVZhbHVlPFR5cGUsIFZhbHVlPj47XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvb21pdC1wcm9wZXJ0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBPbWl0UHJvcGVydGllczxUeXBlLCBWYWx1ZT4gPSB7IFtLZXkgaW4ga2V5b2YgVHlwZSBhcyBUeXBlW0tleV0gZXh0ZW5kcyBWYWx1ZSA/IG5ldmVyIDogS2V5XTogVHlwZVtLZXldIH07XG4iXX0= |
import { PickProperties } from "../pick-properties"; | ||
export type PickKeys<Type, Value> = Exclude<keyof PickProperties<Type, Value>, undefined>; | ||
export type PickKeys<Type, Value> = keyof PickProperties<Type, Value>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvcGljay1rZXlzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaWNrUHJvcGVydGllcyB9IGZyb20gXCIuLi9waWNrLXByb3BlcnRpZXNcIjtcblxuZXhwb3J0IHR5cGUgUGlja0tleXM8VHlwZSwgVmFsdWU+ID0gRXhjbHVkZTxrZXlvZiBQaWNrUHJvcGVydGllczxUeXBlLCBWYWx1ZT4sIHVuZGVmaW5lZD47XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvcGljay1rZXlzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaWNrUHJvcGVydGllcyB9IGZyb20gXCIuLi9waWNrLXByb3BlcnRpZXNcIjtcblxuZXhwb3J0IHR5cGUgUGlja0tleXM8VHlwZSwgVmFsdWU+ID0ga2V5b2YgUGlja1Byb3BlcnRpZXM8VHlwZSwgVmFsdWU+O1xuIl19 |
@@ -1,2 +0,3 @@ | ||
import { PickKeysByValue } from "../pick-keys-by-value"; | ||
export type PickProperties<Type, Value> = Pick<Type, PickKeysByValue<Type, Value>>; | ||
export type PickProperties<Type, Value> = { | ||
[Key in keyof Type as Type[Key] extends Value ? Key : never]: Type[Key]; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvcGljay1wcm9wZXJ0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaWNrS2V5c0J5VmFsdWUgfSBmcm9tIFwiLi4vcGljay1rZXlzLWJ5LXZhbHVlXCI7XG5cbmV4cG9ydCB0eXBlIFBpY2tQcm9wZXJ0aWVzPFR5cGUsIFZhbHVlPiA9IFBpY2s8VHlwZSwgUGlja0tleXNCeVZhbHVlPFR5cGUsIFZhbHVlPj47XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvcGljay1wcm9wZXJ0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBQaWNrUHJvcGVydGllczxUeXBlLCBWYWx1ZT4gPSB7XG4gIFtLZXkgaW4ga2V5b2YgVHlwZSBhcyBUeXBlW0tleV0gZXh0ZW5kcyBWYWx1ZSA/IEtleSA6IG5ldmVyXTogVHlwZVtLZXldO1xufTtcbiJdfQ== |
@@ -0,3 +1,4 @@ | ||
import { IsUnknown } from "../is-unknown"; | ||
import { Prettify } from "../prettify"; | ||
type Without<Type1, Type2> = { | ||
type Without<Type1, Type2> = IsUnknown<Type2> extends true ? never : { | ||
[P in Exclude<keyof Type1, keyof Type2>]?: never; | ||
@@ -4,0 +5,0 @@ }; |
{ | ||
"name": "ts-essentials", | ||
"version": "10.0.1", | ||
"description": "All essential TypeScript types in one place", | ||
"keywords": [ | ||
"typescript", | ||
"types", | ||
"essentials", | ||
"utils", | ||
"toolbox", | ||
"toolbelt", | ||
"lodash", | ||
"underscore" | ||
], | ||
"version": "10.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "git@github.com:krzkaczor/ts-essentials.git", | ||
"repository": "git@github.com:ts-essentials/ts-essentials.git", | ||
"homepage": "https://github.com/ts-essentials/ts-essentials#readme", | ||
"author": "Krzysztof Kaczor <chris@kaczor.io>", | ||
@@ -24,4 +15,5 @@ "license": "MIT", | ||
"prepublishOnly": "yarn test && yarn build && yarn formatDeclarations", | ||
"test": "prettier -c **/*.ts && tsc --outDir ./testDist && rimraf ./testDist", | ||
"test:fix": "prettier --write **/*.ts && tsc --outDir ./testDist && rimraf ./testDist", | ||
"test": "prettier -c {bench,lib,test}/**/*.ts && tsc --project tsconfig.test.json --outDir ./testDist && rimraf ./testDist", | ||
"test:fix": "prettier --write {bench,lib,test}/**/*.ts && tsc --project tsconfig.test.json --outDir ./testDist && rimraf ./testDist", | ||
"perf": "tsx ./bench/index.ts --benchErrorOnThresholdExceeded --benchPercentThreshold 1", | ||
"prerelease": "yarn test", | ||
@@ -43,2 +35,3 @@ "release": "yarn build && yarn formatDeclarations && yarn changeset publish", | ||
"devDependencies": { | ||
"@arktype/attest": "0.7.5", | ||
"@changesets/cli": "^2.11.2", | ||
@@ -50,4 +43,15 @@ "@codechecks/build-size-watcher": "^0.1.0", | ||
"rimraf": "^3.0.2", | ||
"tsx": "4.10.5", | ||
"typescript": "^4.5.0" | ||
} | ||
}, | ||
"keywords": [ | ||
"typescript", | ||
"types", | ||
"essentials", | ||
"utils", | ||
"toolbox", | ||
"toolbelt", | ||
"lodash", | ||
"underscore" | ||
] | ||
} |
@@ -6,6 +6,13 @@ <p align="center"> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/ts-essentials" title="View this project on NPM"> | ||
<img alt="Version" src="https://img.shields.io/npm/v/ts-essentials.svg"> | ||
</a> | ||
<img alt="Downloads" src="https://img.shields.io/npm/dm/ts-essentials.svg"> | ||
<img alt="Build status" src="https://github.com/ts-essentials/ts-essentials/actions/workflows/ci.yml/badge.svg"> | ||
<a href="https://github.com/ts-essentials/ts-essentials/actions?query=branch%3Amaster" title="View Github Build status"> | ||
<img alt="Build status" src="https://github.com/ts-essentials/ts-essentials/actions/workflows/ci.yml/badge.svg"> | ||
</a> | ||
<a href="https://t.me/ts_essentials" title="Get support in Telegram"> | ||
<img alt="Telegram" src="https://img.shields.io/badge/-telegram-red?color=white&logo=telegram"> | ||
</a> | ||
<a href="/package.json"><img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a> | ||
<img src="https://img.shields.io/badge/all_contributors-32-orange.svg?style=flat-square" alt="All Contributors"> | ||
<a href="https://codechecks.io"><img src="https://raw.githubusercontent.com/codechecks/docs/master/images/badges/badge-default.svg?sanitize=true" alt="codechecks.io"></a> | ||
@@ -12,0 +19,0 @@ </p> |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
330
0
230006
9
157
746