vona-module-test-vona 5.0.12 → 5.0.13
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/dist/.metadata/index.d.ts +551 -0
- package/dist/.metadata/index.js +109 -0
- package/dist/.metadata/this.d.ts +2 -0
- package/dist/.metadata/this.js +2 -0
- package/dist/bean/aop.regExp.d.ts +7 -0
- package/dist/bean/aop.regExp.js +35 -0
- package/dist/bean/aop.simple.d.ts +14 -0
- package/dist/bean/aop.simple.js +59 -0
- package/dist/bean/aopMethod.test.d.ts +13 -0
- package/dist/bean/aopMethod.test.js +42 -0
- package/dist/bean/bean.testCtx.d.ts +21 -0
- package/dist/bean/bean.testCtx.js +54 -0
- package/dist/bean/broadcast.test.d.ts +8 -0
- package/dist/bean/broadcast.test.js +23 -0
- package/dist/bean/cacheMem.test.d.ts +5 -0
- package/dist/bean/cacheMem.test.js +13 -0
- package/dist/bean/cacheRedis.test.d.ts +5 -0
- package/dist/bean/cacheRedis.test.js +13 -0
- package/dist/bean/event.helloEcho.d.ts +7 -0
- package/dist/bean/event.helloEcho.js +13 -0
- package/dist/bean/eventListener.helloEcho.d.ts +9 -0
- package/dist/bean/eventListener.helloEcho.js +19 -0
- package/dist/bean/meta.version.d.ts +5 -0
- package/dist/bean/meta.version.js +25 -0
- package/dist/bean/queue.test.d.ts +10 -0
- package/dist/bean/queue.test.js +16 -0
- package/dist/bean/schedule.test.d.ts +5 -0
- package/dist/bean/schedule.test.js +17 -0
- package/dist/bean/schedule.test3.d.ts +5 -0
- package/dist/bean/schedule.test3.js +17 -0
- package/dist/bean/summerCache.test.d.ts +12 -0
- package/dist/bean/summerCache.test.js +28 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.js +3 -0
- package/dist/config/locale/en-us.d.ts +12 -0
- package/dist/config/locale/en-us.js +11 -0
- package/dist/config/locale/zh-cn.d.ts +10 -0
- package/dist/config/locale/zh-cn.js +9 -0
- package/dist/controller/bean.d.ts +8 -0
- package/dist/controller/bean.js +93 -0
- package/dist/controller/cacheMem.d.ts +7 -0
- package/dist/controller/cacheMem.js +60 -0
- package/dist/controller/cacheRedis.d.ts +7 -0
- package/dist/controller/cacheRedis.js +60 -0
- package/dist/controller/onion.d.ts +15 -0
- package/dist/controller/onion.js +132 -0
- package/dist/controller/passport.d.ts +16 -0
- package/dist/controller/passport.js +82 -0
- package/dist/controller/performAction.d.ts +10 -0
- package/dist/controller/performAction.js +35 -0
- package/dist/controller/queue.d.ts +8 -0
- package/dist/controller/queue.js +42 -0
- package/dist/controller/summer.d.ts +7 -0
- package/dist/controller/summer.js +120 -0
- package/dist/controller/tail.d.ts +7 -0
- package/dist/controller/tail.js +43 -0
- package/dist/controller/transaction.d.ts +8 -0
- package/dist/controller/transaction.js +51 -0
- package/dist/controller/upload.d.ts +10 -0
- package/dist/controller/upload.js +80 -0
- package/dist/dto/profile.d.ts +7 -0
- package/dist/dto/profile.js +27 -0
- package/dist/dto/user.d.ts +10 -0
- package/dist/dto/user.js +33 -0
- package/dist/entity/test.d.ts +8 -0
- package/dist/entity/test.js +27 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/model/test.d.ts +4 -0
- package/dist/model/test.js +14 -0
- package/dist/service/aopMethod.d.ts +12 -0
- package/dist/service/aopMethod.js +63 -0
- package/dist/service/test.d.ts +4 -0
- package/dist/service/test.js +17 -0
- package/dist/service/testApp.d.ts +5 -0
- package/dist/service/testApp.js +20 -0
- package/dist/service/testClass.d.ts +8 -0
- package/dist/service/testClass.js +22 -0
- package/dist/service/transaction.d.ts +5 -0
- package/dist/service/transaction.js +39 -0
- package/package.json +7 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { BeanBase } from 'vona';
|
|
11
|
+
import { Database } from 'vona-module-a-database';
|
|
12
|
+
import { Service } from 'vona-module-a-web';
|
|
13
|
+
const tableNameFail = '__tempTransactionFail';
|
|
14
|
+
const tableNameSuccess = '__tempTransactionSuccess';
|
|
15
|
+
let ServiceTransaction = class ServiceTransaction extends BeanBase {
|
|
16
|
+
async fail(item) {
|
|
17
|
+
await this.app.bean.model.update(`${tableNameFail}`, item);
|
|
18
|
+
await this.app.bean.model.update(`${tableNameFail}error`, item);
|
|
19
|
+
}
|
|
20
|
+
async success(item) {
|
|
21
|
+
await this.app.bean.model.update(tableNameSuccess, item);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
Database.transaction(),
|
|
26
|
+
__metadata("design:type", Function),
|
|
27
|
+
__metadata("design:paramtypes", [Object]),
|
|
28
|
+
__metadata("design:returntype", Promise)
|
|
29
|
+
], ServiceTransaction.prototype, "fail", null);
|
|
30
|
+
__decorate([
|
|
31
|
+
Database.transaction(),
|
|
32
|
+
__metadata("design:type", Function),
|
|
33
|
+
__metadata("design:paramtypes", [Object]),
|
|
34
|
+
__metadata("design:returntype", Promise)
|
|
35
|
+
], ServiceTransaction.prototype, "success", null);
|
|
36
|
+
ServiceTransaction = __decorate([
|
|
37
|
+
Service()
|
|
38
|
+
], ServiceTransaction);
|
|
39
|
+
export { ServiceTransaction };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-module-test-vona",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.13",
|
|
5
5
|
"title": "test-vona",
|
|
6
6
|
"vonaModule": {
|
|
7
7
|
"fileVersion": 1,
|
|
@@ -28,8 +28,12 @@
|
|
|
28
28
|
"dist",
|
|
29
29
|
"static"
|
|
30
30
|
],
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"clean-package": "^2.2.0",
|
|
33
|
+
"rimraf": "^6.0.1"
|
|
34
|
+
},
|
|
31
35
|
"scripts": {
|
|
32
|
-
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
33
|
-
"tsc:publish": "npm run clean && tsc"
|
|
36
|
+
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
37
|
+
"tsc:publish": "npm run clean && tsc -p tsconfig.build.json"
|
|
34
38
|
}
|
|
35
39
|
}
|