mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +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.
|
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>
|
<a name="3.7.1"></a>
|
||||||
## [3.7.1](https://github.com/verdaccio/verdaccio/compare/v3.7.0...v3.7.1) (2018-08-28)
|
## [3.7.1](https://github.com/verdaccio/verdaccio/compare/v3.7.0...v3.7.1) (2018-08-28)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "verdaccio",
|
"name": "verdaccio",
|
||||||
"version": "3.7.1",
|
"version": "3.8.0",
|
||||||
"description": "Private npm repository server",
|
"description": "Private npm repository server",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Alex Kocharin",
|
"name": "Alex Kocharin",
|
||||||
|
@ -107,7 +107,7 @@ export function normalisePackageAccess(packages: PackageList): PackageList {
|
|||||||
const normalizedPkgs: PackageList = {...packages};
|
const normalizedPkgs: PackageList = {...packages};
|
||||||
// add a default rule for all packages to make writing plugins easier
|
// add a default rule for all packages to make writing plugins easier
|
||||||
if (_.isNil(normalizedPkgs['**'])) {
|
if (_.isNil(normalizedPkgs['**'])) {
|
||||||
normalizedPkgs['**'] = {};
|
normalizedPkgs['**'] = {access: [], publish: []};
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let pkg in packages) {
|
for (let pkg in packages) {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import _ from 'lodash';
|
||||||
import {spliceURL} from '../../../src/utils/string';
|
import {spliceURL} from '../../../src/utils/string';
|
||||||
import {parseConfigFile} from '../../../src/lib/utils';
|
import {parseConfigFile} from '../../../src/lib/utils';
|
||||||
import {
|
import {
|
||||||
@ -125,12 +126,14 @@ describe('Config Utilities', () => {
|
|||||||
const scoped = access[`${PACKAGE_ACCESS.SCOPE}`];
|
const scoped = access[`${PACKAGE_ACCESS.SCOPE}`];
|
||||||
expect(scoped).toBeUndefined();
|
expect(scoped).toBeUndefined();
|
||||||
|
|
||||||
// ** should be added by default
|
// ** should be added by default **
|
||||||
const all = access[`${PACKAGE_ACCESS.ALL}`];
|
const all = access[`${PACKAGE_ACCESS.ALL}`];
|
||||||
expect(all).toBeDefined();
|
expect(all).toBeDefined();
|
||||||
|
|
||||||
expect(all.access).toBeUndefined();
|
expect(all.access).toBeDefined();
|
||||||
expect(all.publish).toBeUndefined();
|
expect(_.isArray(all.access)).toBeTruthy();
|
||||||
|
expect(all.publish).toBeDefined();
|
||||||
|
expect(_.isArray(all.publish)).toBeTruthy();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user