chore: update pnpm version to 7.33 (#413)

* chore: update pnpm version to 7.33

* fmt
pull/412/head
Fabian-Lars 2 years ago committed by GitHub
parent 07406f1c9d
commit 393667b547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
auto-install-peers=true

@ -27,6 +27,6 @@
"typescript": "^5.0.4" "typescript": "^5.0.4"
}, },
"engines": { "engines": {
"pnpm": ">=7.24.2" "pnpm": ">=7.33.0"
} }
} }

@ -52,25 +52,25 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings: Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript ```javascript
import { upload } from 'tauri-plugin-upload-api' import { upload } from "tauri-plugin-upload-api";
upload( upload(
'https://example.com/file-upload', "https://example.com/file-upload",
'./path/to/my/file.txt', "./path/to/my/file.txt",
(progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress
{ 'Content-Type': 'text/plain' } // optional headers to send with the request { "Content-Type": "text/plain" } // optional headers to send with the request
) );
``` ```
```javascript ```javascript
import { download } from "tauri-plugin-upload-api"; import { download } from "tauri-plugin-upload-api";
download( download(
'https://example.com/file-download-link', "https://example.com/file-download-link",
'./path/to/save/my/file.txt', "./path/to/save/my/file.txt",
(progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress
{ 'Content-Type': 'text/plain' } // optional headers to send with the request { "Content-Type": "text/plain" } // optional headers to send with the request
) );
``` ```
## Contributing ## Contributing

@ -1,4 +1,8 @@
lockfileVersion: '6.0' lockfileVersion: '6.1'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers: importers:

Loading…
Cancel
Save