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

demo-md-loader

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demo-md-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -58,5 +58,5 @@ 'use strict';

const body = markdown.body;
const codes = body.match(/```jsx\n+(\s*import\s+((\'.+\')|(\".+\"));?\s*\n+)*```\n*/g) || [];
const codes = body.match(/```jsx(\r|\n)+\s*import\s+((\'.+\')|(\".+\"));?\s*(\r|\n)+```(\r|\n)*/g) || [];
const codeFiles = codes.map(c =>
c.replace(/(```jsx\n+(\s*import\s+(\'|\")))|((\'|\");?\s*\n+)|(```\n*)/g, '')
c.replace(/(```jsx(\r|\n)+\s*import\s+(\'|\"))|((\'|\");?\s*(\r|\n)+)|(```(\r|\n)*)/g, '')
);

@@ -63,0 +63,0 @@ return {

{
"name": "demo-md-loader",
"version": "1.0.0",
"version": "1.0.1",
"description": "Webpack loader that parses markdown files and converts them to a useful javascript object.",

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

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