@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.
package/dist/eyepop.index.js
CHANGED
|
@@ -11048,11 +11048,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11048
11048
|
}
|
|
11049
11049
|
// Asset methods
|
|
11050
11050
|
async uploadAsset(dataset_uuid, dataset_version, blob, external_id = void 0) {
|
|
11051
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11051
11052
|
let post_path;
|
|
11052
11053
|
if (external_id) {
|
|
11053
|
-
post_path = `/assets?dataset_uuid=${dataset_uuid}
|
|
11054
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
|
|
11054
11055
|
} else {
|
|
11055
|
-
post_path = `/assets?dataset_uuid=${dataset_uuid}
|
|
11056
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}`;
|
|
11056
11057
|
}
|
|
11057
11058
|
return this.request(post_path, {
|
|
11058
11059
|
method: "POST",
|