pinokiod 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/index.js +3 -1
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -908,7 +908,9 @@ class Server {
|
|
|
908
908
|
let config = (await this.kernel.loader.load(p)).resolved
|
|
909
909
|
if (config) {
|
|
910
910
|
if (config.version) {
|
|
911
|
-
|
|
911
|
+
let coerced = semver.coerce(config.version)
|
|
912
|
+
console.log("version", { coerced, v: config.version })
|
|
913
|
+
if (semver.satisfies(coerced, this.kernel.schema)) {
|
|
912
914
|
console.log("semver satisfied", config.version, this.kernel.schema)
|
|
913
915
|
} else {
|
|
914
916
|
console.log("semver NOT satisfied", config.version, this.kernel.schema)
|