Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
var e=0;export default function(n,t,o){if(!n||!t)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),u="__astrochimp"+e++;function c(){window[u]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),t=[],o=0;o<n.length;o++)t.push(n[o]+"="+e[n[o]]);return encodeURIComponent(t.join("&"))}(t)+"&c="+u).replace(/post\?u=/,"post-json?u="),window[u]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return o(e,null);o(null,e),c()},document.head.appendChild(r),function(){c()}}; | ||
var e=0;export default function(n,t,o){if(!n||!t)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),c="__astrochimp"+e++;function u(){window[c]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),t=[],o=0;o<n.length;o++)t.push(encodeURIComponent(n[o])+"="+encodeURIComponent(e[n[o]]));return t.join("&")}(t)+"&c="+c).replace(/post\?u=/,"post-json?u="),window[c]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return o(e,null);o(null,e),u()},document.head.appendChild(r),function(){u()}}; | ||
//# sourceMappingURL=astrochimp.es.js.map |
@@ -1,2 +0,2 @@ | ||
var e=0;module.exports=function(n,t,o){if(!n||!t)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),u="__astrochimp"+e++;function c(){window[u]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),t=[],o=0;o<n.length;o++)t.push(n[o]+"="+e[n[o]]);return encodeURIComponent(t.join("&"))}(t)+"&c="+u).replace(/post\?u=/,"post-json?u="),window[u]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return o(e,null);o(null,e),c()},document.head.appendChild(r),function(){c()}}; | ||
var e=0;module.exports=function(n,o,t){if(!n||!o)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),c="__astrochimp"+e++;function u(){window[c]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),o=[],t=0;t<n.length;t++)o.push(encodeURIComponent(n[t])+"="+encodeURIComponent(e[n[t]]));return o.join("&")}(o)+"&c="+c).replace(/post\?u=/,"post-json?u="),window[c]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return t(e,null);t(null,e),u()},document.head.appendChild(r),function(){u()}}; | ||
//# sourceMappingURL=astrochimp.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.astrochimp=n()}(this,function(){var e=0;return function(n,t,o){if(!n||!t)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),i="__astrochimp"+e++;function u(){window[i]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),t=[],o=0;o<n.length;o++)t.push(n[o]+"="+e[n[o]]);return encodeURIComponent(t.join("&"))}(t)+"&c="+i).replace(/post\?u=/,"post-json?u="),window[i]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return o(e,null);o(null,e),u()},document.head.appendChild(r),function(){u()}}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.astrochimp=n()}(this,function(){var e=0;return function(n,o,t){if(!n||!o)throw new Error("astrochimp requires both a URL and a data object");var r=document.createElement("script"),i="__astrochimp"+e++;function u(){window[i]=function(){},document.head.removeChild(r)}return r.src=(n+"&"+function(e){for(var n=Object.keys(e),o=[],t=0;t<n.length;t++)o.push(encodeURIComponent(n[t])+"="+encodeURIComponent(e[n[t]]));return o.join("&")}(o)+"&c="+i).replace(/post\?u=/,"post-json?u="),window[i]=function(e){if(/[0-9]\s-/.test(e.msg)||"error"===e.result)return t(e,null);t(null,e),u()},document.head.appendChild(r),function(){u()}}}); | ||
//# sourceMappingURL=astrochimp.umd.js.map |
{ | ||
"name": "astrochimp", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Tiny MailChimp list subscribe utility.", | ||
@@ -5,0 +5,0 @@ "source": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8846