@heathmont/ih-ngiw
Advanced tools
Comparing version 1.0.0 to 1.0.1
const Ngiw = require("../index"); | ||
const path = require("path"); | ||
@@ -22,4 +23,4 @@ const { RS_ERROR_USER_DISABLED } = Ngiw.STATUS_CODES; | ||
port: 3000, | ||
publicKey: "priv/demo_pub.pem", | ||
privateKey: "priv/demo_priv.pem" | ||
publicKey: path.resolve(__dirname, "priv/demo_pub.pem"), | ||
privateKey: path.resolve(__dirname, "priv/demo_priv.pem") | ||
}); | ||
@@ -26,0 +27,0 @@ |
const express = require("express"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const HmCrypto = require("hm-crypto-nodejs"); | ||
const readPem = filename => { | ||
return fs.readFileSync(path.resolve(__dirname, filename)).toString("ascii"); | ||
return fs.readFileSync(filename).toString("ascii"); | ||
}; | ||
@@ -9,0 +8,0 @@ |
{ | ||
"name": "@heathmont/ih-ngiw", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Hub88 Next Generation Integration Wrapper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,6 +24,8 @@ # ih-ngiw | ||
``` | ||
const path = require("path"); | ||
const w = new Ngiw({ | ||
port: 3000, | ||
publicKey: "priv/demo_pub.pem", | ||
privateKey: "priv/demo_priv.pem" | ||
publicKey: path.resolve(__dirname, "priv/demo_pub.pem"), | ||
privateKey: path.resolve(__dirname, "priv/demo_priv.pem") | ||
}); | ||
@@ -30,0 +32,0 @@ ``` |
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
27419
85