@wix/be-server
Advanced tools
Comparing version 1.0.111 to 1.0.112
@@ -1,3 +0,1 @@ | ||
import { start } from "repl"; | ||
export function builder(): ServerBuilder; | ||
@@ -4,0 +2,0 @@ |
@@ -5,2 +5,3 @@ const {create} = require('@wix/proto-packages'); | ||
const {resolveHttpRoutes, httpBinding} = require('@wix/be-http-binding'); | ||
const path = require('path'); | ||
@@ -10,6 +11,13 @@ module.exports = function protoModulesBindings(contextOptions, serviceBindings) { | ||
async bindings() { | ||
const pathToHttpBindingProto = path.resolve(path.dirname(require.resolve('@wix/be-http-binding')), 'proto'); | ||
const extra = contextOptions.extraPackages; | ||
const extraPackages = extra ? (Array.isArray(extra) ? extra : [extra]) : []; | ||
extraPackages.push(pathToHttpBindingProto); | ||
const protoContext = create({ | ||
contextDir: defaultContextDir, | ||
...contextOptions | ||
}); | ||
...contextOptions, | ||
extraPackages | ||
}); | ||
const loadedContext = await protoContext.loadedContext(); | ||
@@ -16,0 +24,0 @@ |
{ | ||
"name": "@wix/be-server", | ||
"version": "1.0.111", | ||
"version": "1.0.112", | ||
"author": "Mantas Indrašius <mantasi@wix.com>", | ||
@@ -21,8 +21,8 @@ "publishConfig": { | ||
"protobufjs": "^6.8.8", | ||
"typescript": "^3.5.1", | ||
"typescript": "^3.6.4", | ||
"wnpm-ci": "^6.2.55" | ||
}, | ||
"dependencies": { | ||
"@wix/be-http-binding": "^1.0.7", | ||
"@wix/proto-packages": "^1.0.113", | ||
"@wix/be-http-binding": "^1.0.123", | ||
"@wix/proto-packages": "^1.0.133", | ||
"find-root": "^1.1.0", | ||
@@ -29,0 +29,0 @@ "url-pattern": "^1.0.3" |
Sorry, the diff of this file is not supported yet
16739
450