Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@p4d/hermes-js
Advanced tools
Hermes library performs the following tasks:
This service handles the device storage, when there's a new message, it will always be saved in the storage. If storage is unavailable, it will mantain a cache queue that will get deleted on page leave.
This service needs to be initialized with the hermes url, and then will send events that are in the queue whenever the connection is available
Simply require the javascript file into your project!
<script type="text/javascript" src="js/hermes-js.js"></script>
The first step is to create the Hermes object, with the following initial configuration:
// Este es el use case tipico
var hermes = new Hermes({
url: 'http://hermes.p4d.com.ar:8080',
project: {
"id": 'nike_run_analysis',
"name": 'Nike Run Analysis'
},
type: 'appData'
})
After setting up the object, all that remains is to send messages, and there is a simple way to do so:
The send event will send the data to hermes, if internet is not connected, it will be saved in the cache to be sent when internet is available.
Data sent can be anything! But Hermes expects it to be a JSON object. A warning will be sent if it isn't.
<script type="text/javascript" src="hermes-js.js"></script>
<script type="text/javascript">
var config = {
url: 'http://hermes.p4d.com.ar:8080',
project: {
"id": 'nike_run_analysis',
"name": 'Nike Run Analysis'
},
type: 'appData'
}
var hermes = new Hermes(config)
var event = {
name: 'new_experience',
experience_id: 2
}
hermes.send(event)
</script>
FAQs
Hermes client library for JS (browser & NodeJs)
We found that @p4d/hermes-js 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.