Socket
Socket
Sign inDemoInstall

@here/harp-datasource-protocol

Package Overview
Dependencies
5
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.21.1 to 0.22.0

4

index-decoder.js
"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -15,3 +15,3 @@ * SPDX-License-Identifier: Apache-2.0

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -18,0 +18,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -15,3 +15,3 @@ * SPDX-License-Identifier: Apache-2.0

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -18,0 +18,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -190,3 +190,3 @@ import { OrientedBox3, Projection, Vector3Like } from "@here/harp-geoutils";

technique?: number;
stringCatalog?: Array<string | undefined>;
stringCatalog: Array<string | undefined>;
objInfos?: AttributeMap[];

@@ -206,3 +206,3 @@ }

technique?: number;
stringCatalog?: Array<string | undefined>;
stringCatalog: Array<string | undefined>;
objInfos?: AttributeMap[];

@@ -209,0 +209,0 @@ offsetDirections?: number[];

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -15,3 +15,3 @@ * SPDX-License-Identifier: Apache-2.0

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -18,0 +18,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -47,3 +47,3 @@ import { Projection, TileKey } from "@here/harp-geoutils";

*/
decodeTile(data: ArrayBufferLike | {}, tileKey: TileKey, projection: Projection, requestController?: RequestController): Promise<DecodedTile>;
decodeTile(data: ArrayBufferLike | {}, tileKey: TileKey, projection: Projection, requestController?: RequestController): Promise<DecodedTile | undefined>;
/**

@@ -50,0 +50,0 @@ * Get tile info.

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -13,2 +13,5 @@ import { CallExpr } from "../Expr";

};
slice: {
call: (context: ExprEvaluatorContext, call: CallExpr) => string | any[];
};
};

@@ -15,0 +18,0 @@ export declare const ArrayOperators: OperatorDescriptorMap;

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -83,2 +83,25 @@ * SPDX-License-Identifier: Apache-2.0

}
},
slice: {
call: (context, call) => {
if (call.args.length < 2) {
throw new Error("not enough arguments");
}
const input = context.evaluate(call.args[0]);
if (!(typeof input === "string" || Array.isArray(input))) {
throw new Error("input must be a string or an array");
}
const start = context.evaluate(call.args[1]);
if (typeof start !== "number") {
throw new Error("expected an index");
}
let end;
if (call.args.length > 2) {
end = context.evaluate(call.args[2]);
if (typeof end !== "number") {
throw new Error("expected an index");
}
}
return input.slice(start, end);
}
}

@@ -85,0 +108,0 @@ };

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2020-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2020-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2020-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2020-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -5,3 +5,3 @@ "use strict";

/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -8,0 +8,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -64,3 +64,3 @@ import { Env, Expr, Value } from "./Expr";

*/
export declare type StyleSetOptions = DecoderOptions & {
export declare type StyleSetOptions = Omit<DecoderOptions, "languages"> & {
styleSet: StyleSet;

@@ -67,0 +67,0 @@ };

@@ -5,3 +5,3 @@ "use strict";

/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -467,3 +467,3 @@ * SPDX-License-Identifier: Apache-2.0

}
if (typeof maxZoomLevel === "number" && zoomLevel > maxZoomLevel) {
if (typeof maxZoomLevel === "number" && zoomLevel >= maxZoomLevel) {
return false;

@@ -470,0 +470,0 @@ }

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

@@ -195,2 +195,10 @@ import { JsonExpr } from "./Expr";

side?: DynamicProperty<number>;
/**
* Minimal zoom level. If the current zoom level is smaller, the technique will not be used.
*/
minZoomLevel?: DynamicProperty<number>;
/**
* Maximum zoom level. If the current zoom level is equal to or greater, the technique will not be used.
*/
maxZoomLevel?: DynamicProperty<number>;
}

@@ -467,15 +475,15 @@ export declare enum TextureCoordinateType {

*/
textMinZoomLevel?: number;
textMinZoomLevel?: DynamicProperty<number>;
/**
* Maximum zoomLevel at which to display the label text. No default.
*/
textMaxZoomLevel?: number;
textMaxZoomLevel?: DynamicProperty<number>;
/**
* Minimum zoomLevel at which to display the label icon. No default.
*/
iconMinZoomLevel?: number;
iconMinZoomLevel?: DynamicProperty<number>;
/**
* Maximum zoomLevel at which to display the label icon. No default.
*/
iconMaxZoomLevel?: number;
iconMaxZoomLevel?: DynamicProperty<number>;
/**

@@ -563,6 +571,5 @@ * Icon color.

/**
* If true, the text will appear even if the icon cannot be rendered because of missing icon
* graphics.
* If `true`, text will appear even if the icon is blocked by other labels.
*
* @defaultValue `true`
* @defaultValue `false`
*/

@@ -623,7 +630,9 @@ iconIsOptional?: boolean;

/**
* Name of [[ImageTexture]] definition to use.
* The name of either the {@link ImageTexture} in {@link Theme.imageTextures} or the user image
* cached in {@link @here/harp-mapview#userImageCache} to be rendered as marker.
*/
imageTexture?: DynamicProperty<string>;
/**
* Field name to extract imageTexture content from.
* Field name to extract imageTexture content from, if imageTexture refers to an
* [[ImageTexture]] definition.
*/

@@ -1092,3 +1101,3 @@ imageTextureField?: string;

*
* @defaultValue `false`
* @defaultValue `true` for geometries stored at level less than `12`.
*/

@@ -1211,10 +1220,2 @@ constantHeight?: boolean;

/**
* Minimal zoom level. If the current zoom level is smaller, the technique will not be used.
*/
minZoomLevel?: number;
/**
* Maximum zoom level. If the current zoom level is larger, the technique will not be used.
*/
maxZoomLevel?: number;
/**
* Scaling factor of the text. Defaults to 0.5, reducing the size ot 50% in the distance.

@@ -1221,0 +1222,0 @@ */

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -59,2 +59,4 @@ * SPDX-License-Identifier: Apache-2.0

})(StandardGeometryKind = exports.StandardGeometryKind || (exports.StandardGeometryKind = {}));
// See https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md#ignoredeclarationmerge
// eslint-disable-next-line @typescript-eslint/no-redeclare
exports.GeometryKind = StandardGeometryKind;

@@ -61,0 +63,0 @@ /**

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE
* SPDX-License-Identifier: Apache-2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,0 +3,0 @@ exports.isJsonExprReference = void 0;

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

"use strict";
/*
* Copyright (C) 2017-2020 HERE Europe B.V.
* Copyright (C) 2019-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -5,0 +5,0 @@ * SPDX-License-Identifier: Apache-2.0

{
"name": "@here/harp-datasource-protocol",
"version": "0.21.1",
"version": "0.22.0",
"description": "Components used for the decoding and styling of data that is used by the Datasources.",

@@ -27,21 +27,21 @@ "main": "index.js",

"dependencies": {
"@here/harp-geometry": "^0.21.0",
"@here/harp-geoutils": "^0.21.0",
"@here/harp-utils": "^0.21.0",
"@here/harp-geometry": "^0.22.0",
"@here/harp-geoutils": "^0.22.0",
"@here/harp-utils": "^0.22.0",
"csscolorparser": "^1.0.3"
},
"devDependencies": {
"@here/harp-test-utils": "^0.21.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@here/harp-test-utils": "^0.22.0",
"@types/chai": "^4.2.14",
"@types/mocha": "^8.2.0",
"chai": "^4.0.2",
"cross-env": "^7.0.2",
"mocha": "^7.2.0",
"mocha": "^8.2.1",
"source-map-support": "^0.5.19",
"three": "^0.120.1",
"three": "^0.124.0",
"ts-json-schema-generator": "^0.68.1",
"typescript": "^3.9.3"
"typescript": "^4.1.2"
},
"peerDependencies": {
"three": "^0.120.1"
"three": "^0.124.0"
},

@@ -51,3 +51,3 @@ "publishConfig": {

},
"gitHead": "61c7204953530b21767833282e82ab4619984446"
"gitHead": "a767dad893071489a0b97b2453f0050ea2772dd8"
}

@@ -491,2 +491,11 @@ # Style Expressions

## slice
Extracts a section of the input `string` or `Array`.
```javascript
["slice", input, start, end]
["slice", input, start]
```
## concat

@@ -493,0 +502,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc