vue-play
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -280,3 +280,3 @@ module.exports = | ||
type: 'SET_SPOTS', | ||
payload: JSON.stringify(spots) | ||
payload: JSON.stringify(purify(spots)) | ||
}, location.origin); | ||
@@ -290,4 +290,20 @@ }, | ||
function purify(spots) { | ||
var result = {}; | ||
for (var name in spots) { | ||
result[name] = spots[name].map(function (spot) { | ||
return { | ||
scenario: spot.scenario, | ||
component: { | ||
example: spot.component.example, | ||
template: spot.component.template | ||
} | ||
}; | ||
}); | ||
} | ||
return result; | ||
} | ||
/***/ }) | ||
/******/ }); |
{ | ||
"name": "vue-play", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Play with your vue components.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
120919
3740