![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@retracedhq/logs-viewer
Advanced tools
A React library for viewing Retraced logs.
$ yarn add @retracedhq/logs-viewer
$ npm i -s @retracedhq/logs-viewer
<RetracedEventsBrowser
host={`http://localhost:3000/auditlog/viewer/v1`}
auditLogToken={viewerToken}
header="Audit Logs"
customClass={"text-primary dark:text-white"}
/>
You will need to fetch the viewer token on the server side using our Node.js SDK (or use our API call to generate one).
const retraced = new Retraced.Client({
apiKey: <Retraced Token>,
projectId: <Retraced Project ID>,
endpoint: 'http://localhost:3000/auditlog',
viewLogAction: 'audit.log.view',
});
const viewerToken = await retraced.getViewerToken(<Group ID>, 'My SaaS app', false);
Make sure you are running (Retraced)[https://github.com/retracedhq/retraced] with the dev
project and token bootstrapped.
# Install dependencies
make deps
# Run local dev server
make dev
Run from root of this project
# Install dependencies
make deps
# Create a project link, may be npm or yarn
npm link # or yarn link
# Run the build on watch mode
make watch
Run from root of dependent project
# Create a project link, may be npm or yarn
npm link # or yarn link
# -or-
# Install the linked library
npm link retraced-logs-viewer # or yarn link retraced-logs-viewer
Then follow development instructions for the dependent project. Changes to the logs viewer should reflect in the consuming project in realtime.
FAQs
Logs viewer widget
We found that @retracedhq/logs-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.