New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@amazon-devices/headless-task-manager

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amazon-devices/headless-task-manager

latest
npmnpm
Version
1.2.4
Version published
Maintainers
2
Created
Source

HeadlessTaskManager - @amazon-devices/headless-task-manager

Use HeadlessTaskManager in your app

  • Update the following files in your app

package.json

    "dependencies": {
    "@amazon-devices/headless-task-manager": "^1.0.0",
    ...
  • Import HeadlessTaskManager to your app
    import { HeadlessEntryPointRegistry } from "@amazon-devices/headless-task-manager"
  • Usage Example of registerHeadlessEntryPoint :
  // define entry point function
  function entryPointFunction(): Promise<void> {
    // TODO: Add task logic
    // if returns Promise.reject(), the task will be failed.
    // if returns Promise.resolve(), the task will be succeeded.
    return Promise.resolve();
  }

  // register task
  HeadlessEntryPointRegistry.registerHeadlessEntryPoint("entryPointKey", () => entryPointFunction);
  • Usage Example of registerHeadlessEntryPoint2 :
  // define entry point function
  function entryPointFunction(param : IComponentInstance): Promise<void> {
    // TODO: Add task logic
    // if returns Promise.reject(), the task will be failed.
    // if returns Promise.resolve(), the task will be succeeded.
    return Promise.resolve();
  }

  // definition of ComponentType enum
  enum ComponentType {
    INTERACTIVE,
    SERVICE,
    TASK,
  }

  // definition of IComponentInstance interface
  interface IComponentInstance {
    name : string,
    type : ComponentType,
    id : string //This property is currently being initialized with a "NULL" string literal. This will be updated in the future.
  }

  // register task
  HeadlessEntryPointRegistry.registerHeadlessEntryPoint2("entryPointKey", () => entryPointFunction);

NOTE: If a user attempts to register the same task name multiple times through any API, only the first registration will be successful. Any subsequent attempts to register the same task name will fail.

NOTE: To use the 0.67 version of the react-native-kepler dependency, you must use version 1.0.2 of this package in your package.json file.

FAQs

Package last updated on 25 Sep 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