
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@naturalcycles/common-type
Advanced tools
Common Type interface and generator
Allows to generate JSON Schema from a set of Typescript files with Interfaces (also Types and Enums).
Also, to generate Typescript files from JSON schemas (reverse).
Status: experimental! Everything is subject to change!
Install common-type as your devDependency:
yarn add -D @naturacycles/common-type
Define a commonType.cfg.js in the root of you project:
module.exports = {
paths: ['src/types/*.ts'],
outputDir: 'src/schemas',
}
Config says to scan all *.ts files in src/types, parse them, generate JSON schemas, write them
into src/schemas folder.
Typescript AST debugging: https://ts-ast-viewer.com/
string, number, booleansomeString, 15, truenull typeobject, arraytupleenum (string and number values)|), Intersections (&), extends@validationType (e.g. integer)p: Person (where Person is defined elsewhere, can be in another file)Partial, RequiredRecord<A, B>{ [name: string]: string })StringMap (aka Dictionary)validationType to override type, e.g. @validationType integerdeprecated, readOnly, writeOnly, defaultpattern, format, minLength, maxLengthmultipleOf, minimum, exclusiveMinimum, maximum, exclusiveMaximumadditionalProperties, minProperties, maxPropertiesminItems, maxItems, uniqueItemsif, then, else, dependencies, dependentRequired,
dependentSchemasOmit, Pickinterface MyType<T> { current: T, future: T }typeofkeyofFAQs
Common Type interface and generator
We found that @naturalcycles/common-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.