@bullhorn/connect
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(t.bhconnect={})}(this,function(t){"use strict";var r;(r=t.AppBridgeHandler||(t.AppBridgeHandler={}))[r.HTTP=0]="HTTP",r[r.OPEN=1]="OPEN",r[r.OPEN_LIST=2]="OPEN_LIST",r[r.CLOSE=3]="CLOSE",r[r.REFRESH=4]="REFRESH",r[r.PIN=5]="PIN",r[r.REGISTER=6]="REGISTER",r[r.UPDATE=7]="UPDATE",r[r.REQUEST_DATA=8]="REQUEST_DATA",r[r.CALLBACK=9]="CALLBACK";var e="get",n="post",o="put",i="delete",s="register",a="open",c="openList",u="close",p="refresh",h="pin",d="update",f="httpGET",l="httpPOST",b="httpPUT",_="httpDELETE",y="customEvent",v="requestData",w="callback",E=function(){function t(){}return t.prototype.create=function(t){return new m(t)},t}(),m=function(){function r(t){if(void 0===t&&(t="AppBridge"),this.id=""+Date.now(),this._registeredFrames=[],this._handlers={},this._tracing=!1,this._eventListeners={},this.traceName=t,postRobot){postRobot.CONFIG.LOG_LEVEL="error";try{this._setupHandlers()}catch(t){}}}return Object.defineProperty(r.prototype,"tracing",{set:function(t){this._tracing=t},enumerable:!0,configurable:!0}),r.prototype.handle=function(t,r){this._handlers[t]=r},r.prototype._trace=function(t,r){this._tracing&&console.log("["+(this.traceName||this.id)+'] "'+t+'"',r)},r.prototype._setupHandlers=function(){var t=this;postRobot.on(s,function(r){return t._trace(s,r),t._registeredFrames.push(r),t.register(r.data).then(function(r){return t.windowName=r,{windowName:r}})}),postRobot.on(d,function(r){return t._trace(d,r),t.update(r.data).then(function(t){return{success:t}})}),postRobot.on(a,function(r){return t._trace(a,r),t.open(r.data).then(function(t){return{success:t}})}),postRobot.on(c,function(r){return t._trace(c,r),t.openList(r.data).then(function(t){return{success:t}})}),postRobot.on(u,function(r){t._trace(u,r);var e=t._registeredFrames.findIndex(function(t){return t.data.id===r.data.id});return-1!==e&&t._registeredFrames.splice(e,1),t.close(r.data).then(function(t){return{success:t}})}),postRobot.on(p,function(r){return t._trace(p,r),t.refresh(r.data).then(function(t){return{success:t}})}),postRobot.on(h,function(r){return t._trace(h,r),t.pin(r.data).then(function(t){return{success:t}})}),postRobot.on(v,function(r){return t._trace(v,r),t.requestData(r.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(w,function(r){return t._trace(w,r),t.callback(r.data).then(function(t){return{success:t}})}),postRobot.on(f,function(r){return t._trace(f,r),t.httpGET(r.data.relativeURL).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(l,function(r){return t._trace(l,r),t.httpPOST(r.data.relativeURL,r.data.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(b,function(r){return t._trace(b,r),t.httpPUT(r.data.relativeURL,r.data.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(_,function(r){return t._trace(_,r),t.httpDELETE(r.data.relativeURL).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(y,function(r){t._trace(y,r),t._eventListeners[r.data.event]&&t._eventListeners[r.data.event].forEach(function(t){t(r.data.data)}),t._registeredFrames.length>0&&t._registeredFrames.forEach(function(t){postRobot.send(t.source,y,r.data)})})},r.prototype.open=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.OPEN]?e._handlers[t.AppBridgeHandler.OPEN](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(a,r).then(function(t){e._trace(a+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.openList=function(r){var e=this;return Object.assign({},{type:"List",entityType:r.type,keywords:r.keywords,criteria:r.criteria}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.OPEN_LIST]?e._handlers[t.AppBridgeHandler.OPEN_LIST](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(c,r).then(function(t){e._trace(c+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.update=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.UPDATE]?e._handlers[t.AppBridgeHandler.UPDATE](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(d,r).then(function(t){e._trace(d+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.close=function(r){var e=this;r&&console.info("[AppBridge] - close(packet) is deprecated! Please just use close()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.CLOSE]?e._handlers[t.AppBridgeHandler.CLOSE](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(u,n).then(function(t){e._trace(u+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.refresh=function(r){var e=this;r&&console.info("[AppBridge] - refresh(packet) is deprecated! Please just use refresh()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.REFRESH]?e._handlers[t.AppBridgeHandler.REFRESH](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(p,n).then(function(t){e._trace(p+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.pin=function(r){var e=this;r&&console.info("[AppBridge] - pin(packet) is deprecated! Please just use pin()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.PIN]?e._handlers[t.AppBridgeHandler.PIN](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(h,n).then(function(t){e._trace(h+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.requestData=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.REQUEST_DATA]?e._handlers[t.AppBridgeHandler.REQUEST_DATA](r,function(t){t?n({data:t}):o(!1)}):postRobot.sendToParent(v,r).then(function(t){e._trace(v+" (callback)",t),t.data?n({data:t.data.data}):o(!1)}).catch(function(t){o(!1)})})},r.prototype.callback=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.CALLBACK]?e._handlers[t.AppBridgeHandler.CALLBACK](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(w,r).then(function(t){e._trace(w+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.register=function(r){var e=this;return void 0===r&&(r={}),Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.REGISTER]?e._handlers[t.AppBridgeHandler.REGISTER](r,function(t){n(t||null)}):postRobot.sendToParent(s,r).then(function(t){e._trace(s+" (callback)",t),t.data?(e.windowName=t.data.windowName,n(t.data.windowName)):n(null)}).catch(function(t){e._trace(s+" - FAILED - (no parent)",t),n(null)})})},r.prototype.httpGET=function(r){var n=this;return new Promise(function(o,i){n._handlers[t.AppBridgeHandler.HTTP]?n._handlers[t.AppBridgeHandler.HTTP]({verb:e,relativeURL:r},function(t,r){o({data:t,error:r})}):postRobot.sendToParent(f,{relativeURL:r}).then(function(t){o({data:t.data.data,error:t.data.error})}).catch(function(t){i(null)})})},r.prototype.httpPOST=function(r,e){var o=this;return new Promise(function(i,s){o._handlers[t.AppBridgeHandler.HTTP]?o._handlers[t.AppBridgeHandler.HTTP]({verb:n,relativeURL:r,data:e},function(t,r){i({data:t,error:r})}):postRobot.sendToParent(l,{relativeURL:r,data:e}).then(function(t){i({data:t.data.data,error:t.data.error})}).catch(function(t){s(null)})})},r.prototype.httpPUT=function(r,e){var n=this;return new Promise(function(i,s){n._handlers[t.AppBridgeHandler.HTTP]?n._handlers[t.AppBridgeHandler.HTTP]({verb:o,relativeURL:r,data:e},function(t,r){i({data:t,error:r})}):postRobot.sendToParent(b,{relativeURL:r,data:e}).then(function(t){i({data:t.data.data,error:t.data.error})}).catch(function(t){s(null)})})},r.prototype.httpDELETE=function(r){var e=this;return new Promise(function(n,o){e._handlers[t.AppBridgeHandler.HTTP]?e._handlers[t.AppBridgeHandler.HTTP]({verb:i,relativeURL:r},function(t,r){n({data:t,error:r})}):postRobot.sendToParent(_,{relativeURL:r}).then(function(t){n({data:t.data.data,error:t.data.error})}).catch(function(t){o(null)})})},r.prototype.fireEvent=function(t,r){return new Promise(function(e,n){postRobot.sendToParent(y,{event:t,data:r}).then(function(t){e(t)}).catch(function(t){n(null)})})},r.prototype.fireEventToChildren=function(t,r){this._registeredFrames.length>0&&this._registeredFrames.forEach(function(e){postRobot.send(e.source,y,{eventType:t,data:r})})},r.prototype.addEventListener=function(t,r){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(r)},r}(),g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])};var T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(t,r){return t(r={exports:{}},r.exports),r.exports}var R="undefined"!=typeof window&&window,S="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A=R||void 0!==T&&T||S,O=A;!function(){if(!A)throw new Error("RxJS could not find any global context (window, self, global)")}();var L={root:O};var x={isFunction:function(t){return"function"==typeof t}},H={isArray:Array.isArray||function(t){return t&&"number"==typeof t.length}};var j,B={isObject:function(t){return null!=t&&"object"==typeof t}},U={errorObject:{e:{}}};function N(){try{return j.apply(this,arguments)}catch(t){return U.errorObject.e=t,U.errorObject}}var k={tryCatch:function(t){return j=t,N}},C=T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},D={UnsubscriptionError:function(t){function r(r){t.call(this),this.errors=r;var e=Error.call(this,r?r.length+" errors occurred during unsubscription:\n "+r.map(function(t,r){return r+1+") "+t.toString()}).join("\n "):"");this.name=e.name="UnsubscriptionError",this.stack=e.stack,this.message=e.message}return C(r,t),r}(Error)};function F(t){return t.reduce(function(t,r){return t.concat(r instanceof D.UnsubscriptionError?r.errors:r)},[])}var I={Subscription:function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var r;return t.prototype.unsubscribe=function(){var t,r=!1;if(!this.closed){var e=this._parent,n=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=n?n.length:0;e;)e.remove(this),e=++s<a&&n[s]||null;if(x.isFunction(o))k.tryCatch(o).call(this)===U.errorObject&&(r=!0,t=t||(U.errorObject.e instanceof D.UnsubscriptionError?F(U.errorObject.e.errors):[U.errorObject.e]));if(H.isArray(i))for(s=-1,a=i.length;++s<a;){var c=i[s];if(B.isObject(c))if(k.tryCatch(c.unsubscribe).call(c)===U.errorObject){r=!0,t=t||[];var u=U.errorObject.e;u instanceof D.UnsubscriptionError?t=t.concat(F(u.errors)):t.push(u)}}if(r)throw new D.UnsubscriptionError(t)}},t.prototype.add=function(r){if(!r||r===t.EMPTY)return t.EMPTY;if(r===this)return this;var e=r;switch(typeof r){case"function":e=new t(r);case"object":if(e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if("function"!=typeof e._addParent){var n=e;(e=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(e),e._addParent(this),e},t.prototype.remove=function(t){var r=this._subscriptions;if(r){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}},t.prototype._addParent=function(t){var r=this._parent,e=this._parents;r&&r!==t?e?-1===e.indexOf(t)&&e.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((r=new t).closed=!0,r),t}()},G={empty:{closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},$=P(function(t,r){var e=L.root.Symbol;r.rxSubscriber="function"==typeof e&&"function"==typeof e.for?e.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber}),V=($.rxSubscriber,$.$$rxSubscriber,T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),M=function(t){function r(e,n,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=G.empty;break;case 1:if(!e){this.destination=G.empty;break}if("object"==typeof e){e instanceof r?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,e,n,o)}}return V(r,t),r.prototype[$.rxSubscriber]=function(){return this},r.create=function(t,e,n){var o=new r(t,e,n);return o.syncErrorThrowable=!1,o},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var t=this._parent,r=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=r,this},r}(I.Subscription),K=M,Q=function(t){function r(r,e,n,o){var i;t.call(this),this._parentSubscriber=r;var s=this;x.isFunction(e)?i=e:e&&(i=e.next,n=e.error,o=e.complete,e!==G.empty&&(s=Object.create(e),x.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=n,this._complete=o}return V(r,t),r.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;r.syncErrorThrowable?this.__tryOrSetError(r,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber;if(this._error)r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!r.syncErrorThrowable)throw this.unsubscribe(),t;r.syncErrorValue=t,r.syncErrorThrown=!0,this.unsubscribe()}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var e=function(){return t._complete.call(t._context)};r.syncErrorThrowable?(this.__tryOrSetError(r,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(t){throw this.unsubscribe(),t}},r.prototype.__tryOrSetError=function(t,r,e){try{r.call(this._context,e)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(M),q={Subscriber:K};var Y={toSubscriber:function(t,r,e){if(t){if(t instanceof q.Subscriber)return t;if(t[$.rxSubscriber])return t[$.rxSubscriber]()}return t||r||e?new q.Subscriber(t,r,e):new q.Subscriber(G.empty)}},J=P(function(t,r){function e(t){var r,e=t.Symbol;return"function"==typeof e?e.observable?r=e.observable:(r=e("observable"),e.observable=r):r="@@observable",r}r.getSymbolObservable=e,r.observable=e(L.root),r.$$observable=r.observable});J.getSymbolObservable,J.observable,J.$$observable;var W={noop:function(){}};function z(t){return t?1===t.length?t[0]:function(r){return t.reduce(function(t,r){return r(t)},r)}:W.noop}var X={pipe:function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return z(t)},pipeFromArray:z},Z={Observable:function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(t,r,e){var n=this.operator,o=Y.toSubscriber(t,r,e);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.syncErrorThrown=!0,t.syncErrorValue=r,t.error(r)}},t.prototype.forEach=function(t,r){var e=this;if(r||(L.root.Rx&&L.root.Rx.config&&L.root.Rx.config.Promise?r=L.root.Rx.config.Promise:L.root.Promise&&(r=L.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(r,n){var o;o=e.subscribe(function(r){if(o)try{t(r)}catch(t){n(t),o.unsubscribe()}else t(r)},n,r)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[J.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return 0===t.length?this:X.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var r=this;if(t||(L.root.Rx&&L.root.Rx.config&&L.root.Rx.config.Promise?t=L.root.Rx.config.Promise:L.root.Promise&&(t=L.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},t.create=function(r){return new t(r)},t}()},tt=T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)};var rt=function(t,r){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new et(t,r))}},et=function(){function t(t,r){this.project=t,this.thisArg=r}return t.prototype.call=function(t,r){return r.subscribe(new ot(t,this.project,this.thisArg))},t}(),nt=et,ot=function(t){function r(r,e,n){t.call(this,r),this.project=e,this.count=0,this.thisArg=n||this}return tt(r,t),r.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(q.Subscriber),it={map:rt,MapOperator:nt};var st={map:function(t,r){return it.map(t,r)(this)}};Z.Observable.prototype.map=st.map;var at=function(){function t(t){this.http=t}return t.prototype.create=function(t){return new ct(t,this.http)},t}(),ct=function(t){function r(r,e){void 0===r&&(r="DevAppBridge");var n=t.call(this,r)||this;n.http=e;var o=n.getCookie("UlEncodedIdentity");if(o&&o.length){var i=JSON.parse(decodeURIComponent(o)).sessions.reduce(function(t,r){return t[r.name]=r.value.endpoint,t},{});n.baseURL=i.rest}return n}return function(t,r){function e(){this.constructor=t}g(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}(r,t),r.prototype._setupHandlers=function(){},r.prototype.httpGET=function(t){return this.http.get(this.baseURL+"/"+t,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpPOST=function(t,r){return this.http.post(this.baseURL+"/"+t,r,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpPUT=function(t,r){return this.http.put(this.baseURL+"/"+t,r,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpDELETE=function(t){return this.http.delete(this.baseURL+"/"+t,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.getCookie=function(t){if(document)for(var r=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var o=e[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(r))return o.substring(r.length,o.length)}return!1},r}(m);t.AppBridgeService=E,t.AppBridge=m,t.DevAppBridgeService=at,t.DevAppBridge=ct,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(t.bhconnect={})}(this,function(t){"use strict";var r;(r=t.AppBridgeHandler||(t.AppBridgeHandler={}))[r.HTTP=0]="HTTP",r[r.OPEN=1]="OPEN",r[r.OPEN_LIST=2]="OPEN_LIST",r[r.CLOSE=3]="CLOSE",r[r.REFRESH=4]="REFRESH",r[r.PIN=5]="PIN",r[r.REGISTER=6]="REGISTER",r[r.UPDATE=7]="UPDATE",r[r.REQUEST_DATA=8]="REQUEST_DATA",r[r.CALLBACK=9]="CALLBACK";var e="get",n="post",o="put",i="delete",s="register",a="open",c="openList",u="close",p="refresh",h="pin",d="update",f="httpGET",l="httpPOST",b="httpPUT",_="httpDELETE",y="customEvent",w="requestData",v="callback",m=function(){function t(){}return t.prototype.create=function(t){return new E(t)},t}(),E=function(){function r(t){if(void 0===t&&(t="AppBridge"),this.id=""+Date.now(),this._registeredFrames=[],this._handlers={},this._tracing=!1,this._eventListeners={},this.traceName=t,postRobot){postRobot.CONFIG.LOG_LEVEL="error";try{this._setupHandlers()}catch(t){}}}return Object.defineProperty(r.prototype,"tracing",{set:function(t){this._tracing=t},enumerable:!0,configurable:!0}),r.prototype.handle=function(t,r){this._handlers[t]=r},r.prototype._trace=function(t,r){this._tracing&&console.log("["+(this.traceName||this.id)+'] "'+t+'"',r)},r.prototype._setupHandlers=function(){var t=this;postRobot.on(s,function(r){return t._trace(s,r),t._registeredFrames.push(r),t.register(r.data).then(function(r){return t.windowName=r,{windowName:r}})}),postRobot.on(d,function(r){return t._trace(d,r),t.update(r.data).then(function(t){return{success:t}})}),postRobot.on(a,function(r){return t._trace(a,r),t.open(r.data).then(function(t){return{success:t}})}),postRobot.on(c,function(r){return t._trace(c,r),t.openList(r.data).then(function(t){return{success:t}})}),postRobot.on(u,function(r){t._trace(u,r);var e=t._registeredFrames.findIndex(function(t){return t.data.id===r.data.id});return-1!==e&&t._registeredFrames.splice(e,1),t.close(r.data).then(function(t){return{success:t}})}),postRobot.on(p,function(r){return t._trace(p,r),t.refresh(r.data).then(function(t){return{success:t}})}),postRobot.on(h,function(r){return t._trace(h,r),t.pin(r.data).then(function(t){return{success:t}})}),postRobot.on(w,function(r){return t._trace(w,r),t.requestData(r.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(v,function(r){return t._trace(v,r),t.callback(r.data).then(function(t){return{success:t}})}),postRobot.on(f,function(r){return t._trace(f,r),t.httpGET(r.data.relativeURL).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(l,function(r){return t._trace(l,r),t.httpPOST(r.data.relativeURL,r.data.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(b,function(r){return t._trace(b,r),t.httpPUT(r.data.relativeURL,r.data.data).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(_,function(r){return t._trace(_,r),t.httpDELETE(r.data.relativeURL).then(function(t){return{data:t.data,error:t.error}})}),postRobot.on(y,function(r){t._trace(y,r),t._eventListeners[r.data.event]&&t._eventListeners[r.data.event].forEach(function(t){t(r.data.data)}),t._registeredFrames.length>0&&t._registeredFrames.forEach(function(t){postRobot.send(t.source,y,r.data)})})},r.prototype.open=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.OPEN]?e._handlers[t.AppBridgeHandler.OPEN](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(a,r).then(function(t){e._trace(a+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.openList=function(r){var e=this;return Object.assign({},{type:"List",entityType:r.type,keywords:r.keywords,criteria:r.criteria}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.OPEN_LIST]?e._handlers[t.AppBridgeHandler.OPEN_LIST](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(c,r).then(function(t){e._trace(c+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.update=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.UPDATE]?e._handlers[t.AppBridgeHandler.UPDATE](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(d,r).then(function(t){e._trace(d+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.close=function(r){var e=this;r&&console.info("[AppBridge] - close(packet) is deprecated! Please just use close()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.CLOSE]?e._handlers[t.AppBridgeHandler.CLOSE](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(u,n).then(function(t){e._trace(u+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.refresh=function(r){var e=this;r&&console.info("[AppBridge] - refresh(packet) is deprecated! Please just use refresh()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.REFRESH]?e._handlers[t.AppBridgeHandler.REFRESH](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(p,n).then(function(t){e._trace(p+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.pin=function(r){var e=this;r&&console.info("[AppBridge] - pin(packet) is deprecated! Please just use pin()!");var n={id:this.id,windowName:this.windowName};return new Promise(function(r,o){e._handlers[t.AppBridgeHandler.PIN]?e._handlers[t.AppBridgeHandler.PIN](n,function(t){t?r(!0):o(!1)}):postRobot.sendToParent(h,n).then(function(t){e._trace(h+" (callback)",t),t.data?r(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.requestData=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.REQUEST_DATA]?e._handlers[t.AppBridgeHandler.REQUEST_DATA](r,function(t){t?n({data:t}):o(!1)}):postRobot.sendToParent(w,r).then(function(t){e._trace(w+" (callback)",t),t.data?n({data:t.data.data}):o(!1)}).catch(function(t){o(!1)})})},r.prototype.callback=function(r){var e=this;return Object.assign(r,{id:this.id,windowName:this.windowName}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.CALLBACK]?e._handlers[t.AppBridgeHandler.CALLBACK](r,function(t){t?n(!0):o(!1)}):postRobot.sendToParent(v,r).then(function(t){e._trace(v+" (callback)",t),t.data?n(!0):o(!1)}).catch(function(t){o(!1)})})},r.prototype.register=function(r){var e=this;return void 0===r&&(r={}),Object.assign(r,{id:this.id,windowName:this.windowName||window.name}),new Promise(function(n,o){e._handlers[t.AppBridgeHandler.REGISTER]?e._handlers[t.AppBridgeHandler.REGISTER](r,function(t){n(t||null)}):postRobot.sendToParent(s,r).then(function(t){e._trace(s+" (callback)",t),t.data?(e.windowName=t.data.windowName,n(t.data.windowName)):n(null)}).catch(function(t){e._trace(s+" - FAILED - (no parent)",t),n(null)})})},r.prototype.httpGET=function(r){var n=this;return new Promise(function(o,i){n._handlers[t.AppBridgeHandler.HTTP]?n._handlers[t.AppBridgeHandler.HTTP]({verb:e,relativeURL:r},function(t,r){o({data:t,error:r})}):postRobot.sendToParent(f,{relativeURL:r}).then(function(t){o({data:t.data.data,error:t.data.error})}).catch(function(t){i(null)})})},r.prototype.httpPOST=function(r,e){var o=this;return new Promise(function(i,s){o._handlers[t.AppBridgeHandler.HTTP]?o._handlers[t.AppBridgeHandler.HTTP]({verb:n,relativeURL:r,data:e},function(t,r){i({data:t,error:r})}):postRobot.sendToParent(l,{relativeURL:r,data:e}).then(function(t){i({data:t.data.data,error:t.data.error})}).catch(function(t){s(null)})})},r.prototype.httpPUT=function(r,e){var n=this;return new Promise(function(i,s){n._handlers[t.AppBridgeHandler.HTTP]?n._handlers[t.AppBridgeHandler.HTTP]({verb:o,relativeURL:r,data:e},function(t,r){i({data:t,error:r})}):postRobot.sendToParent(b,{relativeURL:r,data:e}).then(function(t){i({data:t.data.data,error:t.data.error})}).catch(function(t){s(null)})})},r.prototype.httpDELETE=function(r){var e=this;return new Promise(function(n,o){e._handlers[t.AppBridgeHandler.HTTP]?e._handlers[t.AppBridgeHandler.HTTP]({verb:i,relativeURL:r},function(t,r){n({data:t,error:r})}):postRobot.sendToParent(_,{relativeURL:r}).then(function(t){n({data:t.data.data,error:t.data.error})}).catch(function(t){o(null)})})},r.prototype.fireEvent=function(t,r){return new Promise(function(e,n){postRobot.sendToParent(y,{event:t,data:r}).then(function(t){e(t)}).catch(function(t){n(null)})})},r.prototype.fireEventToChildren=function(t,r){this._registeredFrames.length>0&&this._registeredFrames.forEach(function(e){postRobot.send(e.source,y,{eventType:t,data:r})})},r.prototype.addEventListener=function(t,r){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(r)},r}(),g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])};var T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(t,r){return t(r={exports:{}},r.exports),r.exports}var R="undefined"!=typeof window&&window,S="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A=R||void 0!==T&&T||S,O=A;!function(){if(!A)throw new Error("RxJS could not find any global context (window, self, global)")}();var L={root:O};var x={isFunction:function(t){return"function"==typeof t}},H={isArray:Array.isArray||function(t){return t&&"number"==typeof t.length}};var j,B={isObject:function(t){return null!=t&&"object"==typeof t}},U={errorObject:{e:{}}};function N(){try{return j.apply(this,arguments)}catch(t){return U.errorObject.e=t,U.errorObject}}var k={tryCatch:function(t){return j=t,N}},C=T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},D={UnsubscriptionError:function(t){function r(r){t.call(this),this.errors=r;var e=Error.call(this,r?r.length+" errors occurred during unsubscription:\n "+r.map(function(t,r){return r+1+") "+t.toString()}).join("\n "):"");this.name=e.name="UnsubscriptionError",this.stack=e.stack,this.message=e.message}return C(r,t),r}(Error)};function F(t){return t.reduce(function(t,r){return t.concat(r instanceof D.UnsubscriptionError?r.errors:r)},[])}var I={Subscription:function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var r;return t.prototype.unsubscribe=function(){var t,r=!1;if(!this.closed){var e=this._parent,n=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=n?n.length:0;e;)e.remove(this),e=++s<a&&n[s]||null;if(x.isFunction(o))k.tryCatch(o).call(this)===U.errorObject&&(r=!0,t=t||(U.errorObject.e instanceof D.UnsubscriptionError?F(U.errorObject.e.errors):[U.errorObject.e]));if(H.isArray(i))for(s=-1,a=i.length;++s<a;){var c=i[s];if(B.isObject(c))if(k.tryCatch(c.unsubscribe).call(c)===U.errorObject){r=!0,t=t||[];var u=U.errorObject.e;u instanceof D.UnsubscriptionError?t=t.concat(F(u.errors)):t.push(u)}}if(r)throw new D.UnsubscriptionError(t)}},t.prototype.add=function(r){if(!r||r===t.EMPTY)return t.EMPTY;if(r===this)return this;var e=r;switch(typeof r){case"function":e=new t(r);case"object":if(e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if("function"!=typeof e._addParent){var n=e;(e=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(e),e._addParent(this),e},t.prototype.remove=function(t){var r=this._subscriptions;if(r){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}},t.prototype._addParent=function(t){var r=this._parent,e=this._parents;r&&r!==t?e?-1===e.indexOf(t)&&e.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((r=new t).closed=!0,r),t}()},G={empty:{closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},$=P(function(t,r){var e=L.root.Symbol;r.rxSubscriber="function"==typeof e&&"function"==typeof e.for?e.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber}),V=($.rxSubscriber,$.$$rxSubscriber,T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),M=function(t){function r(e,n,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=G.empty;break;case 1:if(!e){this.destination=G.empty;break}if("object"==typeof e){e instanceof r?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,e,n,o)}}return V(r,t),r.prototype[$.rxSubscriber]=function(){return this},r.create=function(t,e,n){var o=new r(t,e,n);return o.syncErrorThrowable=!1,o},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var t=this._parent,r=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=r,this},r}(I.Subscription),K=M,Q=function(t){function r(r,e,n,o){var i;t.call(this),this._parentSubscriber=r;var s=this;x.isFunction(e)?i=e:e&&(i=e.next,n=e.error,o=e.complete,e!==G.empty&&(s=Object.create(e),x.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=n,this._complete=o}return V(r,t),r.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;r.syncErrorThrowable?this.__tryOrSetError(r,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber;if(this._error)r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!r.syncErrorThrowable)throw this.unsubscribe(),t;r.syncErrorValue=t,r.syncErrorThrown=!0,this.unsubscribe()}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var e=function(){return t._complete.call(t._context)};r.syncErrorThrowable?(this.__tryOrSetError(r,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(t){throw this.unsubscribe(),t}},r.prototype.__tryOrSetError=function(t,r,e){try{r.call(this._context,e)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(M),q={Subscriber:K};var Y={toSubscriber:function(t,r,e){if(t){if(t instanceof q.Subscriber)return t;if(t[$.rxSubscriber])return t[$.rxSubscriber]()}return t||r||e?new q.Subscriber(t,r,e):new q.Subscriber(G.empty)}},J=P(function(t,r){function e(t){var r,e=t.Symbol;return"function"==typeof e?e.observable?r=e.observable:(r=e("observable"),e.observable=r):r="@@observable",r}r.getSymbolObservable=e,r.observable=e(L.root),r.$$observable=r.observable});J.getSymbolObservable,J.observable,J.$$observable;var W={noop:function(){}};function z(t){return t?1===t.length?t[0]:function(r){return t.reduce(function(t,r){return r(t)},r)}:W.noop}var X={pipe:function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return z(t)},pipeFromArray:z},Z={Observable:function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(t,r,e){var n=this.operator,o=Y.toSubscriber(t,r,e);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.syncErrorThrown=!0,t.syncErrorValue=r,t.error(r)}},t.prototype.forEach=function(t,r){var e=this;if(r||(L.root.Rx&&L.root.Rx.config&&L.root.Rx.config.Promise?r=L.root.Rx.config.Promise:L.root.Promise&&(r=L.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(r,n){var o;o=e.subscribe(function(r){if(o)try{t(r)}catch(t){n(t),o.unsubscribe()}else t(r)},n,r)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[J.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return 0===t.length?this:X.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var r=this;if(t||(L.root.Rx&&L.root.Rx.config&&L.root.Rx.config.Promise?t=L.root.Rx.config.Promise:L.root.Promise&&(t=L.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},t.create=function(r){return new t(r)},t}()},tt=T&&T.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)};var rt=function(t,r){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new et(t,r))}},et=function(){function t(t,r){this.project=t,this.thisArg=r}return t.prototype.call=function(t,r){return r.subscribe(new ot(t,this.project,this.thisArg))},t}(),nt=et,ot=function(t){function r(r,e,n){t.call(this,r),this.project=e,this.count=0,this.thisArg=n||this}return tt(r,t),r.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(q.Subscriber),it={map:rt,MapOperator:nt};var st={map:function(t,r){return it.map(t,r)(this)}};Z.Observable.prototype.map=st.map;var at=function(){function t(t){this.http=t}return t.prototype.create=function(t){return new ct(t,this.http)},t}(),ct=function(t){function r(r,e){void 0===r&&(r="DevAppBridge");var n=t.call(this,r)||this;n.http=e;var o=n.getCookie("UlEncodedIdentity");if(o&&o.length){var i=JSON.parse(decodeURIComponent(o)).sessions.reduce(function(t,r){return t[r.name]=r.value.endpoint,t},{});n.baseURL=i.rest}return n}return function(t,r){function e(){this.constructor=t}g(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}(r,t),r.prototype._setupHandlers=function(){},r.prototype.httpGET=function(t){return this.http.get(this.baseURL+"/"+t,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpPOST=function(t,r){return this.http.post(this.baseURL+"/"+t,r,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpPUT=function(t,r){return this.http.put(this.baseURL+"/"+t,r,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.httpDELETE=function(t){return this.http.delete(this.baseURL+"/"+t,{withCredentials:!0}).map(function(t){return{data:t.json()}}).toPromise()},r.prototype.getCookie=function(t){if(document)for(var r=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var o=e[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(r))return o.substring(r.length,o.length)}return!1},r}(E);t.AppBridgeService=m,t.AppBridge=E,t.DevAppBridgeService=at,t.DevAppBridge=ct,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "@bullhorn/connect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Connector for intercommunication between bullhorn apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
176253