mirror of
https://github.com/arx-research/libhalo.git
synced 2026-01-10 13:48:08 -05:00
35 lines
731 B
JavaScript
35 lines
731 B
JavaScript
const {initNFCManagerHalo} = require("./fronts/nfc_manager");
|
|
const {execHaloCmdPCSC} = require("./fronts/pcsc");
|
|
const {
|
|
execHaloCmdWeb,
|
|
execHaloCmd
|
|
} = require("./fronts/common");
|
|
const {
|
|
HaloTagError,
|
|
HaloLogicError,
|
|
NFCPermissionRequestDenied,
|
|
NFCMethodNotSupported,
|
|
NFCAbortedError,
|
|
NFCOperationError
|
|
} = require("./halo/exceptions");
|
|
|
|
module.exports = {
|
|
// for desktop usage
|
|
execHaloCmdPCSC,
|
|
|
|
// for web usage
|
|
execHaloCmdWeb,
|
|
|
|
// for usage with react-native-nfc-manager
|
|
initNFCManagerHalo,
|
|
execHaloCmd,
|
|
|
|
// exceptions
|
|
HaloTagError,
|
|
HaloLogicError,
|
|
NFCPermissionRequestDenied,
|
|
NFCMethodNotSupported,
|
|
NFCAbortedError,
|
|
NFCOperationError
|
|
};
|