@sprucelabs/data-stores 28.1.9 → 28.1.10

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.
@@ -1474,7 +1474,7 @@ const databaseAssertUtil = {
1474
1474
  try {
1475
1475
  yield db.syncUniqueIndexes(this.collectionName, [
1476
1476
  {
1477
- fields: ['uniqueField', 'dateScrambled'],
1477
+ fields: ['uniqueField', 'someField3'],
1478
1478
  filter: {
1479
1479
  uniqueField: { $exists: true },
1480
1480
  },
@@ -1489,7 +1489,7 @@ const databaseAssertUtil = {
1489
1489
  yield db.createOne(this.collectionName, {
1490
1490
  uniqueField: 'test',
1491
1491
  slug: null,
1492
- dateScrambled: 'test',
1492
+ someField3: 'test',
1493
1493
  });
1494
1494
  }
1495
1495
  catch (err) {
@@ -1499,26 +1499,26 @@ const databaseAssertUtil = {
1499
1499
  yield assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1500
1500
  uniqueField: 'test',
1501
1501
  slug: null,
1502
- dateScrambled: 'test',
1502
+ someField3: 'test',
1503
1503
  }), undefined, `Creating a duplicate record with should throw an error.`);
1504
1504
  yield db.createOne(this.collectionName, {
1505
1505
  slug: '555-000-0000',
1506
- dateScrambled: 'test',
1506
+ someField3: 'test',
1507
1507
  });
1508
1508
  yield db.createOne(this.collectionName, {
1509
1509
  slug: '555-000-0001',
1510
- dateScrambled: 'test',
1510
+ someField3: 'test',
1511
1511
  });
1512
1512
  try {
1513
1513
  yield db.syncUniqueIndexes(this.collectionName, [
1514
1514
  {
1515
- fields: ['uniqueField', 'dateScrambled'],
1515
+ fields: ['uniqueField', 'someField3'],
1516
1516
  filter: {
1517
1517
  uniqueField: { $exists: true },
1518
1518
  },
1519
1519
  },
1520
1520
  {
1521
- fields: ['slug', 'dateScrambled'],
1521
+ fields: ['slug', 'someField3'],
1522
1522
  filter: {
1523
1523
  slug: { $exists: true, $type: 'string' },
1524
1524
  },
@@ -1532,13 +1532,13 @@ const databaseAssertUtil = {
1532
1532
  yield db.createOne(this.collectionName, {
1533
1533
  uniqueField: 'test',
1534
1534
  slug: null,
1535
- dateScrambled: 'next',
1535
+ someField3: 'next',
1536
1536
  });
1537
1537
  try {
1538
1538
  yield db.createOne(this.collectionName, {
1539
1539
  uniqueField: 'test2',
1540
1540
  slug: null,
1541
- dateScrambled: 'next',
1541
+ someField3: 'next',
1542
1542
  });
1543
1543
  }
1544
1544
  catch (err) {
@@ -1349,7 +1349,7 @@ const databaseAssertUtil = {
1349
1349
  try {
1350
1350
  await db.syncUniqueIndexes(this.collectionName, [
1351
1351
  {
1352
- fields: ['uniqueField', 'dateScrambled'],
1352
+ fields: ['uniqueField', 'someField3'],
1353
1353
  filter: {
1354
1354
  uniqueField: { $exists: true },
1355
1355
  },
@@ -1364,7 +1364,7 @@ const databaseAssertUtil = {
1364
1364
  await db.createOne(this.collectionName, {
1365
1365
  uniqueField: 'test',
1366
1366
  slug: null,
1367
- dateScrambled: 'test',
1367
+ someField3: 'test',
1368
1368
  });
1369
1369
  }
1370
1370
  catch (err) {
@@ -1374,26 +1374,26 @@ const databaseAssertUtil = {
1374
1374
  await test_utils_1.assert.doesThrowAsync(() => db.createOne(this.collectionName, {
1375
1375
  uniqueField: 'test',
1376
1376
  slug: null,
1377
- dateScrambled: 'test',
1377
+ someField3: 'test',
1378
1378
  }), undefined, `Creating a duplicate record with should throw an error.`);
1379
1379
  await db.createOne(this.collectionName, {
1380
1380
  slug: '555-000-0000',
1381
- dateScrambled: 'test',
1381
+ someField3: 'test',
1382
1382
  });
1383
1383
  await db.createOne(this.collectionName, {
1384
1384
  slug: '555-000-0001',
1385
- dateScrambled: 'test',
1385
+ someField3: 'test',
1386
1386
  });
1387
1387
  try {
1388
1388
  await db.syncUniqueIndexes(this.collectionName, [
1389
1389
  {
1390
- fields: ['uniqueField', 'dateScrambled'],
1390
+ fields: ['uniqueField', 'someField3'],
1391
1391
  filter: {
1392
1392
  uniqueField: { $exists: true },
1393
1393
  },
1394
1394
  },
1395
1395
  {
1396
- fields: ['slug', 'dateScrambled'],
1396
+ fields: ['slug', 'someField3'],
1397
1397
  filter: {
1398
1398
  slug: { $exists: true, $type: 'string' },
1399
1399
  },
@@ -1407,13 +1407,13 @@ const databaseAssertUtil = {
1407
1407
  await db.createOne(this.collectionName, {
1408
1408
  uniqueField: 'test',
1409
1409
  slug: null,
1410
- dateScrambled: 'next',
1410
+ someField3: 'next',
1411
1411
  });
1412
1412
  try {
1413
1413
  await db.createOne(this.collectionName, {
1414
1414
  uniqueField: 'test2',
1415
1415
  slug: null,
1416
- dateScrambled: 'next',
1416
+ someField3: 'next',
1417
1417
  });
1418
1418
  }
1419
1419
  catch (err) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.9",
6
+ "version": "28.1.10",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",