@metascraper/helpers 5.29.13 → 5.29.14

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/index.js +2 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -31,7 +31,7 @@ const _normalizeUrl = require('normalize-url')
31
31
  const smartquotes = require('smartquotes')
32
32
  const { decodeHTML } = require('entities')
33
33
  const iso6393 = require('iso-639-3/to-1')
34
- const mimeTypes = require('mime-types')
34
+ const { getExtension } = require('mime')
35
35
  const hasValues = require('has-values')
36
36
  const chrono = require('chrono-node')
37
37
  const isIso = require('isostring')
@@ -299,7 +299,7 @@ const title = (value, { removeSeparator = false, ...opts } = {}) =>
299
299
  isString(value) ? titleize(value, { removeSeparator, ...opts }) : undefined
300
300
 
301
301
  const isMime = (contentType, type) => {
302
- const ext = mimeTypes.extension(contentType)
302
+ const ext = getExtension(contentType)
303
303
  return eq(type, get(EXTENSIONS, ext))
304
304
  }
305
305
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metascraper/helpers",
3
3
  "description": "Collection of helper functions used by metascraper",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-helpers",
5
- "version": "5.29.13",
5
+ "version": "5.29.14",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -37,7 +37,7 @@
37
37
  "lodash": "~4.17.21",
38
38
  "memoize-one": "~6.0.0",
39
39
  "microsoft-capitalize": "~1.0.5",
40
- "mime-types": "~2.1.35",
40
+ "mime": "~3.0.0",
41
41
  "normalize-url": "~6.1.0",
42
42
  "re2": "~1.17.7",
43
43
  "smartquotes": "~2.3.2",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "f90dafabbd8435e6dc8afcad15a12ed2452d5ed3"
64
+ "gitHead": "ca48314be69ff7ac72ffe2d191df0786a34e2d99"
65
65
  }