Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@here/harp-mapview-decoder

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@here/harp-mapview-decoder - npm Package Compare versions

Comparing version
0.18.0
to
0.19.0
+5
-0
lib/DataProvider.d.ts

@@ -44,3 +44,8 @@ import "@here/harp-fetch";

onDidInvalidate?(listener: () => void): () => void;
/**
* Destroys this `DataProvider`. Implementations of `DataProvider` must dispose of
* asynchronous operations and services here.
*/
dispose(): void;
}
//# sourceMappingURL=DataProvider.d.ts.map
+3
-1

@@ -19,2 +19,3 @@ import "@here/harp-fetch";

getTile(_tileKey: TileKey, _abortSignal?: AbortSignal): Promise<ArrayBufferLike>;
/** @override */ dispose(): void;
}

@@ -25,3 +26,3 @@ /**

*
* The URL is construced using the following formula:
* The URL is constructed using the following formula:
* `${this.basePath}/${tileKey.mortonCode()}.bin`

@@ -46,3 +47,4 @@ */

getTile(tileKey: TileKey, abortSignal?: AbortSignal): Promise<ArrayBufferLike>;
/** @override */ dispose(): void;
}
//# sourceMappingURL=TestDataProviders.d.ts.map

@@ -33,2 +33,5 @@ "use strict";

}
/** @override */ dispose() {
// Nothing to be done here.
}
}

@@ -40,3 +43,3 @@ exports.TestSingleFileDataProvider = TestSingleFileDataProvider;

*
* The URL is construced using the following formula:
* The URL is constructed using the following formula:
* `${this.basePath}/${tileKey.mortonCode()}.bin`

@@ -72,4 +75,7 @@ */

}
/** @override */ dispose() {
// Nothing to be done here.
}
}
exports.TestTilesDataProvider = TestTilesDataProvider;
//# sourceMappingURL=TestDataProviders.js.map

@@ -73,3 +73,3 @@ import { Definitions, ITileDecoder, StyleSet, Theme, TileInfo } from "@here/harp-datasource-protocol";

*/
export declare class TileDataSource<TileType extends Tile> extends DataSource {
export declare class TileDataSource<TileType extends Tile = Tile> extends DataSource {
private readonly m_tileFactory;

@@ -76,0 +76,0 @@ private readonly m_options;

@@ -88,2 +88,3 @@ "use strict";

this.decoder.dispose();
this.dataProvider().dispose();
}

@@ -90,0 +91,0 @@ /** @override */

import { ITiler } from "@here/harp-datasource-protocol";
import { WorkerService, WorkerServiceResponse } from "./WorkerService";
/**
* An extension to [[WorkerService]], the `TilerService` implements an asynchronous (message based)
* service to tile untiled payloads in web workers. The `TilerService` itself lives in the web
* worker, and communicates with messages by means of a [[ConcurrentWorkerSet]] with the
* An extension to {@link WorkerService}, the `TilerService`
* implements an asynchronous (message based)
* service to tile untiled payloads in web workers.
*
* @remarks
* The `TilerService` itself lives in the web
* worker, and communicates with messages by means of a `ConcurrentWorkerSet` with the
* application.
*
* The `TilerService` registers tile indices (parent tile to be subdivided) by handling a
* [[RegisterIndexRequest]], and can later retrieve tiled payloads from through the [[TileRequest]].
* The data is sent back in form of a [[WorkerServiceResponse]].
* `RegisterIndexRequest`, and can later retrieve tiled payloads from through the `TileRequest`.
* The data is sent back in form of a {@link WorkerServiceResponse}.
*/

@@ -16,3 +20,3 @@ export declare class TilerService extends WorkerService {

/**
* Start a [[TilerService]].
* Start a `TilerService`.
*

@@ -32,4 +36,4 @@ * @param serviceId - Service id. Must be unique.

*
* @param request - [[WorkerTilerProtocol]] request.
* @returns A promise which resolves to a [[WorkerServiceResponse]].
* @param request - {@link WorkerTilerProtocol} request.
* @returns A promise which resolves to a {@link WorkerServiceResponse}.
* @override

@@ -36,0 +40,0 @@ */

@@ -14,10 +14,14 @@ "use strict";

/**
* An extension to [[WorkerService]], the `TilerService` implements an asynchronous (message based)
* service to tile untiled payloads in web workers. The `TilerService` itself lives in the web
* worker, and communicates with messages by means of a [[ConcurrentWorkerSet]] with the
* An extension to {@link WorkerService}, the `TilerService`
* implements an asynchronous (message based)
* service to tile untiled payloads in web workers.
*
* @remarks
* The `TilerService` itself lives in the web
* worker, and communicates with messages by means of a `ConcurrentWorkerSet` with the
* application.
*
* The `TilerService` registers tile indices (parent tile to be subdivided) by handling a
* [[RegisterIndexRequest]], and can later retrieve tiled payloads from through the [[TileRequest]].
* The data is sent back in form of a [[WorkerServiceResponse]].
* `RegisterIndexRequest`, and can later retrieve tiled payloads from through the `TileRequest`.
* The data is sent back in form of a {@link WorkerServiceResponse}.
*/

@@ -36,3 +40,3 @@ class TilerService extends WorkerService_1.WorkerService {

/**
* Start a [[TilerService]].
* Start a `TilerService`.
*

@@ -47,4 +51,4 @@ * @param serviceId - Service id. Must be unique.

*
* @param request - [[WorkerTilerProtocol]] request.
* @returns A promise which resolves to a [[WorkerServiceResponse]].
* @param request - {@link WorkerTilerProtocol} request.
* @returns A promise which resolves to a {@link WorkerServiceResponse}.
* @override

@@ -51,0 +55,0 @@ */

/**
* Response for [[WorkerService]] procession results.
* Response for {@link WorkerService} procession results.
*/

@@ -10,3 +10,3 @@ export interface WorkerServiceResponse {

/**
* Transfer list containing a list of [[ArrayBuffer]] which transfer ownership from web worker
* Transfer list containing a list of `ArrayBuffer` which transfer ownership from web worker
* to UI thread.

@@ -19,3 +19,4 @@ */

*
* Listens to Web Worker messages from [[ConcurrentWorkerSet]] and implements:
* @remarks
* Listens to Web Worker messages from `entWorkerSet` and implements:
* - worker service initialization

@@ -25,5 +26,5 @@ * - request/response scheme

*
* This class should be subclassed to provide concrete like [[TileDecoderService]].
* This class should be subclassed to provide concrete like `TileDecoderService`.
*
* Communication peer for [[ConcurrentWorkerSet]].
* Communication peer for `ConcurrentWorkerSet`.
*/

@@ -53,3 +54,3 @@ export declare abstract class WorkerService {

*
* @param request - [[RequestMessage.request]] as received by `WorkerService`.
* @param request - `RequestMessage.request` as received by `WorkerService`.
*/

@@ -66,7 +67,7 @@ protected handleRequest(request: any): Promise<WorkerServiceResponse>;

/**
* Safety belt over [[handleMessage]] for correct exception handling & logging.
* Safety belt over `handleMessage` for correct exception handling & logging.
*/
private tryHandleMessage;
/**
* Safety belt over [[handleRequest]] for correct exception handling in promise chain.
* Safety belt over `handleRequest` for correct exception handling in promise chain.
*/

@@ -73,0 +74,0 @@ private tryHandleRequest;

@@ -15,3 +15,4 @@ "use strict";

*
* Listens to Web Worker messages from [[ConcurrentWorkerSet]] and implements:
* @remarks
* Listens to Web Worker messages from `entWorkerSet` and implements:
* - worker service initialization

@@ -21,5 +22,5 @@ * - request/response scheme

*
* This class should be subclassed to provide concrete like [[TileDecoderService]].
* This class should be subclassed to provide concrete like `TileDecoderService`.
*
* Communication peer for [[ConcurrentWorkerSet]].
* Communication peer for `ConcurrentWorkerSet`.
*/

@@ -108,3 +109,3 @@ class WorkerService {

*
* @param request - [[RequestMessage.request]] as received by `WorkerService`.
* @param request - `RequestMessage.request` as received by `WorkerService`.
*/

@@ -115,3 +116,3 @@ handleRequest(request) {

/**
* Safety belt over [[handleMessage]] for correct exception handling & logging.
* Safety belt over `handleMessage` for correct exception handling & logging.
*/

@@ -127,3 +128,3 @@ tryHandleMessage(message) {

/**
* Safety belt over [[handleRequest]] for correct exception handling in promise chain.
* Safety belt over `handleRequest` for correct exception handling in promise chain.
*/

@@ -130,0 +131,0 @@ tryHandleRequest(request) {

{
"name": "@here/harp-mapview-decoder",
"version": "0.18.0",
"version": "0.19.0",
"description": "Decoder worker for mapview",

@@ -29,12 +29,12 @@ "main": "index.js",

"dependencies": {
"@here/harp-datasource-protocol": "^0.18.0",
"@here/harp-fetch": "^0.18.0",
"@here/harp-geoutils": "^0.18.0",
"@here/harp-lrucache": "^0.18.0",
"@here/harp-mapview": "^0.18.0",
"@here/harp-utils": "^0.18.0",
"@here/harp-datasource-protocol": "^0.19.0",
"@here/harp-fetch": "^0.19.0",
"@here/harp-geoutils": "^0.19.0",
"@here/harp-lrucache": "^0.19.0",
"@here/harp-mapview": "^0.19.0",
"@here/harp-utils": "^0.19.0",
"geojson-vt": "^3.2.1"
},
"devDependencies": {
"@here/harp-test-utils": "^0.18.0",
"@here/harp-test-utils": "^0.19.0",
"@types/chai": "^4.2.11",

@@ -55,3 +55,3 @@ "@types/chai-as-promised": "^7.1.2",

},
"gitHead": "25538cf6bb5d64df9fba84dea238f6e9ce2aa82a"
"gitHead": "73cc2c0967e4cc21fa0b40d7ee3defe673b6df63"
}