dailymotion / vast-client-js

VAST (up to 6) parsing library for JavaScript

Home Page:https://iabtechlab.com/wp-content/uploads/2022/09/VAST_4.3.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

just typo in readme example

letsdoyi opened this issue Β· comments

https://github.com/dailymotion/vast-client-js/blob/master/docs/api/vast-parser.md#example-5

found typo. please check this out πŸ™‚
timoeut => timeout

vastParser.getAndParseVAST('http://example.dailymotion.com/vast.xml')
  .then(res => {
    // Do something with the parsed VAST response
  })
  .catch(err => {
    // Deal with the error
  });

// With some options
const options = {
  timoeut: 5000, // <<<<<<<<< typo
  withCredentials: true,
  wrapperLimit: 7
}
vastParser.getAndParseVAST('http://example.dailymotion.com/vast.xml', options)
  .then(res => {
    // Do something with the parsed VAST response
  })
  .catch(err => {
    // Deal with the error
  });

Hi thanks for reporting this,
it will be corrected in the next update of vast-client-js :)