Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5de63a1ef3 | |||
ee7fa87b25 | |||
4b65674fb2 | |||
14f48c99d0 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartrequest",
|
||||
"version": "1.0.19",
|
||||
"version": "1.1.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartrequest",
|
||||
"version": "1.0.19",
|
||||
"version": "1.1.1",
|
||||
"private": false,
|
||||
"description": "dropin replacement for request",
|
||||
"main": "dist/index.js",
|
||||
|
13
test/test.ts
13
test/test.ts
@ -22,11 +22,14 @@ tap.test('should post a JSON document over http', async () => {
|
||||
.equal('fa4c6baa0812e5b5c80ed8885e55a8a6');
|
||||
});
|
||||
|
||||
tap.test('should deal with unix socks', async () => {
|
||||
const socketResponse = await smartrequest.request('http://unix:/var/run/docker.sock:/containers');
|
||||
tap.skip.test('should deal with unix socks', async () => {
|
||||
const socketResponse = await smartrequest.request('http://unix:/var/run/docker.sock:/containers/json', {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Host": "docker.sock"
|
||||
}
|
||||
});
|
||||
console.log(socketResponse.body);
|
||||
});
|
||||
|
||||
tap.start({
|
||||
throwOnError: true
|
||||
});
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user