@qwik.dev/core 2.0.0-beta.3 → 2.0.0-beta.4

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.3-dev+aa098fc
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.4-dev+9849dcf
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1257,7 +1257,7 @@ globalThis.qwikOptimizer = function(module) {
1257
1257
  }
1258
1258
  };
1259
1259
  var versions = {
1260
- qwik: "2.0.0-beta.3-dev+aa098fc"
1260
+ qwik: "2.0.0-beta.4-dev+9849dcf"
1261
1261
  };
1262
1262
  async function getSystem() {
1263
1263
  const sysEnv = getEnv();
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.3-dev+aa098fc
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.4-dev+9849dcf
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1282,7 +1282,7 @@ var QWIK_BINDING_MAP = {
1282
1282
  };
1283
1283
 
1284
1284
  var versions = {
1285
- qwik: "2.0.0-beta.3-dev+aa098fc"
1285
+ qwik: "2.0.0-beta.4-dev+9849dcf"
1286
1286
  };
1287
1287
 
1288
1288
  async function getSystem() {
package/dist/server.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.3-dev+aa098fc
3
+ * @qwik.dev/core/server 2.0.0-beta.4-dev+9849dcf
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -157,6 +157,17 @@ var mapArray_has = (array, key, start) => {
157
157
  return mapApp_findIndx(array, key, start) >= 0;
158
158
  };
159
159
 
160
+ // packages/qwik/src/core/shared/utils/types.ts
161
+ var isObject = (v) => {
162
+ return typeof v === "object" && v !== null;
163
+ };
164
+ var isArray = (v) => {
165
+ return Array.isArray(v);
166
+ };
167
+ var isString = (v) => {
168
+ return typeof v === "string";
169
+ };
170
+
160
171
  // packages/qwik/src/core/shared/error/error.ts
161
172
  var codeToText = (code, ...parts) => {
162
173
  if (qDev) {
@@ -237,7 +248,7 @@ See https://qwik.dev/docs/components/tasks/#use-method-rules`,
237
248
  if (parts.length) {
238
249
  text = text.replaceAll(/{{(\d+)}}/g, (_, index) => {
239
250
  let v = parts[index];
240
- if (v && typeof v === "object" && v.constructor === Object) {
251
+ if (v && isObject(v) && v.constructor === Object) {
241
252
  v = JSON.stringify(v).slice(0, 50);
242
253
  }
243
254
  return v;
@@ -357,14 +368,6 @@ function isPreventDefault(key) {
357
368
  return key.startsWith("preventdefault:");
358
369
  }
359
370
 
360
- // packages/qwik/src/core/shared/utils/types.ts
361
- var isArray = (v) => {
362
- return Array.isArray(v);
363
- };
364
- var isString = (v) => {
365
- return typeof v === "string";
366
- };
367
-
368
371
  // packages/qwik/src/core/shared/utils/unitless_number.ts
369
372
  var unitlessNumbers = /* @__PURE__ */ new Set([
370
373
  "animationIterationCount",
@@ -1167,7 +1170,7 @@ function getBuildBase(opts) {
1167
1170
  return `${globalThis.BASE_URL || "/"}build/`;
1168
1171
  }
1169
1172
  var versions = {
1170
- qwik: "2.0.0-beta.3-dev+aa098fc",
1173
+ qwik: "2.0.0-beta.4-dev+9849dcf",
1171
1174
  qwikDom: "2.1.19"
1172
1175
  };
1173
1176
 
package/dist/server.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.3-dev+aa098fc
3
+ * @qwik.dev/core/server 2.0.0-beta.4-dev+9849dcf
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -114,6 +114,17 @@ var mapArray_has = (array, key, start) => {
114
114
  return mapApp_findIndx(array, key, start) >= 0;
115
115
  };
116
116
 
117
+ // packages/qwik/src/core/shared/utils/types.ts
118
+ var isObject = (v) => {
119
+ return typeof v === "object" && v !== null;
120
+ };
121
+ var isArray = (v) => {
122
+ return Array.isArray(v);
123
+ };
124
+ var isString = (v) => {
125
+ return typeof v === "string";
126
+ };
127
+
117
128
  // packages/qwik/src/core/shared/error/error.ts
118
129
  var codeToText = (code, ...parts) => {
119
130
  if (qDev) {
@@ -194,7 +205,7 @@ See https://qwik.dev/docs/components/tasks/#use-method-rules`,
194
205
  if (parts.length) {
195
206
  text = text.replaceAll(/{{(\d+)}}/g, (_, index) => {
196
207
  let v = parts[index];
197
- if (v && typeof v === "object" && v.constructor === Object) {
208
+ if (v && isObject(v) && v.constructor === Object) {
198
209
  v = JSON.stringify(v).slice(0, 50);
199
210
  }
200
211
  return v;
@@ -314,14 +325,6 @@ function isPreventDefault(key) {
314
325
  return key.startsWith("preventdefault:");
315
326
  }
316
327
 
317
- // packages/qwik/src/core/shared/utils/types.ts
318
- var isArray = (v) => {
319
- return Array.isArray(v);
320
- };
321
- var isString = (v) => {
322
- return typeof v === "string";
323
- };
324
-
325
328
  // packages/qwik/src/core/shared/utils/unitless_number.ts
326
329
  var unitlessNumbers = /* @__PURE__ */ new Set([
327
330
  "animationIterationCount",
@@ -1122,7 +1125,7 @@ function getBuildBase(opts) {
1122
1125
  return `${import.meta.env.BASE_URL || "/"}build/`;
1123
1126
  }
1124
1127
  var versions = {
1125
- qwik: "2.0.0-beta.3-dev+aa098fc",
1128
+ qwik: "2.0.0-beta.4-dev+9849dcf",
1126
1129
  qwikDom: "2.1.19"
1127
1130
  };
1128
1131