load("//javascript/typescript:build_defs.bzl", "ts_library") load("//javascript/tools/nodejs:nodejs_rules.bzl", "nodejs_module") package(default_visibility = ["//third_party/javascript/cloud_analytics:internal"]) ts_library( name = "interface", srcs = [ "batch_event_flushing_strategy.ts", ], visibility = ["//third_party/javascript/cloud_analytics:internal"], ) ts_library( name = "browser_event_flushing", srcs = [ "document_events.ts", "window_events.ts", ], visibility = ["//third_party/javascript/cloud_analytics:internal"], deps = [":interface"], ) ts_library( name = "node_event_flushing", srcs = [ "node_events.ts", ], runtime = "nodejs", visibility = ["//third_party/javascript/cloud_analytics:internal"], deps = [ ":interface", "//third_party/javascript/typings/node", ], ) ts_library( name = "browser_event_flushing_tests", testonly = True, srcs = [ "document_events_test.ts", "window_events_test.ts", ], deps = [ ":browser_event_flushing", "//third_party/javascript/typings/jasmine", "//third_party/javascript/typings/node", ], ) ts_library( name = "node_events_test", testonly = True, srcs = ["node_events_test.ts"], deps = [ ":node_event_flushing", "//third_party/javascript/typings/jasmine", "//third_party/javascript/typings/node", ], ) nodejs_module( name = "node_event_flushing_nodejs", srcs = [":node_event_flushing"], module_name = "event_flushing", module_root = "cloud_analytics", )