0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/test/functional/fixtures/package.js
Juan Picado @jotadeveloper 690b92a652
refactor: mirror and anti-loop
2018-06-23 20:59:27 +02:00

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}`,
},
};
};