Skip to content

Commit

Permalink
Bump v.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed Jun 13, 2019
1 parent 5b6a3c0 commit 6d31142
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, "public")));
// Local logging middleware for tracking incoming connection information.
app.use("/", req_logging_1.logReqInfo);
//
// let username = process.env.USERNAME;
Expand Down
6 changes: 4 additions & 2 deletions dist/middleware/req-logging.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use strict";
/*
This middleware logs connection information to local logs. It gives the ability
to detect when the server is being DDOS attacked, and also to collect metrics,
like the most popular endpoints.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var wlogger = require("../util/winston-logging");
Expand Down Expand Up @@ -30,7 +32,7 @@ var logReqInfo = function (req, res, next) {
real_ip: ip,
body: req.body
};
wlogger.info("Request: " + ip + " " + method + " " + url, dataToLog);
wlogger.verbose("Request: " + ip + " " + method + " " + url, dataToLog);
next();
};
exports.logReqInfo = logReqInfo;
2 changes: 1 addition & 1 deletion dist/public/bitcoin-com-mainnet-rest-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@
"openapi": "3.0.0",
"info": {
"description": "rest.bitcoin.com is the REST layer for Bitcoin.com's Cloud. More info: [developer.bitcoin.com/rest](https://developer.bitcoin.com/rest). Chatroom [geni.us/CashDev](http://geni.us/CashDev)",
"version": "3.11.1",
"version": "3.11.2",
"title": "REST",
"license": {
"name": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion dist/public/bitcoin-com-testnet-rest-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@
"openapi": "3.0.0",
"info": {
"description": "trest.bitcoin.com is the REST layer for Bitcoin.com's Cloud. More info: [developer.bitcoin.com/rest](https://developer.bitcoin.com/rest). Chatroom [geni.us/CashDev](http://geni.us/CashDev)",
"version": "3.11.1",
"version": "3.11.2",
"title": "REST",
"license": {
"name": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion dist/util/winston-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ var winston = require("winston");
require("winston-daily-rotate-file");
var NETWORK = process.env.NETWORK;
// Configure daily-rotation transport.
// Configured to only save 20 megs worth of files. Specifically 20 files of
// 1 megabyte each. Old log files will be deleted to make room for new log files.
var transport = new winston.transports.DailyRotateFile({
filename: __dirname + "/../../logs/rest-" + NETWORK + "-%DATE%.log",
datePattern: "YYYY-MM-DD",
zippedArchive: false,
maxSize: "1m",
maxFiles: "3",
maxFiles: "100",
format: winston.format.combine(winston.format.timestamp(), winston.format.json())
});
transport.on("rotate", function (oldFilename, newFilename) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rest.bitcoin.com",
"version": "3.11.1",
"version": "3.11.2",
"description": "REST API for Bitcoin.com's Cloud",
"author": "Gabriel Cardona <[email protected]>",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion swaggerJSONFiles/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"description": "The Bitcoin Cash JSON PRC over HTTP",
"version": "3.11.1",
"version": "3.11.2",
"title": "REST",
"license": {
"name": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion swaggerJSONFilesBuilt/mainnet/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"description": "rest.bitcoin.com is the REST layer for Bitcoin.com's Cloud. More info: [developer.bitcoin.com/rest](https://developer.bitcoin.com/rest). Chatroom [geni.us/CashDev](http://geni.us/CashDev)",
"version": "3.11.1",
"version": "3.11.2",
"title": "REST",
"license": {
"name": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion swaggerJSONFilesBuilt/testnet/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"description": "trest.bitcoin.com is the REST layer for Bitcoin.com's Cloud. More info: [developer.bitcoin.com/rest](https://developer.bitcoin.com/rest). Chatroom [geni.us/CashDev](http://geni.us/CashDev)",
"version": "3.11.1",
"version": "3.11.2",
"title": "REST",
"license": {
"name": "MIT",
Expand Down

0 comments on commit 6d31142

Please sign in to comment.