Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-frontmatter

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-frontmatter - npm Package Compare versions

Comparing version 1.3.3 to 2.0.0

types/index.d.ts

5

index.js
'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 @@

26

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc