@bloomreach/navapp-communication
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -288,2 +288,6 @@ /** | ||
subGroups?: Site[]; | ||
/** | ||
* The type of Site | ||
*/ | ||
type?: string; | ||
} | ||
@@ -290,0 +294,0 @@ declare enum ClientErrorCodes { |
import Penpal from 'penpal'; | ||
/* | ||
* Copyright 2019-2022 Bloomreach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 Bloomreach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -61,3 +61,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
/* | ||
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -79,3 +79,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
/* | ||
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -121,3 +121,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
/* | ||
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -159,3 +159,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
/* | ||
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -184,6 +184,6 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
var version="3.2.0"; | ||
var version="3.3.0"; | ||
/* | ||
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* Copyright 2019-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
* | ||
@@ -190,0 +190,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -16,3 +16,3 @@ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("penpal")):"function"==typeof define&&define.amd?define(["exports","penpal"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).brNavappCommunication={},e.Penpal)}(this,(function(e,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,o,i=r(n); | ||
***************************************************************************** */ | ||
function a(e,n,r,t){return new(r||(r=Promise))((function(o,i){function a(e){try{c(t.next(e))}catch(e){i(e)}}function u(e){try{c(t.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}c((t=t.apply(e,n||[])).next())}))}function u(e,n){var r,t,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,t&&(o=2&i[0]?t.return:i[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,i[1])).done)return o;switch(t=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,t=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],t=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}e.ClientErrorCodes=void 0,(t=e.ClientErrorCodes||(e.ClientErrorCodes={}))[t.UnknownError=0]="UnknownError",t[t.GenericCommunicationError=1]="GenericCommunicationError",t[t.NotAuthorizedError=403]="NotAuthorizedError",t[t.PageNotFoundError=404]="PageNotFoundError",t[t.InternalError=500]="InternalError",t[t.UnableToConnectToServerError=501]="UnableToConnectToServerError",e.NavigationTrigger=void 0,(o=e.NavigationTrigger||(e.NavigationTrigger={})).NotDefined="NotDefined",o.InitialNavigation="InitialNavigation",o.Menu="Menu",o.Breadcrumbs="Breadcrumbs",o.FastTravel="FastTravel",o.AnotherApp="AnotherApp",o.PopState="PopState";function c(e,n){return void 0===n&&(n=3e5),!n||n<0?e:Object.keys(e).reduce((function(r,t){return r[t]=function(e,n,r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new Promise((function(o,i){return a(void 0,void 0,void 0,(function(){var a,c,l;return u(this,(function(u){switch(u.label){case 0:a=setTimeout((function(){i(n+" call timed out")}),r),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,t)];case 2:return c=u.sent(),clearTimeout(a),o(c),[3,4];case 3:return l=u.sent(),i(l),[3,4];case 4:return[2]}}))}))}))}}(e[t].bind(e),t,n),r}),{})}var l=function(e,n){var r=e.beforeNavigation;delete e.beforeNavigation;var t=c(e,n);return t.beforeNavigation=r,t};e.connectToChild=function(e){var n=e.iframe,r=e.methods,t=e.connectionTimeout,o=e.methodInvocationTimeout;return a(this,void 0,void 0,(function(){var e;return u(this,(function(a){switch(a.label){case 0:return[4,i.default.connectToChild({iframe:n,methods:r,timeout:t}).promise];case 1:return e=a.sent(),[2,l(e,o)]}}))}))},e.connectToParent=function(e){var n=e.parentOrigin,r=e.methods;return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2,i.default.connectToParent({parentOrigin:n,methods:r}).promise]}))}))},e.getVersion=function(){return"3.2.0"},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
function a(e,n,r,t){return new(r||(r=Promise))((function(o,i){function a(e){try{c(t.next(e))}catch(e){i(e)}}function u(e){try{c(t.throw(e))}catch(e){i(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}c((t=t.apply(e,n||[])).next())}))}function u(e,n){var r,t,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,t&&(o=2&i[0]?t.return:i[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,i[1])).done)return o;switch(t=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,t=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],t=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}e.ClientErrorCodes=void 0,(t=e.ClientErrorCodes||(e.ClientErrorCodes={}))[t.UnknownError=0]="UnknownError",t[t.GenericCommunicationError=1]="GenericCommunicationError",t[t.NotAuthorizedError=403]="NotAuthorizedError",t[t.PageNotFoundError=404]="PageNotFoundError",t[t.InternalError=500]="InternalError",t[t.UnableToConnectToServerError=501]="UnableToConnectToServerError",e.NavigationTrigger=void 0,(o=e.NavigationTrigger||(e.NavigationTrigger={})).NotDefined="NotDefined",o.InitialNavigation="InitialNavigation",o.Menu="Menu",o.Breadcrumbs="Breadcrumbs",o.FastTravel="FastTravel",o.AnotherApp="AnotherApp",o.PopState="PopState";function c(e,n){return void 0===n&&(n=3e5),!n||n<0?e:Object.keys(e).reduce((function(r,t){return r[t]=function(e,n,r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return new Promise((function(o,i){return a(void 0,void 0,void 0,(function(){var a,c,l;return u(this,(function(u){switch(u.label){case 0:a=setTimeout((function(){i(n+" call timed out")}),r),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,t)];case 2:return c=u.sent(),clearTimeout(a),o(c),[3,4];case 3:return l=u.sent(),i(l),[3,4];case 4:return[2]}}))}))}))}}(e[t].bind(e),t,n),r}),{})}var l=function(e,n){var r=e.beforeNavigation;delete e.beforeNavigation;var t=c(e,n);return t.beforeNavigation=r,t};e.connectToChild=function(e){var n=e.iframe,r=e.methods,t=e.connectionTimeout,o=e.methodInvocationTimeout;return a(this,void 0,void 0,(function(){var e;return u(this,(function(a){switch(a.label){case 0:return[4,i.default.connectToChild({iframe:n,methods:r,timeout:t}).promise];case 1:return e=a.sent(),[2,l(e,o)]}}))}))},e.connectToParent=function(e){var n=e.parentOrigin,r=e.methods;return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2,i.default.connectToParent({parentOrigin:n,methods:r}).promise]}))}))},e.getVersion=function(){return"3.3.0"},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@bloomreach/navapp-communication", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"main": "dist/index.umd.js", | ||
@@ -37,3 +37,3 @@ "browser": "dist/index.umd.js", | ||
"jest-junit": { | ||
"outputDirectory": "coverage", | ||
"outputDirectory": "target/frontend-junit-reports", | ||
"outputName": "TEST-navapp-communication.xml" | ||
@@ -40,0 +40,0 @@ }, |
<!-- | ||
Copyright 2021 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
Copyright 2021-2023 BloomReach. All rights reserved. (https://www.bloomreach.com/) | ||
@@ -4,0 +4,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
589
0
95169