Skip to content

Commit

Permalink
chore(release): 4.0.307 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakha94 committed Dec 19, 2019
1 parent 4ad4c0f commit 0d9b352
Show file tree
Hide file tree
Showing 15 changed files with 87 additions and 77 deletions.
1 change: 0 additions & 1 deletion dist/checkout.4.0.306.min.js.map

This file was deleted.

40 changes: 21 additions & 19 deletions dist/checkout.4.0.306.js → dist/checkout.4.0.307.js
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ function initLogger() {
country: config["a" /* config */].locale.country,
lang: config["a" /* config */].locale.lang,
uid: Object(session["c" /* getSessionID */])(),
ver: "4.0.306"
ver: "4.0.307"
};
});
Object(client["a" /* addHeaderBuilder */])(function () {
Expand Down Expand Up @@ -2024,7 +2024,7 @@ function isPayPalObjects() {
}
function getScriptVersion() {
if (false) {} else {
return false ? undefined : "4.0.306";
return false ? undefined : "4.0.307";
}
}
function getCurrentScriptUrl() {
Expand All @@ -2040,7 +2040,7 @@ function getCurrentScriptUrl() {
return scriptUrl;
}

return "https://www.paypalobjects.com/api/checkout." + "4.0.306" + ( false ? undefined : '') + ".js";
return "https://www.paypalobjects.com/api/checkout." + "4.0.307" + ( false ? undefined : '') + ".js";
}
function getDomainSetting(name, def) {
var hostname = window.xchild ? window.xchild.getParentDomain() : Object(cross_domain_utils_src["h" /* getDomain */])();
Expand Down Expand Up @@ -2405,10 +2405,10 @@ function getDefaultEnv() {

var config = {
locales: constants["z" /* LOCALE */],
scriptUrl: false ? undefined : "//www.paypalobjects.com/api/" + "checkout.4.0.306.js",
scriptUrl: false ? undefined : "//www.paypalobjects.com/api/" + "checkout.4.0.307.js",
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
paypal_domain_regex: /^(https?|mock):\/\/[a-zA-Z0-9_.-]+\.paypal\.com(:\d+)?$/,
version: "4.0.306",
version: "4.0.307",
cors: true,
env: getDefaultEnv(),
state: 'checkoutjs',
Expand Down Expand Up @@ -20614,7 +20614,7 @@ function beacon(event, payload) {

try {
payload.event = "ppxo_" + event;
payload.version = "4.0.306";
payload.version = "4.0.307";
payload.host = window.location.host;
payload.uid = Object(_session__WEBPACK_IMPORTED_MODULE_3__[/* getSessionID */ "c"])();
payload.appName = APP_NAME;
Expand Down Expand Up @@ -20670,7 +20670,7 @@ function checkpoint(name, payload, options) {
var checkpointName = name;

if (options.version) {
var version = "4.0.306".replace(/[^0-9]+/g, '_');
var version = "4.0.307".replace(/[^0-9]+/g, '_');

checkpointName = version + "_" + checkpointName;
}
Expand All @@ -20687,7 +20687,7 @@ var FPTI_URL = 'https://t.paypal.com/ts';

function buildPayload() {
return {
v: "checkout.js." + "4.0.306",
v: "checkout.js." + "4.0.307",
t: Date.now(),
g: new Date().getTimezoneOffset(),
flnm: 'ec:hermes:',
Expand Down Expand Up @@ -25811,17 +25811,17 @@ if ( true && !Object(_lib_security__WEBPACK_IMPORTED_MODULE_3__[/* isPayPalDomai
throw new Error("Do not integrate with versioned script url");
}

if (window.paypal && window.paypal.version === "4.0.306") {
if (window.paypal && window.paypal.version === "4.0.307") {
Object(_lib_beacon__WEBPACK_IMPORTED_MODULE_0__[/* beacon */ "a"])('bootstrap_already_loaded_same_version', {
version: "4.0.306"
version: "4.0.307"
});
throw new Error("PayPal Checkout Integration Script with same version (" + "4.0.306" + ") already loaded on page");
} else if (window.paypal && window.paypal.version && window.paypal.version !== "4.0.306" && window.paypal.Button && window.paypal.Button.render) {
throw new Error("PayPal Checkout Integration Script with same version (" + "4.0.307" + ") already loaded on page");
} else if (window.paypal && window.paypal.version && window.paypal.version !== "4.0.307" && window.paypal.Button && window.paypal.Button.render) {
Object(_lib_beacon__WEBPACK_IMPORTED_MODULE_0__[/* beacon */ "a"])('bootstrap_already_loaded_different_version', {
existingVersion: window.paypal.version,
version: "4.0.306"
version: "4.0.307"
});
throw new Error("PayPal Checkout Integration Script with different version (" + window.paypal.version + ") already loaded on page, current version: " + "4.0.306");
throw new Error("PayPal Checkout Integration Script with different version (" + window.paypal.version + ") already loaded on page, current version: " + "4.0.307");
} else {
try {
var _interface = __webpack_require__(66);
Expand Down Expand Up @@ -34643,7 +34643,7 @@ function getButtonTextAnimationStyle(_ref10) {
var MIN_WIDTH = 300;
var LABEL_DURATION = 1;
var PERSONALIZATION_DURATION = 5;
var DELAY = 0.5;
var DELAY = 0;
var COMPRESSED = "\n max-width: 0%;\n opacity: 0;\n ";
var EXPANDED = "\n max-width: 100%;\n opacity: 1;\n ";
var HIDDEN = "\n position: absolute;\n visibility: hidden;\n ";
Expand Down Expand Up @@ -34818,7 +34818,9 @@ function renderButton(_ref13) {
allowedAnimation = true;
}

if (buttonLabel === label) {
if (buttonLabel === label && label === constants["f" /* BUTTON_LABEL */].BUYNOW && !branding) {
contentText = getButtonConfig(label, 'label');
} else if (buttonLabel === label && !true) {
if (allowedPersonalizationLabels.indexOf(label) !== -1 && morsText && branding && !tagline) {
personalizedButtonText = renderPersonalizationButtonText(morsText);
impression = checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.tracking && checkoutCustomization.buttonText.tracking.impression;
Expand Down Expand Up @@ -35049,7 +35051,7 @@ function componentTemplate(_ref19) {
});
var scriptNode = renderScript();
var labelPowerByPayPal = cards.length > 0 ? renderPowerByPaypalLogo(normalizeProps(props)) : null;
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.306", _ref20), {
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.307", _ref20), {
class: class_CLASS.CONTAINER + " " + getCommonButtonClasses({
layout: layout,
shape: shape,
Expand Down Expand Up @@ -36792,7 +36794,7 @@ var postRobot = post_robot_src;


var onPossiblyUnhandledException = zalgo_promise_src["a" /* ZalgoPromise */].onPossiblyUnhandledException;
var interface_version = "4.0.306";
var interface_version = "4.0.307";
var interface_checkout;
var apps;

Expand Down Expand Up @@ -38120,4 +38122,4 @@ Object(lib["K" /* onDocumentReady */])(function () {

/***/ })
/******/ ]);
//# sourceMappingURL=checkout.4.0.306.js.map
//# sourceMappingURL=checkout.4.0.307.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/checkout.4.0.306.min.js → dist/checkout.4.0.307.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/checkout.4.0.307.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/checkout.button.render.js
Original file line number Diff line number Diff line change
Expand Up @@ -14976,7 +14976,7 @@ function getButtonTextAnimationStyle(_ref10) {
var MIN_WIDTH = 300;
var LABEL_DURATION = 1;
var PERSONALIZATION_DURATION = 5;
var DELAY = 0.5;
var DELAY = 0;
var COMPRESSED = "\n max-width: 0%;\n opacity: 0;\n ";
var EXPANDED = "\n max-width: 100%;\n opacity: 1;\n ";
var HIDDEN = "\n position: absolute;\n visibility: hidden;\n ";
Expand Down Expand Up @@ -15151,7 +15151,9 @@ function renderButton(_ref13) {
allowedAnimation = true;
}

if (buttonLabel === label) {
if (buttonLabel === label && label === BUTTON_LABEL.BUYNOW && !branding) {
contentText = getButtonConfig(label, 'label');
} else if (buttonLabel === label && !false) {
if (allowedPersonalizationLabels.indexOf(label) !== -1 && morsText && branding && !tagline) {
personalizedButtonText = renderPersonalizationButtonText(morsText);
impression = checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.tracking && checkoutCustomization.buttonText.tracking.impression;
Expand Down Expand Up @@ -15380,7 +15382,7 @@ function componentTemplate(_ref19) {
});
var scriptNode = renderScript();
var labelPowerByPayPal = cards.length > 0 ? renderPowerByPaypalLogo(normalizeProps(props)) : null;
return jsxToHTML("div", _extends({}, (_ref20 = {}, _ref20[ATTRIBUTE.VERSION] = "4.0.306", _ref20), {
return jsxToHTML("div", _extends({}, (_ref20 = {}, _ref20[ATTRIBUTE.VERSION] = "4.0.307", _ref20), {
class: CLASS.CONTAINER + " " + getCommonButtonClasses({
layout: layout,
shape: shape,
Expand Down
36 changes: 19 additions & 17 deletions dist/checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ function initLogger() {
country: config["a" /* config */].locale.country,
lang: config["a" /* config */].locale.lang,
uid: Object(session["c" /* getSessionID */])(),
ver: "4.0.306"
ver: "4.0.307"
};
});
Object(client["a" /* addHeaderBuilder */])(function () {
Expand Down Expand Up @@ -2026,7 +2026,7 @@ function getScriptVersion() {
if ( true && isPayPalObjects()) {
return false ? undefined : "4";
} else {
return false ? undefined : "4.0.306";
return false ? undefined : "4.0.307";
}
}
function getCurrentScriptUrl() {
Expand All @@ -2042,7 +2042,7 @@ function getCurrentScriptUrl() {
return scriptUrl;
}

return "https://www.paypalobjects.com/api/checkout." + "4.0.306" + ( false ? undefined : '') + ".js";
return "https://www.paypalobjects.com/api/checkout." + "4.0.307" + ( false ? undefined : '') + ".js";
}
function getDomainSetting(name, def) {
var hostname = window.xchild ? window.xchild.getParentDomain() : Object(cross_domain_utils_src["h" /* getDomain */])();
Expand Down Expand Up @@ -2410,7 +2410,7 @@ var config = {
scriptUrl: false ? undefined : "//www.paypalobjects.com/api/" + "checkout.js",
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
paypal_domain_regex: /^(https?|mock):\/\/[a-zA-Z0-9_.-]+\.paypal\.com(:\d+)?$/,
version: "4.0.306",
version: "4.0.307",
cors: true,
env: getDefaultEnv(),
state: 'checkoutjs',
Expand Down Expand Up @@ -20616,7 +20616,7 @@ function beacon(event, payload) {

try {
payload.event = "ppxo_" + event;
payload.version = "4.0.306";
payload.version = "4.0.307";
payload.host = window.location.host;
payload.uid = Object(_session__WEBPACK_IMPORTED_MODULE_3__[/* getSessionID */ "c"])();
payload.appName = APP_NAME;
Expand Down Expand Up @@ -20672,7 +20672,7 @@ function checkpoint(name, payload, options) {
var checkpointName = name;

if (options.version) {
var version = "4.0.306".replace(/[^0-9]+/g, '_');
var version = "4.0.307".replace(/[^0-9]+/g, '_');

checkpointName = version + "_" + checkpointName;
}
Expand All @@ -20689,7 +20689,7 @@ var FPTI_URL = 'https://t.paypal.com/ts';

function buildPayload() {
return {
v: "checkout.js." + "4.0.306",
v: "checkout.js." + "4.0.307",
t: Date.now(),
g: new Date().getTimezoneOffset(),
flnm: 'ec:hermes:',
Expand Down Expand Up @@ -25811,17 +25811,17 @@ __webpack_require__.r(__webpack_exports__);

if (false) {}

if (window.paypal && window.paypal.version === "4.0.306") {
if (window.paypal && window.paypal.version === "4.0.307") {
Object(_lib_beacon__WEBPACK_IMPORTED_MODULE_0__[/* beacon */ "a"])('bootstrap_already_loaded_same_version', {
version: "4.0.306"
version: "4.0.307"
});
throw new Error("PayPal Checkout Integration Script with same version (" + "4.0.306" + ") already loaded on page");
} else if (window.paypal && window.paypal.version && window.paypal.version !== "4.0.306" && window.paypal.Button && window.paypal.Button.render) {
throw new Error("PayPal Checkout Integration Script with same version (" + "4.0.307" + ") already loaded on page");
} else if (window.paypal && window.paypal.version && window.paypal.version !== "4.0.307" && window.paypal.Button && window.paypal.Button.render) {
Object(_lib_beacon__WEBPACK_IMPORTED_MODULE_0__[/* beacon */ "a"])('bootstrap_already_loaded_different_version', {
existingVersion: window.paypal.version,
version: "4.0.306"
version: "4.0.307"
});
throw new Error("PayPal Checkout Integration Script with different version (" + window.paypal.version + ") already loaded on page, current version: " + "4.0.306");
throw new Error("PayPal Checkout Integration Script with different version (" + window.paypal.version + ") already loaded on page, current version: " + "4.0.307");
} else {
try {
var _interface = __webpack_require__(66);
Expand Down Expand Up @@ -34643,7 +34643,7 @@ function getButtonTextAnimationStyle(_ref10) {
var MIN_WIDTH = 300;
var LABEL_DURATION = 1;
var PERSONALIZATION_DURATION = 5;
var DELAY = 0.5;
var DELAY = 0;
var COMPRESSED = "\n max-width: 0%;\n opacity: 0;\n ";
var EXPANDED = "\n max-width: 100%;\n opacity: 1;\n ";
var HIDDEN = "\n position: absolute;\n visibility: hidden;\n ";
Expand Down Expand Up @@ -34818,7 +34818,9 @@ function renderButton(_ref13) {
allowedAnimation = true;
}

if (buttonLabel === label) {
if (buttonLabel === label && label === constants["f" /* BUTTON_LABEL */].BUYNOW && !branding) {
contentText = getButtonConfig(label, 'label');
} else if (buttonLabel === label && !true) {
if (allowedPersonalizationLabels.indexOf(label) !== -1 && morsText && branding && !tagline) {
personalizedButtonText = renderPersonalizationButtonText(morsText);
impression = checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.tracking && checkoutCustomization.buttonText.tracking.impression;
Expand Down Expand Up @@ -35049,7 +35051,7 @@ function componentTemplate(_ref19) {
});
var scriptNode = renderScript();
var labelPowerByPayPal = cards.length > 0 ? renderPowerByPaypalLogo(normalizeProps(props)) : null;
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.306", _ref20), {
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.307", _ref20), {
class: class_CLASS.CONTAINER + " " + getCommonButtonClasses({
layout: layout,
shape: shape,
Expand Down Expand Up @@ -36792,7 +36794,7 @@ var postRobot = post_robot_src;


var onPossiblyUnhandledException = zalgo_promise_src["a" /* ZalgoPromise */].onPossiblyUnhandledException;
var interface_version = "4.0.306";
var interface_version = "4.0.307";
var interface_checkout;
var apps;

Expand Down
2 changes: 1 addition & 1 deletion dist/checkout.js.map

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions dist/checkout.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ function initLogger() {
country: config["a" /* config */].locale.country,
lang: config["a" /* config */].locale.lang,
uid: getSessionID(),
ver: "4.0.306"
ver: "4.0.307"
};
});
Object(client["a" /* addHeaderBuilder */])(function () {
Expand Down Expand Up @@ -2584,7 +2584,7 @@ function beacon(event, payload) {

try {
payload.event = "ppxo_" + event;
payload.version = "4.0.306";
payload.version = "4.0.307";
payload.host = window.location.host;
payload.uid = getSessionID();
payload.appName = APP_NAME;
Expand Down Expand Up @@ -2640,7 +2640,7 @@ function beacon_checkpoint(name, payload, options) {
var checkpointName = name;

if (options.version) {
var version = "4.0.306".replace(/[^0-9]+/g, '_');
var version = "4.0.307".replace(/[^0-9]+/g, '_');

checkpointName = version + "_" + checkpointName;
}
Expand All @@ -2657,7 +2657,7 @@ var FPTI_URL = 'https://t.paypal.com/ts';

function buildPayload() {
return {
v: "checkout.js." + "4.0.306",
v: "checkout.js." + "4.0.307",
t: Date.now(),
g: new Date().getTimezoneOffset(),
flnm: 'ec:hermes:',
Expand Down Expand Up @@ -2870,7 +2870,7 @@ function isPayPalObjects() {
}
function getScriptVersion() {
if (false) {} else {
return false ? undefined : "4.0.306";
return false ? undefined : "4.0.307";
}
}
function getCurrentScriptUrl() {
Expand All @@ -2886,7 +2886,7 @@ function getCurrentScriptUrl() {
return scriptUrl;
}

return "https://www.paypalobjects.com/api/checkout." + "4.0.306" + ( false ? undefined : '') + ".js";
return "https://www.paypalobjects.com/api/checkout." + "4.0.307" + ( false ? undefined : '') + ".js";
}
function getDomainSetting(name, def) {
var hostname = window.xchild ? window.xchild.getParentDomain() : Object(cross_domain_utils_src["h" /* getDomain */])();
Expand Down Expand Up @@ -3254,7 +3254,7 @@ var config = {
scriptUrl: false ? undefined : "//www.paypalobjects.com/api/" + "checkout.lib.js",
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
paypal_domain_regex: /^(https?|mock):\/\/[a-zA-Z0-9_.-]+\.paypal\.com(:\d+)?$/,
version: "4.0.306",
version: "4.0.307",
cors: true,
env: getDefaultEnv(),
state: 'checkoutjs',
Expand Down Expand Up @@ -34484,7 +34484,7 @@ function getButtonTextAnimationStyle(_ref10) {
var MIN_WIDTH = 300;
var LABEL_DURATION = 1;
var PERSONALIZATION_DURATION = 5;
var DELAY = 0.5;
var DELAY = 0;
var COMPRESSED = "\n max-width: 0%;\n opacity: 0;\n ";
var EXPANDED = "\n max-width: 100%;\n opacity: 1;\n ";
var HIDDEN = "\n position: absolute;\n visibility: hidden;\n ";
Expand Down Expand Up @@ -34659,7 +34659,9 @@ function renderButton(_ref13) {
allowedAnimation = true;
}

if (buttonLabel === label) {
if (buttonLabel === label && label === constants["f" /* BUTTON_LABEL */].BUYNOW && !branding) {
contentText = getButtonConfig(label, 'label');
} else if (buttonLabel === label && !true) {
if (allowedPersonalizationLabels.indexOf(label) !== -1 && morsText && branding && !tagline) {
personalizedButtonText = renderPersonalizationButtonText(morsText);
impression = checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.tracking && checkoutCustomization.buttonText.tracking.impression;
Expand Down Expand Up @@ -34890,7 +34892,7 @@ function componentTemplate(_ref19) {
});
var scriptNode = renderScript();
var labelPowerByPayPal = cards.length > 0 ? renderPowerByPaypalLogo(normalizeProps(props)) : null;
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.306", _ref20), {
return Object(jsx["c" /* jsxToHTML */])("div", Object(esm_extends["a" /* default */])({}, (_ref20 = {}, _ref20[constants["c" /* ATTRIBUTE */].VERSION] = "4.0.307", _ref20), {
class: class_CLASS.CONTAINER + " " + getCommonButtonClasses({
layout: layout,
shape: shape,
Expand Down Expand Up @@ -36633,7 +36635,7 @@ var postRobot = post_robot_src;


var onPossiblyUnhandledException = zalgo_promise_src["a" /* ZalgoPromise */].onPossiblyUnhandledException;
var interface_version = "4.0.306";
var interface_version = "4.0.307";
var interface_checkout;
var apps;

Expand Down
2 changes: 1 addition & 1 deletion dist/checkout.lib.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 0d9b352

Please sign in to comment.