From 1e8f01ec5b388db1af86a348e3ea0d3d38f41d8a Mon Sep 17 00:00:00 2001 From: doowb Date: Tue, 19 Sep 2017 09:17:50 -0400 Subject: [PATCH] run update --- .eslintrc.json | 5 ---- .gitignore | 1 + .travis.yml | 8 ++--- LICENSE | 4 +-- appveyor.yml | 29 ++++++++++++++++++ bower.json | 79 ++++++++++++++++++++++++++++++++++++++++---------- index.js | 7 +++-- package.json | 17 ++++++----- 8 files changed, 113 insertions(+), 37 deletions(-) create mode 100644 appveyor.yml diff --git a/.eslintrc.json b/.eslintrc.json index 948dbdb..61e8895 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,4 @@ { - "ecmaFeatures": { - "modules": true, - "experimentalObjectRestSpread": true - }, - "env": { "browser": false, "es6": true, diff --git a/.gitignore b/.gitignore index 0a16ee9..f2a4ab2 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ vendor temp tmp TODO.md +package-lock.json \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 2b92202..67decb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,10 @@ os: language: node_js node_js: - node + - '8' + - '7' - '6' + - '5' - '4' - '0.12' - '0.10' -matrix: - allow_failures: - - node_js: '4' - - node_js: '0.12' - - node_js: '0.10' diff --git a/LICENSE b/LICENSE index 3ea7267..37be316 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2017, Jon Schlinkert +Copyright (c) 2013-2017, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE. \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..824b44e --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +# Test against this version of Node.js +environment: + matrix: + # node.js + - nodejs_version: "8.0" + - nodejs_version: "7.0" + - nodejs_version: "6.0" + - nodejs_version: "5.0" + - nodejs_version: "4.0" + - nodejs_version: "0.12" + - nodejs_version: "0.10" + +# Install scripts. (runs after repo cloning) +install: + # Get the latest stable version of Node.js or io.js + - ps: Install-Product node $env:nodejs_version + # install modules + - npm install + +# Post-install test scripts. +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm test + +# Don't actually build. +build: off diff --git a/bower.json b/bower.json index d93f84b..8185f59 100644 --- a/bower.json +++ b/bower.json @@ -11,19 +11,22 @@ "index.js" ], "dependencies": { - "concat-stream": "^1.5.1", - "gray-matter": "^2.0.2", - "lazy-cache": "^1.0.2", + "concat-stream": "^1.5.2", + "diacritics-map": "^0.1.0", + "gray-matter": "^2.1.0", + "lazy-cache": "^2.0.2", + "list-item": "^1.1.1", "markdown-link": "^0.1.1", "minimist": "^1.2.0", "mixin-deep": "^1.1.3", - "object.pick": "^1.1.1", - "remarkable": "^1.6.1", - "repeat-string": "^1.5.2" + "object.pick": "^1.2.0", + "remarkable": "^1.7.1", + "repeat-string": "^1.6.1", + "strip-color": "^0.1.0" }, "devDependencies": { - "mocha": "*", - "should": "*" + "gulp-format-md": "^0.1.11", + "mocha": "^3.2.0" }, "keywords": [ "anchor", @@ -31,23 +34,67 @@ "docs", "document", "documentation", - "heading", - "markdown", - "md", "glossary", + "heading", "index", "links", - "reference", + "markdown", + "md", + "plugin", "readme", + "reference", "remarkable", "remarkableplugin", - "plugin", "render", "renderer", - "table-of-contents", - "table of contents", "table", + "table of contents", + "table-of-contents", "toc", "write" + ], + "version": "1.1.0", + "contributors": [ + "(https://github.com/lu22do)", + "=^._.^= (http://maxogden.com)", + "Benjamin Schmitz (https://github.com/Vortex375)", + "Christian Raunitschka (raunitschka.de)", + "Daniel Chen (http://chendaniely.github.io)", + "David Mohl (https://dvcrn.github.io)", + "Federico Soave (https://github.com/Feder1co5oave)", + "Gary Green (https://github.com/garygreen)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Josh Duff (https://tehshrike.github.io)", + "Matt Ellis (http://sticklebackplastic.com)", + "Nicolas Morel (https://github.com/Marsup)", + "Richard Bradley (https://github.com/RichardBradley)", + "Seth Vincent (http://sethvincent.com)", + "Stefan Walther (http://qliksite.io)", + "Tao Wang (https://github.com/twang2218)", + "Zeke Sikelianos (http://zeke.sikelianos.com)" + ], + "bugs": { + "url": "https://github.com/jonschlinkert/markdown-toc/issues" + }, + "files": [ + "cli.js", + "index.js", + "lib" + ], + "bin": { + "markdown-toc": "cli.js" + }, + "directories": { + "test": "test" + }, + "ignore": [ + "actual", + "bower_components", + "fixtures", + "node_modules", + "temp", + "test", + "test.js", + "tmp" ] -} +} \ No newline at end of file diff --git a/index.js b/index.js index 7c6d493..109eb37 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,10 @@ 'use strict'; -/** - * Module dependencies +/*! + * markdown-toc + * + * Copyright © 2013-2017, Jon Schlinkert. + * Released under the MIT License. */ var utils = require('./lib/utils'); diff --git a/package.json b/package.json index f9104ea..84ba7c3 100644 --- a/package.json +++ b/package.json @@ -5,23 +5,26 @@ "homepage": "https://github.com/jonschlinkert/markdown-toc", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "contributors": [ - "(https://github.com/lu22do)", "=^._.^= (http://maxogden.com)", + "Andrés (http://angrykoala.github.io)", "Benjamin Schmitz (https://github.com/Vortex375)", "Christian Raunitschka (raunitschka.de)", "Daniel Chen (http://chendaniely.github.io)", - "David Mohl (https://dvcrn.github.io)", + "Daniel Mietchen (http://about.me/daniel.mietchen)", + "David Mohl (https://dvcrn.github.io)", "Federico Soave (https://github.com/Feder1co5oave)", "Gary Green (https://github.com/garygreen)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", "Josh Duff (https://tehshrike.github.io)", "Matt Ellis (http://sticklebackplastic.com)", - "Nicolas Morel (https://github.com/Marsup)", + "Nicolas Morel (https://github.com/Marsup)", + "Rafael Steil (http://rafaelsteil.com)", "Richard Bradley (https://github.com/RichardBradley)", - "Seth Vincent (http://sethvincent.com)", + "Seth Vincent (https://sethvincent.com)", "Stefan Walther (http://qliksite.io)", - "Tao Wang (https://github.com/twang2218)", - "Zeke Sikelianos (http://zeke.sikelianos.com)" + "Tao Wang (https://github.com/twang2218)", + "(https://github.com/lu22do)", + "Zeke Sikelianos (http://zeke.sikelianos.com)" ], "repository": "jonschlinkert/markdown-toc", "bugs": {