@holz/env-filter 0.8.3-rc.154 → 0.8.3-rc.156

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
- export declare const createEnvironmentFilter: ({ processor, pattern, defaultPattern, localStorageKey, environmentVariable, }: Config) => LogProcessor;
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
- export {};
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.154+3f5148e",
3
+ "version": "0.8.3-rc.156+23f99c0",
4
4
  "description": "Filter logs based on the current environment.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -34,16 +34,18 @@
34
34
  "scripts": {
35
35
  "prepack": "vite build",
36
36
  "test:unit": "vitest run --color --passWithNoTests",
37
+ "test:coverage": "vitest run --coverage --color --passWithNoTests",
37
38
  "test:types": "tsc"
38
39
  },
39
40
  "dependencies": {
40
- "@holz/pattern-filter": "^0.8.3-rc.154+3f5148e"
41
+ "@holz/pattern-filter": "^0.8.3-rc.156+23f99c0"
41
42
  },
42
43
  "peerDependencies": {
43
44
  "@holz/core": "^0.8.0"
44
45
  },
45
46
  "devDependencies": {
46
- "@holz/core": "^0.8.3-rc.154+3f5148e",
47
+ "@holz/core": "^0.8.3-rc.156+23f99c0",
48
+ "@microsoft/api-extractor": "^7.58.8",
47
49
  "@types/node": "^24.0.0",
48
50
  "@vitest/coverage-v8": "^4.0.0",
49
51
  "typescript": "^6.0.0",
@@ -52,5 +54,5 @@
52
54
  "vite-tsconfig-paths": "^6.0.0",
53
55
  "vitest": "^4.0.0"
54
56
  },
55
- "gitHead": "3f5148eb94bb1d7200d4b4993c95ea30db76b0c4"
57
+ "gitHead": "23f99c04bcaa88f54e7b5d6b117e324de821a8d5"
56
58
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export declare const getEnvironmentVariable: (key: string) => undefined | string;
2
- export declare const getLocalStorageKey: (key: string) => undefined | string;
@@ -1 +0,0 @@
1
- export { createEnvironmentFilter } from './environment-filter';