@bloomreach/navapp-communication
Advanced tools
Comparing version 3.0.0-4 to 3.0.0
@@ -177,3 +177,3 @@ import Penpal from 'penpal'; | ||
var version="3.0.0-4"; | ||
var version="3.0.0"; | ||
@@ -180,0 +180,0 @@ /* |
@@ -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";var c=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]}}))}))}))}};var l=function(e,n){var r=e.beforeNavigation;delete e.beforeNavigation;var t=function(e,n){if(void 0===n&&(n=3e5),!n||n<0)return e;for(var r={},t=0,o=Object.keys(e);t<o.length;t++){var i=o[t];r[i]=c(e[i].bind(e),i,n)}return r}(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.0.0-4"},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";var c=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]}}))}))}))}};var l=function(e,n){var r=e.beforeNavigation;delete e.beforeNavigation;var t=function(e,n){if(void 0===n&&(n=3e5),!n||n<0)return e;for(var r={},t=0,o=Object.keys(e);t<o.length;t++){var i=o[t];r[i]=c(e[i].bind(e),i,n)}return r}(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.0.0"},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@bloomreach/navapp-communication", | ||
"version": "3.0.0-4", | ||
"version": "3.0.0", | ||
"main": "dist/index.umd.js", | ||
@@ -5,0 +5,0 @@ "browser": "dist/index.umd.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
93048