Skip to content

Commit

Permalink
factor object-get out of the project
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 31, 2024
1 parent 3208cba commit 13df883
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions helpers/ddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 13df883

Please sign in to comment.