0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/functional/fixtures/package.js

14 lines
336 B
JavaScript
Raw Normal View History

2018-06-22 11:58:40 -05:00
import {PORT_SERVER_1} from "../../../src/lib/constants";
module.exports = function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://localhost:${port}`) {
return {
name: name,
version: version,
2017-04-19 14:15:28 -05:00
dist: {
shasum: 'fake',
tarball: `${domain}/${encodeURIComponent(name)}/-/blahblah`,
2017-04-19 14:15:28 -05:00
},
};
};
2013-09-28 11:46:55 -05:00