Comparing version 2.1.1 to 2.1.2
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Consumer, exports; |
@@ -1,9 +0,9 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var ConsumerError, ExtensionError, NonceError, OutcomeResponseError, ParameterError, SignatureError, StoreError, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
hasProp = {}.hasOwnProperty; | ||
ConsumerError = (function(_super) { | ||
__extends(ConsumerError, _super); | ||
ConsumerError = (function(superClass) { | ||
extend(ConsumerError, superClass); | ||
@@ -19,4 +19,4 @@ function ConsumerError(message) { | ||
ExtensionError = (function(_super) { | ||
__extends(ExtensionError, _super); | ||
ExtensionError = (function(superClass) { | ||
extend(ExtensionError, superClass); | ||
@@ -32,4 +32,4 @@ function ExtensionError(message) { | ||
StoreError = (function(_super) { | ||
__extends(StoreError, _super); | ||
StoreError = (function(superClass) { | ||
extend(StoreError, superClass); | ||
@@ -45,4 +45,4 @@ function StoreError(message) { | ||
ParameterError = (function(_super) { | ||
__extends(ParameterError, _super); | ||
ParameterError = (function(superClass) { | ||
extend(ParameterError, superClass); | ||
@@ -58,4 +58,4 @@ function ParameterError(message) { | ||
SignatureError = (function(_super) { | ||
__extends(SignatureError, _super); | ||
SignatureError = (function(superClass) { | ||
extend(SignatureError, superClass); | ||
@@ -71,4 +71,4 @@ function SignatureError(message) { | ||
NonceError = (function(_super) { | ||
__extends(NonceError, _super); | ||
NonceError = (function(superClass) { | ||
extend(NonceError, superClass); | ||
@@ -84,4 +84,4 @@ function NonceError(message) { | ||
OutcomeResponseError = (function(_super) { | ||
__extends(OutcomeResponseError, _super); | ||
OutcomeResponseError = (function(superClass) { | ||
extend(OutcomeResponseError, superClass); | ||
@@ -88,0 +88,0 @@ function OutcomeResponseError(message) { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(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.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ exports.Content = require('./content'); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
@@ -24,7 +24,7 @@ var OutcomeDocument, OutcomeService, crypto, errors, http, https, navigateXml, url, utils, uuid, xml2js, xml_builder; | ||
navigateXml = function(xmlObject, path) { | ||
var part, _i, _len, _ref, _ref1; | ||
_ref = path.split('.'); | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
part = _ref[_i]; | ||
xmlObject = xmlObject != null ? (_ref1 = xmlObject[part]) != null ? _ref1[0] : void 0 : void 0; | ||
var i, len, part, ref, ref1; | ||
ref = path.split('.'); | ||
for (i = 0, len = ref.length; i < len; i++) { | ||
part = ref[i]; | ||
xmlObject = xmlObject != null ? (ref1 = xmlObject[part]) != null ? ref1[0] : void 0 : void 0; | ||
} | ||
@@ -48,3 +48,3 @@ return xmlObject; | ||
this.head.ele('imsx_messageIdentifier', uuid.v1()); | ||
this.body.ele('sourceGUID').ele('sourcedId', source_did); | ||
this.body.ele('sourcedGUID').ele('sourcedId', source_did); | ||
} | ||
@@ -102,7 +102,7 @@ | ||
function OutcomeService(provider, language) { | ||
function OutcomeService(provider1, language1) { | ||
var body, parts; | ||
this.provider = provider; | ||
this.language = language != null ? language : 'en'; | ||
body = provider.body; | ||
this.provider = provider1; | ||
this.language = language1 != null ? language1 : 'en'; | ||
body = this.provider.body; | ||
this.service_url = body.lis_outcome_service_url; | ||
@@ -232,9 +232,9 @@ this.source_did = body.lis_result_sourcedid; | ||
Authorization: 'OAuth realm="",' + ((function() { | ||
var _results; | ||
_results = []; | ||
var results; | ||
results = []; | ||
for (key in headers) { | ||
val = headers[key]; | ||
_results.push("" + key + "=\"" + (utils.special_encode(val)) + "\""); | ||
results.push(key + "=\"" + (utils.special_encode(val)) + "\""); | ||
} | ||
return _results; | ||
return results; | ||
})()).join(','), | ||
@@ -241,0 +241,0 @@ 'Content-Type': 'application/xml', |
@@ -1,4 +0,4 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var HMAC_SHA1, crypto, exports, url, utils, _clean_request_body; | ||
var HMAC_SHA1, _clean_request_body, crypto, exports, url, utils; | ||
@@ -15,6 +15,6 @@ crypto = require('crypto'); | ||
encodeParam = function(key, val) { | ||
return "" + key + "=" + (utils.special_encode(val)); | ||
return key + "=" + (utils.special_encode(val)); | ||
}; | ||
cleanParams = function(params) { | ||
var key, val, vals, _i, _len; | ||
var i, key, len, val, vals; | ||
if (typeof params !== 'object') { | ||
@@ -29,4 +29,4 @@ return; | ||
if (Array.isArray(vals) === true) { | ||
for (_i = 0, _len = vals.length; _i < _len; _i++) { | ||
val = vals[_i]; | ||
for (i = 0, len = vals.length; i < len; i++) { | ||
val = vals[i]; | ||
out.push(encodeParam(key, val)); | ||
@@ -75,3 +75,3 @@ } | ||
HMAC_SHA1.prototype.sign_string = function(str, key, token) { | ||
key = "" + key + "&"; | ||
key = key + "&"; | ||
if (token) { | ||
@@ -78,0 +78,0 @@ key += token; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var exports, extensions; |
@@ -1,6 +0,6 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var EXPIRE_IN_SEC, MemoryNonceStore, NonceStore, exports, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
hasProp = {}.hasOwnProperty; | ||
@@ -11,4 +11,4 @@ NonceStore = require('./nonce-store'); | ||
MemoryNonceStore = (function(_super) { | ||
__extends(MemoryNonceStore, _super); | ||
MemoryNonceStore = (function(superClass) { | ||
extend(MemoryNonceStore, superClass); | ||
@@ -15,0 +15,0 @@ function MemoryNonceStore() { |
@@ -1,10 +0,10 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var NonceStore, exports, | ||
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
NonceStore = (function() { | ||
function NonceStore() { | ||
this.setUsed = __bind(this.setUsed, this); | ||
this.isNew = __bind(this.isNew, this); | ||
this.setUsed = bind(this.setUsed, this); | ||
this.isNew = bind(this.isNew, this); | ||
} | ||
@@ -11,0 +11,0 @@ |
@@ -1,5 +0,5 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var HMAC_SHA1, MemoryNonceStore, Provider, errors, exports, extensions, | ||
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
@@ -19,4 +19,4 @@ HMAC_SHA1 = require('./hmac-sha1'); | ||
} | ||
this.parse_request = __bind(this.parse_request, this); | ||
this.valid_request = __bind(this.valid_request, this); | ||
this.parse_request = bind(this.parse_request, this); | ||
this.valid_request = bind(this.valid_request, this); | ||
if (typeof consumer_key === 'undefined' || consumer_key === null) { | ||
@@ -83,3 +83,3 @@ throw new errors.ConsumerError('Must specify consumer_key'); | ||
Provider.prototype.parse_request = function(req, body) { | ||
var extension, extension_name, id, key, val, _results; | ||
var extension, extension_name, id, key, results, val; | ||
body = body || req.body || req.payload; | ||
@@ -115,10 +115,10 @@ for (key in body) { | ||
this.mentor_user_ids = (function() { | ||
var _i, _len, _ref, _results; | ||
_ref = this.body.role_scope_mentor.split(','); | ||
_results = []; | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
id = _ref[_i]; | ||
_results.push(decodeURIComponent(id)); | ||
var i, len, ref, results; | ||
ref = this.body.role_scope_mentor.split(','); | ||
results = []; | ||
for (i = 0, len = ref.length; i < len; i++) { | ||
id = ref[i]; | ||
results.push(decodeURIComponent(id)); | ||
} | ||
return _results; | ||
return results; | ||
}).call(this); | ||
@@ -129,8 +129,8 @@ } | ||
this.context_title = this.body.context_title; | ||
_results = []; | ||
results = []; | ||
for (extension_name in extensions) { | ||
extension = extensions[extension_name]; | ||
_results.push(extension.init(this)); | ||
results.push(extension.init(this)); | ||
} | ||
return _results; | ||
return results; | ||
}; | ||
@@ -137,0 +137,0 @@ |
@@ -1,6 +0,6 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var EXPIRE_IN_SEC, NonceStore, RedisNonceStore, exports, | ||
__hasProp = {}.hasOwnProperty, | ||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
hasProp = {}.hasOwnProperty; | ||
@@ -11,4 +11,4 @@ NonceStore = require('./nonce-store'); | ||
RedisNonceStore = (function(_super) { | ||
__extends(RedisNonceStore, _super); | ||
RedisNonceStore = (function(superClass) { | ||
extend(RedisNonceStore, superClass); | ||
@@ -15,0 +15,0 @@ function RedisNonceStore(redisClient) { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.8.0 | ||
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
@@ -3,0 +3,0 @@ exports.special_encode = function(string) { |
{ | ||
"name": "ims-lti", | ||
"version": "2.1.1", | ||
"version": "2.1.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
42216