Skip to content

Commit

Permalink
fix: nested object in options are shared across multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpagtakhan committed Oct 25, 2022
1 parent b9c3f67 commit 1c5a2d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var AmplitudeClient = function AmplitudeClient(instanceName) {
this.options = {
...DEFAULT_OPTIONS,
headers: { ...DEFAULT_OPTIONS.headers },
ingestionMetadata: { ...DEFAULT_OPTIONS.ingestionMetadata },
library: { ...DEFAULT_OPTIONS.library },
plan: { ...DEFAULT_OPTIONS.plan },
trackingOptions: { ...DEFAULT_OPTIONS.trackingOptions },
Expand Down

0 comments on commit 1c5a2d3

Please sign in to comment.