UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

39 lines • 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowserFamily = exports.BaseBrowserFamily = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../../core/resource.js"); const path_1 = require("../../../../internal/utils/path.js"); var BaseBrowserFamily = /* @__PURE__ */ (() => { class BaseBrowserFamily extends resource_1.APIResource { /** * Retrieves the top locations, by HTTP requests, of the requested browser family. * * @example * ```ts * const browserFamily = * await client.radar.http.locations.browserFamily.get( * 'CHROME', * ); * ``` */ get(browserFamily, query = {}, options) { return this._client.get((0, path_1.path) `/radar/http/top/locations/browser_family/${browserFamily}`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseBrowserFamily._key = Object.freeze([ 'radar', 'http', 'locations', 'browserFamily', ]); return BaseBrowserFamily; })(); exports.BaseBrowserFamily = BaseBrowserFamily; class BrowserFamily extends BaseBrowserFamily { } exports.BrowserFamily = BrowserFamily; //# sourceMappingURL=browser-family.js.map