File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
- Fix Potential DOM-based XSS via prototype pollution
12
12
13
+ # 4.1.7 / 2021-03-17
14
+
15
+ - Fix Potential DOM-based XSS via prototype pollution
16
+
13
17
# 4.1.6 / 2020-11-24
14
18
15
19
- Update ` trim ` package to address ReDoS vulnerability
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ import {
6
6
SegmentAnalytics ,
7
7
SegmentOpts ,
8
8
SegmentIntegration ,
9
- PageDefaults , Message
9
+ PageDefaults
10
10
} from './types' ;
11
11
12
12
import { pageDefaults } from './pageDefaults' ;
13
13
14
14
import pick from 'lodash.pick'
15
+ import url from 'component-url'
15
16
16
17
var _analytics = global . analytics ;
17
18
@@ -70,7 +71,6 @@ function Analytics() {
70
71
this . log = debug ( 'analytics.js' ) ;
71
72
bindAll ( this ) ;
72
73
73
-
74
74
const self = this ;
75
75
this . on ( 'initialize' , function ( _ , options ) {
76
76
if ( options . initialPageview ) self . page ( ) ;
@@ -961,6 +961,10 @@ Analytics.prototype.reset = function() {
961
961
* @api private
962
962
*/
963
963
964
+ interface QueryStringParams {
965
+ [ key : string ] : string | null ;
966
+ }
967
+
964
968
Analytics . prototype . _parseQuery = function ( query : string ) : SegmentAnalytics {
965
969
// Parse querystring to an object
966
970
const parsed = url . parse ( query ) ;
You can’t perform that action at this time.
0 commit comments