Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
Gruntfile.js
.jshintrc
.eslintrc
.eslintrc*
.travis.yml
.codeclimate.yml
.github
.gitmodules
.release
8 changes: 8 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

### Unreleased


### [1.1.1] - 2024-01-01

- doc(README): fix syntax example
- ci(publish.yml): correct name of main branch


### 1.1.0 - 2023-12-27

- doc(README): update CI / badge URLs
Expand Down Expand Up @@ -43,3 +50,4 @@


[1.1.0]: https://github.com/msimerson/postfix-parser/releases/tag/1.1.0
[1.1.1]: https://github.com/msimerson/postfix-parser/releases/tag/1.1.1
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Call with a syslog line:

Returns an object:

````js
```js
{
date: 'Jul 5 06:52:11',
host: 'prd-mx1',
Expand All @@ -30,7 +30,7 @@ Returns an object:
size: '2666',
nrcpt: '2',
}
````
```

## asObjectType

Expand All @@ -44,7 +44,7 @@ requires two positional arguments:
### Typical Usage

```js
const parsed = parser.asObject('syslog', data);
const parsed = parser.asObjectType('syslog', data);
if (!parsed) return; // unparseable syslog line

if (!/^postfix/.test(parsed.prog)) return; // not a postfix line
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"maillog",
"mail.log"
],
"version": "1.1.0",
"version": "1.1.1",
"private": false,
"homepage": "https://github.com/msimerson/postfix-parser",
"author": {
Expand Down