@omegup/msync 0.0.71 → 0.0.72
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/index.d.ts +1 -2
- package/index.esm.js +2 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Timestamp, Filter, UpdateFilter, BSON, Db, Collection, IndexSpecification, CreateIndexesOptions, MongoClient as MongoClient$1, OptionalUnlessRequiredId } from 'mongodb';
|
|
2
2
|
export { Collection, Timestamp } from 'mongodb';
|
|
3
|
-
import * as bson from 'bson';
|
|
4
3
|
|
|
5
4
|
type HasJob = {
|
|
6
5
|
job: object | undefined;
|
|
@@ -687,7 +686,7 @@ declare const map1: <K extends string, Im>(k: AsLiteral<K>, to: Im) => { readonl
|
|
|
687
686
|
readonly [_: string]: [K, Im];
|
|
688
687
|
};
|
|
689
688
|
|
|
690
|
-
declare const enablePreAndPostImages: <T extends doc>(coll: Collection<T>) => Promise<
|
|
689
|
+
declare const enablePreAndPostImages: <T extends doc>(coll: Collection<T>) => Promise<Document>;
|
|
691
690
|
declare const prepare: (testName?: string) => Promise<MongoClient$1>;
|
|
692
691
|
declare const makeCol: <T extends ID>(docs: readonly OptionalUnlessRequiredId<T>[], database: Db, name?: string) => Promise<Collection<T>>;
|
|
693
692
|
|
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UUID, MongoClient } from 'mongodb';
|
|
2
1
|
import { SynchronousPromise } from 'synchronous-promise';
|
|
3
2
|
import crypto$1 from 'crypto';
|
|
3
|
+
import { UUID, MongoClient } from 'mongodb';
|
|
4
4
|
import { writeFile } from 'fs/promises';
|
|
5
5
|
|
|
6
6
|
const asExprRaw = (raw) => ({ get: () => raw });
|
|
@@ -1248,6 +1248,7 @@ const runCont = async (it, cb) => {
|
|
|
1248
1248
|
const res = await next.then(next => ({ ok: true, next }), err => ({ ok: false, err }));
|
|
1249
1249
|
if (!res.ok) {
|
|
1250
1250
|
log('error', res.err);
|
|
1251
|
+
process.exit(1);
|
|
1251
1252
|
return runCont(stop, cb);
|
|
1252
1253
|
}
|
|
1253
1254
|
const { cont, info } = res.next;
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var mongodb = require('mongodb');
|
|
4
3
|
var synchronousPromise = require('synchronous-promise');
|
|
5
4
|
var crypto$1 = require('crypto');
|
|
5
|
+
var mongodb = require('mongodb');
|
|
6
6
|
var promises = require('fs/promises');
|
|
7
7
|
|
|
8
8
|
const asExprRaw = (raw) => ({ get: () => raw });
|
|
@@ -1250,6 +1250,7 @@ const runCont = async (it, cb) => {
|
|
|
1250
1250
|
const res = await next.then(next => ({ ok: true, next }), err => ({ ok: false, err }));
|
|
1251
1251
|
if (!res.ok) {
|
|
1252
1252
|
log('error', res.err);
|
|
1253
|
+
process.exit(1);
|
|
1253
1254
|
return runCont(stop, cb);
|
|
1254
1255
|
}
|
|
1255
1256
|
const { cont, info } = res.next;
|