@here/olp-sdk-dataservice-read 2.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bundle.umd.dev.js +12548 -76
- package/bundle.umd.min.js +1 -1
- package/index.js +5 -1
- package/index.web.js +5 -1
- package/lib/cache/MetadataCacheRepository.js +1 -0
- package/lib/cache/QuadTreeIndexCacheRepository.js +1 -0
- package/lib/cache/index.js +5 -1
- package/lib/client/ArtifactClient.d.ts +2 -1
- package/lib/client/ArtifactClient.js +31 -43
- package/lib/client/CatalogClient.d.ts +3 -1
- package/lib/client/CatalogClient.js +59 -78
- package/lib/client/CatalogRequest.js +4 -3
- package/lib/client/CatalogVersionRequest.js +6 -3
- package/lib/client/CatalogsRequest.js +5 -3
- package/lib/client/ConfigClient.d.ts +1 -1
- package/lib/client/ConfigClient.js +13 -23
- package/lib/client/DataRequest.js +7 -6
- package/lib/client/IndexLayerClient.d.ts +1 -1
- package/lib/client/IndexLayerClient.js +37 -40
- package/lib/client/IndexQueryRequest.js +2 -0
- package/lib/client/LayerVersionsRequest.js +5 -3
- package/lib/client/PartitionsRequest.js +10 -7
- package/lib/client/PollRequest.js +2 -0
- package/lib/client/QuadKeyPartitionsRequest.d.ts +1 -1
- package/lib/client/QuadKeyPartitionsRequest.js +7 -3
- package/lib/client/QuadTreeIndexRequest.d.ts +1 -1
- package/lib/client/QuadTreeIndexRequest.js +11 -3
- package/lib/client/QueryClient.d.ts +2 -1
- package/lib/client/QueryClient.js +85 -96
- package/lib/client/SchemaDetailsRequest.js +5 -3
- package/lib/client/SchemaRequest.js +5 -3
- package/lib/client/SeekRequest.js +3 -0
- package/lib/client/StatisticsClient.d.ts +2 -1
- package/lib/client/StatisticsClient.js +51 -65
- package/lib/client/StatisticsRequest.js +9 -4
- package/lib/client/StreamLayerClient.d.ts +4 -1
- package/lib/client/StreamLayerClient.js +117 -139
- package/lib/client/SubscribeRequest.js +4 -0
- package/lib/client/SummaryRequest.js +5 -2
- package/lib/client/TileRequest.js +6 -6
- package/lib/client/UnsubscribeRequest.js +2 -0
- package/lib/client/VersionedLayerClient.d.ts +45 -1
- package/lib/client/VersionedLayerClient.js +133 -147
- package/lib/client/VolatileLayerClient.d.ts +4 -1
- package/lib/client/VolatileLayerClient.js +104 -108
- package/lib/client/index.js +5 -1
- package/lib/index.js +5 -1
- package/lib/utils/getTile.d.ts +37 -1
- package/lib/utils/getTile.js +121 -132
- package/lib/utils/index.js +5 -1
- package/lib/utils/validateBillingTag.js +1 -2
- package/lib/utils/validatePartitionsIdsList.js +1 -2
- package/package.json +11 -55
- package/webpack.config.js +2 -7
package/lib/utils/index.js
CHANGED
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
*/
|
|
20
20
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
21
|
if (k2 === undefined) k2 = k;
|
|
22
|
-
Object.
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
23
27
|
}) : (function(o, m, k, k2) {
|
|
24
28
|
if (k2 === undefined) k2 = k;
|
|
25
29
|
o[k2] = m[k];
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* License-Filename: LICENSE
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.validateBillingTag =
|
|
21
|
+
exports.validateBillingTag = validateBillingTag;
|
|
22
22
|
/**
|
|
23
23
|
* Validates the billinig tag.
|
|
24
24
|
*
|
|
@@ -34,4 +34,3 @@ function validateBillingTag(tag) {
|
|
|
34
34
|
}
|
|
35
35
|
return tag;
|
|
36
36
|
}
|
|
37
|
-
exports.validateBillingTag = validateBillingTag;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* License-Filename: LICENSE
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.validatePartitionsIdsList =
|
|
21
|
+
exports.validatePartitionsIdsList = validatePartitionsIdsList;
|
|
22
22
|
/**
|
|
23
23
|
* Validates a list of partitions IDs.
|
|
24
24
|
*
|
|
@@ -35,4 +35,3 @@ function validatePartitionsIdsList(list) {
|
|
|
35
35
|
}
|
|
36
36
|
return list;
|
|
37
37
|
}
|
|
38
|
-
exports.validatePartitionsIdsList = validatePartitionsIdsList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@here/olp-sdk-dataservice-read",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Wrapper around a subset of the HERE Open Location Platform Data REST API related to reading data from OLP catalogs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"browser": "index.web.js",
|
|
@@ -11,32 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"lint": "
|
|
15
|
-
"test": "
|
|
16
|
-
"coverage": "
|
|
17
|
-
"
|
|
18
|
-
"prepare": "tsc --sourceMap false && npm run bundle",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"coverage": "vitest run --coverage",
|
|
17
|
+
"prepack": "tsc --sourceMap false && npm run bundle",
|
|
19
18
|
"bundle": "npm run bundle:dev && npm run bundle:prod",
|
|
20
|
-
"bundle:prod": "webpack --env
|
|
21
|
-
"bundle:dev": "webpack --env
|
|
22
|
-
},
|
|
23
|
-
"nyc": {
|
|
24
|
-
"include": [
|
|
25
|
-
"lib/**/*.ts",
|
|
26
|
-
"lib/**/*.js"
|
|
27
|
-
],
|
|
28
|
-
"extension": [
|
|
29
|
-
".ts"
|
|
30
|
-
],
|
|
31
|
-
"require": [
|
|
32
|
-
"ts-node/register"
|
|
33
|
-
],
|
|
34
|
-
"reporter": [
|
|
35
|
-
"text",
|
|
36
|
-
"html"
|
|
37
|
-
],
|
|
38
|
-
"sourceMap": true,
|
|
39
|
-
"instrument": true
|
|
19
|
+
"bundle:prod": "webpack --env NODE_ENV=production",
|
|
20
|
+
"bundle:dev": "webpack --env NODE_ENV=development"
|
|
40
21
|
},
|
|
41
22
|
"repository": {
|
|
42
23
|
"type": "git",
|
|
@@ -49,36 +30,11 @@
|
|
|
49
30
|
},
|
|
50
31
|
"license": "Apache-2.0",
|
|
51
32
|
"dependencies": {
|
|
52
|
-
"@here/olp-sdk-core": "^
|
|
53
|
-
"@here/olp-sdk-dataservice-api": "^
|
|
54
|
-
"@here/olp-sdk-fetch": "^
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@types/chai": "^4.2.7",
|
|
58
|
-
"@types/mocha": "^5.2.7",
|
|
59
|
-
"@types/node": "18.7.14",
|
|
60
|
-
"@types/sinon": "7.0.3",
|
|
61
|
-
"@types/sinon-chai": "^3.2.3",
|
|
62
|
-
"chai": "^4.2.0",
|
|
63
|
-
"glob": "^7.1.6",
|
|
64
|
-
"husky": "^3.1.0",
|
|
65
|
-
"lint-staged": "^9.5.0",
|
|
66
|
-
"mocha": "^6.2.2",
|
|
67
|
-
"nyc": "^15.0.0",
|
|
68
|
-
"prettier": "^1.19.1",
|
|
69
|
-
"sinon": "7.4.2",
|
|
70
|
-
"sinon-chai": "^3.4.0",
|
|
71
|
-
"source-map-support": "^0.5.16",
|
|
72
|
-
"ts-node": "10.9.2",
|
|
73
|
-
"tslint": "^6.1.3",
|
|
74
|
-
"tslint-config-prettier": "^1.18.0",
|
|
75
|
-
"typedoc": "^0.22.13",
|
|
76
|
-
"typescript": "4.0.3",
|
|
77
|
-
"webpack": "^4.46.0",
|
|
78
|
-
"webpack-cli": "^3.3.10",
|
|
79
|
-
"terser-webpack-plugin": "^1.4.5"
|
|
33
|
+
"@here/olp-sdk-core": "^3.0.0",
|
|
34
|
+
"@here/olp-sdk-dataservice-api": "^3.0.0",
|
|
35
|
+
"@here/olp-sdk-fetch": "^3.0.0"
|
|
80
36
|
},
|
|
81
37
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
38
|
+
"node": ">= 24.0.0"
|
|
83
39
|
}
|
|
84
40
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
3
2
|
|
|
4
3
|
module.exports = env => {
|
|
5
4
|
const isProd = env.NODE_ENV === "production";
|
|
@@ -13,14 +12,10 @@ module.exports = env => {
|
|
|
13
12
|
},
|
|
14
13
|
entry: "./index.web.js",
|
|
15
14
|
output: {
|
|
16
|
-
filename: `bundle.umd${isProd ?
|
|
15
|
+
filename: `bundle.umd${isProd ? ".min" : ".dev"}.js`,
|
|
17
16
|
path: path.resolve(__dirname),
|
|
18
17
|
libraryTarget: "umd",
|
|
19
|
-
globalObject:
|
|
20
|
-
},
|
|
21
|
-
optimization: {
|
|
22
|
-
minimize: true,
|
|
23
|
-
minimizer: [new TerserPlugin()],
|
|
18
|
+
globalObject: "this"
|
|
24
19
|
}
|
|
25
20
|
};
|
|
26
21
|
};
|