cetus-tools 1.0.0 → 1.0.1
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.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExpressLogableConfig = void 0;
|
|
7
|
+
const itrm_tools_1 = require("itrm-tools");
|
|
8
|
+
const morgan_1 = __importDefault(require("morgan"));
|
|
9
|
+
class ExpressLogableConfig extends itrm_tools_1.ExpressStandardConfiguration {
|
|
10
|
+
apply(app) {
|
|
11
|
+
super.apply(app);
|
|
12
|
+
app.use((0, morgan_1.default)(':remote-addr - :remote-user [:date[web]] ":method :url HTTP/:http-version" :status :res[content-length]'));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ExpressLogableConfig = ExpressLogableConfig;
|
|
16
|
+
//# sourceMappingURL=ExpressLogableConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressLogableConfig.js","sourceRoot":"","sources":["../../src/api/ExpressLogableConfig.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA0D;AAE1D,oDAA4B;AAE5B,MAAa,oBAAqB,SAAQ,yCAA4B;IAClE,KAAK,CAAC,GAAY;QACd,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjB,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,yGAAyG,CAAC,CAAC,CAAC;IAC/H,CAAC;CACJ;AAND,oDAMC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export { ExpressLogableConfig as ExpressLogableConfig } from './api/ExpressLogableConfig';
|
|
1
2
|
export { KeyTypeManager as KeyTypeManager, IKeyType as IKeyType, IKeyTypeDetails as IKeyTypeDetails } from './crud/KeyTypeManager';
|
|
2
3
|
export { applyKeyTypeMocks as applyKeyTypeMocks } from './crud/test/KeyTypeMocks';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyKeyTypeMocks = exports.KeyTypeManager = void 0;
|
|
3
|
+
exports.applyKeyTypeMocks = exports.KeyTypeManager = exports.ExpressLogableConfig = void 0;
|
|
4
|
+
var ExpressLogableConfig_1 = require("./api/ExpressLogableConfig");
|
|
5
|
+
Object.defineProperty(exports, "ExpressLogableConfig", { enumerable: true, get: function () { return ExpressLogableConfig_1.ExpressLogableConfig; } });
|
|
4
6
|
var KeyTypeManager_1 = require("./crud/KeyTypeManager");
|
|
5
7
|
Object.defineProperty(exports, "KeyTypeManager", { enumerable: true, get: function () { return KeyTypeManager_1.KeyTypeManager; } });
|
|
6
8
|
var KeyTypeMocks_1 = require("./crud/test/KeyTypeMocks");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAmI;AAA1H,gHAAA,cAAc,OAAkB;AAEzC,yDAAkF;AAAzE,iHAAA,iBAAiB,OAAqB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mEAA0F;AAAjF,4HAAA,oBAAoB,OAAwB;AAErD,wDAAmI;AAA1H,gHAAA,cAAc,OAAkB;AAEzC,yDAAkF;AAAzE,iHAAA,iBAAiB,OAAqB"}
|