@absolutejs/sync 1.7.6 → 1.7.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.
@@ -1105,7 +1105,8 @@ var wrap = (source) => `
1105
1105
  insert: (table, data) => __dispatch(__callId, 'insert', table, data),
1106
1106
  update: (table, data) => __dispatch(__callId, 'update', table, data),
1107
1107
  delete: (table, row) => __dispatch(__callId, 'delete', table, row),
1108
- change: (collection, change) => __dispatch(__callId, 'change', collection, change)
1108
+ change: (collection, change) => __dispatch(__callId, 'change', collection, change),
1109
+ now: () => __dispatch(__callId, 'now')
1109
1110
  };
1110
1111
  return userFn(args, ctx, actions);
1111
1112
  }
@@ -1132,6 +1133,8 @@ var compile = async (source, config) => {
1132
1133
  return a.delete(rest[0], rest[1]);
1133
1134
  case "change":
1134
1135
  return a.change(rest[0], rest[1]);
1136
+ case "now":
1137
+ return a.now();
1135
1138
  default:
1136
1139
  throw new Error(`unknown sandbox action op: ${String(op)}`);
1137
1140
  }
@@ -1647,7 +1650,8 @@ var createSyncEngine = (options = {}) => {
1647
1650
  }
1648
1651
  await writerFor(table).delete(row, ctx, tx);
1649
1652
  buffered.push({ table, change: { op: "delete", row } });
1650
- }
1653
+ },
1654
+ now: () => Date.now()
1651
1655
  };
1652
1656
  return { actions, buffered };
1653
1657
  };
@@ -2831,5 +2835,5 @@ export {
2831
2835
  CdcConsumerSlowError
2832
2836
  };
2833
2837
 
2834
- //# debugId=8409EFFBE552287464756E2164756E21
2838
+ //# debugId=40AF85BFFA0EA08364756E2164756E21
2835
2839
  //# sourceMappingURL=index.js.map