@opra/mongodb 0.31.0 → 0.31.2

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.
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MongoCollection = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@opra/common");
6
4
  const mongo_adapter_js_1 = require("./mongo-adapter.js");
7
5
  // noinspection TypeScriptAbstractClassConstructorCanBeMadeProtected
8
6
  class MongoCollection {
@@ -79,24 +77,3 @@ class MongoCollection {
79
77
  }
80
78
  }
81
79
  exports.MongoCollection = MongoCollection;
82
- tslib_1.__decorate([
83
- common_1.Collection.Create()
84
- ], MongoCollection.prototype, "create", null);
85
- tslib_1.__decorate([
86
- common_1.Collection.Delete()
87
- ], MongoCollection.prototype, "delete", null);
88
- tslib_1.__decorate([
89
- common_1.Collection.DeleteMany()
90
- ], MongoCollection.prototype, "deleteMany", null);
91
- tslib_1.__decorate([
92
- common_1.Collection.Get()
93
- ], MongoCollection.prototype, "get", null);
94
- tslib_1.__decorate([
95
- common_1.Collection.Update()
96
- ], MongoCollection.prototype, "update", null);
97
- tslib_1.__decorate([
98
- common_1.Collection.UpdateMany()
99
- ], MongoCollection.prototype, "updateMany", null);
100
- tslib_1.__decorate([
101
- common_1.Collection.FindMany()
102
- ], MongoCollection.prototype, "findMany", null);
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MongoSingleton = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@opra/common");
6
4
  const mongo_adapter_js_1 = require("./mongo-adapter.js");
7
5
  class MongoSingleton {
8
6
  async create(ctx) {
@@ -44,15 +42,3 @@ class MongoSingleton {
44
42
  }
45
43
  }
46
44
  exports.MongoSingleton = MongoSingleton;
47
- tslib_1.__decorate([
48
- common_1.Singleton.Create()
49
- ], MongoSingleton.prototype, "create", null);
50
- tslib_1.__decorate([
51
- common_1.Singleton.Delete()
52
- ], MongoSingleton.prototype, "delete", null);
53
- tslib_1.__decorate([
54
- common_1.Singleton.Get()
55
- ], MongoSingleton.prototype, "get", null);
56
- tslib_1.__decorate([
57
- common_1.Singleton.Update()
58
- ], MongoSingleton.prototype, "update", null);
@@ -1,5 +1,3 @@
1
- import { __decorate } from "tslib";
2
- import { Collection } from '@opra/common';
3
1
  import { MongoAdapter } from './mongo-adapter.js';
4
2
  // noinspection TypeScriptAbstractClassConstructorCanBeMadeProtected
5
3
  export class MongoCollection {
@@ -75,24 +73,3 @@ export class MongoCollection {
75
73
  return service.updateMany(prepared.filter, prepared.data, prepared.options);
76
74
  }
77
75
  }
78
- __decorate([
79
- Collection.Create()
80
- ], MongoCollection.prototype, "create", null);
81
- __decorate([
82
- Collection.Delete()
83
- ], MongoCollection.prototype, "delete", null);
84
- __decorate([
85
- Collection.DeleteMany()
86
- ], MongoCollection.prototype, "deleteMany", null);
87
- __decorate([
88
- Collection.Get()
89
- ], MongoCollection.prototype, "get", null);
90
- __decorate([
91
- Collection.Update()
92
- ], MongoCollection.prototype, "update", null);
93
- __decorate([
94
- Collection.UpdateMany()
95
- ], MongoCollection.prototype, "updateMany", null);
96
- __decorate([
97
- Collection.FindMany()
98
- ], MongoCollection.prototype, "findMany", null);
@@ -1,5 +1,3 @@
1
- import { __decorate } from "tslib";
2
- import { Singleton } from '@opra/common';
3
1
  import { MongoAdapter } from './mongo-adapter.js';
4
2
  export class MongoSingleton {
5
3
  async create(ctx) {
@@ -40,15 +38,3 @@ export class MongoSingleton {
40
38
  return (this.onPrepare && await this.onPrepare(ctx, prepared)) || prepared;
41
39
  }
42
40
  }
43
- __decorate([
44
- Singleton.Create()
45
- ], MongoSingleton.prototype, "create", null);
46
- __decorate([
47
- Singleton.Delete()
48
- ], MongoSingleton.prototype, "delete", null);
49
- __decorate([
50
- Singleton.Get()
51
- ], MongoSingleton.prototype, "get", null);
52
- __decorate([
53
- Singleton.Update()
54
- ], MongoSingleton.prototype, "update", null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "ts-gems": "^2.5.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@opra/common": "^0.31.0",
40
- "@opra/core": "^0.31.0",
39
+ "@opra/common": "^0.31.2",
40
+ "@opra/core": "^0.31.2",
41
41
  "mongodb": ">=6.x.x"
42
42
  },
43
43
  "type": "module",