idmission-web-sdk 2.3.169 → 2.3.170
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/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +9 -7
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +9 -7
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +9 -7
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.3.
|
|
207
|
+
var webSdkVersion = '2.3.170';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2314,6 +2314,10 @@ function startTusUpload(_a) {
|
|
|
2314
2314
|
endpoint: endpoint,
|
|
2315
2315
|
retryDelays: [0, 1000, 1000, 1000, 3000, 5000, 10000, 20000],
|
|
2316
2316
|
headers: headers,
|
|
2317
|
+
// Disable tus's URL storage to prevent cross-session resume.
|
|
2318
|
+
// This is critical for PII safety: tus's default fingerprint is based on
|
|
2319
|
+
// file size/type, which can match unrelated documents on shared devices.
|
|
2320
|
+
storeFingerprintForResuming: false,
|
|
2317
2321
|
metadata: _assign({
|
|
2318
2322
|
filetype: blob.type,
|
|
2319
2323
|
contentType: blob.type,
|
|
@@ -2358,12 +2362,10 @@ function startTusUpload(_a) {
|
|
|
2358
2362
|
return shouldRetryChunkRequest(error);
|
|
2359
2363
|
}
|
|
2360
2364
|
});
|
|
2361
|
-
upload
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
upload.start();
|
|
2366
|
-
})["catch"](reject);
|
|
2365
|
+
// Start upload immediately without checking for previous uploads.
|
|
2366
|
+
// Resume is disabled via storeFingerprintForResuming: false to prevent
|
|
2367
|
+
// PII cross-contamination on shared devices.
|
|
2368
|
+
upload.start();
|
|
2367
2369
|
});
|
|
2368
2370
|
}
|
|
2369
2371
|
function waitFor(ms) {
|