@vtecx/vtecxnext 1.1.5 → 1.1.6

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/vtecxnext.js CHANGED
@@ -3295,6 +3295,11 @@ const getJson = async (response) => {
3295
3295
  if (response.status === 204) {
3296
3296
  return null;
3297
3297
  }
3298
+ // content-length=0の場合nullを返す
3299
+ const contentLength = response.headers.get('content-length');
3300
+ if (contentLength === '0') {
3301
+ return null;
3302
+ }
3298
3303
  try {
3299
3304
  return await response.json();
3300
3305
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtecx/vtecxnext",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "vte.cx Next.js api",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -23,10 +23,10 @@
23
23
  "homepage": "https://github.com/reflexworks/vtecxnext#readme",
24
24
  "devDependencies": {
25
25
  "@types/formidable": "^2.0.5",
26
- "@types/node": "^18.11.17",
26
+ "@types/node": "^18.16.12",
27
27
  "@types/sqlstring": "^2.3.0",
28
28
  "ts-node": "^10.9.1",
29
- "typescript": "^4.9.4"
29
+ "typescript": "^4.9.5"
30
30
  },
31
31
  "dependencies": {
32
32
  "formidable": "^2.1.1",