@fabriktor/fx 0.0.59 → 0.0.61

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.
@@ -37,7 +37,7 @@ const msgFeedReplyMissing = "No reply exists for this post.";
37
37
  const msgFeedReferenceAlreadyExists = "A reference already exists for this post.";
38
38
  const msgFeedReferenceMissing = "No reference exists for this post.";
39
39
  const msgFeedObjectsMissing = "Storage download did not return any feed objects.";
40
- const msgFeedObjectURLMissing = "Storage object does not contain a permanent signed URL.";
40
+ const msgFeedObjectURLMissing = "Storage object does not contain a public URL.";
41
41
  const msgFeedObjectMIMEMissing = "Storage object does not contain a MIME prefix.";
42
42
  const msgFeedObjectCaptionMissing = "Storage object does not contain a caption embedding.";
43
43
  export const FeedAction = {
@@ -406,6 +406,7 @@ export class FeedFX {
406
406
  user_id: opts.user_id,
407
407
  uploader_id: opts.uploader_id,
408
408
  full_quality: opts.full_quality,
409
+ public_url: true,
409
410
  files: opts.files,
410
411
  save_to_personal_box: opts.save_to_personal_box,
411
412
  });
@@ -688,8 +689,8 @@ function feedObjects(objects) {
688
689
  }
689
690
  const out = [];
690
691
  for (const object of objects) {
691
- const signed_url = resolvedValue(object.signed_url);
692
- if (signed_url === undefined) {
692
+ const public_url = resolvedValue(object.public_url);
693
+ if (public_url === undefined) {
693
694
  throw errResolveFailed({
694
695
  resource: resourceFeedObject,
695
696
  msg: msgFeedObjectURLMissing,
@@ -710,7 +711,7 @@ function feedObjects(objects) {
710
711
  });
711
712
  }
712
713
  out.push({
713
- signed_url,
714
+ public_url,
714
715
  mime_prefix,
715
716
  embedding,
716
717
  });
@@ -43,6 +43,7 @@ export class StorageFX {
43
43
  owner_id,
44
44
  uploader_id: opts.uploader_id,
45
45
  full_quality: opts.full_quality,
46
+ public_url: opts.public_url,
46
47
  files: opts.files,
47
48
  });
48
49
  return uploadResult(out);
@@ -54,6 +55,7 @@ export class StorageFX {
54
55
  owner_id: opts.owner_id,
55
56
  uploader_id: opts.uploader_id,
56
57
  full_quality: opts.full_quality,
58
+ public_url: opts.public_url,
57
59
  files: opts.files,
58
60
  });
59
61
  if (personal_box_user_id === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,7 +17,7 @@
17
17
  "typescript": "^6.0.3"
18
18
  },
19
19
  "dependencies": {
20
- "@fabriktor/client": "0.0.55",
21
- "@fabriktor/schema": "0.0.36"
20
+ "@fabriktor/client": "0.0.57",
21
+ "@fabriktor/schema": "0.0.38"
22
22
  }
23
23
  }