@holz/pattern-filter 0.6.0 → 0.6.1
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 +1 -1
- package/package.json +7 -4
- package/src/__tests__/pattern-filter.test.ts +1 -1
- package/src/string-match.ts +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ The `processor` option is where you specify which plugin should process the filt
|
|
|
21
21
|
|
|
22
22
|
## Patterns
|
|
23
23
|
|
|
24
|
-
Patterns are strings that match against `log.origin`, which is a property of each log object. Origins are added when you call `logger.
|
|
24
|
+
Patterns are strings that match against `log.origin`, which is a property of each log object. Origins are added when you call `logger.namespace(...)`. The following syntax is supported:
|
|
25
25
|
|
|
26
26
|
- `*` matches zero or more characters.
|
|
27
27
|
- `-` at the beginning of a pattern negates it, so that logs with origins matching the pattern are hidden rather than shown.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holz/pattern-filter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Only print log messages that match a pattern",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/holz-pattern-filter.cjs",
|
|
@@ -39,11 +39,14 @@
|
|
|
39
39
|
"test:unit": "vitest --color --passWithNoTests",
|
|
40
40
|
"test:types": "tsc"
|
|
41
41
|
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@holz/core": "0.6.0"
|
|
44
|
+
},
|
|
42
45
|
"devDependencies": {
|
|
43
46
|
"@holz/core": "^0.6.0",
|
|
44
|
-
"@vitest/coverage-
|
|
45
|
-
"typescript": "^
|
|
47
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
48
|
+
"typescript": "^5.0.0",
|
|
46
49
|
"vite": "^4.0.0",
|
|
47
|
-
"vitest": "^0.
|
|
50
|
+
"vitest": "^0.33.0"
|
|
48
51
|
}
|
|
49
52
|
}
|