🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

remark-typescript

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-typescript - npm Package Compare versions

Comparing version

to
0.5.4

@@ -11,3 +11,4 @@ "use strict";

// Preservation pattern
const PRESERVE_PATTERN = /\s*\/\/\s*preserve-line/g;
const PRESERVE_PATTERN = /\s*\/\/\s*preserve-line/;
const COMMENT_PATTERN = /^\W*\/\/\s/;
return () => ({

@@ -33,3 +34,5 @@ code: {

if (PRESERVE_PATTERN.test(line)) {
return line.replace(/^\/\/\s/, '').replace(PRESERVE_PATTERN, '');
return line
.replace(COMMENT_PATTERN, '')
.replace(PRESERVE_PATTERN, '');
}

@@ -36,0 +39,0 @@ return line;

{
"name": "remark-typescript",
"version": "0.5.3",
"version": "0.5.4",
"description": "Transforms TypeScript code blocks to JavaScript and inserts them back into the page",

@@ -5,0 +5,0 @@ "main": "dist/index.js",