@twin.org/blob-storage-rest-client 0.0.1-next.3 → 0.0.1-next.5
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.
- package/dist/cjs/index.cjs +2 -1
- package/dist/esm/index.mjs +2 -1
- package/docs/changelog.md +1 -1
- package/package.json +4 -29
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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
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.
|
|
3
|
+
"version": "0.0.1-next.5",
|
|
4
4
|
"description": "Blob storage implementation which can connect to REST endpoints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,39 +13,14 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist coverage docs/reference",
|
|
18
|
-
"build": "tspc",
|
|
19
|
-
"test": "vitest --run --config ./vitest.config.ts --no-cache",
|
|
20
|
-
"coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
|
|
21
|
-
"bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
|
|
22
|
-
"bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
|
|
23
|
-
"bundle": "npm run bundle:esm && npm run bundle:cjs",
|
|
24
|
-
"docs:clean": "rimraf docs/reference",
|
|
25
|
-
"docs:generate": "typedoc",
|
|
26
|
-
"docs": "npm run docs:clean && npm run docs:generate",
|
|
27
|
-
"dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
|
|
28
|
-
},
|
|
29
16
|
"dependencies": {
|
|
30
17
|
"@twin.org/api-core": "next",
|
|
31
18
|
"@twin.org/api-models": "next",
|
|
32
|
-
"@twin.org/blob-storage-models": "0.0.1-next.
|
|
19
|
+
"@twin.org/blob-storage-models": "0.0.1-next.5",
|
|
33
20
|
"@twin.org/core": "next",
|
|
34
21
|
"@twin.org/data-json-ld": "next",
|
|
35
|
-
"@twin.org/nameof": "next"
|
|
36
|
-
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@twin.org/nameof-transformer": "next",
|
|
39
|
-
"@vitest/coverage-v8": "2.1.1",
|
|
40
|
-
"copyfiles": "2.4.1",
|
|
41
|
-
"rimraf": "6.0.1",
|
|
42
|
-
"rollup": "4.22.0",
|
|
43
|
-
"rollup-plugin-typescript2": "0.36.0",
|
|
44
|
-
"ts-patch": "3.2.1",
|
|
45
|
-
"typedoc": "0.26.7",
|
|
46
|
-
"typedoc-plugin-markdown": "4.2.7",
|
|
47
|
-
"typescript": "5.6.2",
|
|
48
|
-
"vitest": "2.1.1"
|
|
22
|
+
"@twin.org/nameof": "next",
|
|
23
|
+
"@twin.org/web": "next"
|
|
49
24
|
},
|
|
50
25
|
"main": "./dist/cjs/index.cjs",
|
|
51
26
|
"module": "./dist/esm/index.mjs",
|