mol_plot_all 1.2.433 → 1.2.435

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.
package/web.test.js CHANGED
@@ -2980,9 +2980,7 @@ var $;
2980
2980
  $.$mol_fetch_response = $mol_fetch_response;
2981
2981
  class $mol_fetch extends $mol_object2 {
2982
2982
  static request(input, init = {}) {
2983
- let native = $mol_dom_context.fetch;
2984
- if (!native)
2985
- native = $node['node-fetch'];
2983
+ const native = globalThis.fetch ?? $node['undici'].fetch;
2986
2984
  const controller = new AbortController();
2987
2985
  let done = false;
2988
2986
  const promise = native(input, {