remark-frontmatter
Advanced tools
Comparing version 1.3.3 to 2.0.0
'use strict' | ||
var xtend = require('xtend') | ||
var matters = require('./lib/matters') | ||
@@ -35,3 +34,3 @@ var parse = require('./lib/parse') | ||
proto.blockMethods = names.concat(proto.blockMethods) | ||
proto.blockTokenizers = xtend(tokenizers, proto.blockTokenizers) | ||
proto.blockTokenizers = Object.assign({}, tokenizers, proto.blockTokenizers) | ||
} | ||
@@ -41,3 +40,3 @@ | ||
var proto = compiler.prototype | ||
proto.visitors = xtend(wrap(compile, matters), proto.visitors) | ||
proto.visitors = Object.assign({}, wrap(compile, matters), proto.visitors) | ||
} | ||
@@ -44,0 +43,0 @@ |
{ | ||
"name": "remark-frontmatter", | ||
"version": "1.3.3", | ||
"version": "2.0.0", | ||
"description": "remark plugin to support frontmatter (yaml, toml, and more)", | ||
@@ -31,10 +31,12 @@ "license": "MIT", | ||
"index.js", | ||
"lib" | ||
"lib", | ||
"types/index.d.ts" | ||
], | ||
"types": "types/index.d.ts", | ||
"dependencies": { | ||
"fault": "^1.0.1", | ||
"xtend": "^4.0.1" | ||
"fault": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^16.0.0", | ||
"dtslint": "^3.4.1", | ||
"is-hidden": "^1.0.0", | ||
@@ -44,13 +46,13 @@ "not": "^0.1.0", | ||
"prettier": "^2.0.0", | ||
"remark": "^11.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"remark": "^12.0.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-wooorm": "^7.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"to-vfile": "^6.0.0", | ||
"unified": "^8.0.0", | ||
"unified": "^9.0.0", | ||
"xo": "^0.28.0" | ||
}, | ||
"scripts": { | ||
"format": "remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"format": "remark *.md -qfo && prettier --write . && xo --fix", | ||
"build-bundle": "browserify . -s remarkFrontmatter > remark-frontmatter.js", | ||
@@ -61,3 +63,4 @@ "build-mangle": "browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js", | ||
"test-coverage": "nyc --reporter lcov tape test/index.js", | ||
"test": "npm run format && npm run build && npm run test-coverage" | ||
"test-types": "dtslint types", | ||
"test": "npm run format && npm run build && npm run test-coverage && npm run test-types" | ||
}, | ||
@@ -85,3 +88,4 @@ "nyc": { | ||
"ignores": [ | ||
"remark-frontmatter.js" | ||
"remark-frontmatter.js", | ||
"**/*.ts" | ||
] | ||
@@ -88,0 +92,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16118
1
9
200
14
- Removedxtend@^4.0.1
- Removedxtend@4.0.2(transitive)