create-polyfill-service-url 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "jest": "^29.5.0",
22
22
  "tinysh": "^1.0.0"
23
23
  },
24
- "version": "2.3.0",
24
+ "version": "2.3.1",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.21.8",
27
27
  "@financial-times/js-features-analyser": "^0.4.3",
package/src/index.js CHANGED
@@ -65,7 +65,7 @@ function normaliseBrowsers(browsers) {
65
65
  async function generatePolyfillURL(
66
66
  features = [],
67
67
  supportedBrowsers = [],
68
- hostname = "polyfill.io",
68
+ hostname = "cdnjs.cloudflare.com",
69
69
  flags = null,
70
70
  useComputeAtEdgeBackend = null,
71
71
  unknown = null
@@ -73,7 +73,7 @@ async function generatePolyfillURL(
73
73
  if (supportedBrowsers) {
74
74
  supportedBrowsers = normaliseBrowsers(supportedBrowsers);
75
75
  }
76
- const polyfillUrl = new URL('/v3/polyfill.min.js', 'https://' + hostname);
76
+ const polyfillUrl = new URL('/polyfill/v3/polyfill.min.js', 'https://' + hostname);
77
77
  const aliases = await polyfillLibrary.listAliases();
78
78
  const polyfills = await polyfillLibrary.listAllPolyfills();
79
79
  const featuresInPolyfillLibrary = new Set();