@use-stall/core 0.0.6 → 0.0.7
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.
- package/dist/index.js +3 -4
- package/dist/index.mjs +1 -2
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -3753,7 +3753,7 @@ var fulfillments = {
|
|
|
3753
3753
|
};
|
|
3754
3754
|
|
|
3755
3755
|
// src/services/sync/sync.service.ts
|
|
3756
|
-
var
|
|
3756
|
+
var import_uuid = require("uuid");
|
|
3757
3757
|
|
|
3758
3758
|
// src/services/sync/sync-dependencies.ts
|
|
3759
3759
|
var SYNC_DEPENDENCY_LAYERS = {
|
|
@@ -3828,7 +3828,6 @@ var are_dependencies_satisfied = (table, synced_tables) => {
|
|
|
3828
3828
|
};
|
|
3829
3829
|
|
|
3830
3830
|
// src/services/sync/sync.service.ts
|
|
3831
|
-
var uuid2 = () => (0, import_crypto2.randomUUID)();
|
|
3832
3831
|
var MAX_RETRIES = 3;
|
|
3833
3832
|
var replace_temporary_ids = async (props) => {
|
|
3834
3833
|
const { table, stall_offline_id, connector_id, local_data } = props;
|
|
@@ -3986,7 +3985,7 @@ var sync_queue_item = async (props) => {
|
|
|
3986
3985
|
};
|
|
3987
3986
|
var process_sync_queue = async (props) => {
|
|
3988
3987
|
const { sdk } = props;
|
|
3989
|
-
const sync_batch_id =
|
|
3988
|
+
const sync_batch_id = (0, import_uuid.v4)();
|
|
3990
3989
|
try {
|
|
3991
3990
|
const pending_items_by_table = await get_pending_sync_queue();
|
|
3992
3991
|
if (pending_items_by_table.size === 0) {
|
|
@@ -4143,7 +4142,7 @@ var trigger_sync = async (props) => {
|
|
|
4143
4142
|
} catch (error) {
|
|
4144
4143
|
console.error("Error triggering sync:", error);
|
|
4145
4144
|
return {
|
|
4146
|
-
sync_batch_id:
|
|
4145
|
+
sync_batch_id: (0, import_uuid.v4)(),
|
|
4147
4146
|
total: 0,
|
|
4148
4147
|
synced: 0,
|
|
4149
4148
|
failed: 0,
|
package/dist/index.mjs
CHANGED
|
@@ -3689,7 +3689,7 @@ var fulfillments = {
|
|
|
3689
3689
|
};
|
|
3690
3690
|
|
|
3691
3691
|
// src/services/sync/sync.service.ts
|
|
3692
|
-
import {
|
|
3692
|
+
import { v4 as uuid2 } from "uuid";
|
|
3693
3693
|
|
|
3694
3694
|
// src/services/sync/sync-dependencies.ts
|
|
3695
3695
|
var SYNC_DEPENDENCY_LAYERS = {
|
|
@@ -3764,7 +3764,6 @@ var are_dependencies_satisfied = (table, synced_tables) => {
|
|
|
3764
3764
|
};
|
|
3765
3765
|
|
|
3766
3766
|
// src/services/sync/sync.service.ts
|
|
3767
|
-
var uuid2 = () => randomUUID2();
|
|
3768
3767
|
var MAX_RETRIES = 3;
|
|
3769
3768
|
var replace_temporary_ids = async (props) => {
|
|
3770
3769
|
const { table, stall_offline_id, connector_id, local_data } = props;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@use-stall/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"author": "Stall",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/node": "^24.10.2",
|
|
11
|
-
"@use-stall/types": "^0.2.
|
|
11
|
+
"@use-stall/types": "^0.2.9",
|
|
12
12
|
"dexie": "^4.2.1",
|
|
13
13
|
"tsup": "^8.5.1",
|
|
14
14
|
"typescript": "^5.9.3"
|
|
@@ -25,5 +25,8 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsup"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"uuid": "^13.0.0"
|
|
28
31
|
}
|
|
29
32
|
}
|