Skip to content

Commit

Permalink
change crypto version and loaded fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-mitra committed Jul 22, 2020
1 parent f9c3852 commit c734231
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ class Analytics {
}

getAnonymousId() {
if (!this.loaded) return;
// if (!this.loaded) return;
this.anonymousId = this.storage.getAnonymousId();
if (!this.anonymousId) {
this.setAnonymousId();
Expand All @@ -749,7 +749,7 @@ class Analytics {
}

setAnonymousId(anonymousId) {
if (!this.loaded) return;
// if (!this.loaded) return;
this.anonymousId = anonymousId || generateUUID();
this.storage.setAnonymousId(this.anonymousId);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"changelog": "auto-changelog -p -t keepachangelog -u true -l false --sort-commits date-desc "
},
"pre-commit": [
"test"
"prodTest"
],
"author": "",
"license": "ISC",
Expand All @@ -49,7 +49,7 @@
"component-each": "^0.2.6",
"component-emitter": "github:component/emitter",
"component-url": "^0.2.1",
"crypto-js": "^4.0.0",
"crypto-js": "3.1.9-1",
"each": "^1.2.2",
"fs": "0.0.1-security",
"gh-release": "^3.5.0",
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import brotli from "rollup-plugin-brotli";
import * as webPackage from "./package.json";
import * as npmPackage from "./dist/rudder-sdk-js/package.json";


let distFileName = "";
let version = webPackage.version;
let {version} = webPackage;
let moduleType = "web";
switch (process.env.ENV) {
case "prod":
Expand Down Expand Up @@ -78,11 +77,12 @@ export default {
"process.browser": process.env.NODE_ENV != "true",
"process.prod": process.env.ENV == "prod",
"process.package_version": version,
"process.module_type": moduleType
"process.module_type": moduleType,
}),
resolve({
jsnext: true,
browser: true,
preferBuiltins: false,
}),

commonjs({
Expand Down

0 comments on commit c734231

Please sign in to comment.