@scaleflex/widget-tus 0.0.1

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/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@scaleflex/widget-tus",
3
+ "description": "Resumable uploads for Scaleflex using Tus.io",
4
+ "version": "0.0.1",
5
+ "license": "MIT",
6
+ "main": "lib/index.js",
7
+ "types": "types/index.d.ts",
8
+ "dependencies": {
9
+ "@scaleflex/widget-companion-client": "^0.0.1",
10
+ "@scaleflex/widget-utils": "^0.0.1",
11
+ "tus-js-client": "^3.1.0"
12
+ },
13
+ "peerDependencies": {
14
+ "@scaleflex/widget-core": "^0.0.0"
15
+ },
16
+ "files": [
17
+ "/dist",
18
+ "/lib",
19
+ "/types"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "gitHead": "64ea82e745b7deda36d6794863350e6671e9010d"
25
+ }
@@ -0,0 +1,33 @@
1
+ import Filerobot = require("@scaleflex/widget-core");
2
+ import { UploadOptions } from "tus-js-client";
3
+
4
+ declare module Tus {
5
+ type TusUploadOptions = Pick<
6
+ UploadOptions,
7
+ Exclude<
8
+ keyof UploadOptions,
9
+ | "fingerprint"
10
+ | "metadata"
11
+ | "onProgress"
12
+ | "onChunkComplete"
13
+ | "onSuccess"
14
+ | "onError"
15
+ | "uploadUrl"
16
+ | "uploadSize"
17
+ >
18
+ >;
19
+
20
+ export interface TusOptions
21
+ extends Filerobot.PluginOptions,
22
+ TusUploadOptions {
23
+ autoRetry?: boolean;
24
+ resume?: boolean;
25
+ limit?: number;
26
+ retryDelays?: number[];
27
+ useFastRemoteRetry?: boolean;
28
+ }
29
+ }
30
+
31
+ declare class Tus extends Filerobot.Plugin<Tus.TusOptions> {}
32
+
33
+ export = Tus;