
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@adobe/helix-shared-indexer
Advanced tools
In your helix-query.yaml
1, you can define one or more index definitions. A sample index definition looks as follows:
indices:
mysite:
source: html
fetch: https://{ref}--{repo}--{owner}.project-helix.page/{path}
properties:
author:
select: main > div:nth-of-type(3) > p:nth-of-type(1)
value: |
match(el, 'by (.*)')
The select
property is a CSS selector that grabs HTML elements out of your document. To verify that a CSS selector entered
is selecting what you expect, you can test it in your browser's Javascript console, e.g. for the author
selector shown above,
enter the following expression:
document.querySelectorAll('main > div:nth-of-type(3) > p:nth-of-type(1)');
The value
or values
property contains an expression to apply to all HTML elements selected. The property name value
is preferred
when you need a string, values
on the other hand provides you with an array of all the matches found. The expression can contain
a combination of functions and variables:
Returns the HTML content of an element.
Returns the text content of the selected element, and all its descendents.
Returns the value of the attribute with the specified name of an element.
Matches a regular expression containing parentheses to capture items in the passed element.
In the author
example above, the actual contents of the <p>
element selected might
contain by James Brown
, so it would capture everything following by
.
Useful for teasers, this selects a range of words out of an HTML element.
Replaces all occurrences of a substring in a text with a replacement.
Parses a timestamp given as string, and returns its value as number of seconds since 1 Jan 1970.
Returns the HTML elements selected by the select
property.
Returns the path of the HTML document being indexed.
Returns the value of the HTTP response header with the specified name, at the time the HTML document was fetched.
[1]: The full definition of the helix-query.yaml
is available here: https://github.com/adobe/helix-shared/blob/main/docs/indexconfig.md
FAQs
Shared modules of the Helix Project - Indexer
The npm package @adobe/helix-shared-indexer receives a total of 3,574 weekly downloads. As such, @adobe/helix-shared-indexer popularity was classified as popular.
We found that @adobe/helix-shared-indexer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.