@newrelic/browser-agent 1.243.1 → 1.245.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/cjs/cdn/polyfills.js +4 -1
- package/dist/cjs/common/config/state/init.js +6 -0
- package/dist/cjs/common/constants/env.cdn.js +9 -3
- package/dist/cjs/common/constants/env.js +8 -2
- package/dist/cjs/common/constants/env.npm.js +9 -3
- package/dist/cjs/common/url/parse-url.js +9 -8
- package/dist/cjs/common/util/console.js +2 -2
- package/dist/cjs/common/util/type-check.js +14 -0
- package/dist/cjs/features/ajax/aggregate/gql.js +94 -0
- package/dist/cjs/features/ajax/aggregate/index.js +12 -1
- package/dist/cjs/features/ajax/instrument/index.js +2 -0
- package/dist/cjs/features/session_replay/aggregate/index.js +33 -23
- package/dist/cjs/features/spa/aggregate/index.js +3 -2
- package/dist/cjs/features/spa/aggregate/serializer.js +7 -0
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/loaders/agent-base.js +3 -3
- package/dist/cjs/loaders/agent.js +1 -1
- package/dist/cjs/loaders/api/api.js +2 -2
- package/dist/esm/cdn/polyfills.js +4 -1
- package/dist/esm/common/config/state/init.js +6 -0
- package/dist/esm/common/constants/env.cdn.js +7 -2
- package/dist/esm/common/constants/env.js +6 -1
- package/dist/esm/common/constants/env.npm.js +7 -2
- package/dist/esm/common/url/parse-url.js +9 -8
- package/dist/esm/common/util/console.js +2 -2
- package/dist/esm/common/util/type-check.js +8 -0
- package/dist/esm/features/ajax/aggregate/gql.js +89 -0
- package/dist/esm/features/ajax/aggregate/index.js +12 -1
- package/dist/esm/features/ajax/instrument/index.js +2 -0
- package/dist/esm/features/session_replay/aggregate/index.js +31 -21
- package/dist/esm/features/spa/aggregate/index.js +3 -2
- package/dist/esm/features/spa/aggregate/serializer.js +7 -0
- package/dist/esm/index.js +0 -1
- package/dist/esm/loaders/agent-base.js +3 -3
- package/dist/esm/loaders/agent.js +1 -1
- package/dist/esm/loaders/api/api.js +2 -2
- package/dist/types/common/config/state/init.d.ts.map +1 -1
- package/dist/types/common/constants/env.cdn.d.ts +4 -0
- package/dist/types/common/constants/env.cdn.d.ts.map +1 -1
- package/dist/types/common/constants/env.d.ts +4 -0
- package/dist/types/common/constants/env.d.ts.map +1 -1
- package/dist/types/common/constants/env.npm.d.ts +4 -0
- package/dist/types/common/constants/env.npm.d.ts.map +1 -1
- package/dist/types/common/url/parse-url.d.ts.map +1 -1
- package/dist/types/common/util/console.d.ts +3 -3
- package/dist/types/common/util/console.d.ts.map +1 -1
- package/dist/types/common/util/type-check.d.ts +7 -0
- package/dist/types/common/util/type-check.d.ts.map +1 -0
- package/dist/types/features/ajax/aggregate/gql.d.ts +29 -0
- package/dist/types/features/ajax/aggregate/gql.d.ts.map +1 -0
- package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts +2 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/spa/aggregate/serializer.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/loaders/agent-base.d.ts +2 -2
- package/dist/types/loaders/agent-base.d.ts.map +1 -1
- package/package.json +2 -10
- package/src/cdn/polyfills.js +3 -0
- package/src/common/config/state/init.js +3 -0
- package/src/common/constants/__mocks__/env.js +1 -0
- package/src/common/constants/env.cdn.js +5 -0
- package/src/common/constants/env.js +5 -0
- package/src/common/constants/env.npm.js +5 -0
- package/src/common/url/parse-url.js +9 -7
- package/src/common/util/console.js +2 -2
- package/src/common/util/type-check.js +8 -0
- package/src/features/ajax/aggregate/gql.js +95 -0
- package/src/features/ajax/aggregate/index.js +9 -1
- package/src/features/ajax/instrument/index.js +3 -0
- package/src/features/session_replay/aggregate/index.js +30 -22
- package/src/features/spa/aggregate/index.js +3 -2
- package/src/features/spa/aggregate/serializer.js +7 -1
- package/src/index.js +0 -1
- package/src/loaders/agent-base.js +3 -3
- package/src/loaders/agent.js +1 -1
- package/src/loaders/api/api.js +2 -2
- package/dist/cjs/cdn/worker.js +0 -16
- package/dist/cjs/loaders/worker-agent.js +0 -24
- package/dist/esm/cdn/worker.js +0 -14
- package/dist/esm/loaders/worker-agent.js +0 -18
- package/dist/types/cdn/worker.d.ts +0 -2
- package/dist/types/cdn/worker.d.ts.map +0 -1
- package/dist/types/loaders/worker-agent.d.ts +0 -8
- package/dist/types/loaders/worker-agent.d.ts.map +0 -1
- package/src/cdn/worker.js +0 -21
- package/src/loaders/worker-agent.js +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/worker-agent.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IACE,uBAWC;CACF;sBAvBqB,SAAS"}
|
package/src/cdn/worker.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Creates a "Worker" agent loader bundle composed of the core Agent and the subset of feature modules applicable
|
|
3
|
-
* in a service worker context.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { Agent } from '../loaders/agent'
|
|
7
|
-
|
|
8
|
-
import { Instrument as InstrumentMetrics } from '../features/metrics/instrument'
|
|
9
|
-
import { Instrument as InstrumentErrors } from '../features/jserrors/instrument'
|
|
10
|
-
import { Instrument as InstrumentXhr } from '../features/ajax/instrument'
|
|
11
|
-
import { Instrument as InstrumentPageAction } from '../features/page_action/instrument'
|
|
12
|
-
|
|
13
|
-
new Agent({
|
|
14
|
-
features: [
|
|
15
|
-
InstrumentMetrics,
|
|
16
|
-
InstrumentErrors,
|
|
17
|
-
InstrumentXhr,
|
|
18
|
-
InstrumentPageAction
|
|
19
|
-
],
|
|
20
|
-
loaderType: 'worker'
|
|
21
|
-
})
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Agent } from './agent'
|
|
2
|
-
|
|
3
|
-
import { Instrument as InstrumentMetrics } from '../features/metrics/instrument'
|
|
4
|
-
import { Instrument as InstrumentErrors } from '../features/jserrors/instrument'
|
|
5
|
-
import { Instrument as InstrumentXhr } from '../features/ajax/instrument'
|
|
6
|
-
import { Instrument as InstrumentPageAction } from '../features/page_action/instrument'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A streamlined agent class designed for the service worker context, limited to features relevant in that scope.
|
|
10
|
-
*/
|
|
11
|
-
export class WorkerAgent extends Agent {
|
|
12
|
-
constructor (args) {
|
|
13
|
-
super({
|
|
14
|
-
...args,
|
|
15
|
-
features: [
|
|
16
|
-
InstrumentMetrics,
|
|
17
|
-
InstrumentErrors,
|
|
18
|
-
InstrumentXhr,
|
|
19
|
-
InstrumentPageAction
|
|
20
|
-
],
|
|
21
|
-
loaderType: 'worker-agent'
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
}
|