0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/test/functional/fixtures/package.ts

15 lines
415 B
TypeScript
Raw Normal View History

2018-06-24 03:11:52 -05:00
import {DOMAIN_SERVERS, PORT_SERVER_1, TARBALL} from '../config.functional';
2018-06-22 18:03:25 -05:00
export default function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://${DOMAIN_SERVERS}:${port}`,
fileName = TARBALL, readme = 'this is a readme'): any {
return {
2018-06-22 18:03:25 -05:00
name,
version,
readme,
2017-04-19 14:15:28 -05:00
dist: {
shasum: 'fake',
2018-06-22 18:03:25 -05:00
tarball: `${domain}/${encodeURIComponent(name)}/-/${fileName}`,
2017-04-19 14:15:28 -05:00
},
};
}