mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
17 lines
452 B
JavaScript
17 lines
452 B
JavaScript
import {PORT_SERVER_1} from "../../../src/lib/constants";
|
|
|
|
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 {
|
|
name,
|
|
version,
|
|
readme,
|
|
dist: {
|
|
shasum: 'fake',
|
|
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
|
|
},
|
|
};
|
|
};
|
|
|