@twin.org/api-auth-entity-storage-rest-client 0.0.1-next.2 → 0.0.1-next.20
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/docs/changelog.md
CHANGED
|
@@ -135,59 +135,3 @@ The refreshed token, if it uses a mechanism with public access.
|
|
|
135
135
|
#### Implementation of
|
|
136
136
|
|
|
137
137
|
`IAuthenticationComponent.refresh`
|
|
138
|
-
|
|
139
|
-
***
|
|
140
|
-
|
|
141
|
-
### getEndpointWithPrefix()
|
|
142
|
-
|
|
143
|
-
> **getEndpointWithPrefix**(): `string`
|
|
144
|
-
|
|
145
|
-
Get the endpoint with the prefix for the namespace.
|
|
146
|
-
|
|
147
|
-
#### Returns
|
|
148
|
-
|
|
149
|
-
`string`
|
|
150
|
-
|
|
151
|
-
The endpoint with namespace prefix attached.
|
|
152
|
-
|
|
153
|
-
#### Inherited from
|
|
154
|
-
|
|
155
|
-
`BaseRestClient.getEndpointWithPrefix`
|
|
156
|
-
|
|
157
|
-
***
|
|
158
|
-
|
|
159
|
-
### fetch()
|
|
160
|
-
|
|
161
|
-
> **fetch**\<`T`, `U`\>(`route`, `method`, `request`?): `Promise`\<`U`\>
|
|
162
|
-
|
|
163
|
-
Perform a request in json format.
|
|
164
|
-
|
|
165
|
-
#### Type Parameters
|
|
166
|
-
|
|
167
|
-
• **T** *extends* `IHttpRequest`\<`any`\>
|
|
168
|
-
|
|
169
|
-
• **U** *extends* `IHttpResponse`\<`any`\>
|
|
170
|
-
|
|
171
|
-
#### Parameters
|
|
172
|
-
|
|
173
|
-
• **route**: `string`
|
|
174
|
-
|
|
175
|
-
The route of the request.
|
|
176
|
-
|
|
177
|
-
• **method**: `HttpMethod`
|
|
178
|
-
|
|
179
|
-
The http method.
|
|
180
|
-
|
|
181
|
-
• **request?**: `T`
|
|
182
|
-
|
|
183
|
-
Request to send to the endpoint.
|
|
184
|
-
|
|
185
|
-
#### Returns
|
|
186
|
-
|
|
187
|
-
`Promise`\<`U`\>
|
|
188
|
-
|
|
189
|
-
The response.
|
|
190
|
-
|
|
191
|
-
#### Inherited from
|
|
192
|
-
|
|
193
|
-
`BaseRestClient.fetch`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/api-auth-entity-storage-rest-client",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.20",
|
|
4
4
|
"description": "Perform REST authentication using entity storage.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,41 +13,14 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist coverage",
|
|
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
|
-
"@twin.org/api-auth-entity-storage-models": "0.0.1-next.
|
|
31
|
-
"@twin.org/api-core": "0.0.1-next.
|
|
32
|
-
"@twin.org/api-models": "0.0.1-next.
|
|
17
|
+
"@twin.org/api-auth-entity-storage-models": "0.0.1-next.20",
|
|
18
|
+
"@twin.org/api-core": "0.0.1-next.20",
|
|
19
|
+
"@twin.org/api-models": "0.0.1-next.20",
|
|
33
20
|
"@twin.org/core": "next",
|
|
34
21
|
"@twin.org/nameof": "next",
|
|
35
22
|
"@twin.org/web": "next"
|
|
36
23
|
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@twin.org/nameof-transformer": "next",
|
|
39
|
-
"@vitest/coverage-v8": "2.1.1",
|
|
40
|
-
"@types/node": "22.5.5",
|
|
41
|
-
"copyfiles": "2.4.1",
|
|
42
|
-
"rimraf": "6.0.1",
|
|
43
|
-
"rollup": "4.21.3",
|
|
44
|
-
"rollup-plugin-typescript2": "0.36.0",
|
|
45
|
-
"ts-patch": "3.2.1",
|
|
46
|
-
"typedoc": "0.26.7",
|
|
47
|
-
"typedoc-plugin-markdown": "4.2.7",
|
|
48
|
-
"typescript": "5.6.2",
|
|
49
|
-
"vitest": "2.1.1"
|
|
50
|
-
},
|
|
51
24
|
"main": "./dist/cjs/index.cjs",
|
|
52
25
|
"module": "./dist/esm/index.mjs",
|
|
53
26
|
"types": "./dist/types/index.d.ts",
|