Skip to content

Commit d3ee0e0

Browse files
authored
chore: Fix typos in code comments and descriptions (#1703)
1 parent 0b74df6 commit d3ee0e0

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Before instrumenting your app using the NPM package, a Browser App should be con
4747

4848
For best results, import and instantiate the `BrowserAgent` class as close to the top of the `head` element of your app's HTML output as possible. The specific location and method will vary based on your application's architecture or framework. See [Library Support](#library-support) for more information.
4949

50-
Populate the `options` parameter using configuration values found in the the *Copy/Paste JavaScript* box in your browser app's *Application settings* page in New Relic.
50+
Populate the `options` parameter using configuration values found in the *Copy/Paste JavaScript* box in your browser app's *Application settings* page in New Relic.
5151

5252
```javascript
5353
import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent'

src/common/drain/drain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function drainGroup (agentIdentifier, group, activateGroup = true) {
128128

129129
/**
130130
* Processes the specified event using all relevant handler functions associated with a particular feature, based on
131-
* whether the the handler is meant to apply to events of this type. (Event type is a descriptive string set at the
131+
* whether the handler is meant to apply to events of this type. (Event type is a descriptive string set at the
132132
* time an event is originally created by instrumentation, as with calls to the `handle` method.)
133133
* @param {*} evt - A single event to be emitted to (processed by) eligible handler functions.
134134
* @param {*} groupHandlers - A set of handler functions associated with a particular feature's event-group.

src/common/harvest/harvester.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class Harvester {
3535
if (typeof aggregateInst.harvestOpts.beforeUnload === 'function') aggregateInst.harvestOpts.beforeUnload()
3636
})
3737
this.initializedAggregates.forEach(aggregateInst => this.triggerHarvestFor(aggregateInst, { isFinalHarvest: true }))
38-
/* This callback should run in bubble phase, so that that CWV api, like "onLCP", is called before the final harvest so that emitted timings are part of last outgoing. */
38+
/* This callback should run in bubble phase, so that CWV api, like "onLCP", is called before the final harvest so that emitted timings are part of last outgoing. */
3939
}, false)
4040
}
4141

src/features/jserrors/aggregate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Aggregate extends AggregateBase {
9999
/**
100100
*
101101
* @param {Error|UncaughtError} err The error instance to be processed
102-
* @param {number} time the relative ms (to origin) timestamp of occurence
102+
* @param {number} time the relative ms (to origin) timestamp of occurrence
103103
* @param {boolean=} internal if the error was "caught" and deemed "internal" before reporting to the jserrors feature
104104
* @param {object=} customAttributes any custom attributes to be included in the error payload
105105
* @param {boolean=} hasReplay a flag indicating if the error occurred during a replay session

src/features/soft_navigations/aggregate/initial-page-load-interaction.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export class InitialPageLoadInteraction extends Interaction {
2828
get navTiming () {
2929
if (!navTimingValues.length) return
3030
/*
31-
1. we initialize the seperator to ',' (seperates the nodeType id from the first value)
31+
1. we initialize the separator to ',' (separates the nodeType id from the first value)
3232
2. we initialize the navTiming node to 'b' (the nodeType id)
33-
3. if the value is present, we add the seperator followed by the value;
33+
3. if the value is present, we add the separator followed by the value;
3434
otherwise:
35-
- we add null seperator ('!') to the navTimingNode
36-
- we set the seperator to an empty string since we already wrote it above
37-
the reason for writing the null seperator instead of setting the seperator
35+
- we add null separator ('!') to the navTimingNode
36+
- we set the separator to an empty string since we already wrote it above
37+
the reason for writing the null separator instead of setting the separator
3838
is to ensure we still write it if the null is the last navTiming value.
3939
*/
4040
let seperator = ','

src/features/utils/feature-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class FeatureBase {
1414
/** @type {string} */
1515
this.featureName = featureName
1616
/**
17-
* Blocked can be used to prevent aggregation and harvest after inititalization time of the feature.
17+
* Blocked can be used to prevent aggregation and harvest after initialization time of the feature.
1818
* This can currently happen if RUM response setToken flag is 0, which is tied to ingest account entitlement info.
1919
* @type {boolean}
2020
*/

tools/testing-server/plugins/agent-injector/loader-transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function getLoaderScript (scriptType, loaderFilePath, nonce, injectionDela
5757

5858
/**
5959
* Transforms requests for HTML files that contain the \{loader\} string with the
60-
* built loader JS. By default, the full loader will be used but can be overriden
60+
* built loader JS. By default, the full loader will be used but can be overridden
6161
* by passing the loader query param.
6262
*/
6363
module.exports = function (request, reply, testServer) {

tools/wdio/args.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const args = yargs(hideBin(process.argv))
1919
.alias('b', 'browsers')
2020
.describe(
2121
'b',
22-
'a comma seperated list of browsers with an optional semver range. (eg. chrome@>39)'
22+
'a comma separated list of browsers with an optional semver range. (eg. chrome@>39)'
2323
)
2424

2525
.number('concurrent')
@@ -48,7 +48,7 @@ const args = yargs(hideBin(process.argv))
4848
.default('t', 85000)
4949

5050
.number('session-timeout')
51-
.describe('session-timeout', 'timout in ms for LambdaTest browser session')
51+
.describe('session-timeout', 'timeout in ms for LambdaTest browser session')
5252
.default('session-timeout', 120000)
5353

5454
.boolean('d')

0 commit comments

Comments
 (0)