Commit Graph
15 Commits
Author SHA1 Message Date
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy e5c1512ab6 cheerio: Convert import * to import = (#23448) 2018-02-05 18:34:56 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Tim Su a3e3626477 Add placeholder document type
Currently, if you compile typescript without the "dom" lib, there is no 'Document' type available, and so the cheerio type definitions will output an error: `error TS2304: Cannot find name 'Document'.`. This adds a blank Document interface so no error is produced.
2017-12-29 14:23:05 -08:00
Yu-Hsin Lu 83146bf4e5 Modify data attribute of CheerioElement
`data` attribute is  a option field.
2017-11-23 14:42:28 +08:00
Yu-Hsin Lu c8196d8e75 Add data field to CheerioElement 2017-11-13 18:49:02 +08:00
isMeCoder 5bca979247 .html() can return null
.html() can return null when querying an element that does not exist. 

Repro:

        const response = await axios.default.get('https://www.google.com/')
        const $ = cheerio.load(response.data)
        const foo = $('.bar').html()
        console.log(`foo is: ${foo}`) //foo is: null
2017-10-30 10:11:20 -07:00
Li Jinyao c3a393c3d4 [cheerio] add firstChild attribute to CheerioElement (#20829)
* add firstChild attribute in CheerioElement

* add credit
2017-10-27 16:54:18 -07:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Александр Гренишин c939211aa6 fix(cheerio): #attr() can be used without arguments (#20193) 2017-10-09 16:30:37 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Ika 98fdc33a53 test(cheerio): add tests 2017-07-04 23:57:48 +08:00
Ika e23ee8a8dd fix(cheerio): CheerioAPI should extend CheerioStatic 2017-07-04 23:55:07 +08:00
Alexey Pelykh 0d2658c362 Use hashmap signature instead of Object 2017-03-25 13:50:00 +02:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00