@utaba/deep-memory 0.9.2 → 0.10.0
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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -311,6 +311,9 @@ var TraversalTimeoutError = class extends DeepMemoryError {
|
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
+
// src/core/DeepMemory.ts
|
|
315
|
+
var import_node_crypto = require("crypto");
|
|
316
|
+
|
|
314
317
|
// src/entities/IdGenerator.ts
|
|
315
318
|
function slugify(text) {
|
|
316
319
|
return text.toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
@@ -3490,7 +3493,7 @@ var EventBus = class {
|
|
|
3490
3493
|
};
|
|
3491
3494
|
|
|
3492
3495
|
// src/portability/RepositoryExporter.ts
|
|
3493
|
-
var LIBRARY_VERSION = true ? "0.
|
|
3496
|
+
var LIBRARY_VERSION = true ? "0.10.0" : "0.1.0";
|
|
3494
3497
|
var RepositoryExporter = class {
|
|
3495
3498
|
storage;
|
|
3496
3499
|
provenance;
|
|
@@ -4142,10 +4145,7 @@ var RepositoryImporter = class {
|
|
|
4142
4145
|
// src/core/DeepMemory.ts
|
|
4143
4146
|
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
4144
4147
|
function generateId() {
|
|
4145
|
-
return
|
|
4146
|
-
const r = Math.random() * 16 | 0;
|
|
4147
|
-
return (c === "x" ? r : r & 3 | 8).toString(16);
|
|
4148
|
-
});
|
|
4148
|
+
return (0, import_node_crypto.randomUUID)();
|
|
4149
4149
|
}
|
|
4150
4150
|
function isValidUuid(value) {
|
|
4151
4151
|
return UUID_RE.test(value);
|