Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
type-plus
Advanced tools
Provides additional types and type adjusted utilities for typescript
Id<T>
: generic Id typecreateId<T>(type: T, value: string): Id<T>
: create idcreateIdCreator<T>(type: T): (value: string) => Id<T>
: create an id creatorKeyTypes<T>
: type of all keys.filterKey()
: type adjusted filter by key.findKey()
: type adjusted find by key.forEachKey()
: type adjusted for each by key.mapKey()
: type adjusted map by key.reduceKey()
: type adjusted reduce by key.literalArray(...entries)
: return an array those items are restricted to the provided literals.isPromise<R>(subject: any)
: isPromise()
type guard.Except<T, K>
: From T
, pick a set of properties whose keys are not in the union K
. This is the opposite of Pick<T, K>
ExcludePropType<T, U>
: excludes type U
from properties in T
.PartialPick<T, U>
: makes the properties specified in U
becomes optional.PartialExcept<T, U>
: makes the properties not specified in U
becomes optional.RecursivePartial<T>
: make type T
optional recursively.RecursiveRequired<T>
: make type T
required recursively.RequiredPick<T, U>
: makes the properties specified in U
becomes required.RequiredExcept<T, U>
: makes the properties not specified in U
becomes required.RecursiveIntersect<T, U>
: intersect type U
onto T
recursively.ValueOf<T>
: type of the value of the properties of T
.There are several type assertion functions inside typeAssert
.
isXXX(value)
: ensure typeof value
is XXX
noXXX(value)
: ensure typeof value
does not contain XXX
. i.e. cannot assign XXX
to value
.# after fork and clone
npm install
# begin making changes
git checkout -b <branch>
npm run watch
# after making change(s)
git commit -m "<commit message>"
git push
# create PR
FAQs
Provides additional types for TypeScript.
The npm package type-plus receives a total of 17,804 weekly downloads. As such, type-plus popularity was classified as popular.
We found that type-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.