corebasic 1.0.238 → 1.0.239

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.
Files changed (2) hide show
  1. package/libs/elabase.ts +2 -2
  2. package/package.json +1 -1
package/libs/elabase.ts CHANGED
@@ -619,9 +619,9 @@ function execute(arg: DipRequest) {
619
619
 
620
620
  result.getSliceAsText = (offset: number, length: number): string => Cpp.getSliceAsText(result.data, offset, length)
621
621
  result.getSliceAsArrayBuffer = (offset: number, length: number): Buffer => Cpp.getSliceAsArrayBuffer(result.data, offset, length)
622
- result["Content-Type"] = result.headers["content-type"]
622
+ result["Content-Type"] = result.headers["content-type"] as string
623
623
  result.body = result.data
624
- if (result.headers["content-type"].includes("application/json"))
624
+ if ((result.headers["content-type"] as string).includes("application/json"))
625
625
  result.body = JSON.parse(result.data)
626
626
 
627
627
  let parsed = parseBinaryResponse(result)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.238",
4
+ "version": "1.0.239",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "./index.ts",