@twin.org/blob-storage-service 0.0.1-next.13 → 0.0.1-next.14

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.
@@ -371,7 +371,7 @@ async function blobStorageCreate(httpRequestContext, componentName, request) {
371
371
  core.Guards.object(ROUTES_SOURCE, "request.body", request.body);
372
372
  core.Guards.stringBase64(ROUTES_SOURCE, "request.body.blob", request.body.blob);
373
373
  const component = core.ComponentFactory.get(componentName);
374
- const id = await component.create(request.body.blob, request.body.encodingFormat, request.body.fileExtension, request.body.metadata, request.body.namespace, httpRequestContext.nodeIdentity);
374
+ const id = await component.create(request.body.blob, request.body.encodingFormat, request.body.fileExtension, request.body.metadata, request.body.namespace, httpRequestContext.userIdentity, httpRequestContext.nodeIdentity);
375
375
  return {
376
376
  statusCode: web.HttpStatusCode.created,
377
377
  headers: {
@@ -369,7 +369,7 @@ async function blobStorageCreate(httpRequestContext, componentName, request) {
369
369
  Guards.object(ROUTES_SOURCE, "request.body", request.body);
370
370
  Guards.stringBase64(ROUTES_SOURCE, "request.body.blob", request.body.blob);
371
371
  const component = ComponentFactory.get(componentName);
372
- const id = await component.create(request.body.blob, request.body.encodingFormat, request.body.fileExtension, request.body.metadata, request.body.namespace, httpRequestContext.nodeIdentity);
372
+ const id = await component.create(request.body.blob, request.body.encodingFormat, request.body.fileExtension, request.body.metadata, request.body.namespace, httpRequestContext.userIdentity, httpRequestContext.nodeIdentity);
373
373
  return {
374
374
  statusCode: HttpStatusCode.created,
375
375
  headers: {
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/blob-storage-service - Changelog
2
2
 
3
- ## v0.0.1-next.13
3
+ ## v0.0.1-next.14
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/blob-storage-service",
3
- "version": "0.0.1-next.13",
3
+ "version": "0.0.1-next.14",
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.13",
18
+ "@twin.org/blob-storage-models": "0.0.1-next.14",
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/data-json-ld": "next",
21
21
  "@twin.org/data-schema-org": "next",