@objectstack/core 3.2.1 → 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 +7 -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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/core@3.2.
|
|
2
|
+
> @objectstack/core@3.2.2 build /home/runner/work/spec/spec/packages/core
|
|
3
3
|
> tsup --config ../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
14
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m314.
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
-
[32mESM[39m [1mdist/index.js [22m[32m147.
|
|
17
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m312.
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m150.95 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m314.18 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 93ms
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m147.91 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m312.55 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 95ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 3692ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m61.79 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m61.79 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2379,8 +2379,8 @@ var HttpTestAdapter = class {
|
|
|
2379
2379
|
return this.handleResponse(response);
|
|
2380
2380
|
}
|
|
2381
2381
|
async updateRecord(objectName, data, headers) {
|
|
2382
|
-
const id = data.
|
|
2383
|
-
if (!id) throw new Error("Update record requires
|
|
2382
|
+
const id = data.id;
|
|
2383
|
+
if (!id) throw new Error("Update record requires id in payload");
|
|
2384
2384
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
2385
2385
|
method: "PUT",
|
|
2386
2386
|
headers,
|
|
@@ -2389,8 +2389,8 @@ var HttpTestAdapter = class {
|
|
|
2389
2389
|
return this.handleResponse(response);
|
|
2390
2390
|
}
|
|
2391
2391
|
async deleteRecord(objectName, data, headers) {
|
|
2392
|
-
const id = data.
|
|
2393
|
-
if (!id) throw new Error("Delete record requires
|
|
2392
|
+
const id = data.id;
|
|
2393
|
+
if (!id) throw new Error("Delete record requires id in payload");
|
|
2394
2394
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
2395
2395
|
method: "DELETE",
|
|
2396
2396
|
headers
|
|
@@ -2398,8 +2398,8 @@ var HttpTestAdapter = class {
|
|
|
2398
2398
|
return this.handleResponse(response);
|
|
2399
2399
|
}
|
|
2400
2400
|
async readRecord(objectName, data, headers) {
|
|
2401
|
-
const id = data.
|
|
2402
|
-
if (!id) throw new Error("Read record requires
|
|
2401
|
+
const id = data.id;
|
|
2402
|
+
if (!id) throw new Error("Read record requires id in payload");
|
|
2403
2403
|
const response = await fetch(`${this.baseUrl}/api/data/${objectName}/${id}`, {
|
|
2404
2404
|
method: "GET",
|
|
2405
2405
|
headers
|