Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bloomreach/navapp-communication

Package Overview
Dependencies
Maintainers
33
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bloomreach/navapp-communication - npm Package Compare versions

Comparing version 3.0.0-3 to 3.0.0-4

12

dist/index.js

@@ -61,3 +61,3 @@ import Penpal from 'penpal';

/*
* Copyright 2019 BloomReach. All rights reserved. (https://www.bloomreach.com/)
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*

@@ -79,3 +79,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

/*
* Copyright 2019 BloomReach. All rights reserved. (https://www.bloomreach.com/)
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*

@@ -119,3 +119,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

/*
* Copyright 2019-2020 BloomReach. All rights reserved. (https://www.bloomreach.com/)
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*

@@ -156,3 +156,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

/*
* Copyright 2019 BloomReach. All rights reserved. (https://www.bloomreach.com/)
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*

@@ -181,6 +181,6 @@ * Licensed under the Apache License, Version 2.0 (the "License");

var version="3.0.0-3";
var version="3.0.0-4";
/*
* Copyright 2019 BloomReach. All rights reserved. (https://www.bloomreach.com/)
* Copyright 2019-2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
*

@@ -187,0 +187,0 @@ * Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,17 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("penpal")):"function"==typeof define&&define.amd?define(["exports","penpal"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).brNavappCommunication={},e.Penpal)}(this,(function(e,o){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r,t,i=n(o);e.ClientErrorCodes=void 0,(r=e.ClientErrorCodes||(e.ClientErrorCodes={}))[r.UnknownError=0]="UnknownError",r[r.GenericCommunicationError=1]="GenericCommunicationError",r[r.NotAuthorizedError=403]="NotAuthorizedError",r[r.PageNotFoundError=404]="PageNotFoundError",r[r.InternalError=500]="InternalError",r[r.UnableToConnectToServerError=501]="UnableToConnectToServerError",e.NavigationTrigger=void 0,(t=e.NavigationTrigger||(e.NavigationTrigger={})).NotDefined="NotDefined",t.InitialNavigation="InitialNavigation",t.Menu="Menu",t.Breadcrumbs="Breadcrumbs",t.FastTravel="FastTravel",t.AnotherApp="AnotherApp",t.PopState="PopState";const a=(e,o,n)=>(...r)=>new Promise((async(t,i)=>{const a=setTimeout((()=>{i(`${o} call timed out`)}),n);try{const o=await e(...r);clearTimeout(a),t(o)}catch(e){i(e)}}));const c=(e,o)=>{const n=e.beforeNavigation;delete e.beforeNavigation;const r=function(e,o=3e5){if(!o||o<0)return e;const n={};for(const r of Object.keys(e))n[r]=a(e[r].bind(e),r,o);return n}(e,o);return r.beforeNavigation=n,r};e.connectToChild=async function({iframe:e,methods:o,connectionTimeout:n,methodInvocationTimeout:r}){const t=await i.default.connectToChild({iframe:e,methods:o,timeout:n}).promise;return c(t,r)},e.connectToParent=async function({parentOrigin:e,methods:o}){return i.default.connectToParent({parentOrigin:e,methods:o}).promise},e.getVersion=function(){return"3.0.0-3"},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(["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);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
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})}));
//# sourceMappingURL=index.umd.js.map
{
"name": "@bloomreach/navapp-communication",
"version": "3.0.0-3",
"version": "3.0.0-4",
"main": "dist/index.umd.js",

@@ -20,3 +20,3 @@ "browser": "dist/index.umd.js",

"scripts": {
"prepare": "npm run build",
"prepack": "npm run build",
"build": "rollup -c",

@@ -52,2 +52,3 @@ "docs": "typedoc",

"ts-jest": "26.5.6",
"tslib": "2.2.0",
"typedoc": "0.20.36",

@@ -54,0 +55,0 @@ "typescript": "4.2.4"

@@ -1,24 +0,19 @@

# NavappCommunication
<!--
Copyright 2021 BloomReach. All rights reserved. (https://www.bloomreach.com/)
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
## Code scaffolding
http://www.apache.org/licenses/LICENSE-2.0
Run `ng generate component component-name --project navapp-communication` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project navapp-communication`.
> Note: Don't forget to add `--project navapp-communication` or else it will be added to the default project in your `angular.json` file.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
## Build
# NavappCommunication
Run `ng build navapp-communication` to build the project. The build artifacts will be stored in the `dist/` directory.
## Publishing
After building your library with `ng build navapp-communication`, go to the dist folder `cd dist/navapp-communication` and run `npm publish`.
## Running unit tests
Run `ng test navapp-communication` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
TODO: write README

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc