Skip to content

Commit

Permalink
feat: 🌸 rename package name
Browse files Browse the repository at this point in the history
  • Loading branch information
weirui88888 committed Mar 14, 2023
1 parent 6e6f802 commit 913d574
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
### 安装

```javascript
npm install ali-oss-upload
npm install @newarray/ali-oss-upload
```

### API
Expand Down Expand Up @@ -126,8 +126,8 @@ const res = await upload({ // 忽略这里的await,因为一般执行该方法
#### 2.模块化
```javascript
import AliOssUpload from 'ali-oss-upload' // esm in browser
const AliOssUpload = require('ali-oss-upload') // cjs in nodejs
import AliOssUpload from '@newarray/ali-oss-upload' // esm in browser
const AliOssUpload = require('@newarray/ali-oss-upload') // cjs in nodejs

// 1.获取stsToken的方法
const asyncGetStsToken = (): Promise<stsToken> => {
Expand Down
8 changes: 4 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ <h3 class="d-sm-flex align-items-center">
// https://aliossupload.newarray.vip/js/ali-oss-upload.browser.js
`
: this.useMode === 'esm'
? `// npm install ali-oss-upload
import AliOssUpload from "ali-oss-upload"
? `// npm install @newarray/ali-oss-upload
import AliOssUpload from "@newarray/ali-oss-upload"
`
: `// npm install ali-oss-upload
const AliOssUpload = require("ali-oss-upload")
: `// npm install @newarray/ali-oss-upload
const AliOssUpload = require("@newarray/ali-oss-upload")
`
}
},
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ali-oss-upload",
"name": "@newarray/ali-oss-upload",
"version": "1.0.0",
"description": "support uploading files to ali oss",
"main": "lib/ali-oss-upload.cjs.js",
Expand Down

0 comments on commit 913d574

Please sign in to comment.