@vectry/node
Version:
Node.js SDK for the Vectry Analytics, providing transport and context integration.
16 lines (15 loc) • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultContextProvider = DefaultContextProvider;
/**
* DefaultContextProvider for Node.js
*
* Provides a basic static context in environments without a specific session, user, or app context.
*/
async function DefaultContextProvider() {
return {
veripass_username: "system",
app_id: "vectry-node",
session_id: `sess-${Date.now().toString(36)}`,
};
}