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

frint-compat

Package Overview
Dependencies
Maintainers
6
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frint-compat - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

dist/frint-compat.min.js

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

this.FrintCompat=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=9)}([function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!y){var e=o(a);y=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,y=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var f,l,p=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var d,h=[],y=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new s(e,t)),1!==h.length||y||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t){!function(){e.exports=this._}()},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,u,s){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,i,a,u,s],l=0;c=new Error(t.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(0))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){!function(){e.exports=this.FrintReact}()},function(e,t,n){"use strict";(function(t){var r=n(3),o=r;"production"!==t.env.NODE_ENV&&function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(0))},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 console.warn("[DEPRECATED] `createService` has been deprecated. Use `createClass` or direct ES6 classes instead."),function t(){var n=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r(this,t),!o.app)throw new Error("App instance not provided.");this.app=o.app,a.default.merge(this,e),Object.keys(this).filter(function(e){return n[e]instanceof Function}).forEach(function(e){n[e]=n[e].bind(n)}),"function"==typeof this.initialize&&this.initialize(o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(1),a=function(e){return e&&e.__esModule?e:{default:e}}(i);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(10),i=r(o),a=n(11),u=r(a),s=n(12),c=r(s),f=n(6),l=r(f),p=n(13),d=r(p),h=n(14),y=r(h),v=n(15),b=r(v),m=n(17),g=r(m),E=n(22),w=r(E),_=n(23),O=r(_),T=n(8),P=r(T),R=n(24),A=r(R),x=n(26),D=r(x);i.default.createStore=u.default.createStore,i.default.combineReducers=u.default.combineReducers,i.default.Store=u.default.Store,i.default.createModel=c.default.createModel,i.default.Model=c.default.Model,i.default.createComponent=b.default,i.default.h=w.default,i.default.PropTypes=g.default,i.default.render=l.default.render,i.default.Region=l.default.Region,i.default.observe=l.default.observe,i.default.streamProps=l.default.streamProps,i.default.getMountableComponent=l.default.getMountableComponent,i.default.createFactory=O.default,i.default.createService=P.default,i.default.mapToProps=(0,A.default)(i.default),(0,d.default)(i.default,u.default,l.default),(0,y.default)(u.default),i.default.getMountableComponent=(0,D.default)(i.default),l.default.getMountableComponent=i.default.getMountableComponent,t.default=i.default,e.exports=t.default},function(e,t){!function(){e.exports=this.Frint}()},function(e,t){!function(){e.exports=this.FrintStore}()},function(e,t){!function(){e.exports=this.FrintModel}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var r=e.App,o=t.createStore,i=n.getMountableComponent,u=r.prototype.getRootApp;r.prototype.getRootApp=function(){return"undefined"!=typeof window&&void 0!==window.app?window.app:u.bind(this)()};var c=r.prototype._registerRootProviders;r.prototype._registerRootProviders=function(){c.bind(this)(),this._backwardsCompatibility()},r.prototype._backwardsCompatibility=function(){var e=this;this.readableAppNames=[];var t=void 0===this.options.enableLogger||this.options.enableLogger;void 0!==this.options.component&&(console.warn("[DEPRECATED] `component` now needs to be defined as a provider."),this.options.providers.push({name:"component",useValue:this.options.component,cascade:!1})),void 0!==this.options.store?(console.warn("[DEPRECATED] `options.store` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useValue:this.options.store,cascade:!1})):"function"==typeof this.options.reducer?(console.warn("[DEPRECATED] `options.reducer` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useFactory:function(n){return new(o({initialState:e.options.initialState?e.options.initialState:{},reducer:e.options.reducer,thunkArgument:n,enableLogger:t}))},cascade:!1,deps:["app"]})):void 0!==this.options.initialState&&(console.warn("[DEPRECATED] `options.initialState` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useFactory:function(n){return new(o({initialState:e.options.initialState?e.options.initialState:{},thunkArgument:n,enableLogger:t}))},cascade:!1,deps:["app"]})),void 0!==this.options.models&&(console.warn("[DEPRECATED] `options.models` has been deprecated. Use `providers` instead."),a.default.each(this.options.models,function(t,n){if("function"!=typeof t)throw new Error("Expected model class '"+n+"' to be a valid Model class");e.options.providers.push({name:n,useValue:new t(e.options.modelAttributes[n]),cascade:!0})})),void 0!==this.options.services&&(console.warn("[DEPRECATED] `options.services` has been deprecated. Use `providers` instead."),a.default.each(this.options.services,function(t,n){e.options.providers.push({name:n,useClass:t,deps:["app"],cascade:!0})})),void 0!==this.options.factories&&(console.warn("[DEPRECATED] `options.factories` has been deprecated. Use `providers` instead."),a.default.each(this.options.factories,function(t,n){e.options.providers.push({name:n,useClass:t,deps:["app"],cascade:!0,scoped:!0})}))},r.prototype.getState$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.warn("[DEPRECATED] `getState$` has been deprecated. Access your store via `get` instead.");var t=e?this._getAppByName(e):this;if(!t)return null;var n=t.get("store");return n?n.getState$():null},r.prototype.dispatch=function(e){return console.warn("[DEPRECATED] `dispatch` has been deprecated. Access your store via `get` instead."),this.get("store").dispatch(e)},r.prototype.render=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[DEPRECATED] `render` has been deprecated.");var r=i(this);return function(){return s.default.createElement(r,t)}},r.prototype._getAppByName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return this;var t=this.getRootApp();if(!t)return null;var n=a.default.find(t._appsCollection,function(t){return t.name===e});return n?n.instances.default:null},r.prototype.getStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(console.warn("[DEPRECATED] `getStore` has been deprecated. Use `get` instead."),!e)return this.container.get(this.options.providerNames.store);var t=this._getAppByName(e);return t?t.getStore():null},r.prototype.getModel=function(e){return console.warn("[DEPRECATED] `getModel` has been deprecated. Use `get` instead."),this.get(e)},r.prototype.getService=function(e){return console.warn("[DEPRECATED] `getService` has been deprecated. Use `get` instead."),this.get(e)},r.prototype.getFactory=function(e){return console.warn("[DEPRECATED] `getFactory` has been deprecated. Use `get` instead."),this.get(e)},r.prototype.setRegion=function(e){return console.warn("[DEPRECATED] `setRegion` has been deprecated. Use `registerApp` instead."),this.setRegions([e])},r.prototype.setRegions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];console.warn("[DEPRECATED] `setRegions` has been deprecated. Use `registerApp` instead.");var t=this.getRootApp();if(!t||this===t)throw new Error("No root app instance available");t._appsCollection.push({name:this.options.name,regions:e,instances:{default:this}}),t._apps$.next(t._appsCollection)},r.prototype.getWidgets=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return console.warn("[DEPRECATED] `getWidgets` has been deprecated. Use `getApps$` instead."),this.getRootApp()._appsCollection.filter(function(t){return!e||t.regions.indexOf(e)>-1}).map(function(e){return e.instances.default})},r.prototype.readStateFrom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];console.log("[DEPRECATED] `readStateFrom` has been deprecated."),this.options.readableApps=e},["beforeMount","afterMount","beforeUnmount"].forEach(function(e){r.prototype[e]=function(){var t=this.options[e],n="function"==typeof t?t:function(){};return this[e]=n.bind(this),this[e].apply(this,arguments)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(1),a=r(i),u=n(2),s=r(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){e.Store.prototype.subscribe=function(e){this.options.console.warn("[DEPRECATED] `Store.subscribe` has been deprecated, and kept for consistency purpose only with v0.x");var t=this.getState$().subscribe(function(t){e(t)});return function(){t.unsubscribe()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},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 u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.render||"function"!=typeof e.render)throw new Error("Component "+e.name+" missing required method: render");var t=function(t){function n(){var t;o(this,n);for(var r=arguments.length,a=Array(r),u=0;u<r;u++)a[u]=arguments[u];var s=i(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(a)));return h.default.each(e,function(e,t){s[t]=e,"function"==typeof s[t]&&s[t].bind(s)}),s}return a(n,t),s(n,[{key:"componentWillMount",value:function(){return"function"==typeof e.beforeMount?e.beforeMount.call(this):null}},{key:"componentDidMount",value:function(){return"function"==typeof e.afterMount?e.afterMount.call(this):null}},{key:"componentWillUnmount",value:function(){"function"==typeof e.beforeUnmount&&e.beforeUnmount.call(this)}},{key:"getDOMElement",value:function(){return p.default.findDOMNode(this)}}]),n}(f.default.Component);return t.displayName=e.displayName?e.displayName:e.name||"GeneratedComponent",t}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}();t.default=u;var c=n(2),f=r(c),l=n(16),p=r(l),d=n(1),h=r(d);e.exports=t.default},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default,e.exports=t.default},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r};e.exports=n(19)(o,!0)}else e.exports=n(21)()}).call(t,n(0))},function(e,t,n){"use strict";(function(t){var r=n(3),o=n(4),i=n(7),a=n(5),u=n(20);e.exports=function(e,n){function s(e){var t=e&&(P&&e[P]||e[R]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function f(e){this.message=e,this.stack=""}function l(e){function r(r,c,l,p,d,h,y){if(p=p||A,h=h||l,y!==a)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+l;!u[v]&&s<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,p),u[v]=!0,s++)}return null==c[l]?r?new f(null===c[l]?"The "+d+" `"+h+"` is marked as required in `"+p+"`, but its value is `null`.":"The "+d+" `"+h+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(c,l,p,d,h)}if("production"!==t.env.NODE_ENV)var u={},s=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function p(e){function t(t,n,r,o,i,a){var u=t[n];if(w(u)!==e)return new f("Invalid "+o+" `"+i+"` of type `"+_(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return l(t)}function d(e){function t(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){return new f("Invalid "+o+" `"+i+"` of type `"+w(u)+"` supplied to `"+r+"`, expected an array.")}for(var s=0;s<u.length;s++){var c=e(u,s,r,o,i+"["+s+"]",a);if(c instanceof Error)return c}return null}return l(t)}function h(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||A;return new f("Invalid "+o+" `"+i+"` of type `"+T(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return l(t)}function y(e){function n(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(c(a,e[u]))return null;return new f("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?l(n):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)}function v(e){function t(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],s=w(u);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(u.hasOwnProperty(c)){var l=e(u,c,r,o,i+"."+c,a);if(l instanceof Error)return l}return null}return l(t)}function b(e){function n(t,n,r,o,i){for(var u=0;u<e.length;u++){if(null==(0,e[u])(t,n,r,o,i,a))return null}return new f("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var o=0;o<e.length;o++){var u=e[o];if("function"!=typeof u)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",O(u),o),r.thatReturnsNull}return l(n)}function m(e){function t(t,n,r,o,i){var u=t[n],s=w(u);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var p=l(u,c,r,o,i+"."+c,a);if(p)return p}}return null}return l(t)}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!g(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function w(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function _(e){if(void 0===e||null===e)return""+e;var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function T(e){return e.constructor&&e.constructor.name?e.constructor.name:A}var P="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",A="<<anonymous>>",x={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return l(r.thatReturnsNull)}(),arrayOf:d,element:function(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){return new f("Invalid "+o+" `"+i+"` of type `"+w(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return l(t)}(),instanceOf:h,node:function(){function e(e,t,n,r,o){return g(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return l(e)}(),objectOf:v,oneOf:y,oneOfType:b,shape:m};return f.prototype=Error.prototype,x.checkPropTypes=u,x.PropTypes=x,x}}).call(t,n(0))},function(e,t,n){"use strict";(function(t){function r(e,n,r,s,c){if("production"!==t.env.NODE_ENV)for(var f in e)if(e.hasOwnProperty(f)){var l;try{o("function"==typeof e[f],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",s||"React class",r,f),l=e[f](n,f,s,r,null,a)}catch(e){l=e}if(i(!l||l instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,f,typeof l),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var p=c?c():"";i(!1,"Failed %s type: %s%s",r,l.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=n(4),i=n(7),a=n(5),u={};e.exports=r}).call(t,n(0))},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(5);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default.createElement,e.exports=t.default},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(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 i(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]:{};console.warn("[DEPRECATED] `createFactory` has been deprecated. Use `createClass` or direct ES6 classes instead.");var t=(0,s.default)(e);return function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var u=n(8),s=function(e){return e&&e.__esModule?e:{default:e}}(u);e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.observe,n=e.streamProps;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.warn("[DEPRECATED] `mapToProps` has been deprecated. Use `observe` instead.");var o=i({app:null,dispatch:{},factories:{},models:{},services:{},shared:null,state:null,observe:null},e);return function(e){return t(function(e){var t=n();"function"==typeof o.app&&t.set(o.app(e)),t.setDispatch(o.dispatch,e.get("store"));var i=Object.assign({},o.factories,o.models,o.services);if(u.default.each(i,function(n,r){t.set(r,e.get(n))}),"function"==typeof o.shared){t.set(o.shared({}));var a=[];(e.options.readableApps||[]).forEach(function(t){a.push(e.getAppOnceAvailable$(t).concatMap(function(e){return e.get("store").getState$()}).map(function(e){return r({},t,e)}))});var c=s.Observable.merge.apply(s.Observable,a).map(function(e){return o.shared(e)});t.set(c)}return"function"==typeof o.state&&t.set(e.get("store").getState$(),function(e){return o.state(e)}),"function"==typeof o.observe&&t.set(o.observe(e)),t.get$()})(e)}}}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};t.default=o;var a=n(1),u=function(e){return e&&e.__esModule?e:{default:e}}(a),s=n(25);e.exports=t.default},function(e,t){!function(){e.exports=this.Rx}()},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 u(e){function t(e){var t=n(e);return e.beforeMount(),function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),s(r,[{key:"componentDidMount",value:function(){e.afterMount()}},{key:"componentWillUnmount",value:function(){e.beforeUnmount()}},{key:"render",value:function(){return f.default.createElement(t,this.props)}}]),r}(f.default.Component)}var n=e.getMountableComponent;return p.default.getMountableComponent=t,e.getMountableComponent=t,t}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}();t.default=u;var c=n(2),f=r(c),l=n(6),p=r(l);e.exports=t.default}]);
this.FrintCompat=function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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=4)}([function(e,t){!function(){e.exports=this._}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.FrintReact}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn("[DEPRECATED] `createService` has been deprecated. Use `createClass` or direct ES6 classes instead."),function t(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,t),!r.app)throw new Error("App instance not provided.");this.app=r.app,a.default.merge(this,e),Object.keys(this).filter(function(e){return n[e]instanceof Function}).forEach(function(e){n[e]=n[e].bind(n)}),"function"==typeof this.initialize&&this.initialize(r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=o(r),a=n(6),s=o(a),u=n(7),c=o(u),p=n(2),f=o(p),l=n(8),d=o(l),h=n(9),b=o(h),v=n(10),y=o(v),g=n(12),m=o(g),E=n(14),_=o(E),w=n(15),P=o(w),M=n(3),C=o(M),D=n(16),O=o(D),A=n(18),R=o(A);i.default.createStore=s.default.createStore,i.default.combineReducers=s.default.combineReducers,i.default.Store=s.default.Store,i.default.createModel=c.default.createModel,i.default.Model=c.default.Model,i.default.createComponent=y.default,i.default.h=_.default,i.default.PropTypes=m.default,i.default.render=f.default.render,i.default.Region=f.default.Region,i.default.observe=f.default.observe,i.default.streamProps=f.default.streamProps,i.default.getMountableComponent=f.default.getMountableComponent,i.default.createFactory=P.default,i.default.createService=C.default,i.default.mapToProps=(0,O.default)(i.default),(0,d.default)(i.default,s.default,f.default),(0,b.default)(s.default),i.default.getMountableComponent=(0,R.default)(i.default),f.default.getMountableComponent=i.default.getMountableComponent,t.default=i.default,e.exports=t.default},function(e,t){!function(){e.exports=this.Frint}()},function(e,t){!function(){e.exports=this.FrintStore}()},function(e,t){!function(){e.exports=this.FrintModel}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=e.App,r=t.createStore,i=n.getMountableComponent,s=o.prototype.getRootApp;o.prototype.getRootApp=function(){return"undefined"!=typeof window&&void 0!==window.app?window.app:s.bind(this)()};var c=o.prototype._registerRootProviders;o.prototype._registerRootProviders=function(){c.bind(this)(),this._backwardsCompatibility()},o.prototype._backwardsCompatibility=function(){var e=this;this.readableAppNames=[];var t=void 0===this.options.enableLogger||this.options.enableLogger;void 0!==this.options.component&&(console.warn("[DEPRECATED] `component` now needs to be defined as a provider."),this.options.providers.push({name:"component",useValue:this.options.component,cascade:!1})),void 0!==this.options.store?(console.warn("[DEPRECATED] `options.store` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useValue:this.options.store,cascade:!1})):"function"==typeof this.options.reducer?(console.warn("[DEPRECATED] `options.reducer` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useFactory:function(n){return new(r({initialState:e.options.initialState?e.options.initialState:{},reducer:e.options.reducer,thunkArgument:n,enableLogger:t}))},cascade:!1,deps:["app"]})):void 0!==this.options.initialState&&(console.warn("[DEPRECATED] `options.initialState` has been deprecated. Use `providers` for defining your Store instead."),this.options.providers.push({name:"store",useFactory:function(n){return new(r({initialState:e.options.initialState?e.options.initialState:{},thunkArgument:n,enableLogger:t}))},cascade:!1,deps:["app"]})),void 0!==this.options.models&&(console.warn("[DEPRECATED] `options.models` has been deprecated. Use `providers` instead."),a.default.each(this.options.models,function(t,n){if("function"!=typeof t)throw new Error("Expected model class '"+n+"' to be a valid Model class");e.options.providers.push({name:n,useValue:new t(e.options.modelAttributes[n]),cascade:!0})})),void 0!==this.options.services&&(console.warn("[DEPRECATED] `options.services` has been deprecated. Use `providers` instead."),a.default.each(this.options.services,function(t,n){e.options.providers.push({name:n,useClass:t,deps:["app"],cascade:!0})})),void 0!==this.options.factories&&(console.warn("[DEPRECATED] `options.factories` has been deprecated. Use `providers` instead."),a.default.each(this.options.factories,function(t,n){e.options.providers.push({name:n,useClass:t,deps:["app"],cascade:!0,scoped:!0})}))},o.prototype.getState$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.warn("[DEPRECATED] `getState$` has been deprecated. Access your store via `get` instead.");var t=e?this._getAppByName(e):this;if(!t)return null;var n=t.get("store");return n?n.getState$():null},o.prototype.dispatch=function(e){return console.warn("[DEPRECATED] `dispatch` has been deprecated. Access your store via `get` instead."),this.get("store").dispatch(e)},o.prototype.render=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[DEPRECATED] `render` has been deprecated.");var o=i(this);return function(){return u.default.createElement(o,t)}},o.prototype._getAppByName=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return this;var t=this.getRootApp();if(!t)return null;var n=a.default.find(t._appsCollection,function(t){return t.name===e});return n?n.instances.default:null},o.prototype.getStore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(console.warn("[DEPRECATED] `getStore` has been deprecated. Use `get` instead."),!e)return this.container.get(this.options.providerNames.store);var t=this._getAppByName(e);return t?t.getStore():null},o.prototype.getModel=function(e){return console.warn("[DEPRECATED] `getModel` has been deprecated. Use `get` instead."),this.get(e)},o.prototype.getService=function(e){return console.warn("[DEPRECATED] `getService` has been deprecated. Use `get` instead."),this.get(e)},o.prototype.getFactory=function(e){return console.warn("[DEPRECATED] `getFactory` has been deprecated. Use `get` instead."),this.get(e)},o.prototype.setRegion=function(e){return console.warn("[DEPRECATED] `setRegion` has been deprecated. Use `registerApp` instead."),this.setRegions([e])},o.prototype.setRegions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];console.warn("[DEPRECATED] `setRegions` has been deprecated. Use `registerApp` instead.");var t=this.getRootApp();if(!t||this===t)throw new Error("No root app instance available");t._appsCollection.push({name:this.options.name,regions:e,instances:{default:this}}),t._apps$.next(t._appsCollection)},o.prototype.getWidgets=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return console.warn("[DEPRECATED] `getWidgets` has been deprecated. Use `getApps$` instead."),this.getRootApp()._appsCollection.filter(function(t){return!e||t.regions.indexOf(e)>-1}).map(function(e){return e.instances.default})},o.prototype.readStateFrom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];console.log("[DEPRECATED] `readStateFrom` has been deprecated."),this.options.readableApps=e},["beforeMount","afterMount","beforeUnmount"].forEach(function(e){o.prototype[e]=function(){var t=this.options[e],n="function"==typeof t?t:function(){};return this[e]=n.bind(this),this[e].apply(this,arguments)}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),a=o(i),s=n(1),u=o(s);e.exports=t.default},function(e,t,n){"use strict";function o(e){e.Store.prototype.subscribe=function(e){this.options.console.warn("[DEPRECATED] `Store.subscribe` has been deprecated, and kept for consistency purpose only with v0.x");var t=this.getState$().subscribe(function(t){e(t)});return function(){t.unsubscribe()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(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]:{};if(!e.render||"function"!=typeof e.render)throw new Error("Component "+e.name+" missing required method: render");var t=function(t){function n(){var t;r(this,n);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];var u=i(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(a)));return h.default.each(e,function(e,t){u[t]=e,"function"==typeof u[t]&&u[t].bind(u)}),u}return a(n,t),u(n,[{key:"componentWillMount",value:function(){return"function"==typeof e.beforeMount?e.beforeMount.call(this):null}},{key:"componentDidMount",value:function(){return"function"==typeof e.afterMount?e.afterMount.call(this):null}},{key:"componentWillUnmount",value:function(){"function"==typeof e.beforeUnmount&&e.beforeUnmount.call(this)}},{key:"getDOMElement",value:function(){return l.default.findDOMNode(this)}}]),n}(p.default.Component);return t.displayName=e.displayName?e.displayName:e.name||"GeneratedComponent",t}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=s;var c=n(1),p=o(c),f=n(11),l=o(f),d=n(0),h=o(d);e.exports=t.default},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r.default,e.exports=t.default},function(e,t){!function(){e.exports=this.PropTypes}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r.default.createElement,e.exports=t.default},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 i(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]:{};console.warn("[DEPRECATED] `createFactory` has been deprecated. Use `createClass` or direct ES6 classes instead.");var t=(0,u.default)(e);return function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(3),u=function(e){return e&&e.__esModule?e:{default:e}}(s);e.exports=t.default},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=e.observe,n=e.streamProps;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.warn("[DEPRECATED] `mapToProps` has been deprecated. Use `observe` instead.");var r=i({app:null,dispatch:{},factories:{},models:{},services:{},shared:null,state:null,observe:null},e);return function(e){return t(function(e){var t=n();"function"==typeof r.app&&t.set(r.app(e)),t.setDispatch(r.dispatch,e.get("store"));var i=Object.assign({},r.factories,r.models,r.services);if(s.default.each(i,function(n,o){t.set(o,e.get(n))}),"function"==typeof r.shared){t.set(r.shared({}));var a=[];(e.options.readableApps||[]).forEach(function(t){a.push(e.getAppOnceAvailable$(t).concatMap(function(e){return e.get("store").getState$()}).map(function(e){return o({},t,e)}))});var c=u.Observable.merge.apply(u.Observable,a).map(function(e){return r.shared(e)});t.set(c)}return"function"==typeof r.state&&t.set(e.get("store").getState$(),function(e){return r.state(e)}),"function"==typeof r.observe&&t.set(r.observe(e)),t.get$()})(e)}}}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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=r;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(17);e.exports=t.default},function(e,t){!function(){e.exports=this.Rx}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(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(e){function t(e){var t=n(e);return e.beforeMount(),function(n){function o(){return r(this,o),i(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return a(o,n),u(o,[{key:"componentDidMount",value:function(){e.afterMount()}},{key:"componentWillUnmount",value:function(){e.beforeUnmount()}},{key:"render",value:function(){return p.default.createElement(t,this.props)}}]),o}(p.default.Component)}var n=e.getMountableComponent;return l.default.getMountableComponent=t,e.getMountableComponent=t,t}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=s;var c=n(1),p=o(c),f=n(2),l=o(f);e.exports=t.default}]);
{
"name": "frint-compat",
"version": "2.2.0",
"version": "2.2.1",
"description": "Backwards compatibility package for Frint",

@@ -31,6 +31,6 @@ "main": "lib/index.js",

"dependencies": {
"frint": "^2.2.0",
"frint-model": "^2.2.0",
"frint-react": "^2.2.0",
"frint-store": "^2.2.0",
"frint": "^2.2.1",
"frint-model": "^2.2.1",
"frint-react": "^2.2.1",
"frint-store": "^2.2.1",
"lodash": "^4.13.1",

@@ -40,3 +40,3 @@ "rxjs": "^5.2.0"

"devDependencies": {
"frint-test-utils": "^2.2.0",
"frint-test-utils": "^2.2.1",
"prop-types": "^15.5.10",

@@ -43,0 +43,0 @@ "react": "^15.5.4",

@@ -32,2 +32,3 @@ var webpack = require('webpack');

'lodash': '_',
'prop-types': 'PropTypes',
'react': 'React',

@@ -34,0 +35,0 @@ 'react-dom': 'ReactDOM',

Sorry, the diff of this file is too big to display

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