You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn('[DEPRECATION NOTICE] { binaryMimeTypes: [] } is deprecated. base64 encoding is now automatically determined based on response content-type and content-encoding. If you need to manually set binary content types, instead, use { binarySettings: { contentTypes: [] } }')
57
+
}
58
+
59
+
setCurrentInvoke({ event, context })
60
+
returnnewPromise((resolve,reject)=>{
61
+
constpromise={
62
+
resolve,
63
+
reject
64
+
}
65
+
constresolver=makeResolver({
66
+
context,
67
+
callback,
68
+
promise,
69
+
resolutionMode
70
+
})
71
+
72
+
try{
73
+
forwardRequestToNodeServer({
74
+
app,
75
+
framework,
76
+
event,
77
+
context,
78
+
resolver,
79
+
eventSourceName,
80
+
binarySettings,
81
+
eventSource,
82
+
log
83
+
})
84
+
}catch(error){
85
+
respondToEventSourceWithError({
86
+
error,
87
+
resolver,
88
+
log,
89
+
respondWithErrors,
90
+
eventSource
91
+
})
92
+
}
93
+
})
94
+
}
95
+
96
+
functionhandler(event,context,callback){
97
+
returnproxy({
98
+
event,
99
+
context,
100
+
callback
101
+
})
102
+
}
103
+
104
+
handler.handler=(...params)=>{
105
+
console.warn('[DEPRECATION NOTICE] You\'re using the deprecated `serverlessExpress({...}).handler({...})` method. This will be removed in a future version of @vendia/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler.')
106
+
returnhandler(...params)
107
+
}
108
+
109
+
handler.proxy=(...params)=>{
110
+
console.warn('[DEPRECATION NOTICE] You\'re using the deprecated `serverlessExpress({...}).proxy({...})` method. This will be removed in a future version of @vendia/serverless-express. Instead, simply return `serverlessExpress({...})` as your handler.')
console.warn('You\'re using the deprecated createServer method that will be removed in the next major version. See https://github.com/vendia/serverless-express/blob/mainline/UPGRADE.md to upgrade.')
11
+
console.warn('[DEPRECATION NOTICE] You\'re using the deprecated createServer method that will be removed in the next major version. See https://github.com/vendia/serverless-express/blob/mainline/UPGRADE.md to upgrade.')
12
12
13
13
if(serverListenCallback){
14
14
thrownewError('serverListenCallback is no longer supported.')
0 commit comments