Skip to content

Commit 0daa279

Browse files
authored
Merge pull request #17 from axa-group/poveden/updates
Poveden/updates
2 parents 13f5dec + 6e54206 commit 0daa279

File tree

10 files changed

+1119
-875
lines changed

10 files changed

+1119
-875
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7-
## [1.1.2](https://github.com/axa-group/arm-template-merge/compare/v1.1.0...v1.1.1) — 2019-08-09
7+
## [1.1.3](https://github.com/axa-group/arm-template-merge/compare/v1.1.2...v1.1.3) — 2019-09-25
8+
9+
### Security
10+
11+
- Update `npm` dependencies to fix:
12+
- [CVE-2019-15657](https://nvd.nist.gov/vuln/detail/CVE-2019-15657)
13+
- [CVE-2019-10746](https://nvd.nist.gov/vuln/detail/CVE-2019-10746)
14+
- [CVE-2019-10747](https://nvd.nist.gov/vuln/detail/CVE-2019-10747)
15+
16+
### Changed
17+
18+
- Update license's legal entity.
19+
20+
## [1.1.2](https://github.com/axa-group/arm-template-merge/compare/v1.1.1...v1.1.2) — 2019-08-09
821

922
### Security
1023

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) AXA Partners
3+
Copyright (c) AXA Assistance France
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

bin/arm-template-merge

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env node
22

33
/**
4-
* Copyright (c) AXA Partners
4+
* Copyright (c) AXA Assistance France
55
*
6-
* Licensed under the AXA Partners License (the "License"); you
6+
* Licensed under the AXA Assistance France License (the "License"); you
77
* may not use this file except in compliance with the License.
88
* A copy of the License can be found in the LICENSE.md file distributed
99
* together with this file.
@@ -111,7 +111,7 @@ async function mergeTemplates(inGlobs, outFile) {
111111

112112
const mergedTemplate = {};
113113

114-
const mergeOps = inFiles.map(inFile => mergeTemplateWith(mergedTemplate, inFile));
114+
const mergeOps = inFiles.map((inFile) => mergeTemplateWith(mergedTemplate, inFile));
115115

116116
await Promise.all(mergeOps);
117117

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Copyright (c) AXA Partners
2+
* Copyright (c) AXA Assistance France
33
*
4-
* Licensed under the AXA Partners License (the "License"); you
4+
* Licensed under the AXA Assistance France License (the "License"); you
55
* may not use this file except in compliance with the License.
66
* A copy of the License can be found in the LICENSE.md file distributed
77
* together with this file.

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
coveragePathIgnorePatterns: ['<rootDir>/test/'],
66
reporters: [
77
'default',
8-
['jest-junit', { output: 'TestResults/testresults.xml' }],
8+
['jest-junit', { outputDirectory: 'TestResults', outputName: 'testresults.xml' }],
99
],
1010
coverageReporters: ['text', 'html', 'cobertura'],
1111
};

lib/merge.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Copyright (c) AXA Partners
2+
* Copyright (c) AXA Assistance France
33
*
4-
* Licensed under the AXA Partners License (the "License"); you
4+
* Licensed under the AXA Assistance France License (the "License"); you
55
* may not use this file except in compliance with the License.
66
* A copy of the License can be found in the LICENSE.md file distributed
77
* together with this file.
@@ -26,7 +26,7 @@
2626
module.exports = function merge(a, b, name, level = 0, maxLevel = 1) {
2727
if (level <= maxLevel && typeof a === 'object' && typeof b === 'object') {
2828
if (Array.isArray(a)) {
29-
return a.concat(b.filter(x => !a.some(y => JSON.stringify(x) === JSON.stringify(y))));
29+
return a.concat(b.filter((x) => !a.some((y) => JSON.stringify(x) === JSON.stringify(y))));
3030
}
3131
Object.keys(b).forEach((key) => {
3232
a[key] = merge(a[key], b[key], name ? `${name}.${key}` : key, level + 1, maxLevel);

0 commit comments

Comments
 (0)