Socket
Socket
Sign inDemoInstall

live-guide

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

live-guide - npm Package Compare versions

Comparing version 0.13.1 to 0.13.2

21

lib/filter-array/lib/syntax.js

@@ -41,6 +41,2 @@ 'use strict';

task: function(obj) {
function escapeRegExp(string){
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
obj.filteredComments = obj.filteredComments.replace(this.pattern, function(match, language, snippet) {

@@ -50,19 +46,2 @@ if (!snippet) { return match; }

let _tempArray = [],
snippetArray = snippet.split(/\n/);
_tempArray = snippetArray.map((line) => {
let match = obj.rawComments.match(new RegExp('^\\s*' + escapeRegExp(line) + '\\s*$', 'm'));
if (match) {
return match[0];
}
return undefined;
}).filter((el) => el !== undefined);
if (_tempArray.length === snippetArray.length) {
snippet = _tempArray.join('\n');
}
return `\`\`\`${language.trim()}\n${snippet}\n\`\`\`\n`;

@@ -69,0 +48,0 @@ });

2

package.json
{
"name": "live-guide",
"version": "0.13.1",
"version": "0.13.2",
"description": "Generate style guides based on commented style sheets.",

@@ -5,0 +5,0 @@ "author": {

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