x-runtime-lib 0.8.174 → 0.8.175

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -372,12 +372,7 @@ const Qo = async (t, n, e, o) => {
372
372
  } else
373
373
  return i;
374
374
  }, es = async (t, n, e, o, i) => {
375
- if (i) {
376
- if (typeof o != "object")
377
- throw new Error("unexpected value type");
378
- o = JSON.stringify(o, null, 2);
379
- }
380
- await t.setElementProperty(n, e, o);
375
+ i && typeof o == "object" && (o = JSON.stringify(o, null, 2)), await t.setElementProperty(n, e, o);
381
376
  }, ts = async (t, n, e) => {
382
377
  const o = ze(t, n);
383
378
  if (e) {
@@ -387,12 +382,7 @@ const Qo = async (t, n, e, o) => {
387
382
  } else
388
383
  return o;
389
384
  }, ns = async (t, n, e, o) => {
390
- if (o) {
391
- if (typeof e != "object")
392
- throw new Error("unexpected value type");
393
- e = JSON.stringify(e, null, 2);
394
- }
395
- xn(t, n, e);
385
+ o && typeof e == "object" && (e = JSON.stringify(e, null, 2)), xn(t, n, e);
396
386
  };
397
387
  function a(t, n, e) {
398
388
  const o = oe(), i = ne();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.174",
4
+ "version": "0.8.175",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",