@xapi-js/adaptor-fetch 1.2.0 → 1.3.0

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/index.cjs CHANGED
@@ -46,8 +46,7 @@ async function xapiFetch(url, xapi, options) {
46
46
  body: xml
47
47
  });
48
48
  if (!response.body) throw new Error("Response body is empty");
49
- const text = await response.text();
50
- return (0, __xapi_js_core.parse)(text);
49
+ return (0, __xapi_js_core.parse)(await response.text());
51
50
  }
52
51
 
53
52
  //#endregion
package/dist/index.js CHANGED
@@ -22,8 +22,7 @@ async function xapiFetch(url, xapi, options) {
22
22
  body: xml
23
23
  });
24
24
  if (!response.body) throw new Error("Response body is empty");
25
- const text = await response.text();
26
- return parse(text);
25
+ return parse(await response.text());
27
26
  }
28
27
 
29
28
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xapi-js/adaptor-fetch",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "author": "Clickin <josh87786@gmail.com>",
32
32
  "dependencies": {
33
33
  "vitest": "^3.2.4",
34
- "@xapi-js/core": "1.2.0"
34
+ "@xapi-js/core": "1.3.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.0.0",