@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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/bundle.umd.dev.js +12548 -76
  3. package/bundle.umd.min.js +1 -1
  4. package/index.js +5 -1
  5. package/index.web.js +5 -1
  6. package/lib/cache/MetadataCacheRepository.js +1 -0
  7. package/lib/cache/QuadTreeIndexCacheRepository.js +1 -0
  8. package/lib/cache/index.js +5 -1
  9. package/lib/client/ArtifactClient.d.ts +2 -1
  10. package/lib/client/ArtifactClient.js +31 -43
  11. package/lib/client/CatalogClient.d.ts +3 -1
  12. package/lib/client/CatalogClient.js +59 -78
  13. package/lib/client/CatalogRequest.js +4 -3
  14. package/lib/client/CatalogVersionRequest.js +6 -3
  15. package/lib/client/CatalogsRequest.js +5 -3
  16. package/lib/client/ConfigClient.d.ts +1 -1
  17. package/lib/client/ConfigClient.js +13 -23
  18. package/lib/client/DataRequest.js +7 -6
  19. package/lib/client/IndexLayerClient.d.ts +1 -1
  20. package/lib/client/IndexLayerClient.js +37 -40
  21. package/lib/client/IndexQueryRequest.js +2 -0
  22. package/lib/client/LayerVersionsRequest.js +5 -3
  23. package/lib/client/PartitionsRequest.js +10 -7
  24. package/lib/client/PollRequest.js +2 -0
  25. package/lib/client/QuadKeyPartitionsRequest.d.ts +1 -1
  26. package/lib/client/QuadKeyPartitionsRequest.js +7 -3
  27. package/lib/client/QuadTreeIndexRequest.d.ts +1 -1
  28. package/lib/client/QuadTreeIndexRequest.js +11 -3
  29. package/lib/client/QueryClient.d.ts +2 -1
  30. package/lib/client/QueryClient.js +85 -96
  31. package/lib/client/SchemaDetailsRequest.js +5 -3
  32. package/lib/client/SchemaRequest.js +5 -3
  33. package/lib/client/SeekRequest.js +3 -0
  34. package/lib/client/StatisticsClient.d.ts +2 -1
  35. package/lib/client/StatisticsClient.js +51 -65
  36. package/lib/client/StatisticsRequest.js +9 -4
  37. package/lib/client/StreamLayerClient.d.ts +4 -1
  38. package/lib/client/StreamLayerClient.js +117 -139
  39. package/lib/client/SubscribeRequest.js +4 -0
  40. package/lib/client/SummaryRequest.js +5 -2
  41. package/lib/client/TileRequest.js +6 -6
  42. package/lib/client/UnsubscribeRequest.js +2 -0
  43. package/lib/client/VersionedLayerClient.d.ts +45 -1
  44. package/lib/client/VersionedLayerClient.js +133 -147
  45. package/lib/client/VolatileLayerClient.d.ts +4 -1
  46. package/lib/client/VolatileLayerClient.js +104 -108
  47. package/lib/client/index.js +5 -1
  48. package/lib/index.js +5 -1
  49. package/lib/utils/getTile.d.ts +37 -1
  50. package/lib/utils/getTile.js +121 -132
  51. package/lib/utils/index.js +5 -1
  52. package/lib/utils/validateBillingTag.js +1 -2
  53. package/lib/utils/validatePartitionsIdsList.js +1 -2
  54. package/package.json +11 -55
  55. package/webpack.config.js +2 -7
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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 = void 0;
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 = void 0;
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": "2.0.0",
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": "tslint -c tslint.json -p tsconfig.json",
15
- "test": "tsc -p ./test/tsconfig.json && mocha",
16
- "coverage": "nyc npm run test",
17
- "codecov": "npm run coverage && nyc report --reporter=lcov",
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.NODE_ENV=production",
21
- "bundle:dev": "webpack --env.NODE_ENV=development"
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": "^2.0.0",
53
- "@here/olp-sdk-dataservice-api": "^2.0.0",
54
- "@here/olp-sdk-fetch": "^2.0.0"
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": ">= 18.0.0"
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 ? '.min' : '.dev'}.js`,
15
+ filename: `bundle.umd${isProd ? ".min" : ".dev"}.js`,
17
16
  path: path.resolve(__dirname),
18
17
  libraryTarget: "umd",
19
- globalObject: 'this'
20
- },
21
- optimization: {
22
- minimize: true,
23
- minimizer: [new TerserPlugin()],
18
+ globalObject: "this"
24
19
  }
25
20
  };
26
21
  };