vite-plugin-naria2
Advanced tools
Comparing version 0.0.9-beta.3 to 0.0.9-beta.4
{ | ||
"name": "vite-plugin-naria2", | ||
"version": "0.0.9-beta.3", | ||
"description": "Vite naria2 intergration", | ||
"version": "0.0.9-beta.4", | ||
"description": "Vite naria2 integration", | ||
"keywords": [ | ||
@@ -13,3 +13,4 @@ "aria2", | ||
"typescript", | ||
"vite" | ||
"vite", | ||
"vite-plugin" | ||
], | ||
@@ -48,4 +49,4 @@ "homepage": "https://github.com/yjl9903/naria2#readme", | ||
"type-fest": "^4.1.0", | ||
"@naria2/node": "0.0.9-beta.3", | ||
"naria2": "0.0.9-beta.3" | ||
"@naria2/node": "0.0.9-beta.4", | ||
"naria2": "0.0.9-beta.4" | ||
}, | ||
@@ -52,0 +53,0 @@ "devDependencies": { |
@@ -6,2 +6,4 @@ # vite-plugin-naria2 | ||
Make it easy to debug a aria2 client application. | ||
## Installation | ||
@@ -16,2 +18,4 @@ | ||
```ts | ||
// vite.config.ts | ||
import { defineConfig } from 'vite'; | ||
@@ -24,3 +28,3 @@ | ||
plugins: [ | ||
TopLevelAwait(), | ||
TopLevelAwait(), // Used for transforming the top-level await syntax | ||
Naria2({ | ||
@@ -38,4 +42,19 @@ childProcess: { | ||
Use the aria2 child process in your application code. | ||
```ts | ||
// main.ts | ||
import { socket, client } from '~naria2/jsonrpc'; | ||
console.log('naria2 socket:', socket); | ||
console.log('naria2 client:', client); | ||
``` | ||
> **Warning** | ||
> | ||
> The aria2 child process only created in your development so that these exported variables will be `undefined` in production. | ||
## License | ||
MIT License © 2023 [XLor](https://github.com/yjl9903) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8729
57
+ Added@naria2/node@0.0.9-beta.4(transitive)
+ Added@naria2/options@0.0.9-beta.4(transitive)
+ Addednaria2@0.0.9-beta.4(transitive)
- Removed@naria2/node@0.0.9-beta.3(transitive)
- Removed@naria2/options@0.0.9-beta.3(transitive)
- Removednaria2@0.0.9-beta.3(transitive)
Updated@naria2/node@0.0.9-beta.4
Updatednaria2@0.0.9-beta.4