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

down-parse

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

down-parse - npm Package Compare versions

Comparing version 2.4.0 to 3.0.0

dist/compile.d.ts

14

package.json
{
"name": "down-parse",
"version": "2.4.0",
"version": "3.0.0",
"description": "markdown parser",
"main": "dist/main.js",
"types": "dist/typings/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {

@@ -12,5 +12,5 @@ "url": "https://github.com/eczn/down-parse.git",

"scripts": {
"dist": "rollup --config rollup.config.dist.js",
"dev": "rollup -w --config rollup.config.dev.js",
"start": "npm run dev"
"build": "rimraf ./dist && tsc",
"dev": "tsc -w",
"start": "tsc -w"
},

@@ -22,3 +22,3 @@ "author": "eczn",

"chokidar": "^2.0.4",
"rimraf": "^2.6.2",
"rimraf": "^2.7.1",
"rollup": "^0.67.4",

@@ -25,0 +25,0 @@ "rollup-plugin-fill-html": "^1.1.0",

@@ -37,3 +37,3 @@ import { AST, compile } from "./compile";

const getAlign = (n: number) => {
const getAlign = (n: number): string => {
const k = align[n].trim();

@@ -43,8 +43,9 @@ const l = k[0] === ':' ? ':' : ' ';

return ({
'::': 'center',
' :': 'right',
': ': 'left',
' ': 'left'
})[l + r];
const lr = l + r;
if (lr === '::') return 'center';
if (lr === ' :') return 'right';
if (lr === ': ') return 'left';
// default
return 'left';
}

@@ -51,0 +52,0 @@

@@ -31,3 +31,5 @@ import { ctx } from "./plugin";

export type HrToken = GeneralToken<'hr', {}>
export type HrToken = GeneralToken<'hr', {
after: string
}>

@@ -34,0 +36,0 @@ export type BrToken = GeneralToken<'br', {}>;

@@ -5,19 +5,16 @@ {

"outDir": "dist",
"module": "ES2015",
"module": "CommonJS",
"target": "es5",
"lib": ["es6", "dom"],
"sourceMap": true,
"allowJs": false,
"sourceMap": false,
"moduleResolution": "node",
"rootDir": "src/",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"experimentalDecorators": true,
"declaration": true,
"declarationDir": "dist/typings/"
"declarationDir": "dist/",
"esModuleInterop": true
},

@@ -24,0 +21,0 @@ "exclude": [

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