@furystack/rest-service 7.0.10 → 7.0.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/rest-service",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.11",
|
|
4
4
|
"description": "Repository implementation for FuryStack",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@furystack/core": "^12.0.9",
|
|
41
41
|
"@furystack/inject": "^8.0.8",
|
|
42
42
|
"@furystack/repository": "^7.0.9",
|
|
43
|
-
"@furystack/rest": "^5.0.
|
|
43
|
+
"@furystack/rest": "^5.0.10",
|
|
44
44
|
"@furystack/security": "^3.0.9",
|
|
45
45
|
"@furystack/utils": "^4.0.8",
|
|
46
46
|
"ajv": "^8.12.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"semaphore-async-await": "^1.5.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@furystack/rest-client-fetch": "^5.0.
|
|
52
|
+
"@furystack/rest-client-fetch": "^5.0.10",
|
|
53
53
|
"@types/node": "^20.5.3",
|
|
54
54
|
"typescript": "^5.1.6",
|
|
55
55
|
"vitest": "^0.34.2"
|
|
@@ -8,6 +8,7 @@ import { DefaultSession } from './models/default-session'
|
|
|
8
8
|
import { JsonResult } from './request-action-implementation'
|
|
9
9
|
import { useHttpAuthentication, useRestService } from './helpers'
|
|
10
10
|
import { describe, it, expect } from 'vitest'
|
|
11
|
+
import { serializeValue } from '@furystack/rest'
|
|
11
12
|
|
|
12
13
|
class UserWithPassword extends User {
|
|
13
14
|
password!: string
|
|
@@ -139,7 +140,7 @@ describe('@furystack/rest-service inregration tests', () => {
|
|
|
139
140
|
await usingAsync(new Injector(), async (i) => {
|
|
140
141
|
const { apiUrl } = await prepareInjector(i)
|
|
141
142
|
|
|
142
|
-
const response = await fetch(PathHelper.joinPaths(apiUrl,
|
|
143
|
+
const response = await fetch(PathHelper.joinPaths(apiUrl, `testQuery?param1=${serializeValue('foo')}`))
|
|
143
144
|
expect(response.status).toBe(200)
|
|
144
145
|
const result = await response.json()
|
|
145
146
|
expect(result).toEqual({ param1Value: 'foo' })
|