airwallex-payment-elements
Advanced tools
Comparing version 0.0.69 to 0.0.70
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.69] */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=`https://checkout.airwallex.com/assets/bundle.${[0,0,69].join(".")}.min.js`,t=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const t=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const t=document.createElement("script");t.src=e;const r=document.head||document.body;if(!r)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return r.appendChild(t),t})();return new Promise((e,r)=>{t.addEventListener("load",()=>{window.Airwallex?e():r(new Error("Failed to load Airwallex on load event"))}),t.addEventListener("error",()=>{r(new Error("Failed to load Airwallex scripts"))})})});exports.confirmPaymentIntent=async e=>window.Airwallex.confirmPaymentIntent(e),exports.createElement=(e,t)=>window.Airwallex.createElement(e,t),exports.createPaymentMethod=async(e,t)=>window.Airwallex.createPaymentMethod(e,t),exports.destroyElement=e=>window.Airwallex.destroyElement(e),exports.getElement=e=>window.Airwallex.getElement(e),exports.getPaymentIntent=async(e,t)=>window.Airwallex.getPaymentIntent(e,t),exports.init=(e,t)=>{window.Airwallex.init(e,t)},exports.loadAirwallex=()=>t,exports.redirectToCheckout=e=>{window.Airwallex.redirectToCheckout(e)}; | ||
/* Airwallex Checkout Component Version [0.0.70] */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=`https://checkout.airwallex.com/assets/bundle.${[0,0,70].join(".")}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const o=document.head||document.body;if(!o)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return o.appendChild(r),r})();return new Promise((e,o)=>{r.addEventListener("load",()=>{window.Airwallex?e():o(new Error("Failed to load Airwallex on load event"))}),r.addEventListener("error",()=>{o(new Error("Failed to load Airwallex scripts"))})})});exports.confirmPaymentIntent=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},exports.createElement=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),exports.createPaymentMethod=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},exports.destroyElement=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),exports.getElement=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),exports.getPaymentIntent=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}},exports.init=(e,r)=>{window.Airwallex?window.Airwallex.init(e,r):console.error("Please loadAirwallex() before init();")},exports.loadAirwallex=()=>r,exports.redirectToCheckout=e=>{window.Airwallex?window.Airwallex.redirectToCheckout(e):console.error("Please loadAirwallex() before redirectToCheckout();")}; | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.cjs.js.map |
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.69] */ | ||
const e=`https://checkout.airwallex.com/assets/bundle.${[0,0,69].join(".")}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const n=document.head||document.body;if(!n)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return n.appendChild(r),r})();return new Promise((e,n)=>{r.addEventListener("load",()=>{window.Airwallex?e():n(new Error("Failed to load Airwallex on load event"))}),r.addEventListener("error",()=>{n(new Error("Failed to load Airwallex scripts"))})})}),n=()=>r,t=(e,r)=>{window.Airwallex.init(e,r)},o=e=>{window.Airwallex.redirectToCheckout(e)},i=(e,r)=>window.Airwallex.createElement(e,r),l=e=>window.Airwallex.destroyElement(e),w=e=>window.Airwallex.getElement(e),d=async e=>window.Airwallex.confirmPaymentIntent(e),a=async(e,r)=>window.Airwallex.createPaymentMethod(e,r),c=async(e,r)=>window.Airwallex.getPaymentIntent(e,r);export{d as confirmPaymentIntent,i as createElement,a as createPaymentMethod,l as destroyElement,w as getElement,c as getPaymentIntent,t as init,n as loadAirwallex,o as redirectToCheckout}; | ||
/* Airwallex Checkout Component Version [0.0.70] */ | ||
const e=`https://checkout.airwallex.com/assets/bundle.${[0,0,70].join(".")}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const o=document.head||document.body;if(!o)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return o.appendChild(r),r})();return new Promise((e,o)=>{r.addEventListener("load",()=>{window.Airwallex?e():o(new Error("Failed to load Airwallex on load event"))}),r.addEventListener("error",()=>{o(new Error("Failed to load Airwallex scripts"))})})}),o=()=>r,l=(e,r)=>{window.Airwallex?window.Airwallex.init(e,r):console.error("Please loadAirwallex() before init();")},n=e=>{window.Airwallex?window.Airwallex.redirectToCheckout(e):console.error("Please loadAirwallex() before redirectToCheckout();")},t=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),i=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),w=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),a=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},d=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},s=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}};export{a as confirmPaymentIntent,t as createElement,d as createPaymentMethod,i as destroyElement,w as getElement,s as getPaymentIntent,l as init,o as loadAirwallex,n as redirectToCheckout}; | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.es.js.map |
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.69] */ | ||
var Airwallex=function(e){"use strict";const t=`https://checkout.airwallex.com/assets/bundle.${[0,0,69].join(".")}.min.js`,n=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const e=document.querySelector(`script[src="${t}"], script[src="${t}/"]`)||(()=>{const e=document.createElement("script");e.src=t;const n=document.head||document.body;if(!n)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return n.appendChild(e),e})();return new Promise((t,n)=>{e.addEventListener("load",()=>{window.Airwallex?t():n(new Error("Failed to load Airwallex on load event"))}),e.addEventListener("error",()=>{n(new Error("Failed to load Airwallex scripts"))})})});return e.confirmPaymentIntent=async e=>window.Airwallex.confirmPaymentIntent(e),e.createElement=(e,t)=>window.Airwallex.createElement(e,t),e.createPaymentMethod=async(e,t)=>window.Airwallex.createPaymentMethod(e,t),e.destroyElement=e=>window.Airwallex.destroyElement(e),e.getElement=e=>window.Airwallex.getElement(e),e.getPaymentIntent=async(e,t)=>window.Airwallex.getPaymentIntent(e,t),e.init=(e,t)=>{window.Airwallex.init(e,t)},e.loadAirwallex=()=>n,e.redirectToCheckout=e=>{window.Airwallex.redirectToCheckout(e)},e}({}); | ||
/* Airwallex Checkout Component Version [0.0.70] */ | ||
var Airwallex=function(e){"use strict";const r=`https://checkout.airwallex.com/assets/bundle.${[0,0,70].join(".")}.min.js`,l=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const e=document.querySelector(`script[src="${r}"], script[src="${r}/"]`)||(()=>{const e=document.createElement("script");e.src=r;const l=document.head||document.body;if(!l)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return l.appendChild(e),e})();return new Promise((r,l)=>{e.addEventListener("load",()=>{window.Airwallex?r():l(new Error("Failed to load Airwallex on load event"))}),e.addEventListener("error",()=>{l(new Error("Failed to load Airwallex scripts"))})})});return e.confirmPaymentIntent=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},e.createElement=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),e.createPaymentMethod=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},e.destroyElement=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),e.getElement=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),e.getPaymentIntent=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}},e.init=(e,r)=>{window.Airwallex?window.Airwallex.init(e,r):console.error("Please loadAirwallex() before init();")},e.loadAirwallex=()=>l,e.redirectToCheckout=e=>{window.Airwallex?window.Airwallex.redirectToCheckout(e):console.error("Please loadAirwallex() before redirectToCheckout();")},e}({}); | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.iife.js.map |
{ | ||
"name": "airwallex-payment-elements", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"module": "lib/bin/airwallex.es.js", | ||
@@ -5,0 +5,0 @@ "types": "types/index.d.ts", |
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
41495
13
223