Skip to content

Commit

Permalink
Export SPF class (haraka#8)
Browse files Browse the repository at this point in the history
Fix CRIT error "Plugin bounce failed: TypeError: SPF is not a constructor" in Haraka 3.0.0.
  • Loading branch information
DoobleD authored Jan 19, 2023
1 parent d65fabf commit 3a7eda0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const SPF = require('./lib/spf').SPF;
const net_utils = require('haraka-net-utils');
const DSN = require('haraka-dsn');

exports.SPF = SPF;

exports.register = function () {
const plugin = this;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-spf",
"version": "1.1.3",
"version": "1.1.4",
"description": "Sender Policy Framework (SPF) plugin for Haraka",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 3a7eda0

Please sign in to comment.