@chevre/domain 21.0.0-alpha.2 → 21.0.0-alpha.5

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.
@@ -242,7 +242,8 @@ class MongoRepository {
242
242
  if (result.insertedCount !== docs.length) {
243
243
  throw new factory.errors.ServiceUnavailable('all codes not saved');
244
244
  }
245
- return result.ops;
245
+ // return result.ops;
246
+ return docs;
246
247
  }
247
248
  else {
248
249
  return [];
@@ -218,13 +218,3 @@ schema.index({ 'project.id': 1, status: 1, expires: 1 }, {
218
218
  'project.id': { $exists: true }
219
219
  }
220
220
  });
221
- (0, mongoose_1.model)(modelName, schema)
222
- .on('index',
223
- // tslint:disable-next-line:no-single-line-block-comment
224
- /* istanbul ignore next */
225
- (error) => {
226
- if (error !== undefined) {
227
- // tslint:disable-next-line:no-console
228
- console.error(error);
229
- }
230
- });
@@ -0,0 +1,3 @@
1
+ import { WriteConcern } from 'mongoose';
2
+ declare const writeConcern: WriteConcern;
3
+ export { writeConcern };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeConcern = void 0;
4
+ const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
5
+ exports.writeConcern = writeConcern;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ownershipInfo2report = void 0;
4
+ /**
5
+ * 所有権レポートサービス
6
+ */
7
+ // import * as json2csv from 'json2csv';
4
8
  const moment = require("moment");
5
9
  function ownershipInfo2report(params) {
6
10
  var _a, _b, _c;
package/package.json CHANGED
@@ -16,7 +16,6 @@
16
16
  "@sendgrid/mail": "6.4.0",
17
17
  "@surfrock/sdk": "1.2.0-alpha.0",
18
18
  "@waiter/domain": "5.1.0",
19
- "JSONStream": "^1.3.5",
20
19
  "aws-sdk": "^2.984.0",
21
20
  "azure-storage": "^2.10.4",
22
21
  "cdigit": "2.6.7",
@@ -120,5 +119,5 @@
120
119
  "postversion": "git push origin --tags",
121
120
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
122
121
  },
123
- "version": "21.0.0-alpha.2"
122
+ "version": "21.0.0-alpha.5"
124
123
  }