@bloomreach/navapp-communication
Advanced tools
Comparing version 1.0.0-4 to 1.0.0-5
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('penpal')) : | ||
typeof define === 'function' && define.amd ? define('@bloomreach/navapp-communication', ['exports', 'penpal'], factory) : | ||
(factory((global.bloomreach = global.bloomreach || {}, global.bloomreach['navapp-communication'] = {}),global.penpal)); | ||
}(this, (function (exports,penpal) { 'use strict'; | ||
(factory((global.bloomreach = global.bloomreach || {}, global.bloomreach['navapp-communication'] = {}),global.Penpal)); | ||
}(this, (function (exports,Penpal) { 'use strict'; | ||
penpal = penpal && penpal.hasOwnProperty('default') ? penpal['default'] : penpal; | ||
Penpal = Penpal && Penpal.hasOwnProperty('default') ? Penpal['default'] : Penpal; | ||
@@ -74,3 +74,3 @@ /*! ***************************************************************************** | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
return Penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
} | ||
@@ -111,3 +111,3 @@ | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
return Penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
.promise; | ||
@@ -114,0 +114,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("penpal")):"function"==typeof define&&define.amd?define("@bloomreach/navapp-communication",["exports","penpal"],n):n((e.bloomreach=e.bloomreach||{},e.bloomreach["navapp-communication"]={}),e.penpal)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i["default"]:i;var o=function(){return(o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function a(e,t){var n=Object.keys(e).reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{});return o({},e,n)}function c(n){return{getNavItems:function(){return n.getNavItems()},navigate:function(e){return n.navigate(e)}}}e.connectToChild=function r(e){var n=e.iframe,t=e.methods,o=a(void 0===t?{}:t,{});return i.connectToChild({iframe:n,methods:o}).promise},e.createProxies=c,e.connectToParent=function u(e){var n=e.parentOrigin,t=e.methods,o=void 0===t?{}:t,r=a(o,c(o));return i.connectToParent({parentOrigin:n,methods:r}).promise},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("penpal")):"function"==typeof define&&define.amd?define("@bloomreach/navapp-communication",["exports","penpal"],n):n((e.bloomreach=e.bloomreach||{},e.bloomreach["navapp-communication"]={}),e.Penpal)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i["default"]:i;var o=function(){return(o=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}).apply(this,arguments)};function a(e,t){var n=Object.keys(e).reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{});return o({},e,n)}function c(n){return{getNavItems:function(){return n.getNavItems()},navigate:function(e){return n.navigate(e)}}}e.connectToChild=function r(e){var n=e.iframe,t=e.methods,o=a(void 0===t?{}:t,{});return i.connectToChild({iframe:n,methods:o}).promise},e.createProxies=c,e.connectToParent=function u(e){var n=e.parentOrigin,t=e.methods,o=void 0===t?{}:t,r=a(o,c(o));return i.connectToParent({parentOrigin:n,methods:r}).promise},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=bloomreach-navapp-communication.umd.min.js.map |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
import { mergeIntersecting } from './utils'; | ||
@@ -17,4 +17,4 @@ /** | ||
const proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToChild({ iframe, methods: proxiedMethods }).promise; | ||
return Penpal.connectToChild({ iframe, methods: proxiedMethods }).promise; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpbGQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYmxvb21yZWFjaC9uYXZhcHAtY29tbXVuaWNhdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9jaGlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxNQUFNLE1BQU0sUUFBUSxDQUFDO0FBRzVCLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFNBQVMsQ0FBQzs7Ozs7QUFFNUMsTUFBTSxVQUFVLGNBQWMsQ0FBQyxFQUM3QixNQUFNLEVBQ04sT0FBTyxHQUFHLEVBQUUsR0FDTzs7VUFDYixPQUFPLEdBQWMsRUFBRTs7VUFDdkIsY0FBYyxHQUFHLGlCQUFpQixDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUM7SUFFMUQsT0FBTyxNQUFNLENBQUMsY0FBYyxDQUFDLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxjQUFjLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQztBQUM1RSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHBlbnBhbCBmcm9tICdwZW5wYWwnO1xuXG5pbXBvcnQgeyBDaGlsZENvbm5lY3RDb25maWcsIENoaWxkUHJvbWlzZWRBcGksIFBhcmVudEFwaSB9IGZyb20gJy4vYXBpJztcbmltcG9ydCB7IG1lcmdlSW50ZXJzZWN0aW5nIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBmdW5jdGlvbiBjb25uZWN0VG9DaGlsZCh7XG4gIGlmcmFtZSxcbiAgbWV0aG9kcyA9IHt9LFxufTogQ2hpbGRDb25uZWN0Q29uZmlnKTogUHJvbWlzZTxDaGlsZFByb21pc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1lcmdlSW50ZXJzZWN0aW5nIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBmdW5jdGlvbiBjb25uZWN0VG9DaGlsZCh7XG4gIGlmcmFtZSxcbiAgbWV0aG9kcyA9IHt9LFxufTogQ2hpbGRDb25uZWN0Q29uZmlnKTogUHJvbWlzZTxDaGlsZFByb21pc2VkQXBpPiB7XG4gIGNvbnN0IHByb3hpZXM6IFBhcmVudEFwaSA9IHt9O1xuICBjb25zdCBwcm94aWVkTWV0aG9kcyA9IG1lcmdlSW50ZXJzZWN0aW5nKG1ldGhvZHMsIHByb3hpZXMpO1xuXG4gIHJldHVybiBQZW5wYWwuY29ubmVjdFRvQ2hpbGQoeyBpZnJhbWUsIG1ldGhvZHM6IHByb3hpZWRNZXRob2RzIH0pLnByb21pc2U7XG59XG4iXX0= |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
import { mergeIntersecting } from './utils'; | ||
@@ -38,5 +38,5 @@ /** | ||
const proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToParent({ parentOrigin, methods: proxiedMethods }) | ||
return Penpal.connectToParent({ parentOrigin, methods: proxiedMethods }) | ||
.promise; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGJsb29tcmVhY2gvbmF2YXBwLWNvbW11bmljYXRpb24vIiwic291cmNlcyI6WyJsaWIvcGFyZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFTNUIsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sU0FBUyxDQUFDOzs7OztBQUU1QyxNQUFNLFVBQVUsYUFBYSxDQUFDLE9BQWlCO0lBQzdDLE9BQU87Ozs7UUFDTCxXQUFXO1lBQ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aWdpbixcbiAgbWV0aG9kcyA9IHt9LFxufTogUGFyZW50Q29ubmVjdENvbmZpZyk6IFByb21pc2U8UGFyZW50UHJvbWlzZWRBcGk+IHtcbiAgY29uc3QgcHJveGllczogQ2hpbGRBcGkgPSBjcmVhdGVQcm94aWVzKG1ldGhvZHMpO1xuICBjb25zdCBwcm94aWVkTWV0aG9kcyA9IG1lcmdlSW50ZXJzZWN0aW5nKG1ldGhvZHMsIHByb3hpZXMpO1xuXG4gIHJldHVybiBQZW5wYWwuY29ubmVjdFRvUGFyZW50KHsgcGFyZW50T3JpZ2luLCBtZXRob2RzOiBwcm94aWVkTWV0aG9kcyB9KVxuICAgIC5wcm9taXNlO1xufVxuIl19 |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
import { mergeIntersecting } from './utils'; | ||
@@ -18,4 +18,4 @@ /** | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
return Penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpbGQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYmxvb21yZWFjaC9uYXZhcHAtY29tbXVuaWNhdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9jaGlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxNQUFNLE1BQU0sUUFBUSxDQUFDO0FBRzVCLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFNBQVMsQ0FBQzs7Ozs7QUFFNUMsTUFBTSxVQUFVLGNBQWMsQ0FBQyxFQUdWO1FBRm5CLGtCQUFNLEVBQ04sZUFBWSxFQUFaLGlDQUFZOztRQUVOLE9BQU8sR0FBYyxFQUFFOztRQUN2QixjQUFjLEdBQUcsa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FBRSxpQkFBaUIsRUFBRSxNQUFNLFNBQVMsQ0FBQzs7Ozs7QUFFNUMsTUFBTSxVQUFVLGNBQWMsQ0FBQyxFQUdWO1FBRm5CLGtCQUFNLEVBQ04sZUFBWSxFQUFaLGlDQUFZOztRQUVOLE9BQU8sR0FBYyxFQUFFOztRQUN2QixjQUFjLEdBQUcsaUJBQWlCLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQztJQUUxRCxPQUFPLE1BQU0sQ0FBQyxjQUFjLENBQUMsRUFBRSxNQUFNLFFBQUEsRUFBRSxPQUFPLEVBQUUsY0FBYyxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUM7QUFDNUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBQZW5wYWwgZnJvbSAncGVucGFsJztcblxuaW1wb3J0IHsgQ2hpbGRDb25uZWN0Q29uZmlnLCBDaGlsZFByb21pc2VkQXBpLCBQYXJlbnRBcGkgfSBmcm9tICcuL2FwaSc7XG5pbXBvcnQgeyBtZXJnZUludGVyc2VjdGluZyB9IGZyb20gJy4vdXRpbHMnO1xuXG5leHBvcnQgZnVuY3Rpb24gY29ubmVjdFRvQ2hpbGQoe1xuICBpZnJhbWUsXG4gIG1ldGhvZHMgPSB7fSxcbn06IENoaWxkQ29ubmVjdENvbmZpZyk6IFByb21pc2U8Q2hpbGRQcm9taXNlZEFwaT4ge1xuICBjb25zdCBwcm94aWVzOiBQYXJlbnRBcGkgPSB7fTtcbiAgY29uc3QgcHJveGllZE1ldGhvZHMgPSBtZXJnZUludGVyc2VjdGluZyhtZXRob2RzLCBwcm94aWVzKTtcblxuICByZXR1cm4gUGVucGFsLmNvbm5lY3RUb0NoaWxkKHsgaWZyYW1lLCBtZXRob2RzOiBwcm94aWVkTWV0aG9kcyB9KS5wcm9taXNlO1xufVxuIl19 |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
import { mergeIntersecting } from './utils'; | ||
@@ -39,5 +39,5 @@ /** | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
return Penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
.promise; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGJsb29tcmVhY2gvbmF2YXBwLWNvbW11bmljYXRpb24vIiwic291cmNlcyI6WyJsaWIvcGFyZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFTNUIsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sU0FBUyxDQUFDOzs7OztBQUU1QyxNQUFNLFVBQVUsYUFBYSxDQUFDLE9BQWlCO0lBQzdDLE9BQU87UUFDTCxXQUFXOzs7UUFBWDtZQUNFLE9BQU8sT0FBTyxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQy9CLENBQUM7UUFDRCxRQUFROzs7O1FBQVIsVUFBUyxRQUFxQjtZQUM1QixPQUFPLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDcEMsQ0FBQztLQUNGLENBQUM7QUFDSixDQUFDOzs7OztBQUVELE1BQU0sVUFBVSxlQUFlLENBQUMsRUFHVjtRQUZwQiw4QkFBWSxFQUNaLGVBQVksRUFBWixpQ0FBWTs7UUFFTixPQUFPLEdBQWEsYUFBYSxDQUFDLE9BQU8sQ0FBQzs7UUFDMUMsY0FBYyxHQUFHLGlCQUFpQixDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUM7SUFFMUQsT0FBTyxNQUFNLENBQUMsZUFBZSxDQUFDLEVBQUUsWUFBWSxjQUFBLEVBQUUsT0FBTyxFQUFFLGNBQWMsRUFBRSxDQUFD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FxuICBOYXZJdGVtLFxuICBOYXZMb2NhdGlvbixcbiAgUGFyZW50Q29ubmVjdENvbmZpZyxcbiAgUGFyZW50UHJvbWlzZWRBcGksXG59IGZyb20gJy4vYXBpJztcbmltcG9ydCB7IG1lcmdlSW50ZXJzZWN0aW5nIH0gZnJvbSAnLi91dGlscyc7XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVQcm94aWVzKG1ldGhvZHM6IENoaWxkQXBpKTogQ2hpbGRBcGkge1xuICByZXR1cm4ge1xuICAgIGdldE5hdkl0ZW1zKCk6IE5hdkl0ZW1bXSB7XG4gICAgICByZXR1cm4gbWV0aG9kcy5nZXROYXZJdGVtcygpO1xuICAgIH0sXG4gICAgbmF2aWdhdGUobG9jYXRpb246IE5hdkxvY2F0aW9uKTogdm9pZCB7XG4gICAgICByZXR1cm4gbWV0aG9kcy5uYXZpZ2F0ZShsb2NhdGlvbik7XG4gICAgfSxcbiAgfTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNvbm5lY3RUb1BhcmVudCh7XG4gIHBhcmVudE9yaWdpbixcbiAgbWV0aG9kcyA9IHt9LFxufTogUGFyZW50Q29ubmVjdENvbmZpZyk6IFByb21pc2U8UGFyZW50UHJvbWlzZWRBcGk+IHtcbiAgY29uc3QgcHJveGllczogQ2hpbGRBcGkgPSBjcmVhdGVQcm94aWVzKG1ldGhvZHMpO1xuICBjb25zdCBwcm94aWVkTWV0aG9kcyA9IG1lcmdlSW50ZXJzZWN0aW5nKG1ldGhvZHMsIHByb3hpZXMpO1xuXG4gIHJldHVybiBQZW5wYWwuY29ubmVjdFRvUGFyZW50KHsgcGFyZW50T3JpZ2luLCBtZXRob2RzOiBwcm94aWVkTWV0aG9kcyB9KVxuICAgIC5wcm9taXNlO1xufVxuIl19 |
@@ -1,2 +0,2 @@ | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
@@ -46,3 +46,3 @@ /** | ||
const proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToChild({ iframe, methods: proxiedMethods }).promise; | ||
return Penpal.connectToChild({ iframe, methods: proxiedMethods }).promise; | ||
} | ||
@@ -84,3 +84,3 @@ | ||
const proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToParent({ parentOrigin, methods: proxiedMethods }) | ||
return Penpal.connectToParent({ parentOrigin, methods: proxiedMethods }) | ||
.promise; | ||
@@ -87,0 +87,0 @@ } |
import { __assign } from 'tslib'; | ||
import penpal from 'penpal'; | ||
import Penpal from 'penpal'; | ||
@@ -48,3 +48,3 @@ /** | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
return Penpal.connectToChild({ iframe: iframe, methods: proxiedMethods }).promise; | ||
} | ||
@@ -87,3 +87,3 @@ | ||
var proxiedMethods = mergeIntersecting(methods, proxies); | ||
return penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
return Penpal.connectToParent({ parentOrigin: parentOrigin, methods: proxiedMethods }) | ||
.promise; | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "@bloomreach/navapp-communication", | ||
"version": "1.0.0-4", | ||
"version": "1.0.0-5", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "penpal": "^4.0.0" |
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