@jsreport/jsreport-licensing
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -7,3 +7,2 @@ /* eslint no-path-concat: 0 */ | ||
const crypto = require('crypto') | ||
const hostId = crypto.createHash('sha1').update(hostname + __dirname).digest('hex') | ||
@@ -39,3 +38,3 @@ async function exists (path) { | ||
version: reporter.version, | ||
hostId: hostId | ||
hostId: definition.options.hostId | ||
}) | ||
@@ -266,3 +265,3 @@ } | ||
licenseKey: definition.options.licenseKey, | ||
hostId, | ||
hostId: definition.options.hostId, | ||
checkInterval: licensingUsageCheckInterval | ||
@@ -314,2 +313,3 @@ } | ||
Object.assign(definition.options, reporter.options.license) | ||
definition.options.hostId = `${Buffer.from(hostname).toString('base64')}:${Buffer.from(reporter.options.rootDirectory).toString('base64')}` | ||
reporter.on('express-configure', (app) => { | ||
@@ -316,0 +316,0 @@ app.post('/api/licensing/trial', (req, res, next) => { |
{ | ||
"name": "@jsreport/jsreport-licensing", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "jsreport extension for enterprise license verification ", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@jsreport/jsreport-core": "3.4.0", | ||
"@jsreport/studio-dev": "3.1.0", | ||
"@jsreport/jsreport-core": "3.11.0", | ||
"@jsreport/studio-dev": "3.2.1", | ||
"mocha": "7.2.0", | ||
@@ -36,0 +36,0 @@ "should": "13.2.3", |
@@ -6,2 +6,6 @@ # @jsreport/jsreport-licensing | ||
### 3.0.3 | ||
- don't hash licensing hostid to allow troubleshooting parallel usage | ||
### 3.0.2 | ||
@@ -8,0 +12,0 @@ |
52293
18