Comparing version 6.1.0 to 6.1.1
@@ -9,2 +9,6 @@ # Changelog | ||
## 6.1.1 | ||
* `FEAT`: allow tool to be used with `Node >= 8` | ||
## 6.1.0 | ||
@@ -11,0 +15,0 @@ |
@@ -63,3 +63,15 @@ const Module = require('module'); | ||
function createScopedRequire(cwd) { | ||
return Module.createRequireFromPath(path.join(cwd, '__placeholder__.js')); | ||
// shim createRequireFromPath for Node < 10.12 | ||
const createRequireFromPath = Module.createRequireFromPath || (filename => { | ||
const mod = new Module(filename, null); | ||
mod.filename = filename; | ||
mod.paths = Module._nodeModulePaths(path.dirname(filename)); | ||
mod._compile('module.exports = require;', filename); | ||
return mod.exports; | ||
}); | ||
return createRequireFromPath(path.join(cwd, '__placeholder__.js')); | ||
} |
{ | ||
"name": "bpmnlint", | ||
"description": "Validate your BPMN diagrams based on configurable lint rules", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"main": "lib/index.js", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 10.12" | ||
"node": ">= 8" | ||
}, | ||
@@ -29,0 +29,0 @@ "license": "MIT", |
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
43112
1295