We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577eb7a commit cb6b535Copy full SHA for cb6b535
package.json
@@ -27,7 +27,7 @@
27
"glob": "^7.1.6",
28
"p-all": "^2.1.0",
29
"p-retry": "^4.2.0",
30
- "qiniu": "^7.2.2"
+ "qiniu": "^7.3.0"
31
},
32
"devDependencies": {
33
"@types/jest": "^24.0.24",
src/upload.ts
@@ -5,11 +5,7 @@ import pAll from 'p-all';
5
import pRetry from 'p-retry';
6
7
function normalizePath(input: string): string {
8
- let val = input.replace(/^\//, '');
9
- if (!val.endsWith('/')) {
10
- val += '/';
11
- }
12
- return val;
+ return input.replace(/^\//, '');
13
}
14
15
export function upload(
0 commit comments