Comparing version 0.6.5 to 0.6.6
{ | ||
"name": "aurumjs", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Stream based declarative DOM rendering library for javascript", | ||
@@ -5,0 +5,0 @@ "main": "prebuilt/cjs/aurumjs.js", |
import { DataSource } from './stream/data_source'; | ||
import { EventEmitter } from './utilities/event_emitter'; | ||
export declare let debugMode: boolean; | ||
export declare let diagnosticMode: boolean; | ||
declare global { | ||
interface Window { | ||
__debugUpdates: EventEmitter<{ | ||
source: SerializedStreamData; | ||
newValue: any; | ||
stack: string; | ||
}>; | ||
__debugNewSource: EventEmitter<{ | ||
source: SerializedStreamData; | ||
}>; | ||
__debugLinked: EventEmitter<{ | ||
parent: SerializedStreamData; | ||
child: SerializedStreamData; | ||
}>; | ||
__debugUnlinked: EventEmitter<{ | ||
parent: SerializedStreamData; | ||
child: SerializedStreamData; | ||
}>; | ||
__debugGetStreamData: () => SerializedStreamData[]; | ||
} | ||
} | ||
export declare function enableDiagnosticMode(): void; | ||
@@ -27,0 +5,0 @@ /** |
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.diagnosticMode = false; | ||
const customWindow = globalThis; | ||
let debugStreamData; | ||
@@ -23,7 +24,7 @@ function enableDiagnosticMode() { | ||
setInterval(() => garbageCollect(), 60000); | ||
window.__debugUpdates = new event_emitter_1.EventEmitter(); | ||
window.__debugNewSource = new event_emitter_1.EventEmitter(); | ||
window.__debugLinked = new event_emitter_1.EventEmitter(); | ||
window.__debugUnlinked = new event_emitter_1.EventEmitter(); | ||
window.__debugGetStreamData = () => debugStreamData.map(serializeStreamData); | ||
customWindow.__debugUpdates = new event_emitter_1.EventEmitter(); | ||
customWindow.__debugNewSource = new event_emitter_1.EventEmitter(); | ||
customWindow.__debugLinked = new event_emitter_1.EventEmitter(); | ||
customWindow.__debugUnlinked = new event_emitter_1.EventEmitter(); | ||
customWindow.__debugGetStreamData = () => debugStreamData.map(serializeStreamData); | ||
} | ||
@@ -63,3 +64,3 @@ exports.enableDebugMode = enableDebugMode; | ||
debugStreamData.push(ref); | ||
window.__debugNewSource.fire({ | ||
customWindow.__debugNewSource.fire({ | ||
source: serializeStreamData(ref) | ||
@@ -80,3 +81,3 @@ }); | ||
cref.parents.push(pref.id); | ||
window.__debugLinked.fire({ | ||
customWindow.__debugLinked.fire({ | ||
child: serializeStreamData(cref), | ||
@@ -106,3 +107,3 @@ parent: serializeStreamData(pref) | ||
cref.parents.splice(cindex, 1); | ||
window.__debugUnlinked.fire({ | ||
customWindow.__debugUnlinked.fire({ | ||
child: serializeStreamData(cref), | ||
@@ -119,3 +120,3 @@ parent: serializeStreamData(pref) | ||
ref.value = source.value; | ||
window.__debugUpdates.fire({ | ||
customWindow.__debugUpdates.fire({ | ||
newValue: value, | ||
@@ -122,0 +123,0 @@ source: serializeStreamData(ref), |
import { DataSource } from './stream/data_source'; | ||
import { EventEmitter } from './utilities/event_emitter'; | ||
export declare let debugMode: boolean; | ||
export declare let diagnosticMode: boolean; | ||
declare global { | ||
interface Window { | ||
__debugUpdates: EventEmitter<{ | ||
source: SerializedStreamData; | ||
newValue: any; | ||
stack: string; | ||
}>; | ||
__debugNewSource: EventEmitter<{ | ||
source: SerializedStreamData; | ||
}>; | ||
__debugLinked: EventEmitter<{ | ||
parent: SerializedStreamData; | ||
child: SerializedStreamData; | ||
}>; | ||
__debugUnlinked: EventEmitter<{ | ||
parent: SerializedStreamData; | ||
child: SerializedStreamData; | ||
}>; | ||
__debugGetStreamData: () => SerializedStreamData[]; | ||
} | ||
} | ||
export declare function enableDiagnosticMode(): void; | ||
@@ -27,0 +5,0 @@ /** |
import { EventEmitter } from './utilities/event_emitter'; | ||
export let debugMode = false; | ||
export let diagnosticMode = false; | ||
const customWindow = globalThis; | ||
let debugStreamData; | ||
@@ -18,7 +19,7 @@ export function enableDiagnosticMode() { | ||
setInterval(() => garbageCollect(), 60000); | ||
window.__debugUpdates = new EventEmitter(); | ||
window.__debugNewSource = new EventEmitter(); | ||
window.__debugLinked = new EventEmitter(); | ||
window.__debugUnlinked = new EventEmitter(); | ||
window.__debugGetStreamData = () => debugStreamData.map(serializeStreamData); | ||
customWindow.__debugUpdates = new EventEmitter(); | ||
customWindow.__debugNewSource = new EventEmitter(); | ||
customWindow.__debugLinked = new EventEmitter(); | ||
customWindow.__debugUnlinked = new EventEmitter(); | ||
customWindow.__debugGetStreamData = () => debugStreamData.map(serializeStreamData); | ||
} | ||
@@ -57,3 +58,3 @@ function serializeStreamData(ref) { | ||
debugStreamData.push(ref); | ||
window.__debugNewSource.fire({ | ||
customWindow.__debugNewSource.fire({ | ||
source: serializeStreamData(ref) | ||
@@ -73,3 +74,3 @@ }); | ||
cref.parents.push(pref.id); | ||
window.__debugLinked.fire({ | ||
customWindow.__debugLinked.fire({ | ||
child: serializeStreamData(cref), | ||
@@ -98,3 +99,3 @@ parent: serializeStreamData(pref) | ||
cref.parents.splice(cindex, 1); | ||
window.__debugUnlinked.fire({ | ||
customWindow.__debugUnlinked.fire({ | ||
child: serializeStreamData(cref), | ||
@@ -110,3 +111,3 @@ parent: serializeStreamData(pref) | ||
ref.value = source.value; | ||
window.__debugUpdates.fire({ | ||
customWindow.__debugUpdates.fire({ | ||
newValue: value, | ||
@@ -113,0 +114,0 @@ source: serializeStreamData(ref), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
3478965
33768