Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.2.1 to 1.3.0

index.d.ts

114

dist/frint.js

@@ -5,10 +5,10 @@ this["Frint"] =

/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -20,23 +20,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports

@@ -52,3 +52,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules

@@ -62,11 +62,11 @@ /******/ __webpack_require__.n = function(module) {

/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 9);
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })

@@ -87,3 +87,3 @@ /************************************************************************/

var _rxjs = __webpack_require__(8);
var _rxjs = __webpack_require__(9);

@@ -94,3 +94,3 @@ var _lodash = __webpack_require__(1);

var _travixDi = __webpack_require__(3);
var _travixDi = __webpack_require__(4);

@@ -535,7 +535,27 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var lib = __webpack_require__(6);
"use strict";
module.exports = lib;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _App = __webpack_require__(0);
var _App2 = _interopRequireDefault(_App);
var _createApp = __webpack_require__(2);
var _createApp2 = _interopRequireDefault(_createApp);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Frint = {
App: _App2.default,
createApp: _createApp2.default
};
exports.default = Frint;
module.exports = exports['default'];
/***/ }),

@@ -545,2 +565,11 @@ /* 4 */

var lib = __webpack_require__(7);
module.exports = lib;
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";

@@ -581,3 +610,3 @@

/***/ }),
/* 5 */
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

@@ -699,3 +728,3 @@

/***/ }),
/* 6 */
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

@@ -706,11 +735,11 @@

var _createContainer = __webpack_require__(5);
var _createContainer = __webpack_require__(6);
var _createContainer2 = _interopRequireDefault(_createContainer);
var _resolveContainer = __webpack_require__(7);
var _resolveContainer = __webpack_require__(8);
var _resolveContainer2 = _interopRequireDefault(_resolveContainer);
var _createClass = __webpack_require__(4);
var _createClass = __webpack_require__(5);

@@ -728,3 +757,3 @@ var _createClass2 = _interopRequireDefault(_createClass);

/***/ }),
/* 7 */
/* 8 */
/***/ (function(module, exports, __webpack_require__) {

@@ -744,3 +773,3 @@

/***/ }),
/* 8 */
/* 9 */
/***/ (function(module, exports) {

@@ -750,32 +779,3 @@

/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _App = __webpack_require__(0);
var _App2 = _interopRequireDefault(_App);
var _createApp = __webpack_require__(2);
var _createApp2 = _interopRequireDefault(_createApp);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Frint = {
App: _App2.default,
createApp: _createApp2.default
};
exports.default = Frint;
module.exports = exports['default'];
/***/ })
/******/ ]);

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

this.Frint=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){"use strict";function r(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,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n||!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=a({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 n=(0,f.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,f.resolveContainer)(n),this._registerRootProviders(),this.options.providers.forEach(function(t){e.container.register(t)}),this._appsCollection=[],this._apps$=new s.BehaviorSubject(this._appsCollection),this.options.initialize.bind(this)()}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(8),p=n(1),u=r(p),f=n(3);i.prototype._registerRootProviders=function(){var e=this,t=this.getParentApps();0!==t.length&&t.reverse().forEach(function(t){t.getProviders().forEach(function(n){if(n.cascade){var r=Object.assign({},u.default.omit(n,["useClass","useValue","useFactory"]));return n.scoped?"useValue"in n?void e.container.register(a({},r,{useValue:t.get(n.name)})):"useClass"in n?void e.container.register(a({},r,{useClass:n.useClass})):void("useFactory"in n&&e.container.register(a({},r,{useFactory:n.useFactory}))):void e.container.register(a({},r,{useValue:t.get(n.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 n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.getParentApp();return r?(n.push(r),e(r,n)):n}return e(this)},i.prototype.getOption=function(e){return u.default.get(this.options,e)},i.prototype.getProviders=function(){return this.options.providers},i.prototype.getProvider=function(e){return u.default.find(this.options.providers,function(t){return t.name===e})},i.prototype.get=function(e){var t=this.container.get(e);return"undefined"!=typeof t?t:null},i.prototype.getApps$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this._apps$.map(function(t){return t.filter(function(t){return t.regions.indexOf(e)>-1})}):this._apps$},i.prototype.registerApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a({multi:!1},t);"undefined"!=typeof n.name&&Object.defineProperty(e,"frintAppName",{value:n.name,configurable:!0});var r=u.default.findIndex(this._appsCollection,function(t){return t.name===e.frintAppName});if(r!==-1)throw new Error("App '"+e.frintAppName+"' has been already registered before.");this._appsCollection.push(a({},n,{name:e.frintAppName,App:e,regions:n.regions||[],instances:{}})),n.multi===!1&&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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getAppInstance(e,t,n);return!(!r||"undefined"==typeof r)},i.prototype.getAppInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=u.default.findIndex(this._appsCollection,function(t){return t.name===e});if(r===-1)return null;var i=this._appsCollection[r],a=o(t,n,i.multi),s=i.instances[a];return s&&"undefined"!=typeof s?s:null},i.prototype.getAppOnceAvailable$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getRootApp(),i=r.getAppInstance(e,t,n);return i?s.Observable.of(i):r._apps$.concatMap(function(e){return e}).find(function(t){return t.name===e}).map(function(e){var r=o(t,n,e.multi);return e.instances[r]}).first(function(e){return e})},i.prototype.instantiateApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=u.default.findIndex(this._appsCollection,function(t){return t.App.frintAppName===e});if(r===-1)throw new Error("No app found with name '"+e+"'.");var i=this._appsCollection[r],s=o(t,n,i.multi);return this._appsCollection[r].instances[s]=new i.App(a({},u.default.omit(i,["App","instances"]),{name:i.App.frintAppName,parentApp:this})),this._appsCollection[r].instances[s]},i.prototype.destroyApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=u.default.findIndex(this._appsCollection,function(t){return!(!t||!t.App)&&t.App.frintAppName===e});if(r===-1)throw new Error("No app found with name '"+e+"'.");var i=this._appsCollection[r],a=o(t,n,i.multi);if("undefined"==typeof this._appsCollection[r].instances[a])throw new Error("No instance with key '"+a+"' found for app with name '"+e+"'.");this._appsCollection[r].instances[a].beforeDestroy(),delete this._appsCollection[r].instances[a]},i.prototype.beforeDestroy=function(){return this.options.beforeDestroy.bind(this)()},[{alias:"getWidgets$",fn:"getApps$"},{alias:"registerWidget",fn:"registerApp"},{alias:"hasWidgetInstance",fn:"hasWidgetInstance"},{alias:"getWidgetInstance",fn:"getAppInstance"},{alias:"getWidgetOnceAvailable$",fn:"getAppOnceAvailable$"},{alias:"destroyWidget",fn:"destroyApp"}].forEach(function(e){var t=e.alias,n=e.fn;i.prototype[t]=function(){console.warn("[DEPRECATED] `"+t+"` has been deprecated. Use `"+n+"` instead"),this[n].apply(this,arguments)}}),t.default=i,e.exports=t.default},function(e,t){!function(){e.exports=this._}()},function(e,t,n){"use strict";function r(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 a(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 s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(t){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,u.default.merge(e,t)))}return a(n,t),n}(l.default);return"undefined"!=typeof e.name&&Object.defineProperty(t,"frintAppName",{value:e.name,configurable:!0}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var p=n(1),u=r(p),f=n(0),l=r(f);e.exports=t.default},function(e,t,n){var r=n(6);e.exports=r},function(e,t,n){"use strict";function r(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=function t(){var n=this;r(this,t),Object.keys(e).forEach(function(t){"function"==typeof e[t]?n[t]=e[t].bind(n):n[t]=e[t]}),"function"==typeof this.initialize&&this.initialize.apply(this,arguments)};return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";function r(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]:{},n=s({containerName:"container"},t),o=function(){function t(){var o=this;r(this,t),this.registry={},Object.defineProperty(this.registry,n.containerName,{get:function(){return o}}),e.forEach(function(e){o.register(e)})}return a(t,[{key:"getDeps",value:function(e){var t=this,n=e.name,r={};return Array.isArray(e.deps)?e.deps.forEach(function(e){if(!(e in t.registry))throw new Error("For provider '"+n+"', dependency '"+e+"' is not available yet.");r[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 '"+n+"', dependency '"+o+"' is not available yet.");var i=e.deps[o];r[i]=t.registry[o]}),r}},{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}();return o}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},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(5),i=r(o),a=n(7),s=r(a),p=n(4),u=r(p);e.exports={createContainer:i.default,resolveContainer:s.default,createClass:u.default}},function(e,t,n){"use strict";function r(e){return new e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t){!function(){e.exports=this.Rx}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(2),s=r(a),p={App:i.default,createApp:s.default};t.default=p,e.exports=t.default}]);
this.Frint=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,n){"use strict";function r(){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 n="";return e&&(n=e),t&&(n=e+"_"+t),n}function o(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options=i({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 n=(0,u.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,u.resolveContainer)(n),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 i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(9),s=n(1),p=function(e){return e&&e.__esModule?e:{default:e}}(s),u=n(4);o.prototype._registerRootProviders=function(){var e=this,t=this.getParentApps();0!==t.length&&t.reverse().forEach(function(t){t.getProviders().forEach(function(n){if(n.cascade){var r=Object.assign({},p.default.omit(n,["useClass","useValue","useFactory"]));return n.scoped?"useValue"in n?void e.container.register(i({},r,{useValue:t.get(n.name)})):"useClass"in n?void e.container.register(i({},r,{useClass:n.useClass})):void("useFactory"in n&&e.container.register(i({},r,{useFactory:n.useFactory}))):void e.container.register(i({},r,{useValue:t.get(n.name)}))}})})},o.prototype.getContainer=function(){return this.container},o.prototype.getRootApp=function(){var e=this.getParentApps();return 0===e.length?this:e.pop()},o.prototype.getParentApp=function(){return this.options[this.options.providerNames.parentApp]||null},o.prototype.getParentApps=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.getParentApp();return r?(n.push(r),e(r,n)):n}return e(this)},o.prototype.getOption=function(e){return p.default.get(this.options,e)},o.prototype.getProviders=function(){return this.options.providers},o.prototype.getProvider=function(e){return p.default.find(this.options.providers,function(t){return t.name===e})},o.prototype.get=function(e){var t=this.container.get(e);return void 0!==t?t:null},o.prototype.getApps$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this._apps$.map(function(t){return t.filter(function(t){return t.regions.indexOf(e)>-1})}):this._apps$},o.prototype.registerApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i({multi:!1},t);if(void 0!==n.name&&Object.defineProperty(e,"frintAppName",{value:n.name,configurable:!0}),-1!==p.default.findIndex(this._appsCollection,function(t){return t.name===e.frintAppName}))throw new Error("App '"+e.frintAppName+"' has been already registered before.");this._appsCollection.push(i({},n,{name:e.frintAppName,App:e,regions:n.regions||[],instances:{}})),!1===n.multi&&this.instantiateApp(e.frintAppName),this._apps$.next(this._appsCollection)},o.prototype.hasAppInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getAppInstance(e,t,n);return!(!r||void 0===r)},o.prototype.getAppInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=p.default.findIndex(this._appsCollection,function(t){return t.name===e});if(-1===o)return null;var i=this._appsCollection[o],a=r(t,n,i.multi),s=i.instances[a];return s&&void 0!==s?s:null},o.prototype.getAppOnceAvailable$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getRootApp(),i=o.getAppInstance(e,t,n);return i?a.Observable.of(i):o._apps$.concatMap(function(e){return e}).find(function(t){return t.name===e}).map(function(e){var o=r(t,n,e.multi);return e.instances[o]}).first(function(e){return e})},o.prototype.instantiateApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=p.default.findIndex(this._appsCollection,function(t){return t.App.frintAppName===e});if(-1===o)throw new Error("No app found with name '"+e+"'.");var a=this._appsCollection[o],s=r(t,n,a.multi);return this._appsCollection[o].instances[s]=new a.App(i({},p.default.omit(a,["App","instances"]),{name:a.App.frintAppName,parentApp:this})),this._appsCollection[o].instances[s]},o.prototype.destroyApp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=p.default.findIndex(this._appsCollection,function(t){return!(!t||!t.App)&&t.App.frintAppName===e});if(-1===o)throw new Error("No app found with name '"+e+"'.");var i=this._appsCollection[o],a=r(t,n,i.multi);if(void 0===this._appsCollection[o].instances[a])throw new Error("No instance with key '"+a+"' found for app with name '"+e+"'.");this._appsCollection[o].instances[a].beforeDestroy(),delete this._appsCollection[o].instances[a]},o.prototype.beforeDestroy=function(){return this.options.beforeDestroy.bind(this)()},[{alias:"getWidgets$",fn:"getApps$"},{alias:"registerWidget",fn:"registerApp"},{alias:"hasWidgetInstance",fn:"hasWidgetInstance"},{alias:"getWidgetInstance",fn:"getAppInstance"},{alias:"getWidgetOnceAvailable$",fn:"getAppOnceAvailable$"},{alias:"destroyWidget",fn:"destroyApp"}].forEach(function(e){var t=e.alias,n=e.fn;o.prototype[t]=function(){console.warn("[DEPRECATED] `"+t+"` has been deprecated. Use `"+n+"` instead"),this[n].apply(this,arguments)}}),t.default=o,e.exports=t.default},function(e,t){!function(){e.exports=this._}()},function(e,t,n){"use strict";function r(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 a(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 s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(t){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,u.default.merge(e,t)))}return a(n,t),n}(c.default);return void 0!==e.name&&Object.defineProperty(t,"frintAppName",{value:e.name,configurable:!0}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var p=n(1),u=r(p),l=n(0),c=r(l);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(2),s=r(a),p={App:i.default,createApp:s.default};t.default=p,e.exports=t.default},function(e,t,n){var r=n(7);e.exports=r},function(e,t,n){"use strict";function r(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 n=this;r(this,t),Object.keys(e).forEach(function(t){"function"==typeof e[t]?n[t]=e[t].bind(n):n[t]=e[t]}),"function"==typeof this.initialize&&this.initialize.apply(this,arguments)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";function r(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]:{},n=s({containerName:"container"},t);return function(){function t(){var o=this;r(this,t),this.registry={},Object.defineProperty(this.registry,n.containerName,{get:function(){return o}}),e.forEach(function(e){o.register(e)})}return a(t,[{key:"getDeps",value:function(e){var t=this,n=e.name,r={};return Array.isArray(e.deps)?e.deps.forEach(function(e){if(!(e in t.registry))throw new Error("For provider '"+n+"', dependency '"+e+"' is not available yet.");r[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 '"+n+"', dependency '"+o+"' is not available yet.");var i=e.deps[o];r[i]=t.registry[o]}),r}},{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},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(6),i=r(o),a=n(8),s=r(a),p=n(5),u=r(p);e.exports={createContainer:i.default,resolveContainer:s.default,createClass:u.default}},function(e,t,n){"use strict";function r(e){return new e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t){!function(){e.exports=this.Rx}()}]);
{
"name": "frint",
"version": "1.2.1",
"version": "1.3.0",
"description": "Core plugin for Frint",

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

},
"license": "MIT"
"license": "MIT",
"types": "index.d.ts"
}
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