@fabriktor/client 0.0.100 → 0.0.101

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.
@@ -6,6 +6,7 @@
6
6
  import { ColFeedFeedFavorites, ColFeedFeedPosts, ColFeedFeedReactions, HTTPMethodPost, PathFeedRestrict, PathPull, SvcFeed, } from "@fabriktor/schema";
7
7
  import { requiredToken } from "../core/auth.js";
8
8
  import { newCRUDClient } from "../core/crud.js";
9
+ import { newIdempotencyKey } from "../core/idempotency.js";
9
10
  import { buildPath } from "../core/path.js";
10
11
  export class FeedClient {
11
12
  feed_posts;
@@ -99,7 +100,7 @@ export class FeedClient {
99
100
  token,
100
101
  body,
101
102
  signal,
102
- idempotency_key,
103
+ idempotency_key: idempotency_key ?? newIdempotencyKey(),
103
104
  });
104
105
  }
105
106
  async restrict(opts) {
@@ -6,6 +6,7 @@
6
6
  import { ColMarketplaceMarketplaceFavorites, ColMarketplaceMarketplacePosts, HTTPMethodPost, PathPull, SvcMarketplace, } from "@fabriktor/schema";
7
7
  import { requiredToken } from "../core/auth.js";
8
8
  import { newCRUDClient } from "../core/crud.js";
9
+ import { newIdempotencyKey } from "../core/idempotency.js";
9
10
  import { buildPath } from "../core/path.js";
10
11
  export class MarketplaceClient {
11
12
  marketplace_posts;
@@ -76,7 +77,7 @@ export class MarketplaceClient {
76
77
  token,
77
78
  body,
78
79
  signal,
79
- idempotency_key,
80
+ idempotency_key: idempotency_key ?? newIdempotencyKey(),
80
81
  });
81
82
  }
82
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/client",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {