mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 03:19:36 +01:00
Merge branch 'master' into 4.x
This commit is contained in:
commit
a285fa192f
15
CHANGELOG.md
15
CHANGELOG.md
@ -2,6 +2,21 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
<a name="3.8.0"></a>
|
||||
# [3.8.0](https://github.com/verdaccio/verdaccio/compare/v3.7.1...v3.8.0) (2018-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* missing properties for default matcher [#981](https://github.com/verdaccio/verdaccio/issues/981) ([#982](https://github.com/verdaccio/verdaccio/issues/982)) ([3ca20d0](https://github.com/verdaccio/verdaccio/commit/3ca20d0))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* exposed rotating-file log for json logging ([#948](https://github.com/verdaccio/verdaccio/issues/948)) ([5ca0ca5](https://github.com/verdaccio/verdaccio/commit/5ca0ca5))
|
||||
|
||||
|
||||
|
||||
<a name="3.7.1"></a>
|
||||
## [3.7.1](https://github.com/verdaccio/verdaccio/compare/v3.7.0...v3.7.1) (2018-08-28)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"version": "3.7.1",
|
||||
"version": "3.8.0",
|
||||
"description": "Private npm repository server",
|
||||
"author": {
|
||||
"name": "Alex Kocharin",
|
||||
|
@ -107,7 +107,7 @@ export function normalisePackageAccess(packages: PackageList): PackageList {
|
||||
const normalizedPkgs: PackageList = {...packages};
|
||||
// add a default rule for all packages to make writing plugins easier
|
||||
if (_.isNil(normalizedPkgs['**'])) {
|
||||
normalizedPkgs['**'] = {};
|
||||
normalizedPkgs['**'] = {access: [], publish: []};
|
||||
}
|
||||
|
||||
for (let pkg in packages) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// @flow
|
||||
|
||||
import path from 'path';
|
||||
import _ from 'lodash';
|
||||
import {spliceURL} from '../../../src/utils/string';
|
||||
import {parseConfigFile} from '../../../src/lib/utils';
|
||||
import {
|
||||
@ -125,12 +126,14 @@ describe('Config Utilities', () => {
|
||||
const scoped = access[`${PACKAGE_ACCESS.SCOPE}`];
|
||||
expect(scoped).toBeUndefined();
|
||||
|
||||
// ** should be added by default
|
||||
// ** should be added by default **
|
||||
const all = access[`${PACKAGE_ACCESS.ALL}`];
|
||||
expect(all).toBeDefined();
|
||||
|
||||
expect(all.access).toBeUndefined();
|
||||
expect(all.publish).toBeUndefined();
|
||||
expect(all.access).toBeDefined();
|
||||
expect(_.isArray(all.access)).toBeTruthy();
|
||||
expect(all.publish).toBeDefined();
|
||||
expect(_.isArray(all.publish)).toBeTruthy();
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user