@twin.org/nft-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.
@@ -41,7 +42,7 @@ class NftClient extends apiCore.BaseRestClient {
41
42
  namespace
42
43
  }
43
44
  });
44
- return response.headers.Location;
45
+ return response.headers[web.HeaderTypes.Location];
45
46
  }
46
47
  /**
47
48
  * Resolve an NFT.
@@ -1,5 +1,6 @@
1
1
  import { BaseRestClient } from '@twin.org/api-core';
2
2
  import { Guards, Urn } 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.
@@ -39,7 +40,7 @@ class NftClient extends BaseRestClient {
39
40
  namespace
40
41
  }
41
42
  });
42
- return response.headers.Location;
43
+ return response.headers[HeaderTypes.Location];
43
44
  }
44
45
  /**
45
46
  * Resolve an NFT.
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/nft-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/nft-rest-client",
3
- "version": "0.0.1-next.4",
3
+ "version": "0.0.1-next.6",
4
4
  "description": "NFT contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,8 @@
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/entity": "next",
21
21
  "@twin.org/nameof": "next",
22
- "@twin.org/nft-models": "0.0.1-next.4"
22
+ "@twin.org/nft-models": "0.0.1-next.6",
23
+ "@twin.org/web": "next"
23
24
  },
24
25
  "main": "./dist/cjs/index.cjs",
25
26
  "module": "./dist/esm/index.mjs",
@@ -30,7 +31,7 @@
30
31
  "import": "./dist/esm/index.mjs",
31
32
  "types": "./dist/types/index.d.ts"
32
33
  },
33
- "./locales": "./locales"
34
+ "./locales/*.json": "./locales/*.json"
34
35
  },
35
36
  "files": [
36
37
  "dist/cjs",