rudder-sdk-js 2.21.1 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rudder-sdk-js",
3
- "version": "2.21.1",
3
+ "version": "2.22.0",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",
@@ -30,7 +30,7 @@
30
30
  "rudder"
31
31
  ],
32
32
  "author": "RudderStack",
33
- "license": "Apache-2.0",
33
+ "license": "MIT",
34
34
  "repository": {
35
35
  "type": "git",
36
36
  "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git"
@@ -1,6 +1,4 @@
1
- export {
2
- Analytics
3
- };
1
+ export { Analytics };
4
2
 
5
3
  /**
6
4
  * Represents a generic object in the APIs
@@ -61,11 +59,7 @@ declare class Analytics {
61
59
  * @param {Boolean=true} options.enable (default: true)
62
60
  * @param {Number=20000} options.maxInternalQueueSize
63
61
  */
64
- constructor(
65
- writeKey: string,
66
- dataPlaneURL: string,
67
- options?: constructorOptions
68
- );
62
+ constructor(writeKey: string, dataPlaneURL: string, options?: constructorOptions);
69
63
 
70
64
  /**
71
65
  * Send an identify `message`.
@@ -89,7 +83,7 @@ declare class Analytics {
89
83
  integrations?: integrationOptions;
90
84
  timestamp?: Date;
91
85
  },
92
- callback?: apiCallback
86
+ callback?: apiCallback,
93
87
  ): Analytics;
94
88
  /**
95
89
  * Send a group `message`.
@@ -115,7 +109,7 @@ declare class Analytics {
115
109
  integrations?: integrationOptions;
116
110
  timestamp?: Date;
117
111
  },
118
- callback?: apiCallback
112
+ callback?: apiCallback,
119
113
  ): Analytics;
120
114
  /**
121
115
  * Send a track `message`.
@@ -141,7 +135,7 @@ declare class Analytics {
141
135
  integrations?: integrationOptions;
142
136
  timestamp?: Date;
143
137
  },
144
- callback?: apiCallback
138
+ callback?: apiCallback,
145
139
  ): Analytics;
146
140
  /**
147
141
  * Send a page `message`.
@@ -167,7 +161,7 @@ declare class Analytics {
167
161
  integrations?: integrationOptions;
168
162
  timestamp?: Date;
169
163
  },
170
- callback?: apiCallback
164
+ callback?: apiCallback,
171
165
  ): Analytics;
172
166
 
173
167
  /**
@@ -194,7 +188,7 @@ declare class Analytics {
194
188
  integrations?: integrationOptions;
195
189
  timestamp?: Date;
196
190
  },
197
- callback?: apiCallback
191
+ callback?: apiCallback,
198
192
  ): Analytics;
199
193
 
200
194
  /**