Skip to content

Commit

Permalink
fix: export deepMerge
Browse files Browse the repository at this point in the history
Signed-off-by: Naseem <naseem@transit.app>
  • Loading branch information
Naseem committed Sep 5, 2020
1 parent f2a0a44 commit 9092761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/opentelemetry-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export * from './trace/sampler/ParentOrElseSampler';
export * from './trace/sampler/ProbabilitySampler';
export * from './trace/TraceState';
export * from './trace/IdGenerator';
export * from './utils/deep-merge';
export * from './utils/url';
export * from './utils/wrap';
4 changes: 1 addition & 3 deletions packages/opentelemetry-core/src/utils/deep-merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function deepMerge(target: Record<string, any>, source: Record<string, any>) {
export function deepMerge(target: Record<string, any>, source: Record<string, any>) {
const merged = target;
for (const prop in source) {
if (typeof source[prop] === 'object' && source[prop] !== null) {
Expand All @@ -24,5 +24,3 @@ function deepMerge(target: Record<string, any>, source: Record<string, any>) {
}
return merged;
}

export default deepMerge;

0 comments on commit 9092761

Please sign in to comment.