
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@chapeaux/cpx-user
Advanced tools
The cpx-user
component is meant to be a centralized location for user-related information and functionality.
npm install @chapeaux/cpx-user
or consume from a CDN via @chapeaux/cpx-user
cpx-user.js
file on a page prior to any event tracking that should occuruser-ready
- fires when the .user
object data is populateduser-update
- fires when the .user
object is updatedUser data is always stored on the .user
property once it is available.
```html
<cpx-user>
<script type="data">
{
"name": "Test User",
"email": "test123@test123.com"
}
</script>
</cpx-user>
```
Requires that jwt_decode
library be available globally.
Available component properties:
jwt-cookie
: sets the cookie to parse for JWT datajwt-token
: sets the JWT token to parse for data```html
<cpx-user jwt-cookie="SOME_JWT_COOKIE_NAME"></cpx-user>
```
```html
<cpx-user jwt-token="SOMEJWTENCODEDSTRING"></cpx-user>
```
<script type="module" src="path/to/@chapeaux/cpx-websocket/cpx-websocket.js"></script>
import { CPXWebSocket } from "path/to/@chapeaux/cpx-websocket/cpx-websocket.js";
<cpx-websocket id="leaderboard" url="ws://localhost:8080/leaderboard">
<template>
<h1 data-key="length">Top ${data.length}</h1>
<ol>
<li data-repeat="data"><a href="/${gameId}" onclick="return false;">${userName}</a>.....${score}</li>
</ol>
</template>
</cpx-websocket>
deno test
runner and assertions: https://deno.land/manual/testing/assertionsFAQs
Chapeaux User Component
The npm package @chapeaux/cpx-user receives a total of 170 weekly downloads. As such, @chapeaux/cpx-user popularity was classified as not popular.
We found that @chapeaux/cpx-user demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.