vite-plugin-agent-tail 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,10 +13,10 @@ npm install -D vite-plugin-agent-tail
|
|
|
13
13
|
```ts
|
|
14
14
|
// vite.config.ts
|
|
15
15
|
import { defineConfig } from "vite"
|
|
16
|
-
import {
|
|
16
|
+
import { agentTail } from "vite-plugin-agent-tail"
|
|
17
17
|
|
|
18
18
|
export default defineConfig({
|
|
19
|
-
plugins: [
|
|
19
|
+
plugins: [agentTail()],
|
|
20
20
|
})
|
|
21
21
|
```
|
|
22
22
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import { BrowserLogsOptions, BrowserLogsOptions as BrowserLogsOptions$1, DEFAULT
|
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
|
5
|
-
declare function
|
|
5
|
+
declare function agentTail(user_options?: BrowserLogsOptions$1): Plugin;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { type BrowserLogsOptions, DEFAULT_OPTIONS, type LogEntry, type ResolvedOptions,
|
|
7
|
+
export { type BrowserLogsOptions, DEFAULT_OPTIONS, type LogEntry, type ResolvedOptions, agentTail };
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import { DEFAULT_OPTIONS, LogManager, format_log_line, generate_client_script, resolve_options, should_exclude } from "agent-tail-core";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.ts
|
|
5
|
-
function
|
|
5
|
+
function agentTail(user_options) {
|
|
6
6
|
const options = resolve_options(user_options);
|
|
7
7
|
const log_manager = new LogManager(options);
|
|
8
8
|
let log_path;
|
|
@@ -46,4 +46,4 @@ function browser_logs(user_options) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
//#endregion
|
|
49
|
-
export { DEFAULT_OPTIONS,
|
|
49
|
+
export { DEFAULT_OPTIONS, agentTail };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-agent-tail",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Vite plugin for agent-tail — pipes browser console logs to files on disk during development.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"agent-tail-core": "^0.
|
|
33
|
+
"agent-tail-core": "^0.3.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"vite": ">=5.0.0"
|