diff --git a/helpers/ddata.js b/helpers/ddata.js index ed49eba..8b28df6 100644 --- a/helpers/ddata.js +++ b/helpers/ddata.js @@ -2,7 +2,6 @@ const arrayify = require('array-back') const util = require('util') const handlebars = require('handlebars') const { marked } = require('marked') -const objectGet = require('object-get') const state = require('../lib/state') let malformedDataWarningIssued = false @@ -741,7 +740,7 @@ function parentName (options) { returns a dmd option, e.g. "sort-by", "heading-depth" etc. */ function option (name, options) { - return objectGet(options.data.root.options, name) + return options.data.root.options[name] } function optionEquals (name, value, options) { diff --git a/package-lock.json b/package-lock.json index c9c0c4b..6f6c8ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,6 @@ "file-set": "^5.2.2", "handlebars": "^4.7.8", "marked": "^4.3.0", - "object-get": "^2.1.1", "walk-back": "^5.1.1" }, "devDependencies": { @@ -297,12 +296,6 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "license": "MIT" }, - "node_modules/object-get": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", - "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", - "license": "MIT" - }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", diff --git a/package.json b/package.json index 74dcc74..d10a518 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "file-set": "^5.2.2", "handlebars": "^4.7.8", "marked": "^4.3.0", - "object-get": "^2.1.1", "walk-back": "^5.1.1" }, "devDependencies": {