Comparing version 3.0.1 to 3.0.2
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Consumer, exports; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var ConsumerError, ExtensionError, NonceError, OutcomeResponseError, ParameterError, SignatureError, StoreError, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var ContentExtension, FILE_RETURN_TYPE, IFRAME_RETURN_TYPE, IMAGE_URL_RETURN_TYPE, LTI_LAUNCH_URL_RETURN_TYPE, OEMBED_RETURN_TYPE, URL_RETURN_TYPE, errors, optional_url_property_setter, parse_url, url; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ exports.Content = require('./content'); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -120,3 +120,3 @@ var HMAC_SHA1, OutcomeDocument, OutcomeService, crypto, errors, http, https, navigateXml, url, utils, uuid, xml2js, xml_builder; | ||
OutcomeService.prototype.send_replace_result = function(score, callback) { | ||
var doc, err; | ||
var doc, err, error; | ||
doc = new OutcomeDocument(this.REQUEST_REPLACE, this.source_did, this); | ||
@@ -126,4 +126,4 @@ try { | ||
return this._send_request(doc, callback); | ||
} catch (_error) { | ||
err = _error; | ||
} catch (error) { | ||
err = error; | ||
return callback(err, false); | ||
@@ -134,3 +134,3 @@ } | ||
OutcomeService.prototype.send_replace_result_with_text = function(score, text, callback) { | ||
var doc, err; | ||
var doc, err, error; | ||
doc = new OutcomeDocument(this.REQUEST_REPLACE, this.source_did, this); | ||
@@ -140,4 +140,4 @@ try { | ||
return this._send_request(doc, callback); | ||
} catch (_error) { | ||
err = _error; | ||
} catch (error) { | ||
err = error; | ||
return callback(err, false); | ||
@@ -148,3 +148,3 @@ } | ||
OutcomeService.prototype.send_replace_result_with_url = function(score, url, callback) { | ||
var doc, err; | ||
var doc, err, error; | ||
doc = new OutcomeDocument(this.REQUEST_REPLACE, this.source_did, this); | ||
@@ -154,4 +154,4 @@ try { | ||
return this._send_request(doc, callback); | ||
} catch (_error) { | ||
err = _error; | ||
} catch (error) { | ||
err = error; | ||
return callback(err, false); | ||
@@ -216,7 +216,3 @@ } | ||
return res.on('end', function() { | ||
if (res.statusCode === 200) { | ||
return _this._process_response(body, callback); | ||
} else { | ||
return callback(new errors.OutcomeResponseError('Incorrect authentication credentials'), false); | ||
} | ||
return _this._process_response(body, callback); | ||
}); | ||
@@ -265,3 +261,3 @@ }; | ||
return function(err, result) { | ||
var code, response; | ||
var code, msg, response; | ||
if (err) { | ||
@@ -273,3 +269,4 @@ return callback(new errors.OutcomeResponseError('The server responsed with an invalid XML document'), false); | ||
if (code !== 'success') { | ||
return callback(new errors.OutcomeResponseError('The request provided was invalid'), false); | ||
msg = navigateXml(response, 'imsx_POXHeader.imsx_POXResponseHeaderInfo.imsx_statusInfo.imsx_description'); | ||
return callback(new errors.OutcomeResponseError(msg), false); | ||
} else { | ||
@@ -276,0 +273,0 @@ return callback(null, true, response); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var HMAC_SHA1, _clean_request_body, crypto, exports, url, utils; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var exports, extensions; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var EXPIRE_IN_SEC, MemoryNonceStore, NonceStore, exports, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var NonceStore, exports, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var HMAC_SHA1, MemoryNonceStore, Provider, errors, exports, extensions, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var EXPIRE_IN_SEC, NonceStore, RedisNonceStore, exports, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ exports.special_encode = function(string) { |
{ | ||
"name": "ims-lti", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Module for building an LTI Tool Provider and accept LTI launch requests", | ||
@@ -5,0 +5,0 @@ "author": { |
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
43475
850