@github/browser-support 1.0.2 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ export class AggregateError extends Error {
17
17
  }
18
18
  /*#__PURE__*/
19
19
  export function isSupported() {
20
- return typeof AggregateError === 'function';
20
+ return typeof globalThis.AggregateError === 'function';
21
21
  }
22
22
  /*#__PURE__*/
23
23
  export function isPolyfilled() {
@@ -1 +1 @@
1
- {"version":3,"file":"aggregateerror.js","sourceRoot":"","sources":["../src/aggregateerror.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAIvC,YAAY,MAAiB,EAAE,OAAe,EAAE,UAA6B,EAAE;QAC7E,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE;YACpC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;YACzB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf,CAAC,CAAA;QACF,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;gBACnC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,YAAY,EAAE,IAAI;gBAClB,QAAQ,EAAE,IAAI;aACf,CAAC,CAAA;SACH;IACH,CAAC;CACF;AAED,aAAa;AACb,MAAM,UAAU,WAAW;IACzB,OAAO,OAAO,cAAc,KAAK,UAAU,CAAA;AAC7C,CAAC;AAED,aAAa;AACb,MAAM,UAAU,YAAY;IAC1B,oCAAoC;IACpC,OAAO,UAAU,CAAC,cAAc,KAAK,cAAc,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,IAAI,CAAC,WAAW,EAAE,EAAE;QAClB,oCAAoC;QACpC,UAAU,CAAC,cAAc,GAAG,cAAc,CAAA;KAC3C;AACH,CAAC"}
1
+ {"version":3,"file":"aggregateerror.js","sourceRoot":"","sources":["../src/aggregateerror.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAIvC,YAAY,MAAiB,EAAE,OAAe,EAAE,UAA6B,EAAE;QAC7E,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE;YACpC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;YACzB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf,CAAC,CAAA;QACF,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;gBACnC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,YAAY,EAAE,IAAI;gBAClB,QAAQ,EAAE,IAAI;aACf,CAAC,CAAA;SACH;IACH,CAAC;CACF;AAED,aAAa;AACb,MAAM,UAAU,WAAW;IACzB,OAAO,OAAO,UAAU,CAAC,cAAc,KAAK,UAAU,CAAA;AACxD,CAAC;AAED,aAAa;AACb,MAAM,UAAU,YAAY;IAC1B,oCAAoC;IACpC,OAAO,UAAU,CAAC,cAAc,KAAK,cAAc,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,IAAI,CAAC,WAAW,EAAE,EAAE;QAClB,oCAAoC;QACpC,UAAU,CAAC,cAAc,GAAG,cAAc,CAAA;KAC3C;AACH,CAAC"}
@@ -31,7 +31,7 @@ export function isPolyfilled() {
31
31
  }
32
32
  export function apply() {
33
33
  if (!isSupported()) {
34
- Promise.all = promiseAny;
34
+ Promise.any = promiseAny;
35
35
  }
36
36
  }
37
37
  //# sourceMappingURL=promise-any.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@github/browser-support",
3
- "version": "1.0.2",
3
+ "version": "1.0.7",
4
4
  "description": "Polyfills and Capable Browser detection",
5
5
  "homepage": "https://github.github.io/browser-support",
6
6
  "bugs": {
@@ -27,6 +27,7 @@
27
27
  "lint": "eslint . --ignore-path .gitignore",
28
28
  "pretest": "npm run build",
29
29
  "test": "npm run lint && karma start test/karma.config.cjs",
30
+ "prepublish": "npm run build",
30
31
  "postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
31
32
  },
32
33
  "prettier": "@github/prettier-config",