
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.