mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
chore: update dependencies
This commit is contained in:
parent
62e3adf0db
commit
f75e213399
4 changed files with 60 additions and 62 deletions
22
package.json
22
package.json
|
@ -18,30 +18,30 @@
|
|||
"@verdaccio/file-locking": "0.0.7",
|
||||
"@verdaccio/local-storage": "1.1.3",
|
||||
"@verdaccio/streams": "1.0.0",
|
||||
"JSONStream": "1.3.2",
|
||||
"JSONStream": "1.3.3",
|
||||
"asciidoctor.js": "1.5.6",
|
||||
"async": "2.6.0",
|
||||
"body-parser": "1.18.2",
|
||||
"async": "2.6.1",
|
||||
"body-parser": "1.18.3",
|
||||
"bunyan": "1.8.12",
|
||||
"chalk": "2.4.1",
|
||||
"commander": "2.15.0",
|
||||
"compression": "1.7.2",
|
||||
"commander": "2.16.0",
|
||||
"compression": "1.7.3",
|
||||
"cookies": "0.7.1",
|
||||
"cors": "2.8.4",
|
||||
"date-fns": "1.29.0",
|
||||
"express": "4.16.3",
|
||||
"global": "4.3.2",
|
||||
"handlebars": "4.0.11",
|
||||
"http-errors": "1.6.2",
|
||||
"http-errors": "1.6.3",
|
||||
"js-base64": "2.4.8",
|
||||
"js-string-escape": "1.0.1",
|
||||
"js-yaml": "3.11.0",
|
||||
"jsonwebtoken": "8.2.1",
|
||||
"lockfile": "1.0.3",
|
||||
"js-yaml": "3.12.0",
|
||||
"jsonwebtoken": "8.3.0",
|
||||
"lockfile": "1.0.4",
|
||||
"lodash": "4.17.10",
|
||||
"lunr": "0.7.0",
|
||||
"marked": "0.3.17",
|
||||
"mime": "2.2.0",
|
||||
"marked": "0.4.0",
|
||||
"mime": "2.3.1",
|
||||
"minimatch": "3.0.4",
|
||||
"mkdirp": "0.5.1",
|
||||
"pkginfo": "0.4.1",
|
||||
|
|
|
@ -1,52 +1,6 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Utilities parseReadme should pass for ascii/makrdown text to html template 1`] = `
|
||||
"<h1 id=\\"project-title\\">Project Title</h1>
|
||||
<p>One Paragraph of project description goes here</p>
|
||||
<h2 id=\\"getting-started\\">Getting Started</h2>
|
||||
<p>These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.</p>
|
||||
<h3 id=\\"prerequisites\\">Prerequisites</h3>
|
||||
<p>What things you need to install the software and how to install them</p>
|
||||
<pre><code>Give examples
|
||||
</code></pre><h3 id=\\"installing\\">Installing</h3>
|
||||
<p>A step by step series of examples that tell you how to get a development env running</p>
|
||||
<p>Say what the step will be</p>
|
||||
<pre><code>Give the example
|
||||
</code></pre><p>And repeat</p>
|
||||
<pre><code>until finished
|
||||
</code></pre><p>End with an example of getting some data out of the system or using it for a little demo</p>
|
||||
<h2 id=\\"running-the-tests\\">Running the tests</h2>
|
||||
<p>Explain how to run the automated tests for this system</p>
|
||||
<h3 id=\\"break-down-into-end-to-end-tests\\">Break down into end to end tests</h3>
|
||||
<p>Explain what these tests test and why</p>
|
||||
<pre><code>Give an example
|
||||
</code></pre><h3 id=\\"and-coding-style-tests\\">And coding style tests</h3>
|
||||
<p>Explain what these tests test and why</p>
|
||||
<pre><code>Give an example
|
||||
</code></pre><h2 id=\\"deployment\\">Deployment</h2>
|
||||
<p>Add additional notes about how to deploy this on a live system</p>
|
||||
<h2 id=\\"built-with\\">Built With</h2>
|
||||
<ul>
|
||||
<li>The web framework used</li>
|
||||
<li>Dependency Management</li>
|
||||
<li>Used to generate RSS Feeds</li>
|
||||
</ul>
|
||||
<h2 id=\\"contributing\\">Contributing</h2>
|
||||
<p>Please read <a href=\\"CONTRIBUTING.md\\">CONTRIBUTING.md</a> for details on our code of conduct, and the process for submitting pull requests to us.</p>
|
||||
<h2 id=\\"versioning\\">Versioning</h2>
|
||||
<p>We use <a href=\\"http://semver.org/\\">SemVer</a> for versioning. For the versions available, see the <a href=\\"https://github.com/your/project/tags\\">tags on this repository</a>.</p>
|
||||
<h2 id=\\"license\\">License</h2>
|
||||
<p>This project is licensed under the MIT License - see the <a href=\\"LICENSE.md\\">LICENSE.md</a> file for details</p>
|
||||
<h2 id=\\"acknowledgments\\">Acknowledgments</h2>
|
||||
<ul>
|
||||
<li>Hat tip to anyone whose code was used</li>
|
||||
<li>Inspiration</li>
|
||||
<li>etc</li>
|
||||
</ul>
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`Utilities parseReadme should pass for ascii/makrdown text to html template 2`] = `
|
||||
exports[`Utilities parseReadme should pass for ascii text to html template 1`] = `
|
||||
"<h1>Hello, AsciiDoc!</h1>
|
||||
<div id=\\"preamble\\">
|
||||
<div class=\\"sectionbody\\">
|
||||
|
@ -76,3 +30,44 @@ exports[`Utilities parseReadme should pass for ascii/makrdown text to html templ
|
|||
</div>
|
||||
</div>"
|
||||
`;
|
||||
|
||||
exports[`Utilities parseReadme should pass for makrdown text to html template 1`] = `
|
||||
"<h1 id=\\"project-title\\">Project Title</h1>
|
||||
<p>One Paragraph of project description goes here</p>
|
||||
<h2 id=\\"getting-started\\">Getting Started</h2>
|
||||
<p>These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.</p>
|
||||
<h3 id=\\"prerequisites\\">Prerequisites</h3>
|
||||
<p>What things you need to install the software and how to install them</p>
|
||||
<pre><code>Give examples</code></pre><h3 id=\\"installing\\">Installing</h3>
|
||||
<p>A step by step series of examples that tell you how to get a development env running</p>
|
||||
<p>Say what the step will be</p>
|
||||
<pre><code>Give the example</code></pre><p>And repeat</p>
|
||||
<pre><code>until finished</code></pre><p>End with an example of getting some data out of the system or using it for a little demo</p>
|
||||
<h2 id=\\"running-the-tests\\">Running the tests</h2>
|
||||
<p>Explain how to run the automated tests for this system</p>
|
||||
<h3 id=\\"break-down-into-end-to-end-tests\\">Break down into end to end tests</h3>
|
||||
<p>Explain what these tests test and why</p>
|
||||
<pre><code>Give an example</code></pre><h3 id=\\"and-coding-style-tests\\">And coding style tests</h3>
|
||||
<p>Explain what these tests test and why</p>
|
||||
<pre><code>Give an example</code></pre><h2 id=\\"deployment\\">Deployment</h2>
|
||||
<p>Add additional notes about how to deploy this on a live system</p>
|
||||
<h2 id=\\"built-with\\">Built With</h2>
|
||||
<ul>
|
||||
<li>The web framework used</li>
|
||||
<li>Dependency Management</li>
|
||||
<li>Used to generate RSS Feeds</li>
|
||||
</ul>
|
||||
<h2 id=\\"contributing\\">Contributing</h2>
|
||||
<p>Please read <a href=\\"CONTRIBUTING.md\\">CONTRIBUTING.md</a> for details on our code of conduct, and the process for submitting pull requests to us.</p>
|
||||
<h2 id=\\"versioning\\">Versioning</h2>
|
||||
<p>We use <a href=\\"http://semver.org/\\">SemVer</a> for versioning. For the versions available, see the <a href=\\"https://github.com/your/project/tags\\">tags on this repository</a>.</p>
|
||||
<h2 id=\\"license\\">License</h2>
|
||||
<p>This project is licensed under the MIT License - see the <a href=\\"LICENSE.md\\">LICENSE.md</a> file for details</p>
|
||||
<h2 id=\\"acknowledgments\\">Acknowledgments</h2>
|
||||
<ul>
|
||||
<li>Hat tip to anyone whose code was used</li>
|
||||
<li>Inspiration</li>
|
||||
<li>etc</li>
|
||||
</ul>
|
||||
"
|
||||
`;
|
||||
|
|
|
@ -118,16 +118,19 @@ describe('Utilities', () => {
|
|||
});
|
||||
|
||||
describe('parseReadme', () => {
|
||||
test('should pass for ascii/makrdown text to html template', () => {
|
||||
const markdown = '# markdown';
|
||||
test('should pass for ascii text to html template', () => {
|
||||
const ascii = "= AsciiDoc";
|
||||
|
||||
expect(parseReadme('testPackage', markdown)).toEqual('<h1 id="markdown">markdown</h1>\n');
|
||||
expect(parseReadme('testPackage', ascii)).toEqual('<h1>AsciiDoc</h1>\n');
|
||||
expect(parseReadme('testPackage', String(readmeFile('markdown.md')))).toMatchSnapshot();
|
||||
expect(parseReadme('testPackage', String(readmeFile('ascii.adoc')))).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('should pass for makrdown text to html template', () => {
|
||||
const markdown = '# markdown';
|
||||
expect(parseReadme('testPackage', markdown)).toEqual('<h1 id="markdown">markdown</h1>\n');
|
||||
expect(parseReadme('testPackage', String(readmeFile('markdown.md')))).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('should pass for conversion of non-ascii to markdown text', () => {
|
||||
const simpleText = 'simple text';
|
||||
const randomText = '%%%%%**##==';
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue