Comparing version 2.6.3 to 2.6.4
@@ -5,2 +5,7 @@ # Changelog | ||
## [2.6.4][] - 2021-09-23 | ||
- Dependency loader fixed, `metasql` is optional now | ||
- Update `metacom` and `metautil` with bugfixes | ||
## [2.6.3][] - 2021-09-22 | ||
@@ -224,3 +229,4 @@ | ||
[unreleased]: https://github.com/metarhia/impress/compare/v2.6.3...HEAD | ||
[unreleased]: https://github.com/metarhia/impress/compare/v2.6.4...HEAD | ||
[2.6.4]: https://github.com/metarhia/impress/compare/v2.6.3...v2.6.4 | ||
[2.6.3]: https://github.com/metarhia/impress/compare/v2.6.2...v2.6.3 | ||
@@ -227,0 +233,0 @@ [2.6.2]: https://github.com/metarhia/impress/compare/v2.6.1...v2.6.2 |
@@ -14,9 +14,9 @@ 'use strict'; | ||
const ORG_LENGTH = '@metarhia/'.length; | ||
const metapkg = ['metautil', 'metacom', 'metaschema', 'metasql']; | ||
const optional = ['metasql']; | ||
const metapkg = ['metautil', 'metacom', 'metaschema', ...optional]; | ||
const npmpkg = ['ws']; | ||
const pkg = require(process.cwd() + '/package.json'); | ||
const dependencies = [...internals, ...npmpkg, ...metapkg]; | ||
if (pkg.dependencies) dependencies.push(...Object.keys(pkg.dependencies)); | ||
if (pkg.dependencies) npmpkg.push(...Object.keys(pkg.dependencies)); | ||
const dependencies = [...internals, ...npmpkg, ...metapkg, ...optional]; | ||
@@ -31,3 +31,5 @@ const notLoaded = new Set(); | ||
} catch { | ||
notLoaded.add(name); | ||
if (npmpkg.includes(name) || !optional.includes(name)) { | ||
notLoaded.add(name); | ||
} | ||
continue; | ||
@@ -40,4 +42,3 @@ } | ||
if (metapkg.includes(name)) { | ||
const key = name.startsWith('@') ? name.substring(ORG_LENGTH) : name; | ||
metarhia[key] = lib; | ||
metarhia[name] = lib; | ||
continue; | ||
@@ -44,0 +45,0 @@ } |
{ | ||
"name": "impress", | ||
"version": "2.6.3", | ||
"version": "2.6.4", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -69,7 +69,7 @@ "description": "Enterprise application server for Node.js", | ||
"dependencies": { | ||
"metacom": "^2.0.2", | ||
"metacom": "^2.0.3", | ||
"metaconfiguration": "^2.1.5", | ||
"metalog": "^3.1.4", | ||
"metaschema": "^1.3.4", | ||
"metautil": "^3.5.14", | ||
"metautil": "^3.5.15", | ||
"metavm": "^1.0.3", | ||
@@ -79,3 +79,3 @@ "metawatch": "^1.0.4" | ||
"devDependencies": { | ||
"@types/node": "^16.9.1", | ||
"@types/node": "^16.9.6", | ||
"@types/ws": "^7.4.7", | ||
@@ -88,5 +88,5 @@ "eslint": "^7.32.0", | ||
"metatests": "^0.7.2", | ||
"prettier": "^2.4.0", | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.4.3" | ||
} | ||
} |
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
60824
1373
Updatedmetacom@^2.0.3
Updatedmetautil@^3.5.15