mirror of
https://github.com/arx-research/libhalo.git
synced 2026-04-17 03:00:55 -04:00
29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
/**
|
|
* LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
|
|
* Copyright by Arx Research, Inc., a Delaware corporation
|
|
* License: MIT
|
|
*/
|
|
|
|
const {HaloGateway} = require("../halo/gateway/requestor");
|
|
const {haloFindBridge} = require("../web/web_utils");
|
|
const {haloGateExecutorCreateWs, haloGateExecutorUserConfirm} = require("../halo/gateway/executor");
|
|
const {execHaloCmdWeb, detectMethod} = require("../drivers/web");
|
|
const {checkWebNFCPermission} = require("../drivers/webnfc");
|
|
|
|
/**
|
|
* The LibHaLo stable API. Please don't depend on the functions imported from anywhere else
|
|
* except the lib's index.js. The library's structure is subject to change in the next versions.
|
|
*/
|
|
module.exports = {
|
|
// for web usage
|
|
execHaloCmdWeb,
|
|
haloFindBridge,
|
|
haloGetDefaultMethod: detectMethod,
|
|
haloCheckWebNFCPermission: checkWebNFCPermission,
|
|
|
|
// for web usage with gateway
|
|
HaloGateway,
|
|
haloGateExecutorCreateWs,
|
|
haloGateExecutorUserConfirm,
|
|
};
|