@objectstack/core 3.2.0 → 3.2.2
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/qa/http-adapter.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Microkernel Core for ObjectStack",
|
|
6
6
|
"type": "module",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "^5.0.0",
|
|
18
18
|
"vitest": "^4.0.18",
|
|
19
|
-
"@types/node": "^25.3.
|
|
19
|
+
"@types/node": "^25.3.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"pino": "^10.3.1",
|
|
23
23
|
"pino-pretty": "^13.1.3",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@objectstack/spec": "3.2.
|
|
25
|
+
"@objectstack/spec": "3.2.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"pino": "^8.0.0"
|
package/src/qa/http-adapter.ts
CHANGED
|
@@ -49,8 +49,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
private async updateRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
|
|
52
|
-
const id = data.
|
|
53
|
-
if (!id) throw new Error('Update record requires
|
|
52
|
+
const id = data.id;
|
|
53
|
+
if (!id) throw new Error('Update record requires id in payload');
|
|
54
54
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
55
55
|
method: 'PUT',
|
|
56
56
|
headers,
|
|
@@ -60,8 +60,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
private async deleteRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
|
|
63
|
-
const id = data.
|
|
64
|
-
if (!id) throw new Error('Delete record requires
|
|
63
|
+
const id = data.id;
|
|
64
|
+
if (!id) throw new Error('Delete record requires id in payload');
|
|
65
65
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
66
66
|
method: 'DELETE',
|
|
67
67
|
headers
|
|
@@ -70,8 +70,8 @@ export class HttpTestAdapter implements TestExecutionAdapter {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
private async readRecord(objectName: string, data: Record<string, unknown>, headers: Record<string, string>) {
|
|
73
|
-
const id = data.
|
|
74
|
-
if (!id) throw new Error('Read record requires
|
|
73
|
+
const id = data.id;
|
|
74
|
+
if (!id) throw new Error('Read record requires id in payload');
|
|
75
75
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
76
76
|
method: 'GET',
|
|
77
77
|
headers
|