
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
data-loader
Advanced tools
A standard Custom Element fetching data declaratively.
It follows the current v1 draft.
Will load the data at the URL defined in the src
property of a
source
element that it contains.
It can also parse JSON from the content of a script tag of type
application/json
.
<data-loader>
<source src="https://www.example.com/some/data" />
</data-loader>
See it running Here.
Only needed if the data-loader
name clashes with an other existing
Custom Element.
import DataLoader from "data-loader";
// Register the Custom Elements
customElements.define("namespaced-data-loader", DataLoader);
And then in the HTML, use like so:
<namespaced-data-loader>
<source src="https://www.example.com/some/data" />
</namespaced-data-loader>
This element assumes support for at least ES2015. To support older browsers you might need to transpile the code you use down to the version you are planning on supporting.
You might need to use a polyfill for browsers not supporting Custom Elements v1 (not v0). See webcomponents.js or SkateJS Web Components.
To be completed
name | default value | information | DOM attribute | writable |
---|---|---|---|---|
data | null | data loaded by the component (same than the data dispatched in the load event) | no | no |
loaded | false | flag informing if data is currently loaded | no | no |
selector | null | selector to extract data from the payload (see lodash.get documentation) | yes | no |
event name | information |
---|---|
error | Fired when none of the URL defined in the source elements is reachable nor returns a valid response |
load | Fired when a URL returns a valid response, contains the data loaded (same as data property) |
FAQs
data-loader Custom Element to load data declaratively
The npm package data-loader receives a total of 267 weekly downloads. As such, data-loader popularity was classified as not popular.
We found that data-loader 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.