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