down-parse
Advanced tools
Comparing version 2.4.0 to 3.0.0
{ | ||
"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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
30232
821
25
1