@hostr/upload 0.4.0 → 0.5.0
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/api/client.d.ts +4 -0
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -96,6 +96,10 @@ export declare function createUploadSession(opts: {
|
|
|
96
96
|
autoComplete?: boolean;
|
|
97
97
|
audio?: UploadAudioOptions;
|
|
98
98
|
captions?: UploadCaptionsOptions;
|
|
99
|
+
/** Your labels for the asset — up to 20 string values (who uploaded it,
|
|
100
|
+
* its title, your record id). Every event about the asset carries them
|
|
101
|
+
* as `data.metadata`. Strings only: send numeric ids as strings. */
|
|
102
|
+
metadata?: Record<string, string>;
|
|
99
103
|
}, fetchFn?: typeof fetch): Promise<UploadSession>;
|
|
100
104
|
export declare function mintUploadToken(opts: {
|
|
101
105
|
endpoint: string;
|
package/dist/browser.js
CHANGED
|
@@ -888,7 +888,7 @@ var UploadEngine = class {
|
|
|
888
888
|
code: "systemic-transport-failure",
|
|
889
889
|
consecutiveNetworkFailures: this.consecutiveNetworkFailures,
|
|
890
890
|
bytesEverConfirmed: this.bytesConfirmed(),
|
|
891
|
-
hint:
|
|
891
|
+
hint: "every part PUT is failing at the network layer and no bytes have ever been confirmed for this session \u2014 check the connection; in a browser, check that the page CSP connect-src allows the storage host, and (self-hosted buckets only) bucket CORS"
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
bytesConfirmed() {
|
package/dist/index.js
CHANGED
|
@@ -902,7 +902,7 @@ var UploadEngine = class {
|
|
|
902
902
|
code: "systemic-transport-failure",
|
|
903
903
|
consecutiveNetworkFailures: this.consecutiveNetworkFailures,
|
|
904
904
|
bytesEverConfirmed: this.bytesConfirmed(),
|
|
905
|
-
hint:
|
|
905
|
+
hint: "every part PUT is failing at the network layer and no bytes have ever been confirmed for this session \u2014 check the connection; in a browser, check that the page CSP connect-src allows the storage host, and (self-hosted buckets only) bucket CORS"
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
bytesConfirmed() {
|
package/dist/node.js
CHANGED
|
@@ -893,7 +893,7 @@ var UploadEngine = class {
|
|
|
893
893
|
code: "systemic-transport-failure",
|
|
894
894
|
consecutiveNetworkFailures: this.consecutiveNetworkFailures,
|
|
895
895
|
bytesEverConfirmed: this.bytesConfirmed(),
|
|
896
|
-
hint:
|
|
896
|
+
hint: "every part PUT is failing at the network layer and no bytes have ever been confirmed for this session \u2014 check the connection; in a browser, check that the page CSP connect-src allows the storage host, and (self-hosted buckets only) bucket CORS"
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
899
|
bytesConfirmed() {
|