repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/duplexify/test.js
aws/lti-middleware/node_modules/duplexify/test.js
var tape = require('tape') var through = require('through2') var concat = require('concat-stream') var stream = require('readable-stream') var net = require('net') var duplexify = require('./') var HELLO_WORLD = (Buffer.from && Buffer.from !== Uint8Array.from) ? Buffer.from('hello world') : new Buffer('hello world')...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/duplexify/example.js
aws/lti-middleware/node_modules/duplexify/example.js
var duplexify = require('duplexify') var http = require('http') var request = function(opts) { var req = http.request(opts) var dup = duplexify() dup.setWritable(req) req.on('response', function(res) { dup.setReadable(res) }) return dup } var req = request({ method: 'GET', host: 'www.google.com', ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/node_modules/ms/index.js
aws/lti-middleware/node_modules/jwks-rsa/node_modules/ms/index.js
/** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an error if val ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/index.js
aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/index.js
/** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node.js'); }
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/browser.js
aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/browser.js
/* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!warned) { warn...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/common.js
aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/common.js
/** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabl...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/node.js
aws/lti-middleware/node_modules/jwks-rsa/node_modules/debug/src/node.js
/** * Module dependencies. */ const tty = require('tty'); const util = require('util'); /** * This is the Node.js implementation of `debug()`. */ exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.destroy = uti...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/JwksClient.js
aws/lti-middleware/node_modules/jwks-rsa/src/JwksClient.js
const logger = require('debug')('jwks'); const { retrieveSigningKeys } = require('./utils') ; const { request, cacheSigningKey, rateLimitSigningKey, getKeysInterceptor, callbackSupport } = require('./wrappers'); const JwksError = require('./errors/JwksError'); const SigningKeyNotFoundError = require('./errors/SigningKe...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/index.js
aws/lti-middleware/node_modules/jwks-rsa/src/index.js
const { JwksClient } = require('./JwksClient'); const errors = require('./errors'); const { hapiJwt2Key, hapiJwt2KeyAsync } = require('./integrations/hapi'); const { expressJwtSecret } = require('./integrations/express'); const { koaJwtSecret } = require('./integrations/koa'); const { passportJwtSecret } = require('./i...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/utils.js
aws/lti-middleware/node_modules/jwks-rsa/src/utils.js
const jose = require('jose'); function retrieveSigningKeys(keys) { const keystore = jose.JWKS.asKeyStore({ keys }, { ignoreErrors: true }); return keystore.all({ use: 'sig' }).map((key) => { return { kid: key.kid, alg: key.alg, get publicKey() { return key.toPEM(false); }, get rsaPubli...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/integrations/express.js
aws/lti-middleware/node_modules/jwks-rsa/src/integrations/express.js
const { ArgumentError } = require('../errors'); const { JwksClient } = require('../JwksClient'); const supportedAlg = require('./config'); const handleSigningKeyError = (err, cb) => { // If we didn't find a match, can't provide a key. if (err && err.name === 'SigningKeyNotFoundError') { return cb(null); } ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/integrations/koa.js
aws/lti-middleware/node_modules/jwks-rsa/src/integrations/koa.js
const { ArgumentError } = require('../errors'); const { JwksClient } = require('../JwksClient'); const supportedAlg = require('./config'); module.exports.koaJwtSecret = function (options = {}) { if (!options.jwksUri) { throw new ArgumentError('No JWKS provided. Please provide a jwksUri'); } const client = n...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/integrations/hapi.js
aws/lti-middleware/node_modules/jwks-rsa/src/integrations/hapi.js
const { ArgumentError } = require('../errors'); const { JwksClient } = require('../JwksClient'); const supportedAlg = require('./config'); const handleSigningKeyError = (err, cb) => { // If we didn't find a match, can't provide a key. if (err && err.name === 'SigningKeyNotFoundError') { return cb(err, null, nu...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/integrations/config.js
aws/lti-middleware/node_modules/jwks-rsa/src/integrations/config.js
const allowedSignatureAlg = [ 'RS256', 'RS384', 'RS512', 'PS256', 'PS384', 'PS512', 'ES256', 'ES256K', 'ES384', 'ES512', 'EdDSA' ]; module.exports = allowedSignatureAlg;
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/integrations/passport.js
aws/lti-middleware/node_modules/jwks-rsa/src/integrations/passport.js
const JWT = require('jose').JWT; const { ArgumentError } = require('../errors'); const { JwksClient } = require('../JwksClient'); const supportedAlg = require('./config'); const handleSigningKeyError = (err, cb) => { // If we didn't find a match, can't provide a key. if (err && err.name === 'SigningKeyNotFoundErro...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/errors/JwksError.js
aws/lti-middleware/node_modules/jwks-rsa/src/errors/JwksError.js
function JwksError(message) { Error.call(this, message); Error.captureStackTrace(this, this.constructor); this.name = 'JwksError'; this.message = message; } JwksError.prototype = Object.create(Error.prototype); JwksError.prototype.constructor = JwksError; module.exports = JwksError;
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/errors/index.js
aws/lti-middleware/node_modules/jwks-rsa/src/errors/index.js
module.exports = { ArgumentError: require('./ArgumentError'), JwksError: require('./JwksError'), JwksRateLimitError: require('./JwksRateLimitError'), SigningKeyNotFoundError: require('./SigningKeyNotFoundError') };
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/errors/ArgumentError.js
aws/lti-middleware/node_modules/jwks-rsa/src/errors/ArgumentError.js
function ArgumentError(message) { Error.call(this, message); Error.captureStackTrace(this, this.constructor); this.name = 'ArgumentError'; this.message = message; } ArgumentError.prototype = Object.create(Error.prototype); ArgumentError.prototype.constructor = ArgumentError; module.exports = ArgumentError;
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/errors/SigningKeyNotFoundError.js
aws/lti-middleware/node_modules/jwks-rsa/src/errors/SigningKeyNotFoundError.js
function SigningKeyNotFoundError(message) { Error.call(this, message); Error.captureStackTrace(this, this.constructor); this.name = 'SigningKeyNotFoundError'; this.message = message; } SigningKeyNotFoundError.prototype = Object.create(Error.prototype); SigningKeyNotFoundError.prototype.constructor = SigningKey...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/errors/JwksRateLimitError.js
aws/lti-middleware/node_modules/jwks-rsa/src/errors/JwksRateLimitError.js
function JwksRateLimitError(message) { Error.call(this, message); Error.captureStackTrace(this, this.constructor); this.name = 'JwksRateLimitError'; this.message = message; } JwksRateLimitError.prototype = Object.create(Error.prototype); JwksRateLimitError.prototype.constructor = JwksRateLimitError; module.exp...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/interceptor.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/interceptor.js
const retrieveSigningKeys = require('../utils').retrieveSigningKeys; /** * Uses getKeysInterceptor to allow users to retrieve keys from a file, * external cache, or provided object before falling back to the jwksUri endpoint */ function getKeysInterceptor(client, { getKeysInterceptor }) { const getSigningKey = cl...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/index.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/index.js
module.exports = { request: require('./request').default, cacheSigningKey: require('./cache').default, rateLimitSigningKey: require('./rateLimit').default, getKeysInterceptor: require('./interceptor').default, callbackSupport: require('./callbackSupport').default };
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/cache.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/cache.js
const logger = require('debug')('jwks'); const memoizer = require('lru-memoizer'); const { promisify, callbackify } = require('util'); function cacheWrapper(client, { cacheMaxEntries = 5, cacheMaxAge = 600000 }) { logger(`Configured caching of signing keys. Max: ${cacheMaxEntries} / Age: ${cacheMaxAge}`); return p...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/callbackSupport.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/callbackSupport.js
const { callbackify } = require('util'); const callbackSupport = (client) => { const getSigningKey = client.getSigningKey.bind(client); return (kid, cb) => { if (cb) { const callbackFunc = callbackify(getSigningKey); return callbackFunc(kid, cb); } return getSigningKey(kid); }; }; modu...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/rateLimit.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/rateLimit.js
const logger = require('debug')('jwks'); const { RateLimiter } = require('limiter'); const JwksRateLimitError = require('../errors/JwksRateLimitError'); function rateLimitWrapper(client, { jwksRequestsPerMinute = 10 }) { const getSigningKey = client.getSigningKey.bind(client); const limiter = new RateLimiter(jwk...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/request.js
aws/lti-middleware/node_modules/jwks-rsa/src/wrappers/request.js
const http = require('http'); const https = require('https'); const urlUtil = require('url'); module.exports.default = (options) => { if (options.fetcher) { return options.fetcher(options.uri); } return new Promise((resolve, reject) => { const { hostname, path, port, protocol ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/node_modules/ms/index.js
aws/lti-middleware/node_modules/http-proxy-agent/node_modules/ms/index.js
/** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an error if val ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/index.js
aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/index.js
/** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node.js'); }
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/browser.js
aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/browser.js
/* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!warned) { warn...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/common.js
aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/common.js
/** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabl...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/node.js
aws/lti-middleware/node_modules/http-proxy-agent/node_modules/debug/src/node.js
/** * Module dependencies. */ const tty = require('tty'); const util = require('util'); /** * This is the Node.js implementation of `debug()`. */ exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.destroy = uti...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/dist/index.js
aws/lti-middleware/node_modules/http-proxy-agent/dist/index.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const agent_1 = __importDefault(require("./agent")); function createHttpProxyAgent(opts) { return new agent_1.default(opts); } (function (createHttpProxyAgent) { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/http-proxy-agent/dist/agent.js
aws/lti-middleware/node_modules/http-proxy-agent/dist/agent.js
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/queue-microtask/index.js
aws/lti-middleware/node_modules/queue-microtask/index.js
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ let promise module.exports = typeof queueMicrotask === 'function' ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global) // reuse resolved promise, and allocate it lazily : cb => (promise || (promise = Promis...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/pumpify/index.js
aws/lti-middleware/node_modules/pumpify/index.js
var pump = require('pump') var inherits = require('inherits') var Duplexify = require('duplexify') var toArray = function(args) { if (!args.length) return [] return Array.isArray(args[0]) ? args[0] : Array.prototype.slice.call(args) } var define = function(opts) { var Pumpify = function() { var streams = to...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/pumpify/test.js
aws/lti-middleware/node_modules/pumpify/test.js
var tape = require('tape') var through = require('through2') var pumpify = require('./') var stream = require('stream') var duplexify = require('duplexify') tape('basic', function(t) { t.plan(3) var pipeline = pumpify( through(function(data, enc, cb) { t.same(data.toString(), 'hello') cb(null, dat...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/compressible/index.js
aws/lti-middleware/node_modules/compressible/index.js
/*! * compressible * Copyright(c) 2013 Jonathan Ong * Copyright(c) 2014 Jeremiah Senkpiel * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var db = require('mime-db') /** * Module variables. * @private */ var COMPRESSIBLE_TYPE_REGEXP...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/unpipe/index.js
aws/lti-middleware/node_modules/unpipe/index.js
/*! * unpipe * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module exports. * @public */ module.exports = unpipe /** * Determine if there are Node.js pipe-like data listeners. * @private */ function hasPipeDataListeners(stream) { var listeners = stream.listeners('da...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/y18n/build/lib/index.js
aws/lti-middleware/node_modules/y18n/build/lib/index.js
let shim; class Y18N { constructor(opts) { // configurable options. opts = opts || {}; this.directory = opts.directory || './locales'; this.updateFiles = typeof opts.updateFiles === 'boolean' ? opts.updateFiles : true; this.locale = opts.locale || 'en'; this.fallbackT...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/y18n/build/lib/cjs.js
aws/lti-middleware/node_modules/y18n/build/lib/cjs.js
import { y18n as _y18n } from './index.js'; import nodePlatformShim from './platform-shims/node.js'; const y18n = (opts) => { return _y18n(opts, nodePlatformShim); }; export default y18n;
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/y18n/build/lib/platform-shims/node.js
aws/lti-middleware/node_modules/y18n/build/lib/platform-shims/node.js
import { readFileSync, statSync, writeFile } from 'fs'; import { format } from 'util'; import { resolve } from 'path'; export default { fs: { readFileSync, writeFile }, format, resolve, exists: (file) => { try { return statSync(file).isFile(); } ca...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/wrap-ansi/index.js
aws/lti-middleware/node_modules/wrap-ansi/index.js
'use strict'; const stringWidth = require('string-width'); const stripAnsi = require('strip-ansi'); const ansiStyles = require('ansi-styles'); const ESCAPES = new Set([ '\u001B', '\u009B' ]); const END_CODE = 39; const ANSI_ESCAPE_BELL = '\u0007'; const ANSI_CSI = '['; const ANSI_OSC = ']'; const ANSI_SGR_TERMINAT...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/index.js
aws/lti-middleware/node_modules/body-parser/index.js
/*! * body-parser * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var deprecate = require('depd')('body-parser') /** * Cache of loaded parsers. * @private */ var parsers = Object.create(null) /** * @typedef Parsers * @type {fu...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/lib/read.js
aws/lti-middleware/node_modules/body-parser/lib/read.js
/*! * body-parser * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var createError = require('http-errors') var getBody = require('raw-body') var iconv = require('iconv-lite') var onFinished = require('on-finished') var zlib = require(...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/lib/types/raw.js
aws/lti-middleware/node_modules/body-parser/lib/types/raw.js
/*! * body-parser * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. */ var bytes = require('bytes') var debug = require('debug')('body-parser:raw') var read = require('../read') var typeis = require('type-is') /** * Module exports. */ module.expor...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/lib/types/urlencoded.js
aws/lti-middleware/node_modules/body-parser/lib/types/urlencoded.js
/*! * body-parser * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var bytes = require('bytes') var contentType = require('content-type') var createError = require('http-errors') var debug = require('d...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/lib/types/json.js
aws/lti-middleware/node_modules/body-parser/lib/types/json.js
/*! * body-parser * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var bytes = require('bytes') var contentType = require('content-type') var createError = require('http-errors') var debug = require('d...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/body-parser/lib/types/text.js
aws/lti-middleware/node_modules/body-parser/lib/types/text.js
/*! * body-parser * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module dependencies. */ var bytes = require('bytes') var contentType = require('content-type') var debug = require('debug')('body-parser:text') var read = require('../read') var typeis = require('type-is'...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/methods/index.js
aws/lti-middleware/node_modules/methods/index.js
/*! * methods * Copyright(c) 2013-2014 TJ Holowaychuk * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ var http = require('http'); /** * Module exports. * @public */ module.exports = getCurrentNodeMethods() || getBasicNodeMethod...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js
aws/lti-middleware/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js
'use strict'; var Buffer = require('safe-buffer').Buffer; var getParamBytesForAlg = require('./param-bytes-for-alg'); var MAX_OCTET = 0x80, CLASS_UNIVERSAL = 0, PRIMITIVE_BIT = 0x20, TAG_SEQ = 0x10, TAG_INT = 0x02, ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), ENCODED_TAG_INT = TAG_INT ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js
aws/lti-middleware/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js
'use strict'; function getParamSize(keySize) { var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); return result; } var paramBytesForAlg = { ES256: getParamSize(256), ES384: getParamSize(384), ES512: getParamSize(521) }; function getParamBytesForAlg(alg) { var paramBytes = paramBytesForAlg[alg]; i...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/forwarded/index.js
aws/lti-middleware/node_modules/forwarded/index.js
/*! * forwarded * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module exports. * @public */ module.exports = forwarded /** * Get all addresses in the request, using the `X-Forwarded-For` header. * * @param {object} req * @return {array} * @public */ function f...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/mime-db/index.js
aws/lti-middleware/node_modules/mime-db/index.js
/*! * mime-db * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */ /** * Module exports. */ module.exports = require('./db.json')
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/pump/test-node.js
aws/lti-middleware/node_modules/pump/test-node.js
var pump = require('./index') var rs = require('fs').createReadStream('/dev/random') var ws = require('fs').createWriteStream('/dev/null') var toHex = function () { var reverse = new (require('stream').Transform)() reverse._transform = function (chunk, enc, callback) { reverse.push(chunk.toString('hex')) ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/pump/test-browser.js
aws/lti-middleware/node_modules/pump/test-browser.js
var stream = require('stream') var pump = require('./index') var rs = new stream.Readable() var ws = new stream.Writable() rs._read = function (size) { this.push(Buffer(size).fill('abc')) } ws._write = function (chunk, encoding, cb) { setTimeout(function () { cb() }, 100) } var toHex = function () { var...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/pump/index.js
aws/lti-middleware/node_modules/pump/index.js
var once = require('once') var eos = require('end-of-stream') var fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes var noop = function () {} var ancient = /^v?\.0/.test(process.version) var isFn = function (fn) { return typeof fn === 'function' } var isFS = function (stream) {...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/lru-cache/index.js
aws/lti-middleware/node_modules/lru-cache/index.js
'use strict' // A linked list to keep track of recently-used-ness const Yallist = require('yallist') const MAX = Symbol('max') const LENGTH = Symbol('length') const LENGTH_CALCULATOR = Symbol('lengthCalculator') const ALLOW_STALE = Symbol('allowStale') const MAX_AGE = Symbol('maxAge') const DISPOSE = Symbol('dispose'...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/escalade/dist/index.js
aws/lti-middleware/node_modules/escalade/dist/index.js
const { dirname, resolve } = require('path'); const { readdir, stat } = require('fs'); const { promisify } = require('util'); const toStats = promisify(stat); const toRead = promisify(readdir); module.exports = async function (start, callback) { let dir = resolve('.', start); let tmp, stats = await toStats(dir); ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/escalade/sync/index.js
aws/lti-middleware/node_modules/escalade/sync/index.js
const { dirname, resolve } = require('path'); const { readdirSync, statSync } = require('fs'); module.exports = function (start, callback) { let dir = resolve('.', start); let tmp, stats = statSync(dir); if (!stats.isDirectory()) { dir = dirname(dir); } while (true) { tmp = callback(dir, readdirSync(dir)); ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/leveldown/iterator.js
aws/lti-middleware/node_modules/leveldown/iterator.js
'use strict' const util = require('util') const AbstractIterator = require('abstract-leveldown').AbstractIterator const binding = require('./binding') function Iterator (db, options) { AbstractIterator.call(this, db) this.context = binding.iterator_init(db.context, options) this.cache = null this.finished = ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/leveldown/leveldown.js
aws/lti-middleware/node_modules/leveldown/leveldown.js
'use strict' const util = require('util') const AbstractLevelDOWN = require('abstract-leveldown').AbstractLevelDOWN const binding = require('./binding') const ChainedBatch = require('./chained-batch') const Iterator = require('./iterator') function LevelDOWN (location) { if (!(this instanceof LevelDOWN)) { retu...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/leveldown/chained-batch.js
aws/lti-middleware/node_modules/leveldown/chained-batch.js
'use strict' const util = require('util') const AbstractChainedBatch = require('abstract-leveldown').AbstractChainedBatch const binding = require('./binding') function ChainedBatch (db) { AbstractChainedBatch.call(this, db) this.context = binding.batch_init(db.context) } ChainedBatch.prototype._put = function (k...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/leveldown/binding.js
aws/lti-middleware/node_modules/leveldown/binding.js
module.exports = require('node-gyp-build')(__dirname)
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/fast-deep-equal/index.js
aws/lti-middleware/node_modules/fast-deep-equal/index.js
'use strict'; // do not edit .js files directly - edit src/index.jst module.exports = function equal(a, b) { if (a === b) return true; if (a && b && typeof a == 'object' && typeof b == 'object') { if (a.constructor !== b.constructor) return false; var length, i, keys; if (Array.isArray(a)) { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/fast-deep-equal/react.js
aws/lti-middleware/node_modules/fast-deep-equal/react.js
'use strict'; // do not edit .js files directly - edit src/index.jst module.exports = function equal(a, b) { if (a === b) return true; if (a && b && typeof a == 'object' && typeof b == 'object') { if (a.constructor !== b.constructor) return false; var length, i, keys; if (Array.isArray(a)) { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/fast-deep-equal/es6/index.js
aws/lti-middleware/node_modules/fast-deep-equal/es6/index.js
'use strict'; // do not edit .js files directly - edit src/index.jst var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; module.exports = function equal(a, b) { if (a === b) return true; if (a && b && typeof a == 'object' && typeof b == 'object') { if (a.constructor !== b.constructor) return...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/fast-deep-equal/es6/react.js
aws/lti-middleware/node_modules/fast-deep-equal/es6/react.js
'use strict'; // do not edit .js files directly - edit src/index.jst var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; module.exports = function equal(a, b) { if (a === b) return true; if (a && b && typeof a == 'object' && typeof b == 'object') { if (a.constructor !== b.constructor) return...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/serverless-http.js
aws/lti-middleware/node_modules/serverless-http/serverless-http.js
'use strict'; const finish = require('./lib/finish'); const getFramework = require('./lib/framework/get-framework'); const getProvider = require('./lib/provider/get-provider'); const defaultOptions = { requestId: 'x-request-id' }; module.exports = function (app, opts) { const options = Object.assign({}, defaultO...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/request.js
aws/lti-middleware/node_modules/serverless-http/lib/request.js
'use strict'; const http = require('http'); module.exports = class ServerlessRequest extends http.IncomingMessage { constructor({ method, url, headers, body, remoteAddress }) { super({ encrypted: true, readable: false, remoteAddress, address: () => ({ port: 443 }), end: Function.pr...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/finish.js
aws/lti-middleware/node_modules/serverless-http/lib/finish.js
'use strict'; module.exports = async function finish(item, transform, ...details) { await new Promise((resolve, reject) => { if (item.finished || item.complete) { resolve(); return; } let finished = false; function done(err) { if (finished) { return; } finishe...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/response.js
aws/lti-middleware/node_modules/serverless-http/lib/response.js
'use strict'; const http = require('http'); const headerEnd = '\r\n\r\n'; const BODY = Symbol(); const HEADERS = Symbol(); function getString(data) { if (Buffer.isBuffer(data)) { return data.toString('utf8'); } else if (typeof data === 'string') { return data; } else { throw new Error(`response.wr...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/framework/get-framework.js
aws/lti-middleware/node_modules/serverless-http/lib/framework/get-framework.js
'use strict'; const http = require('http') const Response = require('../response'); function common(cb) { return request => { const response = new Response(request); cb(request, response); return response; }; } module.exports = function getFramework(app) { if (app instanceof http.Server) { re...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/get-provider.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/get-provider.js
const aws = require('./aws'); const azure = require('./azure'); const providers = { aws, azure }; module.exports = function getProvider(options) { const { provider = 'aws' } = options; if (provider in providers) { return providers[provider](options); } throw new Error(`Unsupported provider ${provide...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/sanitize-headers.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/sanitize-headers.js
'use strict'; module.exports = function sanitizeHeaders(headers) { return Object.keys(headers).reduce((memo, key) => { const value = headers[key]; if (Array.isArray(value)) { memo.multiValueHeaders[key] = value; if (key.toLowerCase() !== 'set-cookie') { memo.headers[key] = value.join("...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/clean-up-event.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/clean-up-event.js
'use strict'; function removeBasePath(path = '/', basePath) { if (basePath) { const basePathIndex = path.indexOf(basePath); if (basePathIndex > -1) { return path.substr(basePathIndex + basePath.length) || '/'; } } return path; } function isString(value) { return (typeof value === 'string' ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/create-request.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/create-request.js
'use strict'; const URL = require('url'); const Request = require('../../request'); function requestMethod(event) { if (event.version === '2.0') { return event.requestContext.http.method; } return event.httpMethod; } function requestRemoteAddress(event) { if (event.version === '2.0') { return event....
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/index.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/index.js
const cleanUpEvent = require('./clean-up-event'); const createRequest = require('./create-request'); const formatResponse = require('./format-response'); module.exports = options => { return getResponse => async (event_, context = {}) => { const event = cleanUpEvent(event_, options); const request = create...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/format-response.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/format-response.js
'use strict'; const isBinary = require('./is-binary'); const Response = require('../../response'); const sanitizeHeaders = require('./sanitize-headers'); module.exports = (event, response, options) => { const { statusCode } = response; const {headers, multiValueHeaders } = sanitizeHeaders(Response.headers(respons...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/is-binary.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/aws/is-binary.js
'use strict'; const BINARY_ENCODINGS = ['gzip', 'deflate', 'br']; const BINARY_CONTENT_TYPES = (process.env.BINARY_CONTENT_TYPES || '').split(','); function isBinaryEncoding(headers) { const contentEncoding = headers['content-encoding']; if (typeof contentEncoding === 'string') { return contentEncoding.split...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/sanitize-headers.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/sanitize-headers.js
'use strict'; const setCookieVariations = require('./set-cookie.json').variations; module.exports = function sanitizeHeaders(headers) { return Object.keys(headers).reduce((memo, key) => { const value = headers[key]; if (Array.isArray(value)) { if (key.toLowerCase() === 'set-cookie') { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/create-request.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/create-request.js
'use strict'; const url = require('url'); const Request = require('../../request'); function requestHeaders(request) { return Object.keys(request.headers).reduce((headers, key) => { headers[key.toLowerCase()] = request.headers[key]; return headers; }, {}); } function requestBody(request) { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/index.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/index.js
const cleanupRequest = require('./clean-up-request'); const createRequest = require('./create-request'); const formatResponse = require('./format-response'); module.exports = options => { return getResponse => async (context, req) => { const event = cleanupRequest(req, options); const request = cre...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/clean-up-request.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/clean-up-request.js
'use strict'; function getUrl({ requestPath, url }) { if (requestPath) { return requestPath; } return typeof url === 'string' ? url : '/'; } function getRequestContext(request) { const requestContext = {}; requestContext.identity = {}; const forwardedIp = request.headers['x-forwarded-...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/format-response.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/format-response.js
const isBinary = require('./is-binary'); const Response = require('../../response'); const sanitizeHeaders = require('./sanitize-headers'); module.exports = (response, options) => { const { statusCode } = response; const headers = sanitizeHeaders(Response.headers(response)); if (headers['transfer-encoding...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/is-binary.js
aws/lti-middleware/node_modules/serverless-http/lib/provider/azure/is-binary.js
'use strict'; const BINARY_ENCODINGS = ['gzip', 'deflate', 'br']; const BINARY_CONTENT_TYPES = (process.env.BINARY_CONTENT_TYPES || '').split(','); function isBinaryEncoding(headers) { const contentEncoding = headers['content-encoding']; if (typeof contentEncoding === 'string') { return contentEncoding.split...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/destroy/index.js
aws/lti-middleware/node_modules/destroy/index.js
/*! * destroy * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ 'use strict' /** * Module dependencies. * @private */ var ReadStream = require('fs').ReadStream var Stream = require('stream') /** * Module exports. * @public */ module.exports = destroy /** * Destroy a stream. * * @param {object} strea...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/webidl-conversions/lib/index.js
aws/lti-middleware/node_modules/webidl-conversions/lib/index.js
"use strict"; var conversions = {}; module.exports = conversions; function sign(x) { return x < 0 ? -1 : 1; } function evenRound(x) { // Round x to the nearest integer, choosing the even integer if it lies halfway between two. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. f...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/run-parallel-limit/index.js
aws/lti-middleware/node_modules/run-parallel-limit/index.js
/*! run-parallel-limit. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ module.exports = runParallelLimit const queueMicrotask = require('queue-microtask') function runParallelLimit (tasks, limit, cb) { if (typeof limit !== 'number') throw new Error('second argument must be a Number') let resu...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/helpers/index.js
aws/lti-middleware/node_modules/yargs/helpers/index.js
const { applyExtends, cjsPlatformShim, Parser, processArgv, } = require('../build/index.cjs'); module.exports = { applyExtends: (config, cwd, mergeExtends) => { return applyExtends(config, cwd, mergeExtends, cjsPlatformShim); }, hideBin: processArgv.hideBin, Parser, };
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/completion-templates.js
aws/lti-middleware/node_modules/yargs/build/lib/completion-templates.js
export const completionShTemplate = `###-begin-{{app_name}}-completions-### # # yargs command completion script # # Installation: {{app_path}} {{completion_command}} >> ~/.bashrc # or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX. # _yargs_completions() { local cur_word args type_list cur_wo...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/middleware.js
aws/lti-middleware/node_modules/yargs/build/lib/middleware.js
import { argsert } from './argsert.js'; import { isPromise } from './utils/is-promise.js'; export function globalMiddlewareFactory(globalMiddleware, context) { return function (callback, applyBeforeValidation = false) { argsert('<array|function> [boolean]', [callback, applyBeforeValidation], arguments.lengt...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/validation.js
aws/lti-middleware/node_modules/yargs/build/lib/validation.js
import { argsert } from './argsert.js'; import { assertNotStrictEqual, } from './typings/common-types.js'; import { levenshtein as distance } from './utils/levenshtein.js'; import { objFilter } from './utils/obj-filter.js'; const specialKeys = ['$0', '--', '_']; export function validation(yargs, usage, y18n, shim) { ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/yargs-factory.js
aws/lti-middleware/node_modules/yargs/build/lib/yargs-factory.js
import { command as Command, } from './command.js'; import { assertNotStrictEqual, assertSingleKey, objectKeys, } from './typings/common-types.js'; import { YError } from './yerror.js'; import { usage as Usage } from './usage.js'; import { argsert } from './argsert.js'; import { completion as Completion, } from './comp...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
true
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/argsert.js
aws/lti-middleware/node_modules/yargs/build/lib/argsert.js
import { YError } from './yerror.js'; import { parseCommand } from './parse-command.js'; const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']; export function argsert(arg1, arg2, arg3) { function parseArgs() { return typeof arg1 === 'object' ? [{ demanded: [], optional: ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/yerror.js
aws/lti-middleware/node_modules/yargs/build/lib/yerror.js
export class YError extends Error { constructor(msg) { super(msg || 'yargs error'); this.name = 'YError'; Error.captureStackTrace(this, YError); } }
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/completion.js
aws/lti-middleware/node_modules/yargs/build/lib/completion.js
import { isCommandBuilderCallback } from './command.js'; import { assertNotStrictEqual } from './typings/common-types.js'; import * as templates from './completion-templates.js'; import { isPromise } from './utils/is-promise.js'; import { parseCommand } from './parse-command.js'; export function completion(yargs, usage...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/usage.js
aws/lti-middleware/node_modules/yargs/build/lib/usage.js
import { assertNotStrictEqual, } from './typings/common-types.js'; import { objFilter } from './utils/obj-filter.js'; import { YError } from './yerror.js'; import setBlocking from './utils/set-blocking.js'; export function usage(yargs, y18n, shim) { const __ = y18n.__; const self = {}; const fails = []; ...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/command.js
aws/lti-middleware/node_modules/yargs/build/lib/command.js
import { assertNotStrictEqual, } from './typings/common-types.js'; import { isPromise } from './utils/is-promise.js'; import { applyMiddleware, commandMiddlewareFactory, } from './middleware.js'; import { parseCommand } from './parse-command.js'; import { isYargsInstance, } from './yargs-factory.js'; import whichModule...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/parse-command.js
aws/lti-middleware/node_modules/yargs/build/lib/parse-command.js
export function parseCommand(cmd) { const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' '); const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/); const bregex = /\.*[\][<>]/g; const firstCommand = splitCommand.shift(); if (!firstCommand) throw new Error(`No c...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false
CAHLR/OATutor
https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/lti-middleware/node_modules/yargs/build/lib/utils/process-argv.js
aws/lti-middleware/node_modules/yargs/build/lib/utils/process-argv.js
function getProcessArgvBinIndex() { if (isBundledElectronApp()) return 0; return 1; } function isBundledElectronApp() { return isElectronApp() && !process.defaultApp; } function isElectronApp() { return !!process.versions.electron; } export function hideBin(argv) { return argv.slice(getProce...
javascript
MIT
10a5baf153a505267af8045b05c217b4be6bd8b4
2026-01-05T03:39:09.711315Z
false