Skip to content

Commit

Permalink
Merge pull request #23 from msimerson/release-1.1.1
Browse files Browse the repository at this point in the history
- doc(README): fix syntax example
- ci(publish.yml): correct name of main branch
  • Loading branch information
msimerson authored Jan 2, 2024
2 parents 63fe7f3 + aa72434 commit fa795ca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
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

0 comments on commit fa795ca

Please sign in to comment.