@here/olp-sdk-dataservice-read 1.13.1 → 2.0.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.
@@ -101,7 +101,7 @@ function getTile(request, params, abortSignal) {
101
101
  quadTreeIndex = yield fetchQuadTreeIndex(Object.assign(Object.assign({}, params), { catalogVersion, depth: delta, fetchOptions: request.getFetchOption(), tileKey: parentTileKey, abortSignal, billingTag: request.getBillingTag() })).catch(e => Promise.reject(e));
102
102
  }
103
103
  if (!quadTreeIndex.subQuads || !quadTreeIndex.subQuads.length) {
104
- return Promise.resolve(new Response("No Content", {
104
+ return Promise.resolve(new Response(null, {
105
105
  status: 204,
106
106
  statusText: "No Content"
107
107
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@here/olp-sdk-dataservice-read",
3
- "version": "1.13.1",
3
+ "version": "2.0.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",
@@ -49,14 +49,14 @@
49
49
  },
50
50
  "license": "Apache-2.0",
51
51
  "dependencies": {
52
- "@here/olp-sdk-core": "^1.8.0",
53
- "@here/olp-sdk-dataservice-api": "^1.13.0",
54
- "@here/olp-sdk-fetch": "^1.9.0"
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
55
  },
56
56
  "devDependencies": {
57
57
  "@types/chai": "^4.2.7",
58
58
  "@types/mocha": "^5.2.7",
59
- "@types/node": "^14.11.8",
59
+ "@types/node": "18.7.14",
60
60
  "@types/sinon": "7.0.3",
61
61
  "@types/sinon-chai": "^3.2.3",
62
62
  "chai": "^4.2.0",
@@ -69,16 +69,16 @@
69
69
  "sinon": "7.4.2",
70
70
  "sinon-chai": "^3.4.0",
71
71
  "source-map-support": "^0.5.16",
72
- "ts-node": "^8.5.4",
72
+ "ts-node": "10.9.2",
73
73
  "tslint": "^6.1.3",
74
74
  "tslint-config-prettier": "^1.18.0",
75
75
  "typedoc": "^0.22.13",
76
76
  "typescript": "4.0.3",
77
- "tslib": "1.13.0",
78
77
  "webpack": "^4.46.0",
79
- "webpack-cli": "^3.3.10"
78
+ "webpack-cli": "^3.3.10",
79
+ "terser-webpack-plugin": "^1.4.5"
80
80
  },
81
81
  "engines": {
82
- "node": ">= 10.18.0"
82
+ "node": ">= 18.0.0"
83
83
  }
84
84
  }
package/webpack.config.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const path = require("path");
2
+ const TerserPlugin = require("terser-webpack-plugin");
2
3
 
3
4
  module.exports = env => {
4
5
  const isProd = env.NODE_ENV === "production";
@@ -16,6 +17,10 @@ module.exports = env => {
16
17
  path: path.resolve(__dirname),
17
18
  libraryTarget: "umd",
18
19
  globalObject: 'this'
20
+ },
21
+ optimization: {
22
+ minimize: true,
23
+ minimizer: [new TerserPlugin()],
19
24
  }
20
25
  };
21
26
  };