Socket
Book a DemoInstallSign in
Socket

frint

Package Overview
Dependencies
Maintainers
6
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frint - npm Package Compare versions

Comparing version

to
3.1.1

38

dist/frint.js

@@ -1,3 +0,12 @@

this["Frint"] =
/******/ (function(modules) { // webpackBootstrap
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("rxjs/BehaviorSubject"), require("rxjs/observable/of"), require("rxjs/operator/concatMap"), require("rxjs/operator/find"), require("rxjs/operator/map"), require("rxjs/operator/first"), require("lodash/omit"), require("lodash/get"), require("lodash/find"), require("lodash/findIndex"), require("lodash/merge"));
else if(typeof define === 'function' && define.amd)
define(["rxjs/BehaviorSubject", "rxjs/observable/of", "rxjs/operator/concatMap", "rxjs/operator/find", "rxjs/operator/map", "rxjs/operator/first", "lodash/omit", "lodash/get", "lodash/find", "lodash/findIndex", "lodash/merge"], factory);
else if(typeof exports === 'object')
exports["Frint"] = factory(require("rxjs/BehaviorSubject"), require("rxjs/observable/of"), require("rxjs/operator/concatMap"), require("rxjs/operator/find"), require("rxjs/operator/map"), require("rxjs/operator/first"), require("lodash/omit"), require("lodash/get"), require("lodash/find"), require("lodash/findIndex"), require("lodash/merge"));
else
root["Frint"] = factory(root["Rx"], root["Rx"]["Observable"], root["Rx"]["Observable"]["prototype"], root["Rx"]["Observable"]["prototype"], root["Rx"]["Observable"]["prototype"], root["Rx"]["Observable"]["prototype"], root["_"]["omit"], root["_"]["get"], root["_"]["find"], root["_"]["findIndex"], root["_"]["merge"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_18__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -511,3 +520,3 @@ /******/ var installedModules = {};

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;

@@ -518,3 +527,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;

@@ -525,3 +534,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_4__;

@@ -532,3 +541,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_5__;

@@ -539,3 +548,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_6__;

@@ -546,3 +555,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_7__;

@@ -553,3 +562,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_8__;

@@ -560,3 +569,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_9__;

@@ -567,3 +576,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_10__;

@@ -574,3 +583,3 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_11__;

@@ -843,5 +852,6 @@ /***/ }),

(function() { module.exports = this[undefined]; }());
module.exports = __WEBPACK_EXTERNAL_MODULE_18__;
/***/ })
/******/ ]);
/******/ ]);
});

@@ -1,1 +0,1 @@

this.Frint=function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||!t&&!e)return"default";var n="";return t&&(n=t),e&&(n=t+"_"+e),n}function i(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options=s({name:null,parentApp:null,providers:[],providerNames:{component:"component",container:"container",store:"store",app:"app",parentApp:"parentApp",rootApp:"rootApp",region:"region"},initialize:function(){},beforeDestroy:function(){}},e),!this.options.name)throw new Error("Must provide `name` in options");var n=(0,A.createContainer)([{name:this.options.providerNames.app,useDefinedValue:this},{name:this.options.providerNames.parentApp,useDefinedValue:this.getParentApp()},{name:this.options.providerNames.rootApp,useDefinedValue:this.getRootApp()}],{containerKey:this.options.providerNames.container});this.container=(0,A.resolveContainer)(n),this._registerRootProviders(),this.options.providers.forEach(function(e){t.container.register(e)}),this._appsCollection=[],this._apps$=new a.BehaviorSubject(this._appsCollection),this.options.initialize.bind(this)()}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(2),u=n(3),p=n(4),c=n(5),l=n(6),f=n(7),h=n(8),d=o(h),v=n(9),y=o(v),g=n(10),m=o(g),b=n(11),_=o(b),A=n(12);i.prototype._registerRootProviders=function(){var t=this,e=this.getParentApps();0!==e.length&&e.reverse().forEach(function(e){e.getProviders().forEach(function(n){if(n.cascade){var o=Object.assign({},(0,d.default)(n,["useClass","useValue","useFactory"]));return n.scoped?"useValue"in n?void t.container.register(s({},o,{useValue:e.get(n.name)})):"useClass"in n?void t.container.register(s({},o,{useClass:n.useClass})):void("useFactory"in n&&t.container.register(s({},o,{useFactory:n.useFactory}))):void t.container.register(s({},o,{useValue:e.get(n.name)}))}})})},i.prototype.getContainer=function(){return this.container},i.prototype.getRootApp=function(){var t=this.getParentApps();return 0===t.length?this:t.pop()},i.prototype.getParentApp=function(){return this.options[this.options.providerNames.parentApp]||null},i.prototype.getParentApps=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=e.getParentApp();return o?(n.push(o),t(o,n)):n}return t(this)},i.prototype.getOption=function(t){return(0,y.default)(this.options,t)},i.prototype.getName=function(){return this.getOption("name")},i.prototype.getProviders=function(){return this.options.providers},i.prototype.getProvider=function(t){return(0,m.default)(this.options.providers,function(e){return e.name===t})},i.prototype.get=function(t){var e=this.container.get(t);return void 0!==e?e:null},i.prototype.getApps$=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(t=this._apps$,l.map).call(t,function(t){return t.filter(function(t){return t.regions.indexOf(e)>-1})}):this._apps$},i.prototype.registerApp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s({multi:!1},e);if(void 0!==n.name&&Object.defineProperty(t,"frintAppName",{value:n.name,configurable:!0}),-1!==(0,_.default)(this._appsCollection,function(e){return e.name===t.frintAppName}))throw new Error("App '"+t.frintAppName+"' has been already registered before.");this._appsCollection.push(s({},n,{name:t.frintAppName,App:t,regions:n.regions||[],instances:{}})),!1===n.multi&&this.instantiateApp(t.frintAppName),this._apps$.next(this._appsCollection)},i.prototype.hasAppInstance=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getAppInstance(t,e,n);return!(!o||void 0===o)},i.prototype.getAppInstance=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=(0,_.default)(this._appsCollection,function(e){return e.name===t});if(-1===o)return null;var i=this._appsCollection[o],s=r(e,n,i.multi),a=i.instances[s];return a&&void 0!==a?a:null},i.prototype.getAppOnceAvailable$=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.getRootApp(),s=i.getAppInstance(t,n,o);return s?(0,u.of)(s):(e=(e=(e=(e=i._apps$,p.concatMap).call(e,function(t){return t}),c.find).call(e,function(e){return e.name===t}),l.map).call(e,function(t){var e=r(n,o,t.multi);return t.instances[e]}),f.first).call(e,function(t){return t})},i.prototype.instantiateApp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=(0,_.default)(this._appsCollection,function(e){return e.App.frintAppName===t});if(-1===o)throw new Error("No app found with name '"+t+"'.");var i=this._appsCollection[o],a=r(e,n,i.multi);return this._appsCollection[o].instances[a]=new i.App(s({},(0,d.default)(i,["App","instances"]),{name:i.App.frintAppName,parentApp:this})),this._appsCollection[o].instances[a]},i.prototype.destroyApp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=(0,_.default)(this._appsCollection,function(e){return!(!e||!e.App)&&e.App.frintAppName===t});if(-1===o)throw new Error("No app found with name '"+t+"'.");var i=this._appsCollection[o],s=r(e,n,i.multi);if(void 0===this._appsCollection[o].instances[s])throw new Error("No instance with key '"+s+"' found for app with name '"+t+"'.");this._appsCollection[o].instances[s].beforeDestroy(),delete this._appsCollection[o].instances[s]},i.prototype.beforeDestroy=function(){return this.options.beforeDestroy.bind(this)()},e.default=i,t.exports=e.default},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=o(r),s=n(17),a=o(s),u={App:i.default,createApp:a.default};e.default=u,t.exports=e.default},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e,n){var o=n(13);t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var r=n(14),i=o(r),s=n(15),a=o(s),u=n(16),p=o(u);t.exports={createContainer:i.default,resolveContainer:a.default,createClass:p.default}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a({containerName:"container"},e);return function(){function e(){var r=this;o(this,e),this.registry={},Object.defineProperty(this.registry,n.containerName,{get:function(){return r}}),t.forEach(function(t){r.register(t)})}return s(e,[{key:"getDeps",value:function(t){var e=this,n=t.name,o={};return Array.isArray(t.deps)?t.deps.forEach(function(t){if(!(t in e.registry))throw new Error("For provider '"+n+"', dependency '"+t+"' is not available yet.");o[t]=e.registry[t]}):"object"===i(t.deps)&&Object.keys(t.deps).forEach(function(r){if(!(r in e.registry))throw new Error("For provider '"+n+"', dependency '"+r+"' is not available yet.");var i=t.deps[r];o[i]=e.registry[r]}),o}},{key:"register",value:function(t){if("string"!=typeof t.name)throw new Error("Provider has no 'name' key.");var e=t.name;if("useValue"in t)this.registry[e]=t.useValue;else if("useFactory"in t)this.registry[e]=t.useFactory(this.getDeps(t));else if("useClass"in t)this.registry[e]=new t.useClass(this.getDeps(t));else{if(!("useDefinedValue"in t))throw new Error("No value given for '"+e+"' provider.");Object.defineProperty(this.registry,e,{get:function(){return t.useDefinedValue}})}}},{key:"get",value:function(t){return this.registry[t]}}]),e}()}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};e.default=r},function(t,e,n){"use strict";function o(t){return new t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function e(){var n=this;o(this,e),Object.keys(t).forEach(function(e){"function"==typeof t[e]?n[e]=t[e].bind(n):n[e]=t[e]}),"function"==typeof this.initialize&&this.initialize.apply(this,arguments)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(e){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,(0,p.default)(t,e)))}return s(n,e),n}(l.default);return void 0!==t.name&&Object.defineProperty(e,"frintAppName",{value:t.name,configurable:!0}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var u=n(18),p=o(u),c=n(0),l=o(c);t.exports=e.default},function(t,e){!function(){t.exports=this[void 0]}()}]);
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("rxjs/BehaviorSubject"),require("rxjs/observable/of"),require("rxjs/operator/concatMap"),require("rxjs/operator/find"),require("rxjs/operator/map"),require("rxjs/operator/first"),require("lodash/omit"),require("lodash/get"),require("lodash/find"),require("lodash/findIndex"),require("lodash/merge")):"function"==typeof define&&define.amd?define(["rxjs/BehaviorSubject","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/find","rxjs/operator/map","rxjs/operator/first","lodash/omit","lodash/get","lodash/find","lodash/findIndex","lodash/merge"],t):"object"==typeof exports?exports.Frint=t(require("rxjs/BehaviorSubject"),require("rxjs/observable/of"),require("rxjs/operator/concatMap"),require("rxjs/operator/find"),require("rxjs/operator/map"),require("rxjs/operator/first"),require("lodash/omit"),require("lodash/get"),require("lodash/find"),require("lodash/findIndex"),require("lodash/merge")):e.Frint=t(e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e.Rx.Observable.prototype,e._.omit,e._.get,e._.find,e._.findIndex,e._.merge)}(this,function(e,t,r,n,o,i,s,a,p,u,l){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||!e&&!t)return"default";var r="";return e&&(r=e),t&&(r=e+"_"+t),r}function i(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options=s({name:null,parentApp:null,providers:[],providerNames:{component:"component",container:"container",store:"store",app:"app",parentApp:"parentApp",rootApp:"rootApp",region:"region"},initialize:function(){},beforeDestroy:function(){}},t),!this.options.name)throw new Error("Must provide `name` in options");var r=(0,x.createContainer)([{name:this.options.providerNames.app,useDefinedValue:this},{name:this.options.providerNames.parentApp,useDefinedValue:this.getParentApp()},{name:this.options.providerNames.rootApp,useDefinedValue:this.getRootApp()}],{containerKey:this.options.providerNames.container});this.container=(0,x.resolveContainer)(r),this._registerRootProviders(),this.options.providers.forEach(function(t){e.container.register(t)}),this._appsCollection=[],this._apps$=new a.BehaviorSubject(this._appsCollection),this.options.initialize.bind(this)()}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=r(2),p=r(3),u=r(4),l=r(5),f=r(6),c=r(7),d=r(8),h=n(d),v=r(9),y=n(v),g=r(10),b=n(g),m=r(11),_=n(m),x=r(12);i.prototype._registerRootProviders=function(){var e=this,t=this.getParentApps();0!==t.length&&t.reverse().forEach(function(t){t.getProviders().forEach(function(r){if(r.cascade){var n=Object.assign({},(0,h.default)(r,["useClass","useValue","useFactory"]));return r.scoped?"useValue"in r?void e.container.register(s({},n,{useValue:t.get(r.name)})):"useClass"in r?void e.container.register(s({},n,{useClass:r.useClass})):void("useFactory"in r&&e.container.register(s({},n,{useFactory:r.useFactory}))):void e.container.register(s({},n,{useValue:t.get(r.name)}))}})})},i.prototype.getContainer=function(){return this.container},i.prototype.getRootApp=function(){var e=this.getParentApps();return 0===e.length?this:e.pop()},i.prototype.getParentApp=function(){return this.options[this.options.providerNames.parentApp]||null},i.prototype.getParentApps=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.getParentApp();return n?(r.push(n),e(n,r)):r}return e(this)},i.prototype.getOption=function(e){return(0,y.default)(this.options,e)},i.prototype.getName=function(){return this.getOption("name")},i.prototype.getProviders=function(){return this.options.providers},i.prototype.getProvider=function(e){return(0,b.default)(this.options.providers,function(t){return t.name===e})},i.prototype.get=function(e){var t=this.container.get(e);return void 0!==t?t:null},i.prototype.getApps$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?(e=this._apps$,f.map).call(e,function(e){return e.filter(function(e){return e.regions.indexOf(t)>-1})}):this._apps$},i.prototype.registerApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=s({multi:!1},t);if(void 0!==r.name&&Object.defineProperty(e,"frintAppName",{value:r.name,configurable:!0}),-1!==(0,_.default)(this._appsCollection,function(t){return t.name===e.frintAppName}))throw new Error("App '"+e.frintAppName+"' has been already registered before.");this._appsCollection.push(s({},r,{name:e.frintAppName,App:e,regions:r.regions||[],instances:{}})),!1===r.multi&&this.instantiateApp(e.frintAppName),this._apps$.next(this._appsCollection)},i.prototype.hasAppInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.getAppInstance(e,t,r);return!(!n||void 0===n)},i.prototype.getAppInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=(0,_.default)(this._appsCollection,function(t){return t.name===e});if(-1===n)return null;var i=this._appsCollection[n],s=o(t,r,i.multi),a=i.instances[s];return a&&void 0!==a?a:null},i.prototype.getAppOnceAvailable$=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.getRootApp(),s=i.getAppInstance(e,r,n);return s?(0,p.of)(s):(t=(t=(t=(t=i._apps$,u.concatMap).call(t,function(e){return e}),l.find).call(t,function(t){return t.name===e}),f.map).call(t,function(e){var t=o(r,n,e.multi);return e.instances[t]}),c.first).call(t,function(e){return e})},i.prototype.instantiateApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=(0,_.default)(this._appsCollection,function(t){return t.App.frintAppName===e});if(-1===n)throw new Error("No app found with name '"+e+"'.");var i=this._appsCollection[n],a=o(t,r,i.multi);return this._appsCollection[n].instances[a]=new i.App(s({},(0,h.default)(i,["App","instances"]),{name:i.App.frintAppName,parentApp:this})),this._appsCollection[n].instances[a]},i.prototype.destroyApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=(0,_.default)(this._appsCollection,function(t){return!(!t||!t.App)&&t.App.frintAppName===e});if(-1===n)throw new Error("No app found with name '"+e+"'.");var i=this._appsCollection[n],s=o(t,r,i.multi);if(void 0===this._appsCollection[n].instances[s])throw new Error("No instance with key '"+s+"' found for app with name '"+e+"'.");this._appsCollection[n].instances[s].beforeDestroy(),delete this._appsCollection[n].instances[s]},i.prototype.beforeDestroy=function(){return this.options.beforeDestroy.bind(this)()},t.default=i,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=n(o),s=r(17),a=n(s),p={App:i.default,createApp:a.default};t.default=p,e.exports=t.default},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=p},function(e,t){e.exports=u},function(e,t,r){var n=r(13);e.exports=n},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(14),i=n(o),s=r(15),a=n(s),p=r(16),u=n(p);e.exports={createContainer:i.default,resolveContainer:a.default,createClass:u.default}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a({containerName:"container"},t);return function(){function t(){var o=this;n(this,t),this.registry={},Object.defineProperty(this.registry,r.containerName,{get:function(){return o}}),e.forEach(function(e){o.register(e)})}return s(t,[{key:"getDeps",value:function(e){var t=this,r=e.name,n={};return Array.isArray(e.deps)?e.deps.forEach(function(e){if(!(e in t.registry))throw new Error("For provider '"+r+"', dependency '"+e+"' is not available yet.");n[e]=t.registry[e]}):"object"===i(e.deps)&&Object.keys(e.deps).forEach(function(o){if(!(o in t.registry))throw new Error("For provider '"+r+"', dependency '"+o+"' is not available yet.");var i=e.deps[o];n[i]=t.registry[o]}),n}},{key:"register",value:function(e){if("string"!=typeof e.name)throw new Error("Provider has no 'name' key.");var t=e.name;if("useValue"in e)this.registry[t]=e.useValue;else if("useFactory"in e)this.registry[t]=e.useFactory(this.getDeps(e));else if("useClass"in e)this.registry[t]=new e.useClass(this.getDeps(e));else{if(!("useDefinedValue"in e))throw new Error("No value given for '"+t+"' provider.");Object.defineProperty(this.registry,t,{get:function(){return e.useDefinedValue}})}}},{key:"get",value:function(e){return this.registry[e]}}]),t}()}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=o},function(e,t,r){"use strict";function n(e){return new e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function t(){var r=this;n(this,t),Object.keys(e).forEach(function(t){"function"==typeof e[t]?r[t]=e[t].bind(r):r[t]=e[t]}),"function"==typeof this.initialize&&this.initialize.apply(this,arguments)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(t){function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,(0,u.default)(e,t)))}return s(r,t),r}(f.default);return void 0!==e.name&&Object.defineProperty(t,"frintAppName",{value:e.name,configurable:!0}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var p=r(18),u=n(p),l=r(0),f=n(l);e.exports=t.default},function(e,t){e.exports=l}])});
{
"name": "frint",
"version": "3.1.0",
"version": "3.1.1",
"description": "Core plugin for Frint",

@@ -37,3 +37,3 @@ "main": "lib/index.js",

"cross-env": "^5.0.5",
"frint-config": "^3.1.0"
"frint-config": "^3.1.1"
},

@@ -40,0 +40,0 @@ "bugs": {

@@ -24,9 +24,6 @@ var webpack = require('webpack');

filename: filename,
libraryTarget: 'this',
libraryTarget: 'umd',
library: 'Frint',
},
externals: Object.assign({}, {
'lodash': '_',
'rxjs': 'Rx',
}, externals),
externals: externals,
target: 'web',

@@ -33,0 +30,0 @@ plugins: plugins,

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.