🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@autoview/compiler

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@autoview/compiler

Embedded TypeScript compiler for `@autoview/agent`.

latest
Source
npmnpm
Version
10.0.6
Version published
Maintainers
2
Created
Source

@autoview/compiler

Embedded TypeScript compiler for @autoview/agent.

It is for validation feedback, and bundling for actual running.

NodeJS Environment

Connect to the worker in the node_modules.

import { Driver, WorkerConnector } from "tgrid";
import {
  IAutoViewCompilerService,
  IAutoViewCompilerResult
} from "@autoview/compiler";

const worker: WorkerConnector<null, null, IAutoViewCompilerService> =
  new WorkerConnector(null, null);
await worker.connect(
  `${__dirname}/../../node_modules/@autoview/compiler/lib/worker/index.js`,
);
const service: Driver<IAutoViewCompilerService> = worker.getDriver();
await service.initialize({...});

const result: IAutoViewCompilerResult = await service.compile("...");
await worker.close();

Browser Environment

Compile the worker from by below URL.

  • https://wrtnlabs.io/autoview/compiler/worker.js
import { Driver, WorkerConnector } from "tgrid";
import {
  IAutoViewCompilerService,
  IAutoViewCompilerResult
} from "@autoview/compiler";

const worker: WorkerConnector<null, null, IAutoViewCompilerService> =
  new WorkerConnector(null, null);
await worker.compile(
  await fetch(
    "https://wrtnlabs.io/autoview/compiler/worker.js",
  ).then((r) => r.json()),
);
const service: Driver<IAutoViewCompilerService> = worker.getDriver();
await service.initialize({...});

const result: IAutoViewCompilerResult = await service.compile("...");
await worker.close();

FAQs

Package last updated on 30 May 2025

Did you know?

Socket

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.

Install

Related posts