New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

frint-component-handlers

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frint-component-handlers - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

24

dist/frint-component-handlers.js

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

this["FrintComponentHandlers"] =
/******/ (function(modules) { // webpackBootstrap
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("lodash/isEqual"), require("lodash/zipWith"), require("rxjs/BehaviorSubject"), require("rxjs/operator/map"));
else if(typeof define === 'function' && define.amd)
define(["lodash/isEqual", "lodash/zipWith", "rxjs/BehaviorSubject", "rxjs/operator/map"], factory);
else if(typeof exports === 'object')
exports["FrintComponentHandlers"] = factory(require("lodash/isEqual"), require("lodash/zipWith"), require("rxjs/BehaviorSubject"), require("rxjs/operator/map"));
else
root["FrintComponentHandlers"] = factory(root["_"]["isEqual"], root["_"]["zipWith"], root["Rx"], root["Rx"]["Observable"]["prototype"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -298,3 +307,3 @@ /******/ var installedModules = {};

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

@@ -305,3 +314,3 @@ /***/ }),

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

@@ -372,3 +381,3 @@ /***/ }),

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

@@ -379,5 +388,6 @@ /***/ }),

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

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

this.FrintComponentHandlers=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),u=n(2),a=r(u),s=n(5),p=r(s);e.default={ObserveHandler:o.default,RegionHandler:a.default,RegionService:p.default},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={getProps$:null,getInitialData:function(){return{computedProps:{}}},beforeMount:function(){var t=this;"function"==typeof this.getProps$&&(this._subscription=this.getProps$(this.app).subscribe(function(e){t.setData("computedProps",e)}))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=r(i),u=n(4),a=r(u);e.default={getInitialData:function(){return{list:[],listForRendering:[]}},sendProps:function(t,e){var n=t.get(t.options.providerNames.region);n&&n.emit(e)},beforeMount:function(){var t=this,e=this.app?this.app.getRootApp():window.app;if(e){this.rootApp=e;var n=e.getApps$(this.getProp("name"),this.getProp("uniqueKey"));this._subscription=n.subscribe({next:function(n){t.setDataWithCallback("list",n,function(){t.getData("list").forEach(function(n){var r=n.name,i=n.weight,o=n.multi;if(!t.getData("listForRendering").some(function(t){return t.name===r})){var u=t.getProp("uniqueKey")?[t.getProp("name"),t.getProp("uniqueKey")]:[t.getProp("name")];t.getProp("uniqueKey")&&!e.hasAppInstance.apply(e,[r].concat(u))&&e.instantiateApp.apply(e,[r].concat(u));var a=e.getAppInstance.apply(e,[r].concat(u));a&&t.sendProps(a,{name:t.getProp("name"),uniqueKey:t.getProp("uniqueKey"),data:t.getProp("data")}),t.setData("listForRendering",t.getData("listForRendering").concat({name:r,weight:i,instance:a,multi:o,Component:t.getMountableComponent(a)}).sort(function(t,e){return t.weight-e.weight}))}})})},error:function(e){console.warn('Subscription error for <Region name="'+t.name+'" />:',e)}})}},shouldUpdate:function(t,e){var n=!(0,o.default)(this.getProps(),t);if(!n){var r=e.listForRendering;n=n||this.getData("listForRendering").length!==r.length,n=n||(0,a.default)(this.getData("listForRendering"),r,function(t,e){return t.name===e.name}).some(function(t){return!t})}return n},afterUpdate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e||{},r=n.name,i=void 0===r?this.getProp("name"):r,o=n.uniqueKey,u=void 0===o?this.getProp("uniqueKey"):o,a=n.data,s=void 0===a?this.getProp("data"):a;this.getData("listForRendering").filter(function(t){return t.instance}).forEach(function(e){return t.sendProps(e.instance,{name:i,uniqueKey:u,data:s})})},beforeDestroy:function(){var t=this;this._subscription&&this._subscription.unsubscribe(),this.rootApp&&this.getData("listForRendering").filter(function(t){return t.multi}).forEach(function(e){t.rootApp.destroyApp(e.name,t.getProp("name"),t.getProp("uniqueKey"))})}},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,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(6),u=n(7),a=function(){function t(){r(this,t),this.props$=new o.BehaviorSubject({})}return i(t,[{key:"emit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.props$.next(t)}},{key:"getProps$",value:function(){return this.props$}},{key:"getData$",value:function(){var t;return(t=this.props$,u.map).call(t,function(t){return t.data})}}]),t}();e.default=a,t.exports=e.default},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()}]);
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/isEqual"),require("lodash/zipWith"),require("rxjs/BehaviorSubject"),require("rxjs/operator/map")):"function"==typeof define&&define.amd?define(["lodash/isEqual","lodash/zipWith","rxjs/BehaviorSubject","rxjs/operator/map"],t):"object"==typeof exports?exports.FrintComponentHandlers=t(require("lodash/isEqual"),require("lodash/zipWith"),require("rxjs/BehaviorSubject"),require("rxjs/operator/map")):e.FrintComponentHandlers=t(e._.isEqual,e._.zipWith,e.Rx,e.Rx.Observable.prototype)}(this,function(e,t,n,r){return 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.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=0)}([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(1),i=r(o),u=n(2),a=r(u),s=n(5),p=r(s);t.default={ObserveHandler:i.default,RegionHandler:a.default,RegionService:p.default},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getProps$:null,getInitialData:function(){return{computedProps:{}}},beforeMount:function(){var e=this;"function"==typeof this.getProps$&&(this._subscription=this.getProps$(this.app).subscribe(function(t){e.setData("computedProps",t)}))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},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(3),i=r(o),u=n(4),a=r(u);t.default={getInitialData:function(){return{list:[],listForRendering:[]}},sendProps:function(e,t){var n=e.get(e.options.providerNames.region);n&&n.emit(t)},beforeMount:function(){var e=this,t=this.app?this.app.getRootApp():window.app;if(t){this.rootApp=t;var n=t.getApps$(this.getProp("name"),this.getProp("uniqueKey"));this._subscription=n.subscribe({next:function(n){e.setDataWithCallback("list",n,function(){e.getData("list").forEach(function(n){var r=n.name,o=n.weight,i=n.multi;if(!e.getData("listForRendering").some(function(e){return e.name===r})){var u=e.getProp("uniqueKey")?[e.getProp("name"),e.getProp("uniqueKey")]:[e.getProp("name")];e.getProp("uniqueKey")&&!t.hasAppInstance.apply(t,[r].concat(u))&&t.instantiateApp.apply(t,[r].concat(u));var a=t.getAppInstance.apply(t,[r].concat(u));a&&e.sendProps(a,{name:e.getProp("name"),uniqueKey:e.getProp("uniqueKey"),data:e.getProp("data")}),e.setData("listForRendering",e.getData("listForRendering").concat({name:r,weight:o,instance:a,multi:i,Component:e.getMountableComponent(a)}).sort(function(e,t){return e.weight-t.weight}))}})})},error:function(t){console.warn('Subscription error for <Region name="'+e.name+'" />:',t)}})}},shouldUpdate:function(e,t){var n=!(0,i.default)(this.getProps(),e);if(!n){var r=t.listForRendering;n=n||this.getData("listForRendering").length!==r.length,n=n||(0,a.default)(this.getData("listForRendering"),r,function(e,t){return e.name===t.name}).some(function(e){return!e})}return n},afterUpdate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t||{},r=n.name,o=void 0===r?this.getProp("name"):r,i=n.uniqueKey,u=void 0===i?this.getProp("uniqueKey"):i,a=n.data,s=void 0===a?this.getProp("data"):a;this.getData("listForRendering").filter(function(e){return e.instance}).forEach(function(t){return e.sendProps(t.instance,{name:o,uniqueKey:u,data:s})})},beforeDestroy:function(){var e=this;this._subscription&&this._subscription.unsubscribe(),this.rootApp&&this.getData("listForRendering").filter(function(e){return e.multi}).forEach(function(t){e.rootApp.destroyApp(t.name,e.getProp("name"),e.getProp("uniqueKey"))})}},e.exports=t.default},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),i=n(6),u=n(7),a=function(){function e(){r(this,e),this.props$=new i.BehaviorSubject({})}return o(e,[{key:"emit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.props$.next(e)}},{key:"getProps$",value:function(){return this.props$}},{key:"getData$",value:function(){var e;return(e=this.props$,u.map).call(e,function(e){return e.data})}}]),e}();t.default=a,e.exports=t.default},function(e,t){e.exports=n},function(e,t){e.exports=r}])});
{
"name": "frint-component-handlers",
"version": "3.1.0",
"version": "3.1.1",
"description": "Component handlers package for Frint",

@@ -36,5 +36,5 @@ "main": "lib/index.js",

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

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

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

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

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

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