How to use the taskcluster-lib-urls.apiReference function in taskcluster-lib-urls

To help you get started, we’ve selected a few taskcluster-lib-urls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taskcluster / taskcluster / libraries / references / src / store.js View on Github external
references.forEach(({serviceName, version, ...reference}) => {
    let service = _.find(manifest.services, {serviceName});
    if (!service) {
      service = {serviceName};
      manifest.services.push(service);
    }

    // distinguish references for exchanges and APIs by presence of exchangePrefix
    if (reference.exchangePrefix) {
      _.defaults(service, {pulse: []});
      service.pulse.push({version, reference: libUrls.exchangeReference('', serviceName, version)});
    } else {
      _.defaults(service, {apis: []});
      service.apis.push({version, reference: libUrls.apiReference('', serviceName, version)});
    }
  });

taskcluster-lib-urls

Build urls for taskcluster resources.

MPL-2.0
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages