Merge pull request #13459 from meteor/fix-cordova-accounts-url-legacy

Fix Cordova issue when using accounts-base
This commit is contained in:
Nacho Codoñer
2024-11-19 17:22:03 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
try {
require("url-search-params-polyfill");
URLSearchParams = window.URLSearchParams;
exports.URLSearchParams = URLSearchParams;
require("core-js/proposals/url");
URL = window.URL;
exports.URL = URL;
} catch (e) {
throw new Error([
"The core-js npm package could not be found in your node_modules ",

View File

@@ -6,7 +6,8 @@ Package.describe({
});
Npm.depends({
"core-js": "3.38.1"
"core-js": "3.39.0",
"url-search-params-polyfill": "8.2.5",
});
Package.onUse(function(api) {