UNPKG

paypal-checkout

Version:

PayPal Checkout components, for integrating checkout products.

35 lines (29 loc) 999 B
/* eslint import/no-commonjs: off, flowtype/require-valid-file-annotation: off, flowtype/require-return-type: off */ const postRobotGlobals = require('post-robot/globals'); const zoidGlobals = require('zoid/globals'); function getNextVersion() { let version = require('./package.json').version; version = version.split('.'); version[2] = (parseInt(version[2], 10) + 1).toString(); version = version.join('.'); return version; } function getNextMajorVersion() { return getNextVersion().split('.')[0]; } function getNextMinorVersion() { return getNextVersion(); } module.exports = { ...postRobotGlobals, ...zoidGlobals, __PAYPAL_CHECKOUT__: { __LEGACY_SUPPORT__: true, __DEFAULT_LOG_LEVEL__: 'warn', __MAJOR__: true, __MAJOR_VERSION__: getNextMajorVersion(), __MINOR_VERSION__: getNextMinorVersion(), __sdk__: undefined, __paypal_checkout__: undefined } };