metascraper-date 5.45.10 → 5.45.22

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
@@ -38,4 +38,4 @@ Whether to return `dateModified` alongside date.
38
38
  **metascraper-date** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
39
39
  Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).
40
40
 
41
- > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
41
+ > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · X [@microlinkhq](https://x.com/microlinkhq)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-date",
3
3
  "description": "Get date property from HTML markup",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-date",
5
- "version": "5.45.10",
5
+ "version": "5.45.22",
6
6
  "types": "src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -23,7 +23,7 @@
23
23
  "metascraper"
24
24
  ],
25
25
  "dependencies": {
26
- "@metascraper/helpers": "^5.45.10"
26
+ "@metascraper/helpers": "^5.45.22"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">= 16"
@@ -35,5 +35,5 @@
35
35
  "test": "exit 0"
36
36
  },
37
37
  "license": "MIT",
38
- "gitHead": "dba98fa823be9b495ed8935c094d41de6184f578"
38
+ "gitHead": "d934045034f25536eec414edf4f5be0b2b73d7ed"
39
39
  }
package/src/index.js CHANGED
@@ -8,6 +8,7 @@ const dateRules = () => {
8
8
  return [
9
9
  toDate($ => $('meta[name="date" i]').attr('content')),
10
10
  toDate($ => $('[itemprop*="date" i]').attr('content')),
11
+ toDate($ => $('[itemprop*="date" i]').attr('title')),
11
12
  toDate($ => $('time[itemprop*="date" i]').attr('datetime')),
12
13
  toDate($ => $('time[datetime]').attr('datetime')),
13
14
  toDate($ => $filter($, $('[class*="byline" i]'))),
@@ -23,6 +24,7 @@ const datePublishedRules = () => {
23
24
  toDate($jsonld('dateCreated')),
24
25
  toDate($ => $('meta[property*="published_time" i]').attr('content')),
25
26
  toDate($ => $('[itemprop="datepublished" i]').attr('content')),
27
+ toDate($ => $('[itemprop="datepublished" i]').attr('title')),
26
28
  toDate($ => $filter($, $('[class*="publish" i]')))
27
29
  ]
28
30
  }