@twin.org/blob-storage-rest-client 0.0.1-next.4 → 0.0.1-next.6

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  var apiCore = require('@twin.org/api-core');
4
4
  var core = require('@twin.org/core');
5
+ var web = require('@twin.org/web');
5
6
 
6
7
  // Copyright 2024 IOTA Stiftung.
7
8
  // SPDX-License-Identifier: Apache-2.0.
@@ -45,7 +46,7 @@ class BlobStorageClient extends apiCore.BaseRestClient {
45
46
  namespace
46
47
  }
47
48
  });
48
- return response.headers.location;
49
+ return response.headers[web.HeaderTypes.Location];
49
50
  }
50
51
  /**
51
52
  * Get the blob and metadata.
@@ -1,5 +1,6 @@
1
1
  import { BaseRestClient } from '@twin.org/api-core';
2
2
  import { Guards, Urn, StringHelper, Is } from '@twin.org/core';
3
+ import { HeaderTypes } from '@twin.org/web';
3
4
 
4
5
  // Copyright 2024 IOTA Stiftung.
5
6
  // SPDX-License-Identifier: Apache-2.0.
@@ -43,7 +44,7 @@ class BlobStorageClient extends BaseRestClient {
43
44
  namespace
44
45
  }
45
46
  });
46
- return response.headers.location;
47
+ return response.headers[HeaderTypes.Location];
47
48
  }
48
49
  /**
49
50
  * Get the blob and metadata.
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/blob-storage-rest-client - Changelog
2
2
 
3
- ## v0.0.1-next.4
3
+ ## v0.0.1-next.6
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/blob-storage-rest-client",
3
- "version": "0.0.1-next.4",
3
+ "version": "0.0.1-next.6",
4
4
  "description": "Blob storage implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,10 +16,11 @@
16
16
  "dependencies": {
17
17
  "@twin.org/api-core": "next",
18
18
  "@twin.org/api-models": "next",
19
- "@twin.org/blob-storage-models": "0.0.1-next.4",
19
+ "@twin.org/blob-storage-models": "0.0.1-next.6",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/data-json-ld": "next",
22
- "@twin.org/nameof": "next"
22
+ "@twin.org/nameof": "next",
23
+ "@twin.org/web": "next"
23
24
  },
24
25
  "main": "./dist/cjs/index.cjs",
25
26
  "module": "./dist/esm/index.mjs",