mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-20 17:00:56 +02:00
feat(plugins): use @tauri-apps namespace on NPM (#368)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
committed by
GitHub
parent
caf8456864
commit
22991af9f4
@@ -57,7 +57,7 @@ fn main() {
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import { trace, info, error, attachConsole } from "tauri-plugin-log-api";
|
||||
import { trace, info, error, attachConsole } from "@tauri-apps/plugin-log";
|
||||
|
||||
// with LogTarget::Webview enabled this function will print logs to the browser console
|
||||
const detach = await attachConsole();
|
||||
|
||||
@@ -75,7 +75,7 @@ async function log(
|
||||
* # Examples
|
||||
*
|
||||
* ```js
|
||||
* import { error } from 'tauri-plugin-log-api';
|
||||
* import { error } from '@tauri-apps/plugin-log';
|
||||
*
|
||||
* const err_info = "No connection";
|
||||
* const port = 22;
|
||||
@@ -98,7 +98,7 @@ export async function error(
|
||||
* # Examples
|
||||
*
|
||||
* ```js
|
||||
* import { warn } from 'tauri-plugin-log-api';
|
||||
* import { warn } from '@tauri-apps/plugin-log';
|
||||
*
|
||||
* const warn_description = "Invalid Input";
|
||||
*
|
||||
@@ -120,7 +120,7 @@ export async function warn(
|
||||
* # Examples
|
||||
*
|
||||
* ```js
|
||||
* import { info } from 'tauri-plugin-log-api';
|
||||
* import { info } from '@tauri-apps/plugin-log';
|
||||
*
|
||||
* const conn_info = { port: 40, speed: 3.20 };
|
||||
*
|
||||
@@ -142,7 +142,7 @@ export async function info(
|
||||
* # Examples
|
||||
*
|
||||
* ```js
|
||||
* import { debug } from 'tauri-plugin-log-api';
|
||||
* import { debug } from '@tauri-apps/plugin-log';
|
||||
*
|
||||
* const pos = { x: 3.234, y: -1.223 };
|
||||
*
|
||||
@@ -164,7 +164,7 @@ export async function debug(
|
||||
* # Examples
|
||||
*
|
||||
* ```js
|
||||
* import { trace } from 'tauri-plugin-log-api';
|
||||
* import { trace } from '@tauri-apps/plugin-log';
|
||||
*
|
||||
* let pos = { x: 3.234, y: -1.223 };
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tauri-plugin-log-api",
|
||||
"name": "@tauri-apps/plugin-log",
|
||||
"version": "0.0.0",
|
||||
"description": "Configurable logging for your Tauri app.",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
|
||||
Reference in New Issue
Block a user