1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/functional/fixtures/package.js

18 lines
452 B
JavaScript
Raw Normal View History

2018-06-22 18:58:40 +02:00
import {PORT_SERVER_1} from "../../../src/lib/constants";
2018-06-23 01:03:25 +02:00
export const FILE_NAME = 'blahblah';
module.exports = function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://localhost:${port}`,
fileName = 'blahblah', readme = 'this is a readme') {
return {
2018-06-23 01:03:25 +02:00
name,
version,
readme,
2017-04-19 21:15:28 +02:00
dist: {
shasum: 'fake',
2018-06-23 01:03:25 +02:00
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
2017-04-19 21:15:28 +02:00
},
};
};
2013-09-28 18:46:55 +02:00