Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

klaviyo-subscribe

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klaviyo-subscribe - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/klaviyo-subscribe.es.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc