mobx-remotedev
Advanced tools
Comparing version 0.0.2-alpha-4 to 0.0.2-alpha-5
@@ -7,5 +7,5 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
else if(typeof exports === 'object') | ||
exports["mobxRemotedev"] = factory(require("mobx")); | ||
exports["RemoteDev"] = factory(require("mobx")); | ||
else | ||
root["mobxRemotedev"] = factory(root["mobx"]); | ||
root["RemoteDev"] = factory(root["mobx"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
@@ -12,0 +12,0 @@ return /******/ (function(modules) { // webpackBootstrap |
@@ -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.mobxRemotedev=t(require("mobx")):e.mobxRemotedev=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";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?(s.default.isObservable(e)?(0,p.default)(e,t):"function"==typeof e?e=function(e){function n(){o(this,n);for(var r=arguments.length,u=Array(r),a=0;r>a;a++)u[a]=arguments[a];var c=i(this,e.call.apply(e,[this].concat(u)));return(0,p.default)(c,t),c}return u(n,e),n}(e):console.warn("Passed "+(void 0===e?"undefined":c(e))+" to mobx-remotedev, which is not an observable."),e):e}t.__esModule=!0,t.default=void 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},f=n(1),s=r(f),l=n(5),p=r(l);t.default=a},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){return{type:t?"@@"+e:e}}function i(e){if(!e)return"";var t=c.default.extras.getDebugName(e),n=t.indexOf(".");return n===-1&&(n=void 0),t.substr(0,n)}function u(e,t){e.importState?e.importState(t):Object.keys(t).forEach(function(n){e[n]=t[n]})}t.__esModule=!0,t.createAction=o,t.getName=i,t.setValue=u;var a=n(1),c=r(a)},function(e,t){function n(e,t){if("$"!==t)for(var n=r(t),o=0;n.length>o;o++)t=(""+n[o]).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";t.__esModule=!0,t.dispatchMonitorAction=t.isMonitorAction=void 0;var r=n(6),o=n(2);t.isMonitorAction=function(e){return e.__isRemotedevAction===!0},t.dispatchMonitorAction=function(e){return function(t){"DISPATCH"===t.type&&"JUMP_TO_STATE"===t.payload.type&&(e.__isRemotedevAction=!0,(0,o.setValue)(e,(0,r.parse)(t.state)),e.__isRemotedevAction=!1)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=f.default.extras.getDebugName(e);d[n]=e,g[n]=[];var r=window.devToolsExtension.connect(t);r.init(f.default.toJS(e)),r.subscribe((0,l.dispatchMonitorAction)(e)),y[n]=r}function i(e,t){g[e]&&!d[e].__isRemotedevAction&&g[e].push(function(){y[e].send(t,f.default.toJS(d[e]))})}function u(e){var t=g[e];if(t)for(;t.length;)t.shift()()}function a(e,t){if(o(e,t),!p){p=!0;var n=void 0;f.default.spy(function(t){if(t.spyReportStart){if("reaction"===t.type)return;if(n=(0,s.getName)(t.object||t.target),"action"===t.type){if(t.target!==e)return;var r=(0,s.createAction)(t.name);t.arguments&&t.arguments.length&&(r.arguments=t.arguments),i(n,r)}else t.type&&f.default.isObservable(t.object)&&i(n,(0,s.createAction)(t.type,!0))}else t.spyReportEnd&&u(n)})}}t.__esModule=!0,t.default=a;var c=n(1),f=r(c),s=n(2),l=n(4),p=!1,d={},y={},g={}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=(n(3),n(9));t.decycle=function(e,t,n){"use strict";var o=[],i=[];return function u(e,a,c){var f,s,l,p=n?n(c||"",e):e;if(t.date&&p instanceof Date)return{$jsan:"d"+p.getTime()};if(t.regex&&p instanceof RegExp)return{$jsan:"r"+r.getRegexFlags(p)+","+p.source};if(t.function&&"function"==typeof p)return{$jsan:"f"+r.stringifyFunction(p,t.function)};if(t.undefined&&void 0===p)return{$jsan:"u"};if(t.error&&p instanceof Error)return{$jsan:"e"+p.message};if(p&&p.toJSON)return p.toJSON();if(!("object"!=typeof p||null===p||p instanceof Boolean||p instanceof Date||p instanceof Number||p instanceof RegExp||p instanceof String||p instanceof Error)){for(f=0;o.length>f;f+=1)if(o[f]===p)return{$jsan:i[f]};if(o.push(p),i.push(a),"[object Array]"===Object.prototype.toString.apply(p))for(l=[],f=0;p.length>f;f+=1)l[f]=u(p[f],a+"["+f+"]",f);else{l={};for(s in p)if(Object.prototype.hasOwnProperty.call(p,s)){var d=/^\w+$/.test(s)?"."+s:"["+JSON.stringify(s)+"]";l[s]="$jsan"===s?[u(p[s],a+d)]:u(p[s],a+d,s)}}return l}return p}(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;n.length>o;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(7);t.stringify=function(e,t,n,o){if(4>arguments.length)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,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 c=function(){throw Error("can't run jsan parsed function")};return c.toString=function(){return o},c;case"u":return;case"e":var f=Error(o);return f.stack="Stack is unavailable for jsan parsed errors",f;default:return console.warn("unknown type",e),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";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 f(e,t){return"undefined"!=typeof window&&window.devToolsExtension?(s.default.isObservable(e)?(0,p.default)(e,t):"function"==typeof e?e=function(e){function n(){o(this,n);for(var r=arguments.length,u=Array(r),f=0;f<r;f++)u[f]=arguments[f];var a=i(this,e.call.apply(e,[this].concat(u)));return(0,p.default)(a,t),a}return u(n,e),n}(e):console.warn("Passed "+("undefined"==typeof e?"undefined":a(e))+" to mobx-remotedev, which is not an observable."),e):e}t.__esModule=!0,t.default=void 0;var a="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},c=n(1),s=r(c),l=n(5),p=r(l);t.default=f},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){return{type:t?"@@"+e:e}}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)}function u(e,t){e.importState?e.importState(t):Object.keys(t).forEach(function(n){e[n]=t[n]})}t.__esModule=!0,t.createAction=o,t.getName=i,t.setValue=u;var f=n(1),a=r(f)},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";t.__esModule=!0,t.dispatchMonitorAction=t.isMonitorAction=void 0;var r=n(6),o=n(2);t.isMonitorAction=function(e){return e.__isRemotedevAction===!0},t.dispatchMonitorAction=function(e){return function(t){"DISPATCH"===t.type&&"JUMP_TO_STATE"===t.payload.type&&(e.__isRemotedevAction=!0,(0,o.setValue)(e,(0,r.parse)(t.state)),e.__isRemotedevAction=!1)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=c.default.extras.getDebugName(e);d[n]=e,g[n]=[];var r=window.devToolsExtension.connect(t);r.init(c.default.toJS(e)),r.subscribe((0,l.dispatchMonitorAction)(e)),y[n]=r}function i(e,t){g[e]&&!d[e].__isRemotedevAction&&g[e].push(function(){y[e].send(t,c.default.toJS(d[e]))})}function u(e){var t=g[e];if(t)for(;t.length;)t.shift()()}function f(e,t){if(o(e,t),!p){p=!0;var n=void 0;c.default.spy(function(t){if(t.spyReportStart){if("reaction"===t.type)return;if(n=(0,s.getName)(t.object||t.target),"action"===t.type){if(t.target!==e)return;var r=(0,s.createAction)(t.name);t.arguments&&t.arguments.length&&(r.arguments=t.arguments),i(n,r)}else t.type&&c.default.isObservable(t.object)&&i(n,(0,s.createAction)(t.type,!0))}else t.spyReportEnd&&u(n)})}}t.__esModule=!0,t.default=f;var a=n(1),c=r(a),s=n(2),l=n(4),p=!1,d={},y={},g={}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=(n(3),n(9));t.decycle=function(e,t,n){"use strict";var o=[],i=[];return function u(e,f,a){var c,s,l,p=n?n(a||"",e):e;if(t.date&&p instanceof Date)return{$jsan:"d"+p.getTime()};if(t.regex&&p instanceof RegExp)return{$jsan:"r"+r.getRegexFlags(p)+","+p.source};if(t.function&&"function"==typeof p)return{$jsan:"f"+r.stringifyFunction(p,t.function)};if(t.undefined&&void 0===p)return{$jsan:"u"};if(t.error&&p instanceof Error)return{$jsan:"e"+p.message};if(p&&p.toJSON)return p.toJSON();if(!("object"!=typeof p||null===p||p instanceof Boolean||p instanceof Date||p instanceof Number||p instanceof RegExp||p instanceof String||p instanceof Error)){for(c=0;c<o.length;c+=1)if(o[c]===p)return{$jsan:i[c]};if(o.push(p),i.push(f),"[object Array]"===Object.prototype.toString.apply(p))for(l=[],c=0;c<p.length;c+=1)l[c]=u(p[c],f+"["+c+"]",c);else{l={};for(s in p)if(Object.prototype.hasOwnProperty.call(p,s)){var d=/^\w+$/.test(s)?"."+s:"["+JSON.stringify(s)+"]";l[s]="$jsan"===s?[u(p[s],f+d)]:u(p[s],f+d,s)}}return l}return p}(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(7);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 f=r.decycle(e,u,t);return 1===arguments.length?JSON.stringify(f):JSON.stringify(f,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),f=o.slice(i+1);return RegExp(f,u);case"d":return new Date((+o));case"f":var a=function(){throw new Error("can't run jsan parsed function")};return a.toString=function(){return o},a;case"u":return;case"e":var c=new Error(o);return c.stack="Stack is unavailable for jsan parsed errors",c;default:return console.warn("unknown type",e),e}}}])}); |
{ | ||
"name": "mobx-remotedev", | ||
"version": "0.0.2-alpha-4", | ||
"version": "0.0.2-alpha-5", | ||
"description": "Remote debugging for mobx.", | ||
@@ -14,4 +14,4 @@ "main": "lib/index.js", | ||
"build:lib": "babel src --out-dir lib", | ||
"build:umd": "NODE_ENV=development webpack src/dev.js dist/mobx-remotedev.js --config webpack.config.js", | ||
"build:umd:min": "NODE_ENV=production webpack src/dev.js dist/mobx-remotedev.min.js --config webpack.config.js", | ||
"build:umd": "webpack src/dev.js dist/mobx-remotedev.js --config webpack.config.development.js", | ||
"build:umd:min": "webpack src/dev.js dist/mobx-remotedev.min.js --config webpack.config.production.js", | ||
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min", | ||
@@ -18,0 +18,0 @@ "lint": "eslint src test", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39019