@eyepop.ai/eyepop 0.21.1 → 0.21.2

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.
@@ -11006,11 +11006,12 @@ var DataEndpoint = class extends Endpoint {
11006
11006
  }
11007
11007
  // Asset methods
11008
11008
  async uploadAsset(dataset_uuid, dataset_version, blob, external_id = void 0) {
11009
+ const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11009
11010
  let post_path;
11010
11011
  if (external_id) {
11011
- post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}&external_id=${external_id}`;
11012
+ post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
11012
11013
  } else {
11013
- post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}`;
11014
+ post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}`;
11014
11015
  }
11015
11016
  return this.request(post_path, {
11016
11017
  method: "POST",