mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
bae430fe24
chore: clean up comments remove commitlint update deps add new tests test separate ci test test test test test test chore: add preprelase test test test test test chore: update deps Update release-snapshot.yml Update .npmignore test chore: remove @verdaccio/commons-api dep chore: cleanup remove normalizeContributors remove validateMetadata fix test clean up getLocalRegistryTarballUri Update store.spec.ts clean up convertDistRemoteToLocalTarballUrls chore: update libraries reuse getPublic url clean up Update jest.config.js Update jest.config.js update nvmrc add tests
31 lines
770 B
TypeScript
31 lines
770 B
TypeScript
import { Version } from '@verdaccio/types';
|
|
|
|
export function generateNewVersion(
|
|
pkgName: string,
|
|
version: string,
|
|
shashum = '238e7641e59508dc9c20eb4ad37a8aa57ab777b4'
|
|
): Version {
|
|
return {
|
|
name: pkgName,
|
|
version: version,
|
|
description: '',
|
|
main: 'index.js',
|
|
dependencies: {
|
|
test: '^1.4.1',
|
|
},
|
|
author: '',
|
|
license: 'ISC',
|
|
readme: 'ERROR: No README data found!',
|
|
_id: `${pkgName}@${version}`,
|
|
_npmVersion: '5.5.1',
|
|
_npmUser: {
|
|
name: 'Foo',
|
|
},
|
|
dist: {
|
|
integrity:
|
|
'sha512-zVEqt1JUCOPsash9q4wMkJEDPD+QCx95TRhQII+JnoS31uBUKoZxhzvvUJCcLVy2CQG4QdwXARU7dYWPnrwhGg==',
|
|
shasum: shashum,
|
|
tarball: `http:\/\/localhost:4873\/${pkgName}\/-\/${pkgName}-${version}.tgz`,
|
|
},
|
|
};
|
|
}
|