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

mobx-remotedev

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-remotedev - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

dist/mobx-remotedev.js

@@ -215,7 +215,7 @@ (function webpackUniversalModuleDefinition(root, factory) {

} else if (typeof _store === 'function') {
/* eslint-disable no-param-reassign */
if (!config.name) config.name = _store.name;
_store = function (_store2) {
_inherits(store, _store2);
// eslint-disable-line no-param-reassign
function store() {

@@ -236,2 +236,3 @@ _classCallCheck(this, store);

}(_store);
/* eslint-enable */
} else {

@@ -238,0 +239,0 @@ console.warn('Passed ' + (typeof _store === 'undefined' ? 'undefined' : _typeof(_store)) + ' to mobx-remotedev, which is not an observable.');

2

dist/mobx-remotedev.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx")):"function"==typeof define&&define.amd?define(["mobx"],t):"object"==typeof exports?exports.RemoteDev=t(require("mobx")):e.RemoteDev=t(e.mobx)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(4).default},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!t)return{type:e};var n=void 0;if("undefined"!=typeof t.newValue){var r;r={},r[t.name]=a.default.toJS(t.newValue),n=r}else n=s(t);return n.type="┃ "+e,n}function i(e){if(!e)return"";var t=a.default.extras.getDebugName(e),n=t.indexOf(".");return n===-1&&(n=void 0),t.substr(0,n)}t.__esModule=!0,t.setValue=t.silently=void 0,t.createAction=o,t.getName=i;var u=n(1),a=r(u),s=function(e){var t=e.added,n=e.addedCount,r=e.index,o=e.removed,i=e.removedCount;return{index:r,added:t&&a.default.toJS(t),addedCount:n,removed:o&&a.default.toJS(o),removedCount:i}},f=t.silently=function(e,t){t.__isRemotedevAction=!0,e(),delete t.__isRemotedevAction};t.setValue=a.default.action("@@remotedev",function(e,t){return f(function(){e.importState?e.importState(t):Object.keys(t).forEach(function(n){e[n]=t[n]})},e),t})},function(e,t){function n(e,t){if("$"!==t)for(var n=r(t),o=0;o<n.length;o++)t=n[o].toString().replace(/\\"/g,'"'),e=e[t];return e}function r(e){for(var t,n=/(?:\.(\w+))|(?:\[(\d+)\])|(?:\["((?:[^\\"]|\\.)*)"\])/g,r=[];t=n.exec(e);)r.push(t[1]||t[2]||t[3]);return r}e.exports=n},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 u(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(e,t){return"undefined"!=typeof window&&window.devToolsExtension?(c.default.isObservable(e)?(0,l.default)(e,t):"function"==typeof e?e=function(e){function n(){o(this,n);for(var r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];var s=i(this,e.call.apply(e,[this].concat(u)));return(0,l.default)(s,t),s}return u(n,e),n}(e):console.warn("Passed "+("undefined"==typeof e?"undefined":s(e))+" to mobx-remotedev, which is not an observable."),e):e}t.__esModule=!0,t.default=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=n(1),c=r(f),d=n(7),l=r(d);t.default=a},function(e,t){"use strict";function n(e,t){if(!(t||window.devToolsOptions.filter&&"DO_NOT_FILTER"!==window.devToolsOptions.filter))return!1;var n=t||window.devToolsOptions,r=n.whitelist,o=n.blacklist;return r&&!e.type.match(r)||o&&e.type.match(o)}t.__esModule=!0,t.isFiltered=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t.type,r=t.arguments;"function"==typeof e[n]&&(0,l.silently)(function(){e[n].apply(e,r)},e)}function i(e,t,n){try{(0,d.evalMethod)(n,t)}catch(r){e.error(r.message)}}function u(e,t,n){var r=(0,c.parse)(n),i=r.skippedActionIds.indexOf(t),u=i!==-1,a=r.stagedActionIds.indexOf(t);if(a===-1)return r;(0,l.setValue)(e,r.computedStates[a-1].state);for(var s=u?a:a+1;s<r.stagedActionIds.length;s++)s!==a&&r.skippedActionIds.indexOf(r.stagedActionIds[s])!==-1||(o(e,r.actionsById[r.stagedActionIds[s]].action),r.computedStates[s].state=f.default.toJS(e));return u?r.skippedActionIds.splice(i,1):r.skippedActionIds.push(t),r}function a(e,t,n){var r=f.default.toJS(e);return t.init(r,(0,d.getMethods)(e)),function(o){if("DISPATCH"===o.type)switch(o.payload.type){case"RESET":return void t.init((0,l.setValue)(e,r));case"COMMIT":return void t.init(f.default.toJS(e));case"ROLLBACK":return void t.init((0,l.setValue)(e,(0,c.parse)(o.state)));case"JUMP_TO_STATE":return void(0,l.setValue)(e,(0,c.parse)(o.state));case"TOGGLE_ACTION":return n?void t.send(null,u(e,o.payload.id,o.state)):void console.warn("`onlyActions` parameter should be `true` to skip actions: https://github.com/zalmoxisus/mobx-remotedev#remotedevstore-config")}else if("ACTION"===o.type)i(t,e,o.payload);else if("IMPORT"===o.type){var a=(0,c.parse)(o.state),s=a.computedStates;(0,l.setValue)(e,s[s.length-1].state),t.send(null,a)}}}t.__esModule=!0,t.isMonitorAction=void 0,t.dispatchMonitorAction=a;var s=n(1),f=r(s),c=n(9),d=n(13),l=n(2);t.isMonitorAction=function(e){return e.__isRemotedevAction===!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t&&(m[e]=t.onlyActions,b[e]=t.filters)}function i(e,t){var n=d.default.extras.getDebugName(e);o(n,t),g[n]=e;var r=window.devToolsExtension.connect(t);r.subscribe((0,y.dispatchMonitorAction)(e,r,m[n])),h[n]=r}function u(e,t){var n=void 0;t&&!(0,p.isFiltered)(t,b[e])&&(n=function(){h[e].send(t,d.default.toJS(g[e]))}),_.push(n)}function a(){if(_.length){var e=_.pop();e&&e()}}function s(e,t){if(i(e,t),!v){v=!0;var n=void 0;d.default.spy(function(e){if(e.spyReportStart){if(n=(0,l.getName)(e.object||e.target),"reaction"===e.type)return void u(n);if(!g[n]||g[n].__isRemotedevAction)return void u(n);if("action"===e.type){var t=(0,l.createAction)(e.name);e.arguments&&e.arguments.length&&(t.arguments=e.arguments),m[n]?u(n,t):(u(n,f({},t,{type:"┏ "+t.type})),a(),u(n,f({},t,{type:"┗ "+t.type})))}else e.type&&d.default.isObservable(e.object)&&u(n,!m[n]&&(0,l.createAction)(e.type,e))}else e.spyReportEnd&&a()})}}t.__esModule=!0;var f=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=s;var c=n(1),d=r(c),l=n(2),p=n(5),y=n(6),v=!1,g={},m={},b={},h={},_=[]},function(e,t){var n=function(e){"use strict";if("function"!=typeof e)return[];var t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\s,]+)/g,r=e.toString().replace(t,""),o=r.slice(r.indexOf("(")+1,r.indexOf(")")).match(n);return null===o?[]:o};"undefined"!=typeof e&&"undefined"!=typeof e.exports&&(e.exports=n),"undefined"!=typeof window&&(window.GetParams=n)},function(e,t,n){e.exports=n(11)},function(e,t,n){var r=(n(3),n(12));t.decycle=function(e,t,n){"use strict";var o=[],i=[];return function u(e,a,s){var f,c,d,l=n?n(s||"",e):e;if(t.date&&l instanceof Date)return{$jsan:"d"+l.getTime()};if(t.regex&&l instanceof RegExp)return{$jsan:"r"+r.getRegexFlags(l)+","+l.source};if(t.function&&"function"==typeof l)return{$jsan:"f"+r.stringifyFunction(l,t.function)};if(t.undefined&&void 0===l)return{$jsan:"u"};if(t.error&&l instanceof Error)return{$jsan:"e"+l.message};if(l&&"function"==typeof l.toJSON&&(l=l.toJSON()),!("object"!=typeof l||null===l||l instanceof Boolean||l instanceof Date||l instanceof Number||l instanceof RegExp||l instanceof String||l instanceof Error)){for(f=0;f<o.length;f+=1)if(o[f]===l)return{$jsan:i[f]};if(o.push(l),i.push(a),"[object Array]"===Object.prototype.toString.apply(l))for(d=[],f=0;f<l.length;f+=1)d[f]=u(l[f],a+"["+f+"]",f);else{d={};for(c in l)if(Object.prototype.hasOwnProperty.call(l,c)){var p=/^\w+$/.test(c)?"."+c:"["+JSON.stringify(c)+"]";d[c]="$jsan"===c?[u(l[c],a+p)]:u(l[c],a+p,c)}}return d}return l}(e,"$")},t.retrocycle=function(e){"use strict";return function t(n){var o,i,u;if(n&&"object"==typeof n)if("[object Array]"===Object.prototype.toString.apply(n))for(o=0;o<n.length;o+=1)i=n[o],i&&"object"==typeof i&&(i.$jsan?n[o]=r.restore(i.$jsan,e):t(i));else for(u in n)"$jsan"===u&&(n[u]=n[u][0]),"object"==typeof n[u]&&(i=n[u],i&&"object"==typeof i&&(i.$jsan?n[u]=r.restore(i.$jsan,e):t(i)))}(e),e}},function(e,t,n){var r=n(10);t.stringify=function(e,t,n,o){if(arguments.length<4)try{return 1===arguments.length?JSON.stringify(e):JSON.stringify.apply(JSON,arguments)}catch(i){}var u=o||!1;"boolean"==typeof u&&(u={date:u,"function":u,regex:u,undefined:u,error:u});var a=r.decycle(e,u,t);return 1===arguments.length?JSON.stringify(a):JSON.stringify(a,t,n)},t.parse=function(e,t){var n,o=/"\$jsan"/.test(e);return n=1===arguments.length?JSON.parse(e):JSON.parse(e,t),o&&(n=r.retrocycle(n)),n}},function(e,t,n){var r=n(3);t.getRegexFlags=function(e){var t="";return e.ignoreCase&&(t+="i"),e.global&&(t+="g"),e.multiline&&(t+="m"),t},t.stringifyFunction=function(e,t){if("function"==typeof t)return t(e);var n=e.toString(),r=n.match(/^[^{]*{|^[^=]*=>/),o=r?r[0]:"<function> ",i="}"===n[n.length-1]?"}":"";return o.replace(/\r\n|\n/g," ").replace(/\s+/g," ")+" /* ... */ "+i},t.restore=function(e,t){var n=e[0],o=e.slice(1);switch(n){case"$":return r(t,e);case"r":var i=o.indexOf(","),u=o.slice(0,i),a=o.slice(i+1);return RegExp(a,u);case"d":return new Date((+o));case"f":var s=function(){throw new Error("can't run jsan parsed function")};return s.toString=function(){return o},s;case"u":return;case"e":var f=new Error(o);return f.stack="Stack is unavailable for jsan parsed errors",f;default:return console.warn("unknown type",e),e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?"":arguments[1],n=[];return Object.keys(e).forEach(function(r){var i=e[r];"function"==typeof i?n.push({name:t+(r||i.name||"anonymous"),func:i,args:(0,l.default)(i)}):"object"===("undefined"==typeof i?"undefined":c(i))&&(n=n.concat(o(i,t+r+".")))}),n}function i(e){if("object"===("undefined"==typeof e?"undefined":c(e))){var t=void 0,n=void 0;return e.__proto__&&(n=e.__proto__.__proto__),n||(n=e),Object.getOwnPropertyNames(n).forEach(function(e){var r=n[e];"function"==typeof r&&"constructor"!==e&&(t||(t=[]),t.push({name:e||r.name||"anonymous",args:(0,l.default)(r)}))}),t}}function u(e){return Array.isArray(e)?e:o(e)}function a(e,t){var n=e.map(p);if(!t)return n;var r=p(t);if(Array.isArray(r))return n.concat.apply(n,r);throw new Error("rest must be an array")}function s(e,t){if("string"==typeof e)return new Function("return "+e)();var n=t[e.selected].func,r=a(e.args,e.rest);return n.apply(void 0,r)}function f(e,t){if("string"==typeof e)return new Function("return "+e).call(t);var n=a(e.args,e.rest);return new Function("args","return this."+e.name+"(args)").apply(t,n)}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.getMethods=i,t.getActionsArray=u,t.evalAction=s,t.evalMethod=f;var d=n(8),l=r(d),p=function(e){return new Function("return "+e)()}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx")):"function"==typeof define&&define.amd?define(["mobx"],t):"object"==typeof exports?exports.RemoteDev=t(require("mobx")):e.RemoteDev=t(e.mobx)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(4).default},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!t)return{type:e};var n=void 0;if("undefined"!=typeof t.newValue){var r;r={},r[t.name]=a.default.toJS(t.newValue),n=r}else n=s(t);return n.type="┃ "+e,n}function i(e){if(!e)return"";var t=a.default.extras.getDebugName(e),n=t.indexOf(".");return n===-1&&(n=void 0),t.substr(0,n)}t.__esModule=!0,t.setValue=t.silently=void 0,t.createAction=o,t.getName=i;var u=n(1),a=r(u),s=function(e){var t=e.added,n=e.addedCount,r=e.index,o=e.removed,i=e.removedCount;return{index:r,added:t&&a.default.toJS(t),addedCount:n,removed:o&&a.default.toJS(o),removedCount:i}},f=t.silently=function(e,t){t.__isRemotedevAction=!0,e(),delete t.__isRemotedevAction};t.setValue=a.default.action("@@remotedev",function(e,t){return f(function(){e.importState?e.importState(t):Object.keys(t).forEach(function(n){e[n]=t[n]})},e),t})},function(e,t){function n(e,t){if("$"!==t)for(var n=r(t),o=0;o<n.length;o++)t=n[o].toString().replace(/\\"/g,'"'),e=e[t];return e}function r(e){for(var t,n=/(?:\.(\w+))|(?:\[(\d+)\])|(?:\["((?:[^\\"]|\\.)*)"\])/g,r=[];t=n.exec(e);)r.push(t[1]||t[2]||t[3]);return r}e.exports=n},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 u(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(e,t){return"undefined"!=typeof window&&window.devToolsExtension?(c.default.isObservable(e)?(0,l.default)(e,t):"function"==typeof e?(t.name||(t.name=e.name),e=function(e){function n(){o(this,n);for(var r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];var s=i(this,e.call.apply(e,[this].concat(u)));return(0,l.default)(s,t),s}return u(n,e),n}(e)):console.warn("Passed "+("undefined"==typeof e?"undefined":s(e))+" to mobx-remotedev, which is not an observable."),e):e}t.__esModule=!0,t.default=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=n(1),c=r(f),d=n(7),l=r(d);t.default=a},function(e,t){"use strict";function n(e,t){if(!(t||window.devToolsOptions.filter&&"DO_NOT_FILTER"!==window.devToolsOptions.filter))return!1;var n=t||window.devToolsOptions,r=n.whitelist,o=n.blacklist;return r&&!e.type.match(r)||o&&e.type.match(o)}t.__esModule=!0,t.isFiltered=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t.type,r=t.arguments;"function"==typeof e[n]&&(0,l.silently)(function(){e[n].apply(e,r)},e)}function i(e,t,n){try{(0,d.evalMethod)(n,t)}catch(r){e.error(r.message)}}function u(e,t,n){var r=(0,c.parse)(n),i=r.skippedActionIds.indexOf(t),u=i!==-1,a=r.stagedActionIds.indexOf(t);if(a===-1)return r;(0,l.setValue)(e,r.computedStates[a-1].state);for(var s=u?a:a+1;s<r.stagedActionIds.length;s++)s!==a&&r.skippedActionIds.indexOf(r.stagedActionIds[s])!==-1||(o(e,r.actionsById[r.stagedActionIds[s]].action),r.computedStates[s].state=f.default.toJS(e));return u?r.skippedActionIds.splice(i,1):r.skippedActionIds.push(t),r}function a(e,t,n){var r=f.default.toJS(e);return t.init(r,(0,d.getMethods)(e)),function(o){if("DISPATCH"===o.type)switch(o.payload.type){case"RESET":return void t.init((0,l.setValue)(e,r));case"COMMIT":return void t.init(f.default.toJS(e));case"ROLLBACK":return void t.init((0,l.setValue)(e,(0,c.parse)(o.state)));case"JUMP_TO_STATE":return void(0,l.setValue)(e,(0,c.parse)(o.state));case"TOGGLE_ACTION":return n?void t.send(null,u(e,o.payload.id,o.state)):void console.warn("`onlyActions` parameter should be `true` to skip actions: https://github.com/zalmoxisus/mobx-remotedev#remotedevstore-config")}else if("ACTION"===o.type)i(t,e,o.payload);else if("IMPORT"===o.type){var a=(0,c.parse)(o.state),s=a.computedStates;(0,l.setValue)(e,s[s.length-1].state),t.send(null,a)}}}t.__esModule=!0,t.isMonitorAction=void 0,t.dispatchMonitorAction=a;var s=n(1),f=r(s),c=n(9),d=n(13),l=n(2);t.isMonitorAction=function(e){return e.__isRemotedevAction===!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t&&(m[e]=t.onlyActions,b[e]=t.filters)}function i(e,t){var n=d.default.extras.getDebugName(e);o(n,t),g[n]=e;var r=window.devToolsExtension.connect(t);r.subscribe((0,y.dispatchMonitorAction)(e,r,m[n])),h[n]=r}function u(e,t){var n=void 0;t&&!(0,p.isFiltered)(t,b[e])&&(n=function(){h[e].send(t,d.default.toJS(g[e]))}),_.push(n)}function a(){if(_.length){var e=_.pop();e&&e()}}function s(e,t){if(i(e,t),!v){v=!0;var n=void 0;d.default.spy(function(e){if(e.spyReportStart){if(n=(0,l.getName)(e.object||e.target),"reaction"===e.type)return void u(n);if(!g[n]||g[n].__isRemotedevAction)return void u(n);if("action"===e.type){var t=(0,l.createAction)(e.name);e.arguments&&e.arguments.length&&(t.arguments=e.arguments),m[n]?u(n,t):(u(n,f({},t,{type:"┏ "+t.type})),a(),u(n,f({},t,{type:"┗ "+t.type})))}else e.type&&d.default.isObservable(e.object)&&u(n,!m[n]&&(0,l.createAction)(e.type,e))}else e.spyReportEnd&&a()})}}t.__esModule=!0;var f=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=s;var c=n(1),d=r(c),l=n(2),p=n(5),y=n(6),v=!1,g={},m={},b={},h={},_=[]},function(e,t){var n=function(e){"use strict";if("function"!=typeof e)return[];var t=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,n=/([^\s,]+)/g,r=e.toString().replace(t,""),o=r.slice(r.indexOf("(")+1,r.indexOf(")")).match(n);return null===o?[]:o};"undefined"!=typeof e&&"undefined"!=typeof e.exports&&(e.exports=n),"undefined"!=typeof window&&(window.GetParams=n)},function(e,t,n){e.exports=n(11)},function(e,t,n){var r=(n(3),n(12));t.decycle=function(e,t,n){"use strict";var o=[],i=[];return function u(e,a,s){var f,c,d,l=n?n(s||"",e):e;if(t.date&&l instanceof Date)return{$jsan:"d"+l.getTime()};if(t.regex&&l instanceof RegExp)return{$jsan:"r"+r.getRegexFlags(l)+","+l.source};if(t.function&&"function"==typeof l)return{$jsan:"f"+r.stringifyFunction(l,t.function)};if(t.undefined&&void 0===l)return{$jsan:"u"};if(t.error&&l instanceof Error)return{$jsan:"e"+l.message};if(l&&"function"==typeof l.toJSON&&(l=l.toJSON()),!("object"!=typeof l||null===l||l instanceof Boolean||l instanceof Date||l instanceof Number||l instanceof RegExp||l instanceof String||l instanceof Error)){for(f=0;f<o.length;f+=1)if(o[f]===l)return{$jsan:i[f]};if(o.push(l),i.push(a),"[object Array]"===Object.prototype.toString.apply(l))for(d=[],f=0;f<l.length;f+=1)d[f]=u(l[f],a+"["+f+"]",f);else{d={};for(c in l)if(Object.prototype.hasOwnProperty.call(l,c)){var p=/^\w+$/.test(c)?"."+c:"["+JSON.stringify(c)+"]";d[c]="$jsan"===c?[u(l[c],a+p)]:u(l[c],a+p,c)}}return d}return l}(e,"$")},t.retrocycle=function(e){"use strict";return function t(n){var o,i,u;if(n&&"object"==typeof n)if("[object Array]"===Object.prototype.toString.apply(n))for(o=0;o<n.length;o+=1)i=n[o],i&&"object"==typeof i&&(i.$jsan?n[o]=r.restore(i.$jsan,e):t(i));else for(u in n)"$jsan"===u&&(n[u]=n[u][0]),"object"==typeof n[u]&&(i=n[u],i&&"object"==typeof i&&(i.$jsan?n[u]=r.restore(i.$jsan,e):t(i)))}(e),e}},function(e,t,n){var r=n(10);t.stringify=function(e,t,n,o){if(arguments.length<4)try{return 1===arguments.length?JSON.stringify(e):JSON.stringify.apply(JSON,arguments)}catch(i){}var u=o||!1;"boolean"==typeof u&&(u={date:u,"function":u,regex:u,undefined:u,error:u});var a=r.decycle(e,u,t);return 1===arguments.length?JSON.stringify(a):JSON.stringify(a,t,n)},t.parse=function(e,t){var n,o=/"\$jsan"/.test(e);return n=1===arguments.length?JSON.parse(e):JSON.parse(e,t),o&&(n=r.retrocycle(n)),n}},function(e,t,n){var r=n(3);t.getRegexFlags=function(e){var t="";return e.ignoreCase&&(t+="i"),e.global&&(t+="g"),e.multiline&&(t+="m"),t},t.stringifyFunction=function(e,t){if("function"==typeof t)return t(e);var n=e.toString(),r=n.match(/^[^{]*{|^[^=]*=>/),o=r?r[0]:"<function> ",i="}"===n[n.length-1]?"}":"";return o.replace(/\r\n|\n/g," ").replace(/\s+/g," ")+" /* ... */ "+i},t.restore=function(e,t){var n=e[0],o=e.slice(1);switch(n){case"$":return r(t,e);case"r":var i=o.indexOf(","),u=o.slice(0,i),a=o.slice(i+1);return RegExp(a,u);case"d":return new Date((+o));case"f":var s=function(){throw new Error("can't run jsan parsed function")};return s.toString=function(){return o},s;case"u":return;case"e":var f=new Error(o);return f.stack="Stack is unavailable for jsan parsed errors",f;default:return console.warn("unknown type",e),e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?"":arguments[1],n=[];return Object.keys(e).forEach(function(r){var i=e[r];"function"==typeof i?n.push({name:t+(r||i.name||"anonymous"),func:i,args:(0,l.default)(i)}):"object"===("undefined"==typeof i?"undefined":c(i))&&(n=n.concat(o(i,t+r+".")))}),n}function i(e){if("object"===("undefined"==typeof e?"undefined":c(e))){var t=void 0,n=void 0;return e.__proto__&&(n=e.__proto__.__proto__),n||(n=e),Object.getOwnPropertyNames(n).forEach(function(e){var r=n[e];"function"==typeof r&&"constructor"!==e&&(t||(t=[]),t.push({name:e||r.name||"anonymous",args:(0,l.default)(r)}))}),t}}function u(e){return Array.isArray(e)?e:o(e)}function a(e,t){var n=e.map(p);if(!t)return n;var r=p(t);if(Array.isArray(r))return n.concat.apply(n,r);throw new Error("rest must be an array")}function s(e,t){if("string"==typeof e)return new Function("return "+e)();var n=t[e.selected].func,r=a(e.args,e.rest);return n.apply(void 0,r)}function f(e,t){if("string"==typeof e)return new Function("return "+e).call(t);var n=a(e.args,e.rest);return new Function("args","return this."+e.name+"(args)").apply(t,n)}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.getMethods=i,t.getActionsArray=u,t.evalAction=s,t.evalMethod=f;var d=n(8),l=r(d),p=function(e){return new Function("return "+e)()}}])});

@@ -30,7 +30,7 @@ 'use strict';

} else if (typeof _store === 'function') {
/* eslint-disable no-param-reassign */
if (!config.name) config.name = _store.name;
_store = function (_store2) {
_inherits(store, _store2);
// eslint-disable-line no-param-reassign
function store() {

@@ -51,2 +51,3 @@ _classCallCheck(this, store);

}(_store);
/* eslint-enable */
} else {

@@ -53,0 +54,0 @@ console.warn('Passed ' + (typeof _store === 'undefined' ? 'undefined' : _typeof(_store)) + ' to mobx-remotedev, which is not an observable.');

{
"name": "mobx-remotedev",
"version": "0.1.0",
"version": "0.1.1",
"description": "Remote debugging for mobx.",

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

@@ -10,3 +10,5 @@ import mobx from 'mobx';

} else if (typeof store === 'function') {
store = class extends store { // eslint-disable-line no-param-reassign
/* eslint-disable no-param-reassign */
if (!config.name) config.name = store.name;
store = class extends store {
constructor(...args) {

@@ -17,2 +19,3 @@ super(...args);

};
/* eslint-enable */
} else {

@@ -19,0 +22,0 @@ console.warn(`Passed ${typeof store} to mobx-remotedev, which is not an observable.`);

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