@builder.io/sdk-qwik 0.0.22 → 0.0.23

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.
@@ -2,24 +2,6 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const qwik = require("@builder.io/qwik");
4
4
  const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule)
7
- return e;
8
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
- if (e) {
10
- for (const k in e) {
11
- if (k !== "default") {
12
- const d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: () => e[k]
16
- });
17
- }
18
- }
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
23
5
  const TARGET = "qwik";
24
6
  function isBrowser() {
25
7
  return typeof window !== "undefined" && typeof document !== "undefined";
@@ -1917,10 +1899,8 @@ function getGlobalThis() {
1917
1899
  }
1918
1900
  async function getFetch() {
1919
1901
  const globalFetch = getGlobalThis().fetch;
1920
- if (typeof globalFetch === "undefined" && typeof global !== "undefined") {
1921
- const nodeFetch = Promise.resolve().then(() => /* @__PURE__ */ _interopNamespace(require("node-fetch"))).then((d) => d.default);
1922
- return nodeFetch.default || nodeFetch;
1923
- }
1902
+ if (typeof globalFetch === "undefined" && typeof global !== "undefined")
1903
+ throw new Error("`fetch()` not found, ensure you have it as part of your polyfills.");
1924
1904
  return globalFetch.default || globalFetch;
1925
1905
  }
1926
1906
  const handleABTesting = (item, testGroups) => {
@@ -1897,10 +1897,8 @@ function getGlobalThis() {
1897
1897
  }
1898
1898
  async function getFetch() {
1899
1899
  const globalFetch = getGlobalThis().fetch;
1900
- if (typeof globalFetch === "undefined" && typeof global !== "undefined") {
1901
- const nodeFetch = import("node-fetch").then((d) => d.default);
1902
- return nodeFetch.default || nodeFetch;
1903
- }
1900
+ if (typeof globalFetch === "undefined" && typeof global !== "undefined")
1901
+ throw new Error("`fetch()` not found, ensure you have it as part of your polyfills.");
1904
1902
  return globalFetch.default || globalFetch;
1905
1903
  }
1906
1904
  const handleABTesting = (item, testGroups) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",