@overmap-ai/forms 1.0.32-react-flow-david-fixes.33 → 1.0.32-react-flow-david-fixes.34

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.
@@ -4,4 +4,5 @@ export declare class UUIDPromise<T> extends Promise<T> {
4
4
  static from<T>(uuid: string, promise: Promise<T> | PromiseLike<T>): UUIDPromise<T>;
5
5
  then<TResult1 = T, TResult2 = never>(...args: Parameters<Promise<T>["then"]>): UUIDPromise<TResult1 | TResult2>;
6
6
  catch<TResult2 = never>(...args: Parameters<Promise<T>["catch"]>): UUIDPromise<T | TResult2>;
7
+ finally(onfinally?: Parameters<Promise<T>["finally"]>[0]): UUIDPromise<T>;
7
8
  }
package/dist/forms.js CHANGED
@@ -32260,6 +32260,9 @@ class UUIDPromise extends Promise {
32260
32260
  this.uuid = uuid;
32261
32261
  }
32262
32262
  static from(uuid, promise) {
32263
+ if (!promise || typeof promise.then !== "function") {
32264
+ throw new TypeError("Input must be a Promise or PromiseLike");
32265
+ }
32263
32266
  return new UUIDPromise(uuid, (resolve, reject) => {
32264
32267
  Promise.resolve(promise).then(resolve).catch(reject);
32265
32268
  });
@@ -32270,6 +32273,9 @@ class UUIDPromise extends Promise {
32270
32273
  catch(...args) {
32271
32274
  return UUIDPromise.from(this.uuid, super.catch(...args));
32272
32275
  }
32276
+ finally(onfinally) {
32277
+ return UUIDPromise.from(this.uuid, super.finally(onfinally));
32278
+ }
32273
32279
  }
32274
32280
  const convertBytesToLargestUnit = (bytes) => {
32275
32281
  const units = ["byte", "kilobyte", "megabyte"];
@@ -32262,6 +32262,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
32262
32262
  this.uuid = uuid2;
32263
32263
  }
32264
32264
  static from(uuid2, promise) {
32265
+ if (!promise || typeof promise.then !== "function") {
32266
+ throw new TypeError("Input must be a Promise or PromiseLike");
32267
+ }
32265
32268
  return new UUIDPromise(uuid2, (resolve, reject) => {
32266
32269
  Promise.resolve(promise).then(resolve).catch(reject);
32267
32270
  });
@@ -32272,6 +32275,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
32272
32275
  catch(...args) {
32273
32276
  return UUIDPromise.from(this.uuid, super.catch(...args));
32274
32277
  }
32278
+ finally(onfinally) {
32279
+ return UUIDPromise.from(this.uuid, super.finally(onfinally));
32280
+ }
32275
32281
  }
32276
32282
  const convertBytesToLargestUnit = (bytes) => {
32277
32283
  const units = ["byte", "kilobyte", "megabyte"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overmap-ai/forms",
3
- "version": "1.0.32-react-flow-david-fixes.33",
3
+ "version": "1.0.32-react-flow-david-fixes.34",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/forms.umd.cjs",
6
6
  "module": "dist/forms.js",