@mparticle/web-sdk
Advanced tools
Comparing version 2.9.4-rc.1 to 2.9.4-rc.2
## Releases | ||
-- | ||
#### 2.9.4-rc1 - 2019-06-24 | ||
* Implement self hosting | ||
#### 2.9.3 - 2019-06-20 | ||
@@ -8,0 +5,0 @@ * Bugfix - retain mParticle.isIOS on script load |
{ | ||
"name": "@mparticle/web-sdk", | ||
"version": "2.9.4-rc.1", | ||
"version": "2.9.4-rc.2", | ||
"description": "mParticle core SDK for web applications", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -742,5 +742,5 @@ // | ||
function completeSDKInitialization(apiKey, config) { | ||
mParticle.Store = new Store(config); | ||
mParticle.Logger = new Logger(config); | ||
mParticle.Store = new Store(config, mParticle.Logger); | ||
@@ -747,0 +747,0 @@ mParticle.Store.webviewBridgeEnabled = NativeSdkHelpers.isWebviewEnabled(mParticle.Store.SDKConfig.requiredWebviewBridgeName, mParticle.Store.SDKConfig.minWebviewBridgeVersion); |
@@ -28,3 +28,3 @@ var Constants = require('./constants'), | ||
function Store(config) { | ||
function Store(config, logger) { | ||
var defaultStore = { | ||
@@ -171,3 +171,3 @@ isEnabled: true, | ||
} else { | ||
mParticle.Logger.warning('The optional callback must be a function. You tried entering a(n) ' + typeof callback, ' . Callback not set. Please set your callback again.'); | ||
logger.warning('The optional callback must be a function. You tried entering a(n) ' + typeof callback, ' . Callback not set. Please set your callback again.'); | ||
} | ||
@@ -198,3 +198,3 @@ } | ||
} else { | ||
mParticle.Logger.warning('You should have a workspaceToken on your mParticle.config object for security purposes.'); | ||
logger.warning('You should have a workspaceToken on your mParticle.config object for security purposes.'); | ||
} | ||
@@ -201,0 +201,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
300684
25
1