UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

11 lines (10 loc) 230 B
const fallbackWindow = {}; export function locateWindow() { if (typeof window !== "undefined") { return window; } else if (typeof self !== "undefined") { return self; } return fallbackWindow; }