@next/eslint-plugin-next 14.2.0-canary.4 → 14.2.0-canary.5
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.
|
@@ -101,7 +101,9 @@ module.exports = (0, _definerule.defineRule)({
|
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
var src = srcNode.value.value;
|
|
104
|
-
if (src.startsWith("https://cdn.polyfill.io/v2/") || src.startsWith("https://polyfill.io/v3/")
|
|
104
|
+
if (src.startsWith("https://cdn.polyfill.io/v2/") || src.startsWith("https://polyfill.io/v3/") || // https://community.fastly.com/t/new-options-for-polyfill-io-users/2540
|
|
105
|
+
src.startsWith("https://polyfill-fastly.net/") || src.startsWith("https://polyfill-fastly.io/") || // https://blog.cloudflare.com/polyfill-io-now-available-on-cdnjs-reduce-your-supply-chain-risk
|
|
106
|
+
src.startsWith("https://cdnjs.cloudflare.com/polyfill/")) {
|
|
105
107
|
var featureQueryString = new URL(src).searchParams.get("features");
|
|
106
108
|
var featuresRequested = (featureQueryString || "").split(",");
|
|
107
109
|
var unwantedFeatures = featuresRequested.filter(function(feature) {
|