@punks/backend-entity-manager 0.0.20 → 0.0.21

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/cjs/index.js CHANGED
@@ -30248,6 +30248,13 @@ const toDict = (array, selector) => {
30248
30248
  return data;
30249
30249
  };
30250
30250
 
30251
+ const newUuid$1 = () => {
30252
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
30253
+ var r = (Math.random() * 16) | 0, v = c == "x" ? r : (r & 0x3) | 0x8;
30254
+ return v.toString(16);
30255
+ });
30256
+ };
30257
+
30251
30258
  class EntityCreateAction {
30252
30259
  constructor(services) {
30253
30260
  this.services = services;
@@ -60644,6 +60651,8 @@ exports.EntityManagerModule = __decorate$3([
60644
60651
  })
60645
60652
  ], exports.EntityManagerModule);
60646
60653
 
60654
+ const newUuid = newUuid$1;
60655
+
60647
60656
  exports.EntityManagerException = EntityManagerException;
60648
60657
  exports.EntityManagerSymbols = EntityManagerSymbols;
60649
60658
  exports.EntityNotFoundException = EntityNotFoundException;
@@ -60663,4 +60672,5 @@ exports.WpEntityConverter = WpEntityConverter;
60663
60672
  exports.WpEntityManager = WpEntityManager;
60664
60673
  exports.WpEntityQueryBuilder = WpEntityQueryBuilder;
60665
60674
  exports.WpEntityRepository = WpEntityRepository;
60675
+ exports.newUuid = newUuid;
60666
60676
  //# sourceMappingURL=index.js.map