
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.
@asayerio/js
Advanced tools
A component to load Asayer snippet inside your bundle. This method is best suited for modern web applications which keeps code cleaner and saves loading time.
npm i @asayerio/js --save
Initialize the package from your codebase entry point. This would start the Asayer tracking snippet. SITE_ID can be found in your Asayer dashboard after clicking on Tracking Code under Preferences -> Sites.
import { init } from '@asayerio/js';
init({
siteID: SITE_ID,
});
Then you can use Asayer JavaScript API anywhere in your code.
import asayer from '@asayerio/js';
asayer.vars('userId', 'my_custom_user_id');
Also, there is the set of additional methods available when using the package
In order to write down the payload of the requests and responses, and simplify the integration with backend logs, you can use our wrapper over the fetch
import { init, fetch } from '@asayerio/js';
init({ siteID: XXX, fetch: { sessionIDHeader: 'X-SessionID' } }); // header name for sessionID (optional)
fetch('http://example.com/movies.json')
.then(...)
To measure the performance of specific part of your code you can use profiler
call
import { profiler } from '@asayerio/js';
var fn = profiler('call_name')(function () {
...
}, thisArg); // thisArg is optional
FAQs
The Asayer tracker
The npm package @asayerio/js receives a total of 0 weekly downloads. As such, @asayerio/js popularity was classified as not popular.
We found that @asayerio/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
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.