Skip to content

Commit

Permalink
update module
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-rudder committed May 27, 2020
1 parent bdeb1e4 commit da9fd63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/rudder-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10195,11 +10195,12 @@
}, {
key: "enqueue",
value: function enqueue(rudderElement, type) {
var message = rudderElement.getElementContent();
var headers = {
"Content-Type": "application/json",
Authorization: "Basic " + btoa(this.writeKey + ":")
Authorization: "Basic " + btoa(this.writeKey + ":"),
AnonymousId: btoa(message.anonymousId)
};
var message = rudderElement.getElementContent();
message.originalTimestamp = getCurrentTimeFormatted();
message.sentAt = getCurrentTimeFormatted(); // add this, will get modified when actually being sent
// check message size, if greater log an error
Expand Down
2 changes: 1 addition & 1 deletion tests/rudder-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-js",
"version": "1.0.7",
"version": "1.0.9",
"description": "",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit da9fd63

Please sign in to comment.