@managesome/eposmatic-toolkit 0.4.93 → 0.4.94

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.
@@ -11,8 +11,9 @@ export const PENDING_UPLOADS_COLLECTION_NAME = 'pending_uploads';
11
11
  * a late discard/confirm can still answer deterministically.
12
12
  *
13
13
  * A repeated `/sign` for the same deterministic path supersedes the row with
14
- * `findOneAndReplace`, so the standard timestamps and lifecycle fields restart
15
- * for the new attempt.
14
+ * `findOneAndReplace`, resetting the attempt timestamps. `committed_at` is
15
+ * sticky once set: a path that has ever been referenced by a document must
16
+ * stay un-discardable even after a new upload signs the same path.
16
17
  */
17
18
  export const PendingUploadSchema = new Schema({
18
19
  path: {
@@ -9,8 +9,9 @@ export declare const PENDING_UPLOADS_COLLECTION_NAME = "pending_uploads";
9
9
  * a late discard/confirm can still answer deterministically.
10
10
  *
11
11
  * A repeated `/sign` for the same deterministic path supersedes the row with
12
- * `findOneAndReplace`, so the standard timestamps and lifecycle fields restart
13
- * for the new attempt.
12
+ * `findOneAndReplace`, resetting the attempt timestamps. `committed_at` is
13
+ * sticky once set: a path that has ever been referenced by a document must
14
+ * stay un-discardable even after a new upload signs the same path.
14
15
  */
15
16
  export declare const PendingUploadSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
16
17
  collection: string;
@@ -14,8 +14,9 @@ exports.PENDING_UPLOADS_COLLECTION_NAME = 'pending_uploads';
14
14
  * a late discard/confirm can still answer deterministically.
15
15
  *
16
16
  * A repeated `/sign` for the same deterministic path supersedes the row with
17
- * `findOneAndReplace`, so the standard timestamps and lifecycle fields restart
18
- * for the new attempt.
17
+ * `findOneAndReplace`, resetting the attempt timestamps. `committed_at` is
18
+ * sticky once set: a path that has ever been referenced by a document must
19
+ * stay un-discardable even after a new upload signs the same path.
19
20
  */
20
21
  exports.PendingUploadSchema = new mongoose_1.Schema({
21
22
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.4.93",
3
+ "version": "0.4.94",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",