epg-grabber 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -181,6 +181,7 @@ From each function in `config.js` you can access a `context` object containing t
181
181
  - `date`: The 'dayjs' instance with the requested date
182
182
  - `content`: The response data as a String
183
183
  - `buffer`: The response data as an ArrayBuffer
184
+ - `headers`: The response headers
184
185
 
185
186
  ## Channels List
186
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epg-grabber",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Node.js CLI tool for grabbing EPG from different sites",
5
5
  "main": "src/index.js",
6
6
  "preferGlobal": true,
package/src/utils.js CHANGED
@@ -268,7 +268,8 @@ utils.getUTCDate = function (d = null) {
268
268
  utils.parseResponse = async (item, response, config) => {
269
269
  const data = merge(item, config, {
270
270
  content: response.data.toString(),
271
- buffer: response.data
271
+ buffer: response.data,
272
+ headers: response.headers
272
273
  })
273
274
 
274
275
  if (!item.channel.logo && config.logo) {