@netlify/functions
Advanced tools
Comparing version 0.7.3-streaming.2 to 0.7.3-streaming.3
@@ -5,3 +5,3 @@ { | ||
"types": "./src/main.d.ts", | ||
"version": "0.7.3-streaming.2", | ||
"version": "0.7.3-streaming.3", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -8,0 +8,0 @@ "files": [ |
@@ -61,4 +61,10 @@ /* eslint-disable no-underscore-dangle , promise/prefer-await-to-callbacks, */ | ||
(event, context, callback) => { | ||
// const { callbackUrl } = event.queryStringParameters | ||
const callbackUrl = 'https://ntl-functions-streaming.herokuapp.com/.stream/hello' | ||
const requestId = event.headers['x-nf-request-id'] | ||
if (!requestId) { | ||
return { | ||
statusCode: 422, | ||
body: 'Missing request id', | ||
} | ||
} | ||
const callbackUrl = `https://ntl-functions-streaming.herokuapp.com/.stream/${requestId}` | ||
@@ -65,0 +71,0 @@ /** @type {StreamingResponse} */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14012
270