Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion etl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.9.9"
"typescript": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion event-bus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
4 changes: 2 additions & 2 deletions fuentes-autenticas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
}
2 changes: 1 addition & 1 deletion mongoose-plugin-audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
7 changes: 4 additions & 3 deletions mongoose-plugin-audit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ export function MongooseAuditPlugin(updated = false) {

// Define un método que debe llamarse en el documento principal antes de ejecutar .save()
schema.methods.audit = function (req: any) {
const self = (this as any);
if (req.user) {
const user = { ... (req.user.usuario || req.user.app) };
user.organizacion = req.user.organizacion;
this.$audit = user;
self.$audit = user;
} else {
this.$audit = req;
self.$audit = req;
}

};
Expand Down Expand Up @@ -91,7 +92,7 @@ export function MongooseAuditPlugin(updated = false) {
});

schema.methods.original = function () {
return this._original;
return (this as any)._original;
};
};
}
Expand Down
2 changes: 1 addition & 1 deletion mongoose-token-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion mongoose-token-search/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function TokenSearch(fields: string[]) {

schema.methods._createTokens = function () {

const modelo = this;
const modelo = this as any;

const tokens: string[] = [];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"husky": "^3.0.4",
"lerna": "2.8.0",
"rimraf": "^2.6.2",
"typescript": "^2.5.2"
"typescript": "^4.5.0"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.4.0",
"typescript": "^3.0.0"
"typescript": "^4.5.0"
}
}
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"strict": true,
"pretty": true,
"jsx": "react",
"suppressImplicitAnyIndexErrors": true
"suppressImplicitAnyIndexErrors": true,
"skipLibCheck": true
}
}