@holz/env-filter 0.8.3-rc.152 → 0.8.3-rc.155
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.
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { LogProcessor } from '@holz/core';
|
|
2
|
-
|
|
3
|
-
interface Config {
|
|
4
|
-
/** Replace the detected pattern with something else. */
|
|
5
|
-
pattern?: string;
|
|
6
|
-
/** The default pattern to use if no pattern is provided. */
|
|
7
|
-
defaultPattern?: string;
|
|
8
|
-
/** Where to send the logs if they pass the filter. */
|
|
9
|
-
processor: LogProcessor;
|
|
10
|
-
/** The localStorage key where patterns are saved. Default is `debug`. */
|
|
11
|
-
localStorageKey?: string;
|
|
12
|
-
/** The environment variable where patterns are saved. Default is `DEBUG`. */
|
|
13
|
-
environmentVariable?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
1
|
+
import { LogProcessor } from '@holz/core';
|
|
2
|
+
|
|
3
|
+
declare interface Config {
|
|
4
|
+
/** Replace the detected pattern with something else. */
|
|
5
|
+
pattern?: string;
|
|
6
|
+
/** The default pattern to use if no pattern is provided. */
|
|
7
|
+
defaultPattern?: string;
|
|
8
|
+
/** Where to send the logs if they pass the filter. */
|
|
9
|
+
processor: LogProcessor;
|
|
10
|
+
/** The localStorage key where patterns are saved. Default is `debug`. */
|
|
11
|
+
localStorageKey?: string;
|
|
12
|
+
/** The environment variable where patterns are saved. Default is `DEBUG`. */
|
|
13
|
+
environmentVariable?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const createEnvironmentFilter: ({ processor, pattern, defaultPattern, localStorageKey, environmentVariable, }: Config) => LogProcessor;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holz/env-filter",
|
|
3
|
-
"version": "0.8.3-rc.
|
|
3
|
+
"version": "0.8.3-rc.155+ca9302f",
|
|
4
4
|
"description": "Filter logs based on the current environment.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,13 +37,14 @@
|
|
|
37
37
|
"test:types": "tsc"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@holz/pattern-filter": "^0.8.3-rc.
|
|
40
|
+
"@holz/pattern-filter": "^0.8.3-rc.155+ca9302f"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@holz/core": "^0.8.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@holz/core": "^0.8.3-rc.
|
|
46
|
+
"@holz/core": "^0.8.3-rc.155+ca9302f",
|
|
47
|
+
"@microsoft/api-extractor": "^7.58.8",
|
|
47
48
|
"@types/node": "^24.0.0",
|
|
48
49
|
"@vitest/coverage-v8": "^4.0.0",
|
|
49
50
|
"typescript": "^6.0.0",
|
|
@@ -52,5 +53,5 @@
|
|
|
52
53
|
"vite-tsconfig-paths": "^6.0.0",
|
|
53
54
|
"vitest": "^4.0.0"
|
|
54
55
|
},
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ca9302f8b1709bb57058eb0dc73af0ed2021ddfd"
|
|
56
57
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/get-env.d.ts
DELETED
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createEnvironmentFilter } from './environment-filter';
|