![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
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.
@owlnext/heimdall-js
Advanced tools
Heimdall API client & utils for javascript technologies.
To use this client, you must first have an admin user on the Heimdall API.
npm -i --save @owlnext/heimdall-js
import Heimdall from '@owlnext/heimdall-js'
// first, authenticate your Heimdall client
const heimdall: Heimdall = new Heimdall();
heimdall.authenticate({
login: '<your login>',
password: '<your password>',
application_uuid: '<your application UUID>'
});
// check if the client is authenticated
if(true === heimdall.isAuthenticated()) {
// ...
}
// check the user connected
if('my_user_login' === heimdall.api.getCurrentLoggedIn()) {
// ...
}
// encrypt a file with a new key
let encrypted: string;
heimdall.createKey(['<a group iri>']).then(key => {
heimdall.getCipherKey(key.id).then(cipher => {
encrypted = heimdall.encrypt('<your message>', cipher.cipherKey);
});
});
// decrypt a file
let decrypted: string;
heimdall.getCipherKey('<key id>').then(cipher => {
decrypted = heimdall.decrypt('<your encrypted message>', cipher.cipherKey);
});
Note: You also have access to the full API implementation with the
api
getter from theHeimdall
object.
To use integration environment, simply add the server_environment
as a property to your authentication.
import Heimdall from '@owlnext/heimdall-js'
// Authentication
const heimdall: Heimdall = new Heimdall();
heimdall.authenticate({
login: '<your login>',
password: '<your password>',
application_uuid: '<your application UUID>',
server_environment: Heimdall.SERVER_ENVIRONMENT_INTEGRATION
});
// Refresh
heimdall.reconnect({
refresh_token: '<your refresh token>',
application_uuid: '<your application UUID>',
server_environment: Heimdall.SERVER_ENVIRONMENT_INTEGRATION
});
If left untouched, the default behaviour points the API to the production environment.
FAQs
Heimdall API client & utils for javascript technologies
We found that @owlnext/heimdall-js 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.