klaviyo-subscribe
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
function e(e,t,n){void 0===n&&(n={});var r=Object.assign({},n,{g:e,email:t}),o=Object.keys(r).reduce(function(e,t){return e.append(t,r[t]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:o}).then(function(e){return e.json()})}export{e as subscribe}; | ||
export default function(e,t,n){void 0===n&&(n={});var r=Object.assign({},n,{g:e,email:t}),o=Object.keys(r).reduce(function(e,t){return e.append(t,r[t]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:o}).then(function(e){return e.json()})}; | ||
//# sourceMappingURL=klaviyo-subscribe.es.js.map |
@@ -1,2 +0,2 @@ | ||
exports.subscribe=function(e,t,n){void 0===n&&(n={});var r=Object.assign({},n,{g:e,email:t}),s=Object.keys(r).reduce(function(e,t){return e.append(t,r[t]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:s}).then(function(e){return e.json()})}; | ||
module.exports=function(e,t,n){void 0===n&&(n={});var o=Object.assign({},n,{g:e,email:t}),r=Object.keys(o).reduce(function(e,t){return e.append(t,o[t]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:r}).then(function(e){return e.json()})}; | ||
//# sourceMappingURL=klaviyo-subscribe.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.klaviyoSubscribe={})}(this,function(e){e.subscribe=function(e,n,t){void 0===t&&(t={});var o=Object.assign({},t,{g:e,email:n}),i=Object.keys(o).reduce(function(e,n){return e.append(n,o[n]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:i}).then(function(e){return e.json()})}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.klaviyoSubscribe=n()}(this,function(){return function(e,n,t){void 0===t&&(t={});var o=Object.assign({},t,{g:e,email:n}),r=Object.keys(o).reduce(function(e,n){return e.append(n,o[n]),e},new URLSearchParams);return fetch("https://a.klaviyo.com/ajax/subscriptions/subscribe",{method:"POST",headers:{"Access-Control-Allow-Headers":"*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:r}).then(function(e){return e.json()})}}); | ||
//# sourceMappingURL=klaviyo-subscribe.umd.js.map |
{ | ||
"name": "klaviyo-subscribe", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Tiny Klaviyo 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17747