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.
@hint/parser-typescript
Advanced tools
@hint/parser-typescript
)The typescript
parser emits the same events as @hint/parser-javascript
so existing hints targeting JavaScript files can analyze TypeScript files
without modification. Existing hints targeting HTML files can also analyze
TSX content without modification if @hint/parser-jsx
is active in addition
to this parser.
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc
configuration file:
{
"connector": {...},
"formatters": [...],
"hints": {
...
},
"parsers": ["jsx", "typescript"],
...
}
Note: The recommended way of running webhint is as a devDependency
of
your project.
This parser
emits the following events:
parse::start::javascript
of type Event
which contains the following
information:
resource
: the resource we are going to parse.parse::end::javascript
, of type ScriptParse
which contains the following
information:
ast
: an ESTree
AST generated from the script.element
: an HTMLElement
reference if the source was inline
in HTML; null
otherwise.resource
: the parsed resource. If the script is in
a script tag
and not a file, the value will refer to the
HTML document containing the script.sourceCode
: the raw source code that was parsed.tokens
: a list of tokens generated from the source code.walk
: helper methods for walking the AST.FAQs
webhint parser needed to analyze TypeScript files
We found that @hint/parser-typescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
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.