Skip to content

Conversation

@yinxulai
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #504 (c0f47ff) into master (94e349d) will increase coverage by 1.00%.
The diff coverage is 79.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #504      +/-   ##
==========================================
+ Coverage   42.21%   43.22%   +1.00%     
==========================================
  Files           9       15       +6     
  Lines         514      849     +335     
  Branches      113      155      +42     
==========================================
+ Hits          217      367     +150     
- Misses        285      472     +187     
+ Partials       12       10       -2     
Impacted Files Coverage Δ
src/config/index.ts 100.00% <ø> (ø)
src/upload/direct.ts 19.44% <ø> (ø)
src/utils/helper.ts 35.00% <ø> (ø)
src/utils/observable.ts 29.54% <ø> (ø)
src/utils/pool.ts 95.45% <ø> (ø)
src/upload/index.ts 32.00% <25.00%> (ø)
src/api/index.ts 61.76% <50.00%> (ø)
src/upload/resume.ts 14.28% <50.00%> (ø)
src/utils/base64.ts 93.91% <93.61%> (ø)
src/image/index.ts 56.70% <100.00%> (ø)
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94e349d...c0f47ff. Read the comment docs.

export * from './observable'

export * from './base64'
export * from './helper'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index + export 可以绕过 helper

@@ -1,5 +1,5 @@
import { EXIF } from 'exif-js'
import { createObjectURL, getTransform } from './utils'
import { createObjectURL, getTransform } from '.'
Copy link
Collaborator

@lzfee0227 lzfee0227 Apr 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

循环引用?
好像不止一个这种东西 check 一下

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check 完了


export { urlSafeBase64Encode, urlSafeBase64Decode } from './base64'

export { CompressResult } from './compress'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删了?

Comment on lines 1 to 6
import Resume from './resume'
import Direct from './direct'
import { UploadOptions, UploadHandler } from './base'
import Logger from '../logger'
import { MB } from '../utils'
import { UploadCompleteData } from '../api'
import { CustomError, Observable, IObserver, MB } from '../utils'
import { Config, Extra, UploadHandler, UploadOptions, UploadProgress } from './base'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

顺序调一下?

* @param config 上传任务的配置
* @returns 返回用于上传任务的可观察对象
*/
export function upload(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default 应该换成这个?
upload 模块的缺省导出是 upload 很正常?
我看其他的东西也没导出

Comment on lines 1 to 3
import { Pool } from '../pool'
import { uploadChunk, uploadComplete, initUploadParts, UploadChunkData } from '../api'
import Base, { Progress, UploadInfo, Extra } from './base'
import * as utils from '../utils'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同顺序


export function utf8Encode(argString: any) {
// https://github.com/locutusjs/locutus/blob/master/src/php/xml/utf8_encode.js
function utf8Encode(argString: any) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIP: 为什么 argString 的类型不是 string = =

Copy link
Collaborator

@lzfee0227 lzfee0227 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yinxulai yinxulai merged commit 671e54e into qiniu:master Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants