@twin.org/blob-storage-service 0.0.1-next.36 → 0.0.1-next.37

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.
@@ -450,6 +450,7 @@ async function blobStorageGetContent(httpRequestContext, componentName, request)
450
450
  core.Guards.stringValue(ROUTES_SOURCE, "request.pathParams.id", request.pathParams.id);
451
451
  const component = core.ComponentFactory.get(componentName);
452
452
  const decompress = core.Coerce.boolean(request.query?.decompress);
453
+ const download = core.Coerce.boolean(request.query?.download) ?? false;
453
454
  const result = await component.get(request.pathParams.id, {
454
455
  includeContent: true,
455
456
  decompress,
@@ -475,7 +476,7 @@ async function blobStorageGetContent(httpRequestContext, componentName, request)
475
476
  attachment: {
476
477
  mimeType: compressedEncodingFormat ?? encodingFormat,
477
478
  filename,
478
- inline: !(request.query?.download ?? false)
479
+ inline: !download
479
480
  }
480
481
  };
481
482
  }
@@ -448,6 +448,7 @@ async function blobStorageGetContent(httpRequestContext, componentName, request)
448
448
  Guards.stringValue(ROUTES_SOURCE, "request.pathParams.id", request.pathParams.id);
449
449
  const component = ComponentFactory.get(componentName);
450
450
  const decompress = Coerce.boolean(request.query?.decompress);
451
+ const download = Coerce.boolean(request.query?.download) ?? false;
451
452
  const result = await component.get(request.pathParams.id, {
452
453
  includeContent: true,
453
454
  decompress,
@@ -473,7 +474,7 @@ async function blobStorageGetContent(httpRequestContext, componentName, request)
473
474
  attachment: {
474
475
  mimeType: compressedEncodingFormat ?? encodingFormat,
475
476
  filename,
476
- inline: !(request.query?.download ?? false)
477
+ inline: !download
477
478
  }
478
479
  };
479
480
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @twin.org/blob-storage-service - Changelog
2
2
 
3
+ ## [0.0.1-next.37](https://github.com/twinfoundation/blob-storage/compare/blob-storage-service-v0.0.1-next.36...blob-storage-service-v0.0.1-next.37) (2025-06-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * query params force coercion ([a5e547a](https://github.com/twinfoundation/blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/blob-storage-models bumped from 0.0.1-next.36 to 0.0.1-next.37
16
+ * devDependencies
17
+ * @twin.org/blob-storage-connector-memory bumped from 0.0.1-next.36 to 0.0.1-next.37
18
+
3
19
  ## [0.0.1-next.36](https://github.com/twinfoundation/blob-storage/compare/blob-storage-service-v0.0.1-next.35...blob-storage-service-v0.0.1-next.36) (2025-06-19)
4
20
 
5
21
 
@@ -171,7 +171,10 @@
171
171
  "in": "query",
172
172
  "required": false,
173
173
  "schema": {
174
- "type": "number"
174
+ "type": [
175
+ "number",
176
+ "string"
177
+ ]
175
178
  }
176
179
  },
177
180
  {
@@ -388,7 +391,10 @@
388
391
  "in": "query",
389
392
  "required": false,
390
393
  "schema": {
391
- "type": "string"
394
+ "type": [
395
+ "boolean",
396
+ "string"
397
+ ]
392
398
  },
393
399
  "example": "true"
394
400
  },
@@ -398,7 +404,10 @@
398
404
  "in": "query",
399
405
  "required": false,
400
406
  "schema": {
401
- "type": "string"
407
+ "type": [
408
+ "boolean",
409
+ "string"
410
+ ]
402
411
  }
403
412
  },
404
413
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/blob-storage-service",
3
- "version": "0.0.1-next.36",
3
+ "version": "0.0.1-next.37",
4
4
  "description": "Blob storage contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/api-models": "next",
18
- "@twin.org/blob-storage-models": "0.0.1-next.36",
18
+ "@twin.org/blob-storage-models": "0.0.1-next.37",
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/crypto": "next",
21
21
  "@twin.org/data-json-ld": "next",