haraka-constants
Advanced tools
Comparing version 1.0.3 to 1.0.4
'use strict'; | ||
var translationTable = {}; | ||
// node.js class | ||
const node_const = require('constants'); | ||
let translationTable = {}; | ||
exports.cont = 900; | ||
@@ -15,2 +18,3 @@ exports.stop = 901; | ||
exports.denysoftdisconnect = 909; | ||
exports.write_excl = node_const.O_CREAT | node_const.O_TRUNC | node_const.O_WRONLY | node_const.O_EXCL; | ||
@@ -42,2 +46,2 @@ exports.import = function (object) { | ||
exports.import(exports); | ||
exports.import(exports); |
@@ -6,3 +6,3 @@ { | ||
"description": "Haraka constants", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "http://haraka.github.io", | ||
@@ -15,3 +15,3 @@ "repository": { | ||
"engines": { | ||
"node": ">= 4" | ||
"node": ">= 6" | ||
}, | ||
@@ -18,0 +18,0 @@ "dependencies": {}, |
var constants = require('../index'); | ||
const node_const = require('constants'); | ||
let constants = require('../index'); | ||
let write_excl_val = node_const.O_CREAT | node_const.O_TRUNC | node_const.O_WRONLY | node_const.O_EXCL; | ||
exports.constants = { | ||
@@ -29,2 +32,7 @@ 'cont' : function (test) { | ||
test.done(); | ||
}, | ||
'WRITE_EXCL' : function (test) { | ||
test.expect(1); | ||
test.equal(constants.WRITE_EXCL, write_excl_val); | ||
test.done(); | ||
} | ||
@@ -54,3 +62,4 @@ } | ||
DELAY: 908, | ||
DENYSOFTDISCONNECT: 909 | ||
DENYSOFTDISCONNECT: 909, | ||
WRITE_EXCL: write_excl_val | ||
} | ||
@@ -74,2 +83,2 @@ ); | ||
}, | ||
}; | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8429
122
0