hmt 3 лет назад
Родитель
Сommit
29d3af8c6c

+ 3 - 2
node_modules/marked/LICENSE.md

@@ -8,6 +8,7 @@ all code is your original work. `</legalese>`
 
 ## Marked
 
+Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
 Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30,8 +31,8 @@ THE SOFTWARE.
 
 ## Markdown
 
-Copyright © 2004, John Gruber 
-http://daringfireball.net/ 
+Copyright © 2004, John Gruber
+http://daringfireball.net/
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

+ 1 - 3
node_modules/marked/README.md

@@ -8,9 +8,7 @@
 [![gzip size](https://badgen.net/badgesize/gzip/https://cdn.jsdelivr.net/npm/marked/marked.min.js)](https://cdn.jsdelivr.net/npm/marked/marked.min.js)
 [![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked)
 [![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked)
-[![dep](https://badgen.net/david/dep/markedjs/marked?label=deps)](https://david-dm.org/markedjs/marked)
-[![dev dep](https://badgen.net/david/dev/markedjs/marked?label=devDeps)](https://david-dm.org/markedjs/marked?type=dev)
-[![travis](https://badgen.net/travis/markedjs/marked)](https://travis-ci.org/markedjs/marked)
+[![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions)
 [![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked)
 
 - ⚡ built for speed

+ 19 - 19
node_modules/marked/bin/marked

@@ -5,27 +5,27 @@
  * Copyright (c) 2011-2013, Christopher Jeffrey (MIT License)
  */
 
-var fs = require('fs'),
-    path = require('path'),
-    marked = require('../');
+const fs = require('fs'),
+  path = require('path'),
+  marked = require('../');
 
 /**
  * Man Page
  */
 
 function help() {
-  var spawn = require('child_process').spawn;
+  const spawn = require('child_process').spawn;
 
-  var options = {
+  const options = {
     cwd: process.cwd(),
     env: process.env,
     setsid: false,
     stdio: 'inherit'
   };
 
-  spawn('man', [path.resolve(__dirname, '/../man/marked.1')], options)
+  spawn('man', [path.resolve(__dirname, '../man/marked.1')], options)
     .on('error', function() {
-      fs.readFile(path.resolve(__dirname, '/../man/marked.1.txt'), 'utf8', function(err, data) {
+      fs.readFile(path.resolve(__dirname, '../man/marked.1.txt'), 'utf8', function(err, data) {
         if (err) throw err;
         console.log(data);
       });
@@ -33,7 +33,7 @@ function help() {
 }
 
 function version() {
-  var pkg = require('../package.json');
+  const pkg = require('../package.json');
   console.log(pkg.version);
 }
 
@@ -42,17 +42,17 @@ function version() {
  */
 
 function main(argv, callback) {
-  var files = [],
-      options = {},
-      input,
-      output,
-      string,
-      arg,
-      tokens,
-      opt;
+  const files = [],
+    options = {};
+  let input,
+    output,
+    string,
+    arg,
+    tokens,
+    opt;
 
   function getarg() {
-    var arg = argv.shift();
+    let arg = argv.shift();
 
     if (arg.indexOf('--') === 0) {
       // e.g. --opt
@@ -162,8 +162,8 @@ function main(argv, callback) {
  */
 
 function getStdin(callback) {
-  var stdin = process.stdin,
-      buff = '';
+  const stdin = process.stdin;
+  let buff = '';
 
   stdin.setEncoding('utf8');
 

Разница между файлами не показана из-за своего большого размера
+ 876 - 357
node_modules/marked/lib/marked.js


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
node_modules/marked/marked.min.js


+ 66 - 78
node_modules/marked/package.json

@@ -1,100 +1,88 @@
 {
-  "_from": "marked",
-  "_id": "marked@0.7.0",
-  "_inBundle": false,
-  "_integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==",
-  "_location": "/marked",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "tag",
-    "registry": true,
-    "raw": "marked",
-    "name": "marked",
-    "escapedName": "marked",
-    "rawSpec": "",
-    "saveSpec": null,
-    "fetchSpec": "latest"
-  },
-  "_requiredBy": [
-    "#USER",
-    "/"
-  ],
-  "_resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
-  "_shasum": "b64201f051d271b1edc10a04d1ae9b74bb8e5c0e",
-  "_spec": "marked",
-  "_where": "/Users/zorro/Documents/schild.report/reports/mein-bk",
-  "author": {
-    "name": "Christopher Jeffrey"
-  },
-  "bin": {
-    "marked": "./bin/marked"
-  },
-  "bugs": {
-    "url": "http://github.com/markedjs/marked/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
+  "name": "marked",
   "description": "A markdown parser built for speed",
-  "devDependencies": {
-    "@markedjs/html-differ": "^2.0.1",
-    "cheerio": "^1.0.0-rc.3",
-    "commonmark": "0.x",
-    "eslint": "^5.16.0",
-    "eslint-config-standard": "^12.0.0",
-    "eslint-plugin-import": "^2.17.2",
-    "eslint-plugin-node": "^8.0.1",
-    "eslint-plugin-promise": "^4.1.1",
-    "eslint-plugin-standard": "^4.0.0",
-    "eslint-plugin-vuln-regex-detector": "^1.0.4",
-    "front-matter": "^3.0.2",
-    "jasmine": "^3.4.0",
-    "markdown": "0.x",
-    "markdown-it": "8.x",
-    "node-fetch": "^2.3.0",
-    "uglify-js": "^3.5.8"
-  },
-  "engines": {
-    "node": ">=0.10.0"
+  "author": "Christopher Jeffrey",
+  "version": "2.0.1",
+  "main": "./src/marked.js",
+  "browser": "./lib/marked.js",
+  "bin": {
+    "marked": "bin/marked"
   },
+  "man": "./man/marked.1",
   "files": [
     "bin/",
     "lib/",
+    "src/",
     "man/",
     "marked.min.js"
   ],
+  "repository": "git://github.com/markedjs/marked.git",
   "homepage": "https://marked.js.org",
+  "bugs": {
+    "url": "http://github.com/markedjs/marked/issues"
+  },
+  "license": "MIT",
   "keywords": [
     "markdown",
     "markup",
     "html"
   ],
-  "license": "MIT",
-  "main": "./lib/marked.js",
-  "man": [
-    "./man/marked.1"
+  "tags": [
+    "markdown",
+    "markup",
+    "html"
   ],
-  "name": "marked",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/markedjs/marked.git"
+  "devDependencies": {
+    "@babel/core": "^7.12.17",
+    "@babel/preset-env": "^7.12.17",
+    "@markedjs/html-differ": "^3.0.4",
+    "@rollup/plugin-babel": "^5.3.0",
+    "@rollup/plugin-commonjs": "^17.1.0",
+    "@semantic-release/commit-analyzer": "^8.0.1",
+    "@semantic-release/git": "^9.0.0",
+    "@semantic-release/github": "^7.2.0",
+    "@semantic-release/npm": "^7.0.10",
+    "@semantic-release/release-notes-generator": "^9.0.1",
+    "cheerio": "^1.0.0-rc.5",
+    "commonmark": "0.29.3",
+    "eslint": "^7.20.0",
+    "eslint-config-standard": "^16.0.2",
+    "eslint-plugin-import": "^2.22.1",
+    "eslint-plugin-node": "^11.1.0",
+    "eslint-plugin-promise": "^4.3.1",
+    "front-matter": "^4.0.2",
+    "highlight.js": "^10.6.0",
+    "jasmine": "^3.6.4",
+    "markdown-it": "12.0.4",
+    "node-fetch": "^2.6.1",
+    "rollup": "^2.39.0",
+    "rollup-plugin-license": "^2.2.0",
+    "semantic-release": "^17.3.9",
+    "titleize": "^2.1.0",
+    "uglify-js": "^3.12.8",
+    "vuln-regex-detector": "^1.3.0"
   },
   "scripts": {
-    "bench": "node test/bench.js",
-    "build": "uglifyjs lib/marked.js -cm  --comments /Copyright/ -o marked.min.js",
-    "lint": "eslint --fix bin/marked .",
-    "preversion": "npm run build && (git diff --quiet || git commit -am 'minify')",
     "test": "jasmine --config=jasmine.json",
-    "test:lint": "eslint bin/marked .",
-    "test:node4": "npx node@4 ./node_modules/jasmine/bin/jasmine.js --config=jasmine.json",
-    "test:redos": "eslint --plugin vuln-regex-detector --rule '\"vuln-regex-detector/no-vuln-regex\": 2' lib/marked.js",
-    "test:specs": "npm test -- test/specs/**/*-spec.js",
+    "test:all": "npm test && npm run test:lint",
     "test:unit": "npm test -- test/unit/**/*-spec.js",
-    "test:update": "node test/update-specs.js"
+    "test:specs": "npm test -- test/specs/**/*-spec.js",
+    "test:lint": "eslint bin/marked .",
+    "test:redos": "node test/vuln-regex.js",
+    "test:update": "node test/update-specs.js",
+    "rules": "node test/rules.js",
+    "bench": "npm run rollup && node test/bench.js",
+    "lint": "eslint --fix bin/marked .",
+    "build:reset": "git checkout upstream/master lib/marked.js lib/marked.esm.js marked.min.js",
+    "build": "npm run rollup && npm run minify",
+    "build:docs": "node build-docs.js",
+    "rollup": "npm run rollup:umd && npm run rollup:esm",
+    "rollup:umd": "rollup -c rollup.config.js",
+    "rollup:esm": "rollup -c rollup.config.esm.js",
+    "minify": "uglifyjs lib/marked.js -cm  --comments /Copyright/ -o marked.min.js",
+    "preversion": "npm run build && (git diff --quiet || git commit -am build)"
   },
-  "tags": [
-    "markdown",
-    "markup",
-    "html"
-  ],
-  "version": "0.7.0"
+  "engines": {
+    "node": ">= 8.16.2"
+  }
 }

+ 8 - 8
package-lock.json

@@ -10,7 +10,7 @@
       "dependencies": {
         "bulma": "^0.9.2",
         "bulma-tooltip": "^2.0.2",
-        "marked": "^0.7.0"
+        "marked": "^2.0.1"
       }
     },
     "node_modules/bulma": {
@@ -24,14 +24,14 @@
       "integrity": "sha512-xsqWeWV7tsUn3uH04SqJeP7/CyC1RaDVIyVzr4/sIO3friIIOi7L6jc5g7qUwDxuBQl72yH/yRPuefpXoQ4hWg=="
     },
     "node_modules/marked": {
-      "version": "0.7.0",
-      "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
-      "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==",
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.1.tgz",
+      "integrity": "sha512-5+/fKgMv2hARmMW7DOpykr2iLhl0NgjyELk5yn92iE7z8Se1IS9n3UsFm86hFXIkvMBmVxki8+ckcpjBeyo/hw==",
       "bin": {
         "marked": "bin/marked"
       },
       "engines": {
-        "node": ">=0.10.0"
+        "node": ">= 8.16.2"
       }
     }
   },
@@ -47,9 +47,9 @@
       "integrity": "sha512-xsqWeWV7tsUn3uH04SqJeP7/CyC1RaDVIyVzr4/sIO3friIIOi7L6jc5g7qUwDxuBQl72yH/yRPuefpXoQ4hWg=="
     },
     "marked": {
-      "version": "0.7.0",
-      "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
-      "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg=="
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.1.tgz",
+      "integrity": "sha512-5+/fKgMv2hARmMW7DOpykr2iLhl0NgjyELk5yn92iE7z8Se1IS9n3UsFm86hFXIkvMBmVxki8+ckcpjBeyo/hw=="
     }
   }
 }

+ 1 - 1
package.json

@@ -11,6 +11,6 @@
   "dependencies": {
     "bulma": "^0.9.2",
     "bulma-tooltip": "^2.0.2",
-    "marked": "^0.7.0"
+    "marked": "^2.0.1"
   }
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов