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

remark-custom-blocks

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-custom-blocks - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

dist/index.js
'use strict';
var spaceSeparated = require('space-separated-tokens');
function escapeRegExp(str) {

@@ -52,2 +54,5 @@ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); // eslint-disable-line no-useless-escape

var classString = blocks[keep[1]];
var classList = spaceSeparated.parse(classString);
return add({

@@ -59,3 +64,3 @@ type: keep[1] + 'CustomBlock',

hProperties: {
className: blocks[keep[1]]
className: classList
}

@@ -62,0 +67,0 @@ }

5

package.json
{
"name": "remark-custom-blocks",
"version": "1.0.1",
"version": "1.0.2",
"repository": {

@@ -34,2 +34,5 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks",

"license": "MIT",
"dependencies": {
"space-separated-tokens": "^1.1.1"
},
"devDependencies": {

@@ -36,0 +39,0 @@ "babel-cli": "^6.24.1",

@@ -0,1 +1,3 @@

const spaceSeparated = require('space-separated-tokens')
function escapeRegExp (str) {

@@ -51,2 +53,5 @@ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') // eslint-disable-line no-useless-escape

const classString = blocks[keep[1]]
const classList = spaceSeparated.parse(classString)
return add({

@@ -58,3 +63,3 @@ type: `${keep[1]}CustomBlock`,

hProperties: {
className: blocks[keep[1]]
className: classList
}

@@ -61,0 +66,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