Comparing version 0.7.5 to 0.7.6
{ | ||
"name": "aurumjs", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Stream based declarative DOM rendering library for javascript", | ||
@@ -5,0 +5,0 @@ "main": "prebuilt/cjs/aurumjs.js", |
@@ -128,2 +128,3 @@ import { AurumServerInfo } from '../aurum_server/aurum_server_client.js'; | ||
constructor(initialValue?: T, name?: string); | ||
toString(): string; | ||
static toDataSource<T>(value: T | DataSource<T>): DataSource<T>; | ||
@@ -334,2 +335,3 @@ static fromEvent<T>(event: EventEmitter<T>, cancellation: CancellationToken): DataSource<T>; | ||
slice(start: number | DataSource<number>, end?: number | DataSource<number>, cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
reduce<R>(reducer: (acc: R, value: T) => R, initial?: R, cancellationToken?: CancellationToken): DataSource<R>; | ||
unique(cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
@@ -352,2 +354,3 @@ indexBy<K extends keyof T>(key: K, cancellationToken?: CancellationToken, config?: ViewConfig): MapDataSource<T[K], T>; | ||
[Symbol.iterator](): IterableIterator<T>; | ||
toString(): string; | ||
static fromFetchText(response: Response, config?: { | ||
@@ -424,2 +427,3 @@ onComplete?: () => void; | ||
flat(cancellationToken?: CancellationToken, config?: ViewConfig): T extends ReadOnlyArrayDataSource<infer U> ? ReadOnlyArrayDataSource<U> : ReadOnlyArrayDataSource<FlatArray<T, 1>>; | ||
reduce<R>(reducer: (acc: R, value: T) => R, initial?: R, cancellationToken?: CancellationToken): DataSource<R>; | ||
reverse(cancellationToken?: CancellationToken, config?: ViewConfig): ReversedArrayView<T>; | ||
@@ -501,2 +505,3 @@ sort(comparator: (a: T, b: T) => number, dependencies?: ReadOnlyDataSource<any>[], cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
static fromMultipleMaps<K, V>(maps: MapDataSource<K, V>[], cancellationToken?: CancellationToken): MapDataSource<K, V>; | ||
toString(): string; | ||
static toMapDataSource<K, V>(value: Map<K, V> | MapDataSource<K, V>): MapDataSource<K, V>; | ||
@@ -503,0 +508,0 @@ /** |
@@ -48,2 +48,3 @@ import { AurumServerInfo } from '../aurum_server/aurum_server_client.js'; | ||
withInitial(value: T): this; | ||
toString(): string; | ||
/** | ||
@@ -50,0 +51,0 @@ * Allows creating a duplex stream that blocks data in one direction. Useful for plugging into code that uses two way flow but only one way is desired |
@@ -60,2 +60,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return this.value.toString(); | ||
} | ||
/** | ||
@@ -62,0 +65,0 @@ * Allows creating a duplex stream that blocks data in one direction. Useful for plugging into code that uses two way flow but only one way is desired |
@@ -17,2 +17,3 @@ import { CancellationToken } from '../utilities/cancellation_token.js'; | ||
static toObjectDataSource<T>(value: T | ObjectDataSource<T>): ObjectDataSource<T>; | ||
toString(): string; | ||
pickObject<K extends keyof T>(key: K, cancellationToken?: CancellationToken): ObjectDataSource<T[K]>; | ||
@@ -19,0 +20,0 @@ pickArray<K extends keyof T>(key: K, cancellationToken?: CancellationToken): ArrayDataSource<FlatArray<T[K], 1>>; |
@@ -21,2 +21,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return this.data.toString(); | ||
} | ||
pickObject(key, cancellationToken) { | ||
@@ -23,0 +26,0 @@ if (typeof this.data[key] === 'object') { |
@@ -14,2 +14,3 @@ import { ArrayDataSource, DataSource } from './data_source.js'; | ||
static toSetDataSource<K>(value: Set<K> | SetDataSource<K>): SetDataSource<K>; | ||
toString(): string; | ||
/** | ||
@@ -16,0 +17,0 @@ * Creates a datasource for a single key of the object |
@@ -20,2 +20,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return this.data.toString(); | ||
} | ||
/** | ||
@@ -22,0 +25,0 @@ * Creates a datasource for a single key of the object |
@@ -128,2 +128,3 @@ import { AurumServerInfo } from '../aurum_server/aurum_server_client.js'; | ||
constructor(initialValue?: T, name?: string); | ||
toString(): string; | ||
static toDataSource<T>(value: T | DataSource<T>): DataSource<T>; | ||
@@ -334,2 +335,3 @@ static fromEvent<T>(event: EventEmitter<T>, cancellation: CancellationToken): DataSource<T>; | ||
slice(start: number | DataSource<number>, end?: number | DataSource<number>, cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
reduce<R>(reducer: (acc: R, value: T) => R, initial?: R, cancellationToken?: CancellationToken): DataSource<R>; | ||
unique(cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
@@ -352,2 +354,3 @@ indexBy<K extends keyof T>(key: K, cancellationToken?: CancellationToken, config?: ViewConfig): MapDataSource<T[K], T>; | ||
[Symbol.iterator](): IterableIterator<T>; | ||
toString(): string; | ||
static fromFetchText(response: Response, config?: { | ||
@@ -424,2 +427,3 @@ onComplete?: () => void; | ||
flat(cancellationToken?: CancellationToken, config?: ViewConfig): T extends ReadOnlyArrayDataSource<infer U> ? ReadOnlyArrayDataSource<U> : ReadOnlyArrayDataSource<FlatArray<T, 1>>; | ||
reduce<R>(reducer: (acc: R, value: T) => R, initial?: R, cancellationToken?: CancellationToken): DataSource<R>; | ||
reverse(cancellationToken?: CancellationToken, config?: ViewConfig): ReversedArrayView<T>; | ||
@@ -501,2 +505,3 @@ sort(comparator: (a: T, b: T) => number, dependencies?: ReadOnlyDataSource<any>[], cancellationToken?: CancellationToken, config?: ViewConfig): ReadOnlyArrayDataSource<T>; | ||
static fromMultipleMaps<K, V>(maps: MapDataSource<K, V>[], cancellationToken?: CancellationToken): MapDataSource<K, V>; | ||
toString(): string; | ||
static toMapDataSource<K, V>(value: Map<K, V> | MapDataSource<K, V>): MapDataSource<K, V>; | ||
@@ -503,0 +508,0 @@ /** |
@@ -48,2 +48,3 @@ import { AurumServerInfo } from '../aurum_server/aurum_server_client.js'; | ||
withInitial(value: T): this; | ||
toString(): string; | ||
/** | ||
@@ -50,0 +51,0 @@ * Allows creating a duplex stream that blocks data in one direction. Useful for plugging into code that uses two way flow but only one way is desired |
@@ -70,2 +70,5 @@ import { syncDuplexDataSource } from '../aurum_server/aurum_server_client.js'; | ||
} | ||
toString() { | ||
return this.value.toString(); | ||
} | ||
/** | ||
@@ -72,0 +75,0 @@ * Allows creating a duplex stream that blocks data in one direction. Useful for plugging into code that uses two way flow but only one way is desired |
@@ -17,2 +17,3 @@ import { CancellationToken } from '../utilities/cancellation_token.js'; | ||
static toObjectDataSource<T>(value: T | ObjectDataSource<T>): ObjectDataSource<T>; | ||
toString(): string; | ||
pickObject<K extends keyof T>(key: K, cancellationToken?: CancellationToken): ObjectDataSource<T[K]>; | ||
@@ -19,0 +20,0 @@ pickArray<K extends keyof T>(key: K, cancellationToken?: CancellationToken): ArrayDataSource<FlatArray<T[K], 1>>; |
@@ -21,2 +21,5 @@ import { EventEmitter } from '../utilities/event_emitter.js'; | ||
} | ||
toString() { | ||
return this.data.toString(); | ||
} | ||
pickObject(key, cancellationToken) { | ||
@@ -23,0 +26,0 @@ if (typeof this.data[key] === 'object') { |
@@ -14,2 +14,3 @@ import { ArrayDataSource, DataSource } from './data_source.js'; | ||
static toSetDataSource<K>(value: Set<K> | SetDataSource<K>): SetDataSource<K>; | ||
toString(): string; | ||
/** | ||
@@ -16,0 +17,0 @@ * Creates a datasource for a single key of the object |
@@ -20,2 +20,5 @@ import { ArrayDataSource, DataSource } from './data_source.js'; | ||
} | ||
toString() { | ||
return this.data.toString(); | ||
} | ||
/** | ||
@@ -22,0 +25,0 @@ * Creates a datasource for a single key of the object |
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 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
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 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
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
4398015
40778