mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
15 lines
432 B
JavaScript
15 lines
432 B
JavaScript
import {DOMAIN_SERVERS, PORT_SERVER_1, TARBALL} from '../config.func';
|
|
|
|
module.exports = function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://${DOMAIN_SERVERS}:${port}`,
|
|
fileName = TARBALL, readme = 'this is a readme') {
|
|
return {
|
|
name,
|
|
version,
|
|
readme,
|
|
dist: {
|
|
shasum: 'fake',
|
|
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
|
|
},
|
|
};
|
|
};
|
|
|