@trimble-oss/trimble-id
Advanced tools
Comparing version 0.0.2 to 0.0.3-rc.1
@@ -28,3 +28,3 @@ (function (root, factory) { | ||
sdkName = "@trimble-oss/trimble-id"; | ||
sdkVersion = "0.0.2"; | ||
sdkVersion = "0.0.3-rc.1"; | ||
@@ -105,2 +105,2 @@ constructor() { | ||
return AnalyticsHttpClient; | ||
})); | ||
})); |
@@ -8,5 +8,6 @@ 'use strict'; | ||
define(['./HttpClient', './AnalyticsHttpClient'], (HttpClient, AnalyticsHttpClient) => { | ||
return factory({ | ||
HttpClient: HttpClient, | ||
AnalyticsHttpClient: AnalyticsHttpClient }); | ||
return factory({ | ||
HttpClient: HttpClient, | ||
AnalyticsHttpClient: AnalyticsHttpClient | ||
}); | ||
}); | ||
@@ -33,5 +34,6 @@ } else if (typeof exports === 'object') { | ||
this._consumerKey = this.RetrieveConsumerKey(); | ||
//Send analytics | ||
this._analyticshttpclient = new imports.AnalyticsHttpClient() | ||
this._analyticshttpclient.sendInitEvent(this.constructor.name); | ||
this._analyticshttpclient.sendInitEvent(this.constructor.name, this._consumerKey); | ||
}; | ||
@@ -46,3 +48,3 @@ | ||
//Send analytics | ||
this._analyticshttpclient.sendMethodEvent("RetrieveClient"); | ||
this._analyticshttpclient.sendMethodEvent("RetrieveClient", this._consumerKey); | ||
@@ -64,4 +66,16 @@ var self = this; | ||
/** | ||
* @function | ||
* @name RetrieveConsumerKey | ||
* @returns {string} It retrieves the consumer key of the application. | ||
*/ | ||
BearerTokenHttpClientProvider.prototype.RetrieveConsumerKey = function () { | ||
if (this._tokenProvider != null) { | ||
return this._tokenProvider._consumerKey; | ||
} | ||
return null; | ||
}; | ||
// Exposed public methods | ||
return BearerTokenHttpClientProvider; | ||
})); |
{ | ||
"name": "@trimble-oss/trimble-id", | ||
"version": "0.0.2", | ||
"version": "0.0.3-rc.1", | ||
"description": "Trimble Identity SDK for JavaScript/ TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
149651
3008