metascraper-date 5.42.0 → 5.42.3

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.d.ts +15 -0
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "metascraper-date",
3
3
  "description": "Get date property from HTML markup",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-date",
5
- "version": "5.42.0",
5
+ "version": "5.42.3",
6
6
  "main": "src/index.js",
7
- "types": "scripts/index.d.ts",
7
+ "types": "src/index.d.ts",
8
8
  "author": {
9
9
  "email": "hello@microlink.io",
10
10
  "name": "microlink.io",
@@ -29,11 +29,11 @@
29
29
  "node": ">= 16"
30
30
  },
31
31
  "files": [
32
- "index.js"
32
+ "src"
33
33
  ],
34
34
  "scripts": {
35
35
  "test": "exit 0"
36
36
  },
37
37
  "license": "MIT",
38
- "gitHead": "c0b0686683249610f570c8f58ef4f6b77c824d0d"
38
+ "gitHead": "2c5b5ab11fadff33d0bc0717ac743b626e19c6ab"
39
39
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ type Options = {
2
+ /**
3
+ * Whether to add the date published and date modified to the result.
4
+ * @default true
5
+ */
6
+ datePublished?: boolean,
7
+ /**
8
+ * Whether to add the date published and date modified to the result.
9
+ * @default true
10
+ */
11
+ dateModified?: boolean
12
+ }
13
+
14
+ declare function rules(options?: Options = defaultOptions): import('metascraper').Rules;
15
+ export = rules;