use-tus 0.7.1 → 0.7.3
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/TusClientProvider/TusClientProvider.d.ts +1 -1
- package/dist/TusClientProvider/store/tucClientActions.d.ts +1 -1
- package/dist/TusClientProvider/store/tusClientReducer.d.ts +2 -2
- package/dist/TusClientProvider/types.d.ts +1 -1
- package/dist/__stories__/Basic.stories.d.ts +5 -3
- package/dist/__stories__/components/BasicButton/BasicButton.d.ts +3 -3
- package/dist/__stories__/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/__tests__/utils/mock.d.ts +2 -8
- package/dist/index.cjs.js +1 -631
- package/dist/index.esm.js +1 -625
- package/dist/index.js +1 -3
- package/dist/useTus/utils/createUpload.d.ts +1 -1
- package/package.json +43 -47
- package/dist/__stories__/CacheKey.stories.d.ts +0 -5
- package/dist/__stories__/DefaultOptions.stories.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-tus",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "React hooks for resumable file uploads using tus-js-client",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "npm-run-all -s type clean build:rollup",
|
|
10
|
-
"build:rollup": "cross-env NODE_ENV=production rollup -c",
|
|
11
|
-
"test": "cross-env NODE_ENV=TEST jest",
|
|
12
|
-
"type": "tsc --noEmit",
|
|
13
|
-
"format": "npm-run-all -s format:*",
|
|
14
|
-
"format:fix": "prettier --write './**/*.{ts,tsx,js,jsx,json}'",
|
|
15
|
-
"format:lint": "eslint ./ --ext .ts,.tsx",
|
|
16
|
-
"clean": "rimraf ./dist",
|
|
17
|
-
"prepublishOnly": "npm run build",
|
|
18
|
-
"prepare": "husky install",
|
|
19
|
-
"storybook": "start-storybook -p 6006",
|
|
20
|
-
"storybook:build": "build-storybook",
|
|
21
|
-
"storybook:static": "gh-pages -d storybook-static",
|
|
22
|
-
"storybook:deploy": "npm-run-all -s storybook:build storybook:static",
|
|
23
|
-
"build-storybook": "build-storybook"
|
|
24
|
-
},
|
|
25
8
|
"keywords": [
|
|
26
9
|
"react",
|
|
27
10
|
"react-hooks",
|
|
@@ -45,43 +28,39 @@
|
|
|
45
28
|
},
|
|
46
29
|
"homepage": "https://github.com/kqito/use-tus#readme",
|
|
47
30
|
"devDependencies": {
|
|
48
|
-
"@babel/cli": "^7.13.14",
|
|
49
|
-
"@babel/core": "^7.13.14",
|
|
50
|
-
"@babel/preset-env": "^7.13.12",
|
|
51
|
-
"@babel/preset-react": "^7.13.13",
|
|
52
|
-
"@babel/preset-typescript": "^7.13.0",
|
|
53
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
54
31
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
55
32
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
56
33
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
57
|
-
"@storybook/addon-actions": "^
|
|
58
|
-
"@storybook/addon-essentials": "^
|
|
59
|
-
"@storybook/addon-links": "^
|
|
60
|
-
"@storybook/react": "^
|
|
61
|
-
"@
|
|
34
|
+
"@storybook/addon-actions": "^7.5.1",
|
|
35
|
+
"@storybook/addon-essentials": "^7.5.1",
|
|
36
|
+
"@storybook/addon-links": "^7.5.1",
|
|
37
|
+
"@storybook/react": "^7.5.1",
|
|
38
|
+
"@storybook/react-vite": "^7.5.1",
|
|
39
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
62
40
|
"@testing-library/react": "^13.3.0",
|
|
63
|
-
"@types/jest": "^
|
|
41
|
+
"@types/jest": "^29.5.6",
|
|
64
42
|
"@types/react": "^17.0.3",
|
|
65
43
|
"@types/react-dom": "^17.0.3",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
67
|
-
"@typescript-eslint/parser": "^
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
45
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
68
46
|
"autoprefixer": "^9",
|
|
69
|
-
"babel-jest": "^26.6.3",
|
|
70
|
-
"babel-loader": "^8.2.2",
|
|
71
47
|
"clsx": "^1.1.1",
|
|
72
48
|
"cross-env": "^7.0.3",
|
|
73
|
-
"
|
|
74
|
-
"eslint
|
|
75
|
-
"eslint-config-
|
|
76
|
-
"eslint-
|
|
77
|
-
"eslint-plugin-
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-react
|
|
49
|
+
"esbuild": "^0.19.5",
|
|
50
|
+
"eslint": "^8.52.0",
|
|
51
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
52
|
+
"eslint-config-prettier": "^9.0.0",
|
|
53
|
+
"eslint-plugin-import": "^2.28.1",
|
|
54
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
55
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
56
|
+
"eslint-plugin-react": "^7.33.2",
|
|
57
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
58
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
81
59
|
"gh-pages": "^3.1.0",
|
|
82
60
|
"husky": "^6.0.0",
|
|
83
|
-
"jest": "^
|
|
61
|
+
"jest": "^29.7.0",
|
|
84
62
|
"jest-dom": "^4.0.0",
|
|
63
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
85
64
|
"lint-staged": "^10.5.4",
|
|
86
65
|
"npm-run-all": "^4.1.5",
|
|
87
66
|
"postcss": "^7",
|
|
@@ -90,14 +69,31 @@
|
|
|
90
69
|
"react-dom": "^18.1.0",
|
|
91
70
|
"rimraf": "^3.0.2",
|
|
92
71
|
"rollup": "^2.44.0",
|
|
72
|
+
"rollup-plugin-esbuild": "^6.1.0",
|
|
73
|
+
"storybook": "^7.5.1",
|
|
93
74
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
|
94
|
-
"ts-jest": "^
|
|
75
|
+
"ts-jest": "^29.1.1",
|
|
95
76
|
"tus-js-client": "^2.2.0",
|
|
96
|
-
"typescript": "^
|
|
77
|
+
"typescript": "^5.2.2",
|
|
78
|
+
"vite": "^4.5.0"
|
|
97
79
|
},
|
|
98
80
|
"peerDependencies": {
|
|
99
81
|
"react": ">=16.8",
|
|
100
82
|
"tus-js-client": "^2.2.0"
|
|
101
83
|
},
|
|
102
|
-
"
|
|
103
|
-
|
|
84
|
+
"packageManager": "pnpm@8.8.0",
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "npm-run-all -s type clean build:rollup",
|
|
87
|
+
"build:rollup": "cross-env NODE_ENV=production rollup -c",
|
|
88
|
+
"test": "cross-env NODE_ENV=TEST jest",
|
|
89
|
+
"type": "tsc --noEmit",
|
|
90
|
+
"format": "npm-run-all -s format:*",
|
|
91
|
+
"format:fix": "prettier --write './**/*.{ts,tsx,js,jsx,json}'",
|
|
92
|
+
"format:lint": "eslint ./ --ext .ts,.tsx",
|
|
93
|
+
"clean": "rimraf ./dist",
|
|
94
|
+
"storybook": "storybook dev -p 6006",
|
|
95
|
+
"storybook:build": "storybook build",
|
|
96
|
+
"storybook:static": "gh-pages -d storybook-static",
|
|
97
|
+
"storybook:deploy": "npm-run-all -s storybook:build storybook:static"
|
|
98
|
+
}
|
|
99
|
+
}
|