js-sdk
js-sdk copied to clipboard
Qiniu Cloud JavaScript SDK
## 问题 目前内部实现的 [observable](https://github.com/qiniu/js-sdk/blob/master/src/utils/observable.ts) 模块包含大量的泛型 在使用时为了维护类型的正确性,很容易出现了诸多类似下面的代码  实际上,`observable` 作为内部实现,不应该将其泛型的内部设计影响延伸到 `SDK` 以外的地方,作为 `SDK` 的消费端,业务目前也没有泛型的需求
### 问题 服务端对 `fname` 的定义是文件原始名[(查看文档)](https://developer.qiniu.com/kodo/1235/vars) 现有的 `fname` 参数可能有些冗余,我们的 `upload` 函数的第一个参数是 `File`,`fname` 可以通过 `File.name` 来获得 #### `fname` 目前作用 在直传接口中,服务端通过 `FormData` 对象可以直接获取 `File` 的 `filename` 进行处理,因此直传不消费 `fname` 在分片接口中,由于服务端收到的是一个一个的切片,所以必须在 `completeFile` 阶段通过参数指定 `fname` 设置...
升级一下依赖吧, @babel/runtime-corejs2 7.20 依赖 core-js 2.6, 这是4年前的版本, 已经deprecated, 安装这些老版本时有deprecated警告
升级一下依赖吧, @babel/runtime-corejs2 7.20 依赖 core-js 2.6, 这是4年前的版本, 已经deprecated, 安装这些老版本时有deprecated警告
Bumps [serve-static](https://github.com/expressjs/serve-static) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `serve-static` from 1.14.1 to 1.16.2 Release notes Sourced from serve-static's releases. 1.16.0 What's Changed Remove link renderization in...
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 0.1.10 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `path-to-regexp` from 0.1.7 to 0.1.10 Release notes Sourced from path-to-regexp's releases. Backtrack protection...
Bumps [send](https://github.com/pillarjs/send) to 0.19.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `send` from 0.17.1 to 0.19.0 Release notes Sourced from send's releases. 0.19.0 What's...
Bumps [serve-static](https://github.com/expressjs/serve-static) to 1.16.0 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `serve-static` from 1.14.1 to 1.16.0 Release notes Sourced from serve-static's releases. 1.16.0 What's...
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `body-parser` from 1.19.0 to 1.20.3 Release notes Sourced from body-parser's releases. 1.20.3 What's Changed Important deps: [email protected] add...
以下为uniapp的项目代码 ` {{vsrc}}-{{ result }} export default { data(){ return { vsrc:'', result:'111' } }, methods:{ test: function () { var self = this; uni.chooseVideo({ sourceType: ['camera', 'album'], success: function...
Bumps [micromatch](https://github.com/micromatch/micromatch) to 4.0.8 and updates ancestor dependencies [micromatch](https://github.com/micromatch/micromatch), [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli), [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest), [webpack](https://github.com/webpack/webpack), [webpack-cli](https://github.com/webpack/webpack-cli) and [webpack-dev-server](https://github.com/webpack/webpack-dev-server). These dependencies need to be updated together. Updates `micromatch` from 4.0.2 to 4.0.8 Release notes...