@wix/be-http-client
Advanced tools
Comparing version
@@ -16,2 +16,9 @@ const {httpBinding, wellKnownTypes, messageBuilder, enumBuilder} = require('@wix/be-http-binding'); | ||
function oneOf(name) { | ||
return { | ||
define() { | ||
return { | ||
oneOf: name | ||
}; | ||
} | ||
} | ||
} |
@@ -20,3 +20,4 @@ const {httpBinding} = require('@wix/be-http-binding'); | ||
}, | ||
createInvoke: original.createInvoke | ||
createInvoke: original.createInvoke, | ||
bind: original.bind | ||
}; | ||
@@ -23,0 +24,0 @@ } |
{ | ||
"name": "@wix/be-http-client", | ||
"version": "1.0.121", | ||
"version": "1.0.122", | ||
"author": "Mantas Indrašius <mantasi@wix.com>", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -22,9 +22,6 @@ const {httpBinding, messageBuilder, wellKnownTypes} = require('@wix/be-http-binding'); | ||
server = await beServer.builder() | ||
.withBindings([{ | ||
binding: getEcho, | ||
invoke: (message) => message | ||
}]) | ||
.withBindings(getEcho.bind((message) => message)) | ||
.start({ port: 9901 }); | ||
}); | ||
after(() => server.stop()); | ||
@@ -31,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
6132
4.86%11
10%162
8.72%