Skip to content

Commit

Permalink
Hotfix 1.11.1 (#475)
Browse files Browse the repository at this point in the history
This CR fixes the error on the compilation phase,
related to the type checking.
We import the module `fs` only for nodejs,
it's configured in the package.json file,
so we can disable the type checking for the importing
in the private class NodeFileData and it's safe.

Updated versions and CHANGELOG

Resolves: OLPSUP-14784

Signed-off-by: Oleksii Zubko <[email protected]>
  • Loading branch information
OleksiiZubko authored Jun 17, 2021
1 parent 51b7fb7 commit cafa3ba
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 226 deletions.
2 changes: 1 addition & 1 deletion @here/olp-sdk-authentication/test/OAuth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe("oauth-request-offline", function() {

const options: RequestInit & any = fetchMock.calls()[0][1];
expect(options.headers.get("Authorization")).to.be.equal(
`OAuth oauth_consumer_key="mocked-key",oauth_nonce="mocked-nonce",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1550777140",oauth_version="1.0",oauth_signature="v4mS3w5P0ba%2FBmgK2XfS8VzPFy2mUm%2FCZT0KvimSQxo%3D"`
`OAuth oauth_consumer_key="mocked-key",oauth_nonce="mocked-nonce",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1550777140",oauth_version="1.0",oauth_signature="PVYijMWSDplONd9abHA8rx3OuHB7NkxfQqE2jw3I%2FE0%3D"`
);
});

Expand Down
2 changes: 1 addition & 1 deletion @here/olp-sdk-core/lib.version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
* License-Filename: LICENSE
*/

export const LIB_VERSION = "1.11.0";
export const LIB_VERSION = "1.11.1";
4 changes: 2 additions & 2 deletions @here/olp-sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@here/olp-sdk-core",
"version": "1.6.0",
"version": "1.6.1",
"description": "Core features of the HERE Data Platform",
"main": "index.js",
"browser": "index.web.js",
"typings": "index",
"typings": "index.web",
"directories": {
"test": "test",
"lib": "lib"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
* License-Filename: LICENSE
*/

import { fs } from "@here/olp-sdk-core";
import { BlobData } from "@here/olp-sdk-dataservice-write";

// @ts-ignore disable typechecking for this line
import { fs } from "@here/olp-sdk-core";

/**
* @internal
* Implementation of reading bytes from file by filepath
Expand Down
2 changes: 1 addition & 1 deletion @here/olp-sdk-dataservice-write/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-dataservice-write",
"version": "1.6.0",
"version": "1.6.1",
"description": "Wrapper around a subset of the HERE Open Location Platform Data REST API related to writing data to OLP catalogs",
"main": "index.js",
"browser": "index.web.js",
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v1.11.1 (17/06/2021)

**olp-sdk-dataservice-write**

- Disable type checking for line `import { fs } from "@here/olp-sdk-core";` in `NodeFileData` private class.

**olp-sdk-core**

- Change typings settings to `index.web`.

## v1.11.0 (07/06/2021)

**olp-sdk-dataservice-write**
Expand Down
448 changes: 228 additions & 220 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit cafa3ba

Please sign in to comment.