elm-hot
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "elm-hot", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Hot code swapping for Elm", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -359,2 +359,6 @@ //////////////////// HMR BEGIN //////////////////// | ||
if (typeof item.value === "undefined") { | ||
continue; | ||
} | ||
// The nav key is identified by a runtime tag added by the elm-hot injector. | ||
@@ -383,3 +387,7 @@ if (item.value.hasOwnProperty("elm-hot-nav-key")) { | ||
function isDebuggerModel(model) { | ||
return model && model.hasOwnProperty("expando") && model.hasOwnProperty("state"); | ||
// Up until elm/browser 1.0.2, the Elm debugger could be identified by a | ||
// property named "expando". But in version 1.0.2 that was renamed to "expandoModel" | ||
return model | ||
&& (model.hasOwnProperty("expando") || model.hasOwnProperty("expandoModel")) | ||
&& model.hasOwnProperty("state"); | ||
} | ||
@@ -386,0 +394,0 @@ |
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"." | ||
], | ||
"elm-version": "0.19.0", | ||
"dependencies": { | ||
"direct": { | ||
"elm/browser": "1.0.0", | ||
"elm/core": "1.0.0", | ||
"elm/html": "1.0.0", | ||
"elm/json": "1.0.0", | ||
"elm/random": "1.0.0", | ||
"elm/time": "1.0.0", | ||
"elm/url": "1.0.0" | ||
"type": "application", | ||
"source-directories": [ | ||
"." | ||
], | ||
"elm-version": "0.19.0", | ||
"dependencies": { | ||
"direct": { | ||
"elm/browser": "1.0.2", | ||
"elm/core": "1.0.2", | ||
"elm/html": "1.0.0", | ||
"elm/url": "1.0.0" | ||
}, | ||
"indirect": { | ||
"elm/json": "1.1.3", | ||
"elm/time": "1.0.0", | ||
"elm/virtual-dom": "1.0.2" | ||
} | ||
}, | ||
"indirect": { | ||
"elm/virtual-dom": "1.0.0" | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
876
424639
80