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 = "browser_network", srcs = [ "browser.ts", ], visibility = ["//third_party/javascript/cloud_analytics:internal"], deps = [":interface"], ) ts_library( name = "browser_network_tests", testonly = True, srcs = [ "browser_test.ts", ], deps = [ ":browser_network", ":interface", "//third_party/javascript/cloud_analytics:interfaces", "//third_party/javascript/typings/jasmine", ], ) ts_library( name = "interface", srcs = [ "log_request.ts", "log_request_transmitter.ts", ], deps = ["//third_party/javascript/cloud_analytics:interfaces"], ) ts_library( name = "node_network", srcs = [ "node.ts", ], runtime = "nodejs", visibility = ["//third_party/javascript/cloud_analytics:internal"], deps = [ ":interface", "//third_party/javascript/typings/node", ], ) ts_library( name = "node_network_test", testonly = True, srcs = ["node_test.ts"], deps = [ ":interface", ":node_network", "//third_party/javascript/cloud_analytics:interfaces", "//third_party/javascript/typings/jasmine", "//third_party/javascript/typings/node", ], ) nodejs_module( name = "node_network_nodejs", srcs = [":node_network"], module_name = "network", module_root = "cloud_analytics", )