-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
[#200] release v0.8.6
* Remove no needs resolutions for semver * Remove no needed files in npm published package * Fix package.json error * Fix grpc _pb MODULE_NOT_FOUND error by .npmrc
Showing
8 changed files
with
2,073 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ mongoconfig | |
mongo-entrypoint | ||
.vscode | ||
.node-version | ||
package-lock.json | ||
*.lock |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
var express = require('express'); | ||
var router = express.Router(); | ||
const axios = require('axios'); | ||
|
||
const IORedis = require('ioredis'); | ||
const ioRedis = new IORedis(6379); | ||
var express = require('express') | ||
var router = express.Router() | ||
const axios = require('axios') | ||
const IORedis = require('ioredis') | ||
const ioRedis = new IORedis(6379) | ||
const http = require('http') | ||
const https = require('https') | ||
|
||
let callcount = 0 | ||
/* GET home page. */ | ||
router.get('/', function(req, res, next) { | ||
router.get('/', function (req, res, next) { | ||
|
||
ioRedis.set("keyio", "value", function(error) { | ||
ioRedis.set("keyio", "value", function (error) { | ||
console.log(`${callcount} ioredis set `) | ||
}) | ||
ioRedis.get("keyio", function(error, data) { | ||
ioRedis.get("keyio", function (error, data) { | ||
console.log(`${callcount} ioredis data ${data}`) | ||
}) | ||
|
||
axios.get(`https://naver.com`) | ||
.then(function (response) { | ||
console.log(`response ${response}`) | ||
res.render('index', { title: 'Express' }); | ||
}) | ||
}); | ||
axios.get(`https://naver.com`, { | ||
timeout: 1000, | ||
httpAgent: new http.Agent({ keepAlive: false }), | ||
httpsAgent: new https.Agent({ keepAlive: false }), | ||
}) | ||
.then(function (response) { | ||
console.log(`response ${response}`) | ||
res.render('index', { title: 'Express' }) | ||
}) | ||
}) | ||
|
||
module.exports = router; | ||
module.exports = router |
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters