rxjs-tracer
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -17,5 +17,5 @@ function t(x){function H(){try{return y.apply(this,arguments)}catch(b){return z.f.e=b,z.f}}function A(b,a){b.index+=a;b.children&&(b.children=b.children.map(function(c){return A(c,a)}));return b}var g="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},k=function(b,a){return a={K:{}},b(a,a.K),a.K}(function(b,a){a.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof g&&g.global=== | ||
function(){var a=this.destination;a&&a.complete&&this.destination.complete()};a.prototype.o=function(a){return this.source?this.source.subscribe(a):n.EMPTY};return a}(F),V=function(){function b(a,b){this.C=a;this.data=b}b.prototype.D=function(a){this.data.value=a;this.l&&(a=this.W.raw(),this.l.next(a))};return b}(),W=function(){function b(a,b,d){this.data=a;this.depth=b;this.index=d;this.children=[]}b.prototype.I=function(a){this.children.push(a)};b.prototype.value=function(){return this.children&& | ||
0<=this.children.length?1===this.children.length?this.data.value:this.children.map(function(a){return a.value()}):this.data.value};b.prototype.raw=function(){var a={id:this.id,depth:this.depth,index:this.index,value:this.value(),children:[]};this.children&&0<this.children.length&&(a.children=this.children.map(function(a){return a.raw()}));return a};return b}();window.Observable=l;var G=new F;window.RxTrackerData=G;var h={},X=0,Y=l.prototype.subscribe(l.prototype).subscribe=function(b,a,c){var d=this.X, | ||
f=[].slice.call(arguments);if(b)if("function"===typeof b){var e=b;b=function(){h[d]&&h[d].D(arguments[0]);e.apply(this,arguments)};f[0]=b}else{if(0<b.constructor.name.indexOf("Subscriber")&&0>this.constructor.name.indexOf("Array")){var g=b.next;b.next=function(){h[d]&&h[d].D(arguments[0]);g.apply(b,arguments)}}}else f=[function(a){h[d]&&h[d].D(a)}];return Y.apply(this,f)};x.Z=function(b){function a(b,d,g){"object"!==typeof b||b.__id||(b.__id="id"+X++);c=Math.min(c,g);var e;e=h[b.__id]?h[b.__id].data: | ||
0<=this.children.length?1===this.children.length?this.data.value:this.children.map(function(a){return a.value()}):this.data.value};b.prototype.raw=function(){var a={id:this.id,depth:this.depth,index:this.index,value:this.value(),children:[]};this.children&&0<this.children.length&&(a.children=this.children.map(function(a){return a.raw()}));return a};return b}(),G=new F;window&&(window.Observable=l,window.RxTrackerData=G);var h={},X=0,Y=l.prototype.subscribe(l.prototype).subscribe=function(b,a,c){var d= | ||
this.X,f=[].slice.call(arguments);if(b)if("function"===typeof b){var e=b;b=function(){h[d]&&h[d].D(arguments[0]);e.apply(this,arguments)};f[0]=b}else{if(0<b.constructor.name.indexOf("Subscriber")&&0>this.constructor.name.indexOf("Array")){var g=b.next;b.next=function(){h[d]&&h[d].D(arguments[0]);g.apply(b,arguments)}}}else f=[function(a){h[d]&&h[d].D(a)}];return Y.apply(this,f)};x.Z=function(b){function a(b,d,g){"object"!==typeof b||b.__id||(b.__id="id"+X++);c=Math.min(c,g);var e;e=h[b.__id]?h[b.__id].data: | ||
{name:b.constructor.name.replace("Observable","$")};var f=new W(e,d,g);"object"===typeof b?(h[b.__id]||(h[b.__id]=new V(b,e)),f.id=b.__id):e.value=b;b.O&&(e.value=b.value);b.operator&&(e.S=b.operator.constructor.name.replace("Operator",""));b.source&&(e=a(b.source,d+1,g),f.I(e));b.array&&b.array.forEach(function(c,e){c=a(c,d+1,g+e+1-(b.array.length+1)/2);f.I(c);return c});return f}var c=0,d=a(b,0,1),c=-Math.min(c,0),d=A(d,c);h[b.__id].W=d;return h[b.__id].l=G};Object.defineProperty(x,"__esModule", | ||
{value:!0})}"object"===typeof exports&&"undefined"!==typeof module?t(exports):"function"===typeof define&&define.Y?define(["exports"],t):t(this.T=this.T||{}); |
@@ -1019,5 +1019,7 @@ (function (global, factory) { | ||
window['Observable'] = Observable_2; | ||
var subject$ = new Subject_2(); | ||
window['RxTrackerData'] = subject$; | ||
if (window) { | ||
window['Observable'] = Observable_2; | ||
window['RxTrackerData'] = subject$; | ||
} | ||
var trackerMap = {}; | ||
@@ -1024,0 +1026,0 @@ var counter = 0; |
@@ -6,5 +6,7 @@ "use strict"; | ||
var tracker_node_1 = require('./tracker-node'); | ||
window['Observable'] = Observable_1.Observable; | ||
var subject$ = new Subject_1.Subject(); | ||
window['RxTrackerData'] = subject$; | ||
if (window) { | ||
window['Observable'] = Observable_1.Observable; | ||
window['RxTrackerData'] = subject$; | ||
} | ||
var trackerMap = {}; | ||
@@ -11,0 +13,0 @@ var counter = 0; |
@@ -5,5 +5,7 @@ import { Observable } from 'rxjs/Observable'; | ||
import { TrackerTreeNode } from './tracker-node'; | ||
window['Observable'] = Observable; | ||
var subject$ = new Subject(); | ||
window['RxTrackerData'] = subject$; | ||
if (window) { | ||
window['Observable'] = Observable; | ||
window['RxTrackerData'] = subject$; | ||
} | ||
var trackerMap = {}; | ||
@@ -10,0 +12,0 @@ var counter = 0; |
{ | ||
"name": "rxjs-tracer", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A simple RxJS data tracer", | ||
@@ -5,0 +5,0 @@ "author": "xufei <xu.fei@outlook.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
121251
1579