MCPcopy Create free account
hub / github.com/angular/dev-infra / wrappedDefaultsCallback

Method wrappedDefaultsCallback

github-actions/saucelabs/set-saucelabs-env.js:11276–11284  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

11274 if (typeof opts !== "object") {
11275 throw new InvalidArgumentError("opts must be an object");
11276 }
11277 if (typeof opts.path === "undefined") {
11278 throw new InvalidArgumentError("opts.path must be defined");
11279 }
11280 if (typeof opts.method === "undefined") {
11281 opts.method = "GET";
11282 }
11283 if (typeof opts.path === "string") {
11284 if (opts.query) {
11285 opts.path = buildURL(opts.path, opts.query);
11286 } else {
11287 const parsedURL = new URL(opts.path, "data://");

Callers

nothing calls this directly

Calls 3

__spreadValuesFunction · 0.70

Tested by

no test coverage detected