@rest-vir/run-service 0.8.0 → 0.8.1

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.
@@ -112,7 +112,8 @@ function extractRequestData(body, headers, route) {
112
112
  return undefined;
113
113
  }
114
114
  }
115
- if (isFormDataShape(dataShape.shape) && headers['content-type'] === 'multipart/form-data') {
115
+ if (isFormDataShape(dataShape.shape) &&
116
+ headers['content-type']?.includes('multipart/form-data')) {
116
117
  return body;
117
118
  }
118
119
  else if (!isValidShape(body, dataShape, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rest-vir/run-service",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Run a service defined by @rest-vir/define-service and implemented by @rest-vir/implement-service.",
5
5
  "keywords": [
6
6
  "rest",
@@ -43,8 +43,8 @@
43
43
  "@augment-vir/common": "^31.9.4",
44
44
  "@augment-vir/node": "^31.9.4",
45
45
  "@fastify/websocket": "^11.0.2",
46
- "@rest-vir/define-service": "^0.8.0",
47
- "@rest-vir/implement-service": "^0.8.0",
46
+ "@rest-vir/define-service": "^0.8.1",
47
+ "@rest-vir/implement-service": "^0.8.1",
48
48
  "cluster-vir": "^0.1.0",
49
49
  "date-vir": "^7.2.1",
50
50
  "fastify": "^5.2.1",