How to use the taskcluster-lib-scopes.scopeUnion function in taskcluster-lib-scopes

To help you get started, we’ve selected a few taskcluster-lib-scopes 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 / src / views / Scopes / ScopesetComparison / index.jsx View on Github external
getScopesetDiff = (scopesA, scopesB) => {
    const scopesUnion = scopeUnion(scopesA, scopesB);
    const scopesetDiff = [];

    scopesUnion.forEach(scope => {
      const s1 = scopeIntersection([scope], scopesA);
      const s2 = scopeIntersection([scope], scopesB);

      scopesetDiff.push([s1, s2]);
    });

    return scopesetDiff;
  };
github taskcluster / taskcluster / ui / src / views / Scopes / ScopesetComparison / index.jsx View on Github external
getScopesetDiff = (scopesA, scopesB) => {
    const scopesUnion = scopeUnion(scopesA, scopesB);
    const scopesetDiff = [];

    scopesUnion.forEach(scope => {
      const s1 = scopeIntersection([scope], scopesA);
      const s2 = scopeIntersection([scope], scopesB);

      scopesetDiff.push([s1, s2]);
    });

    return scopesetDiff;
  };