@sprucelabs/data-stores 28.1.330 → 28.1.332

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.
@@ -1002,8 +1002,8 @@ const databaseAssertUtil = {
1002
1002
  ]);
1003
1003
  }
1004
1004
  catch (err) {
1005
- assert.fail((_a = `Trying to create a unique index on target.organizationId and slug failed.\n\n` +
1006
- err.stack) !== null && _a !== void 0 ? _a : err.message);
1005
+ assert.fail(`Trying to create a unique index on target.organizationId and slug failed.\n\n` +
1006
+ ((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
1007
1007
  }
1008
1008
  yield db.createOne(this.collectionName, {
1009
1009
  name: generateId(),
@@ -1482,8 +1482,8 @@ const databaseAssertUtil = {
1482
1482
  ]);
1483
1483
  }
1484
1484
  catch (err) {
1485
- assert.fail((_a = `syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
1486
- err.stack) !== null && _a !== void 0 ? _a : err.message);
1485
+ assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
1486
+ ((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
1487
1487
  }
1488
1488
  try {
1489
1489
  yield db.createOne(this.collectionName, {
@@ -1494,8 +1494,8 @@ const databaseAssertUtil = {
1494
1494
  });
1495
1495
  }
1496
1496
  catch (err) {
1497
- assert.fail((_b = `Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
1498
- err.stack) !== null && _b !== void 0 ? _b : err.message);
1497
+ assert.fail(`Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
1498
+ ((_b = err.stack) !== null && _b !== void 0 ? _b : err.message));
1499
1499
  }
1500
1500
  yield assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1501
1501
  name: generateId(),
@@ -1530,8 +1530,8 @@ const databaseAssertUtil = {
1530
1530
  ]);
1531
1531
  }
1532
1532
  catch (err) {
1533
- assert.fail((_c = `syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
1534
- err.stack) !== null && _c !== void 0 ? _c : err.message);
1533
+ assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
1534
+ ((_c = err.stack) !== null && _c !== void 0 ? _c : err.message));
1535
1535
  }
1536
1536
  yield db.createOne(this.collectionName, {
1537
1537
  name: generateId(),
@@ -1548,8 +1548,8 @@ const databaseAssertUtil = {
1548
1548
  });
1549
1549
  }
1550
1550
  catch (err) {
1551
- assert.fail((_d = `createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
1552
- err.stack) !== null && _d !== void 0 ? _d : err.message);
1551
+ assert.fail(`createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
1552
+ ((_d = err.stack) !== null && _d !== void 0 ? _d : err.message));
1553
1553
  }
1554
1554
  try {
1555
1555
  yield db.createOne(this.collectionName, {
@@ -1560,8 +1560,8 @@ const databaseAssertUtil = {
1560
1560
  });
1561
1561
  }
1562
1562
  catch (err) {
1563
- assert.fail((_e = `createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
1564
- err.stack) !== null && _e !== void 0 ? _e : err.message);
1563
+ assert.fail(`createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
1564
+ ((_e = err.stack) !== null && _e !== void 0 ? _e : err.message));
1565
1565
  }
1566
1566
  yield assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1567
1567
  name: generateId(),
@@ -913,8 +913,8 @@ const databaseAssertUtil = {
913
913
  ]);
914
914
  }
915
915
  catch (err) {
916
- test_utils_1.assert.fail((_a = `Trying to create a unique index on target.organizationId and slug failed.\n\n` +
917
- err.stack) !== null && _a !== void 0 ? _a : err.message);
916
+ test_utils_1.assert.fail(`Trying to create a unique index on target.organizationId and slug failed.\n\n` +
917
+ ((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
918
918
  }
919
919
  await db.createOne(this.collectionName, {
920
920
  name: (0, generateId_1.default)(),
@@ -1357,8 +1357,8 @@ const databaseAssertUtil = {
1357
1357
  ]);
1358
1358
  }
1359
1359
  catch (err) {
1360
- test_utils_1.assert.fail((_a = `syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
1361
- err.stack) !== null && _a !== void 0 ? _a : err.message);
1360
+ test_utils_1.assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing a unique index with a filter expression.\n\n` +
1361
+ ((_a = err.stack) !== null && _a !== void 0 ? _a : err.message));
1362
1362
  }
1363
1363
  try {
1364
1364
  await db.createOne(this.collectionName, {
@@ -1369,8 +1369,8 @@ const databaseAssertUtil = {
1369
1369
  });
1370
1370
  }
1371
1371
  catch (err) {
1372
- test_utils_1.assert.fail((_b = `Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
1373
- err.stack) !== null && _b !== void 0 ? _b : err.message);
1372
+ test_utils_1.assert.fail(`Creating a record should not have thrown an error after syncing a unique index with a filter expression.\n\n` +
1373
+ ((_b = err.stack) !== null && _b !== void 0 ? _b : err.message));
1374
1374
  }
1375
1375
  await test_utils_1.assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1376
1376
  name: (0, generateId_1.default)(),
@@ -1405,8 +1405,8 @@ const databaseAssertUtil = {
1405
1405
  ]);
1406
1406
  }
1407
1407
  catch (err) {
1408
- test_utils_1.assert.fail((_c = `syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
1409
- err.stack) !== null && _c !== void 0 ? _c : err.message);
1408
+ test_utils_1.assert.fail(`syncUniqueIndexes() should not have thrown an error when syncing multiple unique indexes with filter expressions.\n\n` +
1409
+ ((_c = err.stack) !== null && _c !== void 0 ? _c : err.message));
1410
1410
  }
1411
1411
  await db.createOne(this.collectionName, {
1412
1412
  name: (0, generateId_1.default)(),
@@ -1423,8 +1423,8 @@ const databaseAssertUtil = {
1423
1423
  });
1424
1424
  }
1425
1425
  catch (err) {
1426
- test_utils_1.assert.fail((_d = `createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
1427
- err.stack) !== null && _d !== void 0 ? _d : err.message);
1426
+ test_utils_1.assert.fail(`createOne() should not throw since index has filter { slug: { \$type: 'string' } }.\n\n` +
1427
+ ((_d = err.stack) !== null && _d !== void 0 ? _d : err.message));
1428
1428
  }
1429
1429
  try {
1430
1430
  await db.createOne(this.collectionName, {
@@ -1435,8 +1435,8 @@ const databaseAssertUtil = {
1435
1435
  });
1436
1436
  }
1437
1437
  catch (err) {
1438
- test_utils_1.assert.fail((_e = `createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
1439
- err.stack) !== null && _e !== void 0 ? _e : err.message);
1438
+ test_utils_1.assert.fail(`createOne() should not throw since index has filter {uniqueField: { \$type: 'string' } }.\n\n` +
1439
+ ((_e = err.stack) !== null && _e !== void 0 ? _e : err.message));
1440
1440
  }
1441
1441
  await test_utils_1.assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1442
1442
  name: (0, generateId_1.default)(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.330",
6
+ "version": "28.1.332",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -64,22 +64,22 @@
64
64
  "watch.tsc": "tsc -w"
65
65
  },
66
66
  "dependencies": {
67
- "@sprucelabs/error": "^6.0.327",
68
- "@sprucelabs/globby": "^2.0.288",
69
- "@sprucelabs/schema": "^30.0.380",
70
- "@sprucelabs/spruce-skill-utils": "^31.0.394",
67
+ "@sprucelabs/error": "^6.0.334",
68
+ "@sprucelabs/globby": "^2.0.295",
69
+ "@sprucelabs/schema": "^30.0.382",
70
+ "@sprucelabs/spruce-skill-utils": "^31.0.401",
71
71
  "just-clone": "^6.2.0",
72
72
  "lodash": "^4.17.21",
73
73
  "mongodb": "^6.8.1",
74
74
  "nedb": "^1.8.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@sprucelabs/esm-postbuild": "^6.0.311",
78
- "@sprucelabs/jest-json-reporter": "^8.0.330",
79
- "@sprucelabs/resolve-path-aliases": "^2.0.306",
77
+ "@sprucelabs/esm-postbuild": "^6.0.318",
78
+ "@sprucelabs/jest-json-reporter": "^8.0.336",
79
+ "@sprucelabs/resolve-path-aliases": "^2.0.313",
80
80
  "@sprucelabs/semantic-release": "^5.0.2",
81
- "@sprucelabs/test": "^9.0.43",
82
- "@sprucelabs/test-utils": "^5.1.273",
81
+ "@sprucelabs/test": "^9.0.44",
82
+ "@sprucelabs/test-utils": "^5.1.280",
83
83
  "@types/lodash": "^4.17.7",
84
84
  "@types/nedb": "^1.8.16",
85
85
  "@types/node": "^22.5.4",
@@ -94,7 +94,7 @@
94
94
  "ts-node": "^10.9.2",
95
95
  "tsc-watch": "^6.2.0",
96
96
  "tsconfig-paths": "^4.2.0",
97
- "typescript": "^5.5.4"
97
+ "typescript": "^5.6.2"
98
98
  },
99
99
  "engines": {
100
100
  "node": ">=12",