Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 5, 2021
1 parent ed8b2e9 commit 08dd607
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
'use strict'
import yaml from 'js-yaml'

var yaml = require('js-yaml')
var warningIssued

module.exports = yamlConfig

// Modify remark to read configuration from comments.
function yamlConfig() {
export default function remarkYamlConfig() {
var data = this.data()

// Old remark.
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"files": [
"index.js"
],
"dependencies": {
"js-yaml": "^3.5.2"
"js-yaml": "^3.0.0"
},
"devDependencies": {
"c8": "^7.0.0",
Expand Down Expand Up @@ -62,6 +65,8 @@
"prettier": true,
"esnext": false,
"rules": {
"no-var": "off",
"prefer-arrow-callback": "off",
"guard-for-in": "off",
"no-eq-null": "off",
"eqeqeq": "off"
Expand Down
14 changes: 6 additions & 8 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
'use strict'

var test = require('tape')
var unified = require('unified')
var remark = require('remark')
var frontmatter = require('remark-frontmatter')
var html = require('remark-html')
var yamlConfig = require('.')
import test from 'tape'
import unified from 'unified'
import remark from 'remark'
import frontmatter from 'remark-frontmatter'
import html from 'remark-html'
import yamlConfig from './index.js'

test('remark-yaml-config', function (t) {
t.equal(
Expand Down

0 comments on commit 08dd607

Please sign in to comment.