react-native-klarna-inapp-sdk
Advanced tools
Comparing version 2.3.5 to 2.3.6
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaCheckoutViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaCheckoutViewNativeComponent")); | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
class KlarnaCheckoutView extends _react.Component { | ||
@@ -84,3 +84,4 @@ constructor(props) { | ||
exports.KlarnaCheckoutView = KlarnaCheckoutView; | ||
var _default = exports.default = KlarnaCheckoutView; | ||
var _default = KlarnaCheckoutView; | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaCheckoutView.js.map |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaPaymentViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaPaymentViewNativeComponent")); | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
class KlarnaPaymentView extends _react.Component { | ||
@@ -133,14 +133,22 @@ constructor(props) { | ||
} | ||
initialize = (clientToken, returnUrl = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
load = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.load(view, sessionData || ''); | ||
} | ||
}; | ||
initialize = (() => { | ||
var _this = this; | ||
return function (clientToken) { | ||
let returnUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
})(); | ||
load = (() => { | ||
var _this2 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this2.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.load(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
loadPaymentReview = () => { | ||
@@ -152,23 +160,37 @@ const view = this.paymentViewRef.current; | ||
}; | ||
authorize = (autoFinalize = true, sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
reauthorize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
finalize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
authorize = (() => { | ||
var _this3 = this; | ||
return function () { | ||
let autoFinalize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
let sessionData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this3.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
reauthorize = (() => { | ||
var _this4 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this4.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
finalize = (() => { | ||
var _this5 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this5.paymentViewRef.current; | ||
if (view != null) { | ||
_KlarnaPaymentViewNativeComponent.Commands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
} | ||
exports.KlarnaPaymentView = KlarnaPaymentView; | ||
var _default = exports.default = KlarnaPaymentView; | ||
var _default = KlarnaPaymentView; | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaPaymentView.js.map |
@@ -9,4 +9,4 @@ "use strict"; | ||
var _KlarnaStandaloneWebViewNativeComponent = _interopRequireWildcard(require("./specs/KlarnaStandaloneWebViewNativeComponent")); | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
class KlarnaStandaloneWebView extends _react.Component { | ||
@@ -90,3 +90,4 @@ constructor(props) { | ||
exports.KlarnaStandaloneWebView = KlarnaStandaloneWebView; | ||
var _default = exports.default = KlarnaStandaloneWebView; | ||
var _default = KlarnaStandaloneWebView; | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaStandaloneWebView.js.map |
@@ -9,7 +9,9 @@ "use strict"; | ||
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent")); | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['setSnippet', 'suspend', 'resume'] | ||
}); | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaCheckoutView'); | ||
exports.Commands = Commands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaCheckoutView'); | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaCheckoutViewNativeComponent.js.map |
@@ -9,7 +9,9 @@ "use strict"; | ||
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['initialize', 'load', 'loadPaymentReview', 'authorize', 'reauthorize', 'finalize'] | ||
}); | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaPaymentView'); | ||
exports.Commands = Commands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaPaymentView'); | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaPaymentViewNativeComponent.js.map |
@@ -9,7 +9,9 @@ "use strict"; | ||
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands")); | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const Commands = (0, _codegenNativeCommands.default)({ | ||
supportedCommands: ['load', 'goBack', 'goForward', 'reload'] | ||
}); | ||
var _default = exports.default = (0, _codegenNativeComponent.default)('RNKlarnaStandaloneWebView'); | ||
exports.Commands = Commands; | ||
var _default = (0, _codegenNativeComponent.default)('RNKlarnaStandaloneWebView'); | ||
exports.default = _default; | ||
//# sourceMappingURL=KlarnaStandaloneWebViewNativeComponent.js.map |
@@ -124,14 +124,22 @@ import React, { Component } from 'react'; | ||
} | ||
initialize = (clientToken, returnUrl = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
load = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.load(view, sessionData || ''); | ||
} | ||
}; | ||
initialize = (() => { | ||
var _this = this; | ||
return function (clientToken) { | ||
let returnUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.initialize(view, clientToken, returnUrl || ''); | ||
} | ||
}; | ||
})(); | ||
load = (() => { | ||
var _this2 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this2.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.load(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
loadPaymentReview = () => { | ||
@@ -143,22 +151,35 @@ const view = this.paymentViewRef.current; | ||
}; | ||
authorize = (autoFinalize = true, sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
reauthorize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
finalize = (sessionData = null) => { | ||
const view = this.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
authorize = (() => { | ||
var _this3 = this; | ||
return function () { | ||
let autoFinalize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
let sessionData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
const view = _this3.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.authorize(view, autoFinalize || true, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
reauthorize = (() => { | ||
var _this4 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this4.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.reauthorize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
finalize = (() => { | ||
var _this5 = this; | ||
return function () { | ||
let sessionData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
const view = _this5.paymentViewRef.current; | ||
if (view != null) { | ||
RNKlarnaPaymentViewCommands.finalize(view, sessionData || ''); | ||
} | ||
}; | ||
})(); | ||
} | ||
export default KlarnaPaymentView; | ||
//# sourceMappingURL=KlarnaPaymentView.js.map |
{ | ||
"name": "react-native-klarna-inapp-sdk", | ||
"title": "Klarna Mobile SDK React Native", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"description": "This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.", | ||
@@ -6,0 +6,0 @@ "main": "lib/commonjs/index", |
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
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
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
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
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
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
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
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
354167
1985