From 4d0047380c1fdb10c5e5d23d2be1b72471ffd855 Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Mon, 6 Aug 2018 11:37:45 +0000 Subject: [PATCH] Bundled output for commit fd7cf8041e19b7cb7771ef6045a9bde9df6c09d4 [skip ci] --- README.md | 2 +- mithril.js | 2 +- mithril.min.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f5e96ac..20b7f573 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ mithril.js [![NPM Version](https://img.shields.io/npm/v/mithril.svg)](https://ww ## What is Mithril? -A modern client-side Javascript framework for building Single Page Applications. It's small (8.90 KB gzipped), fast and provides routing and XHR utilities out of the box. +A modern client-side Javascript framework for building Single Page Applications. It's small (8.91 KB gzipped), fast and provides routing and XHR utilities out of the box. Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍. diff --git a/mithril.js b/mithril.js index 6611f9d9..797783b3 100644 --- a/mithril.js +++ b/mithril.js @@ -389,7 +389,7 @@ var _9 = function($window, Promise) { } function deserialize(data) { try {return data !== "" ? JSON.parse(data) : null} - catch (e) {throw new Error(data)} + catch (e) {throw new Error("Invalid JSON: " + data)} } function extract(xhr) {return xhr.responseText} function cast(type0, data) { diff --git a/mithril.min.js b/mithril.min.js index e8c9051b..a571c177 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -8,8 +8,8 @@ d);for(var e=0;ec.indexOf("?")?"?":"&";c+=e+d}return c}function k(c){try{return""!==c?JSON.parse(c):null}catch(x){throw Error(c); -}}function n(c){return c.responseText}function m(c,a){if("function"===typeof c)if(Array.isArray(a))for(var d=0;dc.indexOf("?")?"?":"&";c+=e+d}return c}function k(c){try{return""!==c?JSON.parse(c):null}catch(x){throw Error("Invalid JSON: "+ +c);}}function n(c){return c.responseText}function m(c,a){if("function"===typeof c)if(Array.isArray(a))for(var d=0;dl.status||304===l.status||Z.test(c.url))d(m(c.type,a));else{var g=Error(l.responseText);g.code=l.status;g.response=a;e(g)}}catch(aa){e(aa)}};g&&null!=c.data?l.send(c.data):l.send()});return!0===c.background?x:E(x)},jsonp:function(c,n){var k=e();c=g(c,n);var x=new d(function(d,e){var g=c.callbackName||"_mithril_"+Math.round(1E16*Math.random())+"_"+l++,n=a.document.createElement("script");a[g]=function(e){n.parentNode.removeChild(n);