Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
ad4m-connect-common
Advanced tools
Install AD4M Connect from npm,
npm install ad4m-connect-common
You need to include the bundled file as a script,
<script type="module" src="../dist/ad4m-connect.bundled.js"></script>
Then use the custom element,
<body>
<ad4m-connect
app='{"name":"kaichaoapp","description":"test app","url":"my-url"}'
endpoint="ws://localhost:12000/graphql"
capabilities='[{"with":{"domain":"*","pointers":["*"]},"can":["*"]}]'
/>
</body>
Listen to the custom jwt-received
event for generated JWT,
<script>
window.addEventListener('jwt-received', (e) => {
console.log("jwt received");
console.log(e.detail.jwt);
});
</script>
tag === "ad4m-connect"
,export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => {
return (
tag === "ad4m-connect"
);
},
},
},
}),
vueJsx(),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
});
ad4m-connect-common
in the app root main.ts
or app.ts
,import "ad4m-connect-common";
ad4m-connect
wherever you want,<ad4m-connect
.app='{"name":"testapp","description":"test app","url":"my-url"}'
endpoint="ws://localhost:12000/graphql"
.capabilities='[{"with":{"domain":"*","pointers":["*"]},"can":["*"]}]'
/>
FAQs
A web component to connect with AD4M
The npm package ad4m-connect-common receives a total of 0 weekly downloads. As such, ad4m-connect-common popularity was classified as not popular.
We found that ad4m-connect-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.