Comparing version 0.1.0 to 3.0.0
36
index.js
@@ -0,10 +1,34 @@ | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2015 Titus Wormer | ||
* @license MIT | ||
* @module remark | ||
* @version 3.0.0 | ||
* @fileoverview Markdown processor powered by plugins. | ||
*/ | ||
'use strict'; | ||
var React = require('react'); | ||
var Remark = require('./component'); | ||
/* eslint-env commonjs */ | ||
function renderComponent(element){ | ||
return React.renderComponent(Remark(), element); | ||
} | ||
/* | ||
* Dependencies. | ||
*/ | ||
module.exports = renderComponent; | ||
var unified = require('unified'); | ||
var Parser = require('./lib/parse.js'); | ||
var Compiler = require('./lib/stringify.js'); | ||
var escape = require('./lib/escape.json'); | ||
/* | ||
* Exports. | ||
*/ | ||
module.exports = unified({ | ||
'name': 'mdast', | ||
'Parser': Parser, | ||
'Compiler': Compiler, | ||
'data': { | ||
'escape': escape | ||
} | ||
}); |
137
package.json
{ | ||
"name": "remark", | ||
"version": "0.1.0", | ||
"description": "Forward-looking Markdown editor built in React", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "browserify -s Remark -t brfs index.js > dist/remark.js", | ||
"component": "browserify -x react -s Remark -t brfs component.js > dist/component.js", | ||
"minify": "uglifyjs dist/remark.js > dist/remark.min.js && uglifyjs dist/component.js > dist/component.min.js", | ||
"test": "mocha" | ||
"version": "3.0.0", | ||
"description": "Markdown processor powered by plugins", | ||
"license": "MIT", | ||
"keywords": [ | ||
"markdown", | ||
"markup", | ||
"abstract", | ||
"syntax", | ||
"tree", | ||
"json", | ||
"ast", | ||
"parse", | ||
"stringify", | ||
"bin", | ||
"cli" | ||
], | ||
"dependencies": { | ||
"camelcase": "^2.0.0", | ||
"ccount": "^1.0.0", | ||
"chalk": "^1.0.0", | ||
"chokidar": "^1.0.5", | ||
"collapse-white-space": "^1.0.0", | ||
"commander": "^2.0.0", | ||
"concat-stream": "^1.0.0", | ||
"debug": "^2.0.0", | ||
"elegant-spinner": "^1.0.0", | ||
"extend.js": "0.0.2", | ||
"glob": "^6.0.1", | ||
"globby": "^4.0.0", | ||
"he": "^0.5.0", | ||
"log-update": "^1.0.1", | ||
"longest-streak": "^1.0.0", | ||
"markdown-table": "^0.4.0", | ||
"minimatch": "^3.0.0", | ||
"npm-prefix": "^1.0.1", | ||
"parse-entities": "^1.0.0", | ||
"repeat-string": "^1.5.0", | ||
"stringify-entities": "^1.0.0", | ||
"text-table": "^0.2.0", | ||
"to-vfile": "^1.0.0", | ||
"trim": "^0.0.1", | ||
"trim-trailing-lines": "^1.0.0", | ||
"unified": "^2.0.0", | ||
"user-home": "^2.0.0", | ||
"vfile": "^1.1.0", | ||
"vfile-find-down": "^1.0.0", | ||
"vfile-find-up": "^1.0.0", | ||
"vfile-reporter": "^1.5.0", | ||
"ware": "^1.3.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/iceddev/remark" | ||
"url": "https://github.com/wooorm/remark.git" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"component", | ||
"markdown", | ||
"editor", | ||
"blog", | ||
"post" | ||
"author": "Titus Wormer <tituswormer@gmail.com>", | ||
"contributors": [ | ||
"Christopher Jeffrey" | ||
], | ||
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/iceddev/remark/issues" | ||
"bin": { | ||
"remark": "bin/remark" | ||
}, | ||
"homepage": "https://github.com/iceddev/remark", | ||
"dependencies": { | ||
"envify": "^1.2.1", | ||
"fluxxor": "^1.2.0", | ||
"insert-css": "^0.1.1", | ||
"lodash": "git+ssh://git@github.com:lodash/lodash#79829aec234e9a5deb04616dd228f710ac2b08f7", | ||
"marked": "^0.3.2", | ||
"react": "^0.10.0" | ||
"directories": { | ||
"man": "./man" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"lib", | ||
"man", | ||
"bin" | ||
], | ||
"devDependencies": { | ||
"brfs": "^1.1.1", | ||
"browserify": "^4.1.8", | ||
"chai": "^1.9.1", | ||
"mocha": "^1.20.1", | ||
"uglify-js": "^2.4.13", | ||
"watchify": "^0.10.2" | ||
"bail": "^1.0.0", | ||
"browserify": "^12.0.0", | ||
"clone": "^1.0.1", | ||
"escodegen": "^1.7.0", | ||
"eslint": "^1.1.0", | ||
"esmangle": "^1.0.0", | ||
"esprima": "^2.6.0", | ||
"istanbul": "^0.4.0", | ||
"jscs": "^2.0.0", | ||
"jscs-jsdoc": "^1.0.0", | ||
"remark-comment-config": "^2.0.0", | ||
"remark-github": "^2.0.0", | ||
"remark-html": "^2.0.0", | ||
"remark-lint": "^2.0.0", | ||
"remark-man": "^2.0.0", | ||
"remark-toc": "^2.0.0", | ||
"remark-usage": "^2.0.0", | ||
"remark-validate-links": "^2.0.0", | ||
"remark-yaml-config": "^2.0.0", | ||
"mocha": "^2.0.0" | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"brfs" | ||
] | ||
"scripts": { | ||
"build-man": "bin/remark doc/*.?.md --config-path .remarkrc-man --quiet", | ||
"build-md": "bin/remark . --quiet --frail", | ||
"build-version": "node script/build-version.js", | ||
"build-options": "node script/build-options.js", | ||
"build-bundle": "node script/build-bundle.js", | ||
"lint-api": "eslint .", | ||
"lint-style": "jscs --reporter inline .", | ||
"lint": "npm run lint-api && npm run lint-style", | ||
"build": "npm run build-version && npm run build-md && npm run build-options && npm run build-man && npm run build-bundle", | ||
"test-api": "mocha --check-leaks test/index.js", | ||
"test-api-extensive": "TEST_EXTENDED=true npm run test-api", | ||
"test-cli": "bash test/cli.sh", | ||
"test-coverage": "istanbul cover _mocha -- -- test/index.js", | ||
"test-travis": "npm run build-md && npm run build-bundle && npm run lint && npm run test-coverage && npm run test-cli", | ||
"test": "npm run build && npm run lint && npm run test-coverage && npm run test-cli" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
44
1
235
0
10
2
420421
32
20
9970
1
+ Addedcamelcase@^2.0.0
+ Addedccount@^1.0.0
+ Addedchalk@^1.0.0
+ Addedchokidar@^1.0.5
+ Addedcollapse-white-space@^1.0.0
+ Addedcommander@^2.0.0
+ Addedconcat-stream@^1.0.0
+ Addeddebug@^2.0.0
+ Addedelegant-spinner@^1.0.0
+ Addedextend.js@0.0.2
+ Addedglob@^6.0.1
+ Addedglobby@^4.0.0
+ Addedhe@^0.5.0
+ Addedlog-update@^1.0.1
+ Addedlongest-streak@^1.0.0
+ Addedmarkdown-table@^0.4.0
+ Addedminimatch@^3.0.0
+ Addednpm-prefix@^1.0.1
+ Addedparse-entities@^1.0.0
+ Addedrepeat-string@^1.5.0
+ Addedstringify-entities@^1.0.0
+ Addedtext-table@^0.2.0
+ Addedto-vfile@^1.0.0
+ Addedtrim@^0.0.1
+ Addedtrim-trailing-lines@^1.0.0
+ Addedunified@^2.0.0
+ Addeduser-home@^2.0.0
+ Addedvfile@^1.1.0
+ Addedvfile-find-down@^1.0.0
+ Addedvfile-find-up@^1.0.0
+ Addedvfile-reporter@^1.5.0
+ Addedware@^1.3.0
+ Addedansi-escapes@1.4.0(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedanymatch@1.3.2(transitive)
+ Addedarr-diff@2.0.04.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedarray-unique@0.2.10.3.2(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedasync-each@1.0.6(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedattach-ware@1.1.1(transitive)
+ Addedbail@1.0.5(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbinary-extensions@1.13.1(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@1.8.52.3.2(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedccount@1.1.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcharacter-entities@1.2.4(transitive)
+ Addedcharacter-entities-html4@1.1.4(transitive)
+ Addedcharacter-entities-legacy@1.1.4(transitive)
+ Addedcharacter-reference-invalid@1.1.4(transitive)
+ Addedchokidar@1.7.0(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedcli-cursor@1.0.2(transitive)
+ Addedco@3.1.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcollapse-white-space@1.0.6(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addedelegant-spinner@1.0.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedexpand-brackets@0.1.52.1.4(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedextend.js@0.0.2(transitive)
+ Addedextglob@0.3.22.0.4(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.44.0.0(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedfsevents@1.2.13(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob@6.0.4(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addedglobby@4.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhe@0.5.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedini@1.3.8(transitive)
+ Addedirregular-plurals@1.4.0(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-alphabetical@1.0.4(transitive)
+ Addedis-alphanumerical@1.0.4(transitive)
+ Addedis-binary-path@1.0.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-decimal@1.0.4(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-hexadecimal@1.0.4(transitive)
+ Addedis-number@2.1.03.0.04.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedlog-update@1.0.2(transitive)
+ Addedlongest-streak@1.0.0(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmarkdown-table@0.4.0(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmicromatch@2.3.113.1.10(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addedms@2.0.0(transitive)
+ Addednan@2.20.0(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addednpm-prefix@1.2.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedparse-entities@1.2.2(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedplur@2.1.2(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedreaddirp@2.2.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedrestore-cursor@1.0.1(transitive)
+ Addedret@0.1.15(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedshellsubstitute@1.2.0(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstringify-entities@1.3.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedto-vfile@1.0.0(transitive)
+ Addedtrim@0.0.1(transitive)
+ Addedtrim-trailing-lines@1.1.4(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunherit@1.1.3(transitive)
+ Addedunified@2.1.4(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addeduntildify@2.1.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
+ Addeduser-home@2.0.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvfile@1.4.0(transitive)
+ Addedvfile-find-down@1.0.0(transitive)
+ Addedvfile-find-up@1.0.0(transitive)
+ Addedvfile-reporter@1.5.0(transitive)
+ Addedvfile-sort@1.0.0(transitive)
+ Addedware@1.3.0(transitive)
+ Addedwrap-fn@0.1.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedenvify@^1.2.1
- Removedfluxxor@^1.2.0
- Removedinsert-css@^0.1.1
- Removedlodash@git+ssh://git@github.com:lodash/lodash#79829aec234e9a5deb04616dd228f710ac2b08f7
- Removedmarked@^0.3.2
- Removedreact@^0.10.0
- Removedamdefine@1.0.1(transitive)
- Removedbase62@0.1.1(transitive)
- Removedenvify@1.2.1(transitive)
- Removedesprima-fb@3001.1.0-dev-harmony-fb(transitive)
- Removedeventemitter3@0.1.6(transitive)
- Removedfluxxor@1.7.3(transitive)
- Removedinsert-css@0.1.1(transitive)
- Removedjstransform@3.0.0(transitive)
- Removedlodash@3.10.1(transitive)
- Removedmarked@0.3.19(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedobject-path@0.6.0(transitive)
- Removedreact@0.10.0(transitive)
- Removedsource-map@0.1.31(transitive)
- Removedthrough@2.3.8(transitive)
- Removedxtend@2.1.2(transitive)