paperclip-github-plugin 0.16.0 → 0.16.1

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/dist/manifest.js CHANGED
@@ -691,7 +691,7 @@ var COMPANY_METRIC_API_ROUTE_URL_PATH = `/api/plugins/${GITHUB_SYNC_PLUGIN_ID}/a
691
691
  var require2 = createRequire(import.meta.url);
692
692
  var packageJson = require2("../package.json");
693
693
  var SCHEDULE_TICK_CRON = "* * * * *";
694
- var MANIFEST_VERSION = "0.16.0"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
694
+ var MANIFEST_VERSION = "0.16.1"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
695
695
  var manifest = {
696
696
  id: GITHUB_SYNC_PLUGIN_ID,
697
697
  apiVersion: 1,
package/dist/ui/index.js CHANGED
@@ -370,7 +370,7 @@ import {
370
370
  usePluginToast
371
371
  } from "@paperclipai/plugin-sdk/ui";
372
372
 
373
- // node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/types.js
373
+ // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/types.js
374
374
  var VOID = -1;
375
375
  var PRIMITIVE = 0;
376
376
  var ARRAY = 1;
@@ -382,7 +382,7 @@ var SET = 6;
382
382
  var ERROR = 7;
383
383
  var BIGINT = 8;
384
384
 
385
- // node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/deserialize.js
385
+ // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/deserialize.js
386
386
  var env = typeof self === "object" ? self : globalThis;
387
387
  var guard = (name2, init) => {
388
388
  switch (name2) {
@@ -441,7 +441,10 @@ var deserializer = ($2, _) => {
441
441
  }
442
442
  case ERROR: {
443
443
  const { name: name2, message } = value;
444
- return as(guard(name2, message), index2);
444
+ return as(
445
+ typeof env[name2] === "function" ? guard(name2, message) : new Error(message),
446
+ index2
447
+ );
445
448
  }
446
449
  case BIGINT:
447
450
  return as(BigInt(value), index2);
@@ -460,7 +463,7 @@ var deserializer = ($2, _) => {
460
463
  };
461
464
  var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
462
465
 
463
- // node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/serialize.js
466
+ // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/serialize.js
464
467
  var EMPTY = "";
465
468
  var { toString } = {};
466
469
  var { keys } = Object;
@@ -487,8 +490,8 @@ var typeOf = (value) => {
487
490
  }
488
491
  if (asString.includes("Array"))
489
492
  return [ARRAY, asString];
490
- if (asString.includes("Error"))
491
- return [ERROR, asString];
493
+ if (value instanceof Error)
494
+ return [ERROR, value.name || "Error"];
492
495
  return [OBJECT, asString];
493
496
  };
494
497
  var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
@@ -593,7 +596,7 @@ var serialize = (value, { json, lossy } = {}) => {
593
596
  return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
594
597
  };
595
598
 
596
- // node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/index.js
599
+ // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/index.js
597
600
  var esm_default = typeof structuredClone === "function" ? (
598
601
  /* c8 ignore start */
599
602
  (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)