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/aiHintGeneration/node_modules/jsep/dist/iife/jsep.iife.js | aws/aiHintGeneration/node_modules/jsep/dist/iife/jsep.iife.js | var jsep = (function () {
'use strict';
/**
* @implements {IHooks}
*/
class Hooks {
/**
* @callback HookCallback
* @this {*|Jsep} this
* @param {Jsep} env
* @returns: void
*/
/**
* Adds the given callback to the list of callbacks for the given hook.
*
* The callback will be invoked w... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsep/dist/iife/jsep.iife.min.js | aws/aiHintGeneration/node_modules/jsep/dist/iife/jsep.iife.min.js | var jsep=function(){"use strict";class e{static get version(){return"1.3.9"}static toString(){return"JavaScript Expression Parser (JSEP) v"+e.version}static addUnaryOp(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}static addBinaryOp(t,r,i){return e.max_binop_len=Math.max(t.length,e.max_b... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/for-each/index.js | aws/aiHintGeneration/node_modules/for-each/index.js | 'use strict';
var isCallable = require('is-callable');
var toStr = Object.prototype.toString;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var forEachArray = function forEachArray(array, iterator, receiver) {
for (var i = 0, len = array.length; i < len; i++) {
if (hasOwnProperty.call(array, i)) ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/for-each/test/test.js | aws/aiHintGeneration/node_modules/for-each/test/test.js | 'use strict';
/* globals window */
var test = require('tape');
var forEach = require('../');
test('forEach calls each iterator', function (t) {
var count = 0;
t.plan(4);
forEach({ a: 1, b: 2 }, function (value, key) {
if (count === 0) {
t.equal(value, 1);
t.equal(key, 'a')... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/has-property-descriptors/index.js | aws/aiHintGeneration/node_modules/has-property-descriptors/index.js | 'use strict';
var $defineProperty = require('es-define-property');
var hasPropertyDescriptors = function hasPropertyDescriptors() {
return !!$defineProperty;
};
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
// node v0.6 has a bug where array lengths can be Set but not Define... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/has-property-descriptors/test/index.js | aws/aiHintGeneration/node_modules/has-property-descriptors/test/index.js | 'use strict';
var test = require('tape');
var hasPropertyDescriptors = require('../');
var sentinel = {};
test('hasPropertyDescriptors', function (t) {
t.equal(typeof hasPropertyDescriptors, 'function', 'is a function');
t.equal(typeof hasPropertyDescriptors.hasArrayLengthDefineBug, 'function', '`hasArrayLengthDe... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsonschema/lib/scan.js | aws/aiHintGeneration/node_modules/jsonschema/lib/scan.js | "use strict";
var urilib = require('url');
var helpers = require('./helpers');
module.exports.SchemaScanResult = SchemaScanResult;
function SchemaScanResult(found, ref){
this.id = found;
this.ref = ref;
}
/**
* Adds a schema with a certain urn to the Validator instance.
* @param string uri
* @param object sch... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsonschema/lib/index.js | aws/aiHintGeneration/node_modules/jsonschema/lib/index.js | 'use strict';
var Validator = module.exports.Validator = require('./validator');
module.exports.ValidatorResult = require('./helpers').ValidatorResult;
module.exports.ValidatorResultError = require('./helpers').ValidatorResultError;
module.exports.ValidationError = require('./helpers').ValidationError;
module.exports... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsonschema/lib/attribute.js | aws/aiHintGeneration/node_modules/jsonschema/lib/attribute.js | 'use strict';
var helpers = require('./helpers');
/** @type ValidatorResult */
var ValidatorResult = helpers.ValidatorResult;
/** @type SchemaError */
var SchemaError = helpers.SchemaError;
var attribute = {};
attribute.ignoreProperties = {
// informative properties
'id': true,
'default': true,
'description... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsonschema/lib/helpers.js | aws/aiHintGeneration/node_modules/jsonschema/lib/helpers.js | 'use strict';
var uri = require('url');
var ValidationError = exports.ValidationError = function ValidationError (message, instance, schema, path, name, argument) {
if(Array.isArray(path)){
this.path = path;
this.property = path.reduce(function(sum, item){
return sum + makeSuffix(item);
}, 'instan... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/jsonschema/lib/validator.js | aws/aiHintGeneration/node_modules/jsonschema/lib/validator.js | 'use strict';
var urilib = require('url');
var attribute = require('./attribute');
var helpers = require('./helpers');
var scanSchema = require('./scan').scan;
var ValidatorResult = helpers.ValidatorResult;
var ValidatorResultError = helpers.ValidatorResultError;
var SchemaError = helpers.SchemaError;
var SchemaConte... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/call-bind/index.js | aws/aiHintGeneration/node_modules/call-bind/index.js | 'use strict';
var bind = require('function-bind');
var GetIntrinsic = require('get-intrinsic');
var setFunctionLength = require('set-function-length');
var $TypeError = require('es-errors/type');
var $apply = GetIntrinsic('%Function.prototype.apply%');
var $call = GetIntrinsic('%Function.prototype.call%');
var $refle... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/call-bind/callBound.js | aws/aiHintGeneration/node_modules/call-bind/callBound.js | 'use strict';
var GetIntrinsic = require('get-intrinsic');
var callBind = require('./');
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
module.exports = function callBoundIntrinsic(name, allowMissing) {
var intrinsic = GetIntrinsic(name, !!allowMissing);
if (typeof intrinsic === 'function' && ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/call-bind/test/index.js | aws/aiHintGeneration/node_modules/call-bind/test/index.js | 'use strict';
var callBind = require('../');
var bind = require('function-bind');
var gOPD = require('gopd');
var hasStrictMode = require('has-strict-mode')();
var forEach = require('for-each');
var inspect = require('object-inspect');
var v = require('es-value-fixtures');
var test = require('tape');
/*
* older eng... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/call-bind/test/callBound.js | aws/aiHintGeneration/node_modules/call-bind/test/callBound.js | 'use strict';
var test = require('tape');
var callBound = require('../callBound');
test('callBound', function (t) {
// static primitive
t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself');
t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself');
// static no... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/tr46/index.js | aws/aiHintGeneration/node_modules/tr46/index.js | "use strict";
var punycode = require("punycode");
var mappingTable = require("./lib/mappingTable.json");
var PROCESSING_OPTIONS = {
TRANSITIONAL: 0,
NONTRANSITIONAL: 1
};
function normalize(str) { // fix bug in v8
return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
}
fu... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/ServerlessOffline.js | aws/aiHintGeneration/node_modules/serverless-offline/src/ServerlessOffline.js | import process, { exit } from "node:process"
import { log, setLogUtils } from "./utils/log.js"
import logSponsor from "./utils/logSponsor.js"
import {
commandOptions,
CUSTOM_OPTION,
defaultOptions,
SERVER_SHUTDOWN_TIMEOUT,
} from "./config/index.js"
import { gray } from "./config/colors.js"
export default clas... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/index.js | export { default } from "./ServerlessOffline.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/errors/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/errors/index.js | // eslint-disable-next-line import/prefer-default-export
export { default as LambdaTimeoutError } from "./LambdaTimeoutError.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/errors/LambdaTimeoutError.js | aws/aiHintGeneration/node_modules/serverless-offline/src/errors/LambdaTimeoutError.js | export default class LambdaTimeoutError extends Error {}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/logRoutes.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/logRoutes.js | import boxen from "boxen"
import {
dodgerblue,
gray,
lime,
orange,
peachpuff,
plum,
red,
yellow,
} from "../config/colors.js"
const post = "POST"
const colorMethodMapping = new Map([
["DELETE", red],
["GET", dodgerblue],
// ['HEAD', ...],
["PATCH", orange],
["POST", plum],
["PUT", dodgerblu... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/checkGoVersion.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/checkGoVersion.js | import { execa } from "execa"
export default async function checkGoVersion() {
let goVersion
try {
const { stdout } = await execa("go", ["version"])
if (/go1.\d+/g.test(stdout)) {
goVersion = "1.x"
}
} catch {
// @ignore
}
return goVersion
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseQueryStringParameters.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseQueryStringParameters.js | import { BASE_URL_PLACEHOLDER } from "../config/index.js"
const { fromEntries } = Object
export default function parseQueryStringParameters(url) {
// dummy placeholder url for the WHATWG URL constructor
// https://github.com/nodejs/node/issues/12682
const { searchParams } = new URL(url, BASE_URL_PLACEHOLDER)
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/checkDockerDaemon.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/checkDockerDaemon.js | import { execa } from "execa"
export default async function checkDockerDaemon() {
let dockerServerOS
try {
;({ stdout: dockerServerOS } = await execa("docker", [
"version",
"--format",
"{{.Server.Os}}",
]))
} catch {
throw new Error("The docker daemon is not running.")
}
if (d... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/lowerCaseKeys.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/lowerCaseKeys.js | const { entries, fromEntries } = Object
// (obj: { [string]: string }): { [Lowercase<string>]: string }
export default function parseHeaders(obj) {
return fromEntries(entries(obj).map(([k, v]) => [k.toLowerCase(), v]))
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getHttpApiCorsConfig.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getHttpApiCorsConfig.js | import { log } from "./log.js"
export default function getHttpApiCorsConfig(httpApiCors) {
if (httpApiCors === true) {
// default values that should be set by serverless
// https://www.serverless.com/framework/docs/providers/aws/events/http-api/
const c = {
allowedHeaders: [
"Authorization"... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/generateHapiPath.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/generateHapiPath.js | export default function generateHapiPath(path, options, serverless) {
let hapiPath = path.startsWith("/") ? path : `/${path}`
if (!options.noPrependStageInUrl) {
const stage = options.stage || serverless.service.provider.stage
// prepend the stage to path
hapiPath = `/${stage}${hapiPath}`
}
if (op... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/index.js | export { default as checkDockerDaemon } from "./checkDockerDaemon.js"
export { default as checkGoVersion } from "./checkGoVersion.js"
export { default as createApiKey } from "./createApiKey.js"
export { default as detectExecutable } from "./detectExecutable.js"
export { default as formatToClfTime } from "./formatToClfT... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/splitHandlerPathAndName.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/splitHandlerPathAndName.js | // some-folder/src.index => some-folder/src
export default function splitHandlerPathAndName(handler) {
// Split handler into method name and path i.e. handler.run
// Support Ruby paths with namespace resolution operators e.g.
// ./src/somefolder/source.LambdaFunctions::Handler.process
// prepath: ./src/somefo... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseMultiValueHeaders.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseMultiValueHeaders.js | import unflat from "array-unflat-js"
const { fromEntries } = Object
// https://aws.amazon.com/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/
// (rawHeaders: Array<string>): { [string]: Array<string> }
export default function parseMultiValueHeaders(rawHeaders) {
if (rawHeaders.length === 0) ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/logSponsor.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/logSponsor.js | /* eslint-disable no-use-before-define */
/* eslint-disable no-console */
import process from "node:process"
import boxen from "boxen"
import { gray, dodgerblue } from "../config/colors.js"
const boxenOptions = {
borderColor: "blue",
margin: 1,
padding: 1,
}
// Promotion starts on August 22, 2024
const startAt... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/createApiKey.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/createApiKey.js | import { createHash } from "node:crypto"
export default function createApiKey() {
return createHash("md5").digest("hex")
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/formatToClfTime.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/formatToClfTime.js | import { DateTime } from "luxon"
const { fromMillis } = DateTime
// CLF -> Common Log Format
// https://httpd.apache.org/docs/1.3/logs.html#common
// [day/month/year:hour:minute:second zone]
// day = 2*digit
// month = 3*letter
// year = 4*digit
// hour = 2*digit
// minute = 2*digit
// second = 2*digit
// zone = (`+'... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseMultiValueQueryStringParameters.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseMultiValueQueryStringParameters.js | import { BASE_URL_PLACEHOLDER } from "../config/index.js"
const { fromEntries } = Object
// https://aws.amazon.com/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/
// [ [ 'petType', 'dog' ], [ 'petType', 'fish' ] ]
// => { petType: [ 'dog', 'fish' ] },
export default function parseMultiValueQue... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseHeaders.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseHeaders.js | import unflat from "array-unflat-js"
const { fromEntries } = Object
// (rawHeaders: Array<string>): { [string]: string }
export default function parseHeaders(rawHeaders) {
if (rawHeaders.length === 0) {
return null
}
const unflattened = unflat(rawHeaders)
return fromEntries(unflattened)
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseQueryStringParametersForPayloadV2.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/parseQueryStringParametersForPayloadV2.js | /**
*
* @description Instead of using `multiValueQueryStringParameters` API Gateway HTTP API combines
* duplicate query string keys with commas in the `queryStringParameters` field.
* https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
*
* @param { URLSearchParam... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/jsonPath.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/jsonPath.js | import { JSONPath } from "jsonpath-plus"
export default function jsonPath(json, path) {
// NOTE: JSONPath returns undefined if 'json' is e.g. null, undefined, string,
// number (anything other than JSON)
const [result] =
JSONPath({
json,
path,
}) || []
return result
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/log.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/log.js | let utils
export function setLogUtils({ log, progress }) {
utils = { log, progress }
}
export const log = {
debug: (...args) => utils?.log?.debug(...args),
error: (...args) => utils?.log?.error(...args),
info: (...args) => utils?.log?.info(...args),
notice: (...args) => utils?.log?.notice(...args),
verbos... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/detectExecutable.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/detectExecutable.js | import { execa } from "execa"
export default async function detectExecutable(exe, versionFlag = "--version") {
try {
const { failed } = await execa(exe, [versionFlag])
return failed === false
} catch {
return false
}
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getApiKeysValues.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getApiKeysValues.js | export default function getApiKeysValues(apiKeys) {
return new Set(
apiKeys
.map((apiKey) => {
if (typeof apiKey === "object" && apiKey.value != null) {
return apiKey.value
}
if (typeof apiKey === "string") {
return apiKey
}
return undefined
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getRawQueryParams.js | aws/aiHintGeneration/node_modules/serverless-offline/src/utils/getRawQueryParams.js | import parseQueryStringParameters from "./parseQueryStringParameters.js"
export default function getRawQueryParams(url) {
const queryParams = parseQueryStringParameters(url) || {}
return Object.keys(queryParams)
.reduce(function reducer(accumulator, currentKey) {
accumulator.push(`${currentKey}=${queryPa... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/HttpServer.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/HttpServer.js | import { exit } from "node:process"
import { Server } from "@hapi/hapi"
import { log } from "../utils/log.js"
import { invocationsRoute, invokeAsyncRoute } from "./routes/index.js"
export default class HttpServer {
#lambda = null
#options = null
#server = null
constructor(options, lambda) {
this.#lambda... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/index.js | export { default } from "./Lambda.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaFunctionPool.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaFunctionPool.js | import LambdaFunction from "./LambdaFunction.js"
export default class LambdaFunctionPool {
#options = null
#pool = new Map()
#serverless = null
#timerRef = null
constructor(serverless, options) {
this.#options = options
this.#serverless = serverless
}
start() {
// start cleaner
this.... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaContext.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaContext.js | // class for creating a LambdaContext
// http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html
export default class LambdaContext {
#context = null
constructor(functionName, memorySize) {
this.#context = {
awsRequestId: undefined,
callbackWaitsForEmptyEventLoop: true,
cl... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/Lambda.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/Lambda.js | import HttpServer from "./HttpServer.js"
import LambdaFunctionPool from "./LambdaFunctionPool.js"
const { assign } = Object
export default class Lambda {
#httpServer = null
#lambdas = new Map()
#lambdaFunctionNamesKeys = new Map()
#lambdaFunctionPool = null
constructor(serverless, options) {
this.#h... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaFunction.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/LambdaFunction.js | import crypto from "node:crypto"
import { readFile, writeFile } from "node:fs/promises"
import { dirname, join, resolve } from "node:path"
import process from "node:process"
import { performance } from "node:perf_hooks"
import { setTimeout } from "node:timers/promises"
import { emptyDir, ensureDir, remove } from "fs-ex... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/index.js | export { default } from "./HandlerRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/HandlerRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/HandlerRunner.js | import { log } from "../../utils/log.js"
import {
supportedGo,
supportedJava,
supportedNodejs,
supportedPython,
supportedRuby,
unsupportedDockerRuntimes,
} from "../../config/index.js"
export default class HandlerRunner {
#env = null
#funOptions = null
#options = null
#runner = null
construct... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/python-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/python-runner/index.js | export { default } from "./PythonRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/python-runner/PythonRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/python-runner/PythonRunner.js | import { spawn } from "node:child_process"
import { EOL, platform } from "node:os"
import { delimiter, join as pathJoin, relative } from "node:path"
import process, { cwd, nextTick } from "node:process"
import { createInterface } from "node:readline"
import { join } from "desm"
import { log } from "../../../utils/log.j... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/index.js | export { default } from "./InProcessRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/InProcessRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/InProcessRunner.js | import { join } from "node:path"
import { performance } from "node:perf_hooks"
import process from "node:process"
import { load } from "./aws-lambda-ric/UserFunction.js"
const { floor } = Math
const { assign } = Object
export default class InProcessRunner {
#codeDir = null
#env = null
#handler = null
#serv... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/VerboseLog.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/VerboseLog.js | /* eslint-disable prefer-rest-params */
/* eslint-disable func-names */
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*/
"use strict"
const process = require("node:process")
const EnvVarName = "AWS_LAMBDA_RUNTIME_VERBOSE"
const Tag = "RUNTIME"
const Verbosity = (() => {
if (!proce... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/HttpResponseStream.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/HttpResponseStream.js | /* eslint-disable no-underscore-dangle */
/* eslint-disable no-param-reassign */
/**
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This code was copied from:
* https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/main/src/HttpResponseStream.js
*
* HttpResponseStre... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/UserFunction.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/UserFunction.js | /* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
/* eslint-disable no-underscore-dangle */
/* eslint-disable func-names */
/**
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This code was copied from:
* https://github.com/aws/aws-lambda-nodejs-runtime... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/Errors.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/in-process-runner/aws-lambda-ric/Errors.js | /* eslint-disable max-classes-per-file */
/**
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This code was copied from:
* https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/main/src/Errors.js
*
* Defines custom error types throwable by the runtime.
*/
"use stri... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/java-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/java-runner/index.js | export { default } from "./JavaRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/java-runner/JavaRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/java-runner/JavaRunner.js | import { EOL } from "node:os"
import process from "node:process"
import { invokeJavaLocal } from "java-invoke-local"
import { log } from "../../../utils/log.js"
const { parse, stringify } = JSON
const { hasOwn } = Object
export default class JavaRunner {
static #payloadIdentifier = "__offline_payload__"
#deployP... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/ruby-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/ruby-runner/index.js | export { default } from "./RubyRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/ruby-runner/RubyRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/ruby-runner/RubyRunner.js | import { EOL, platform } from "node:os"
import { relative } from "node:path"
import { cwd } from "node:process"
import { join } from "desm"
import { execa } from "execa"
import { log } from "../../../utils/log.js"
import { splitHandlerPathAndName } from "../../../utils/index.js"
const { parse, stringify } = JSON
const... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js | import { env } from "node:process"
import { parentPort, workerData } from "node:worker_threads"
import InProcessRunner from "../in-process-runner/index.js"
const { codeDir, functionKey, handler, servicePath, timeout } = workerData
const inProcessRunner = new InProcessRunner(
{
codeDir,
functionKey,
hand... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/index.js | export { default } from "./WorkerThreadRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/WorkerThreadRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/worker-thread-runner/WorkerThreadRunner.js | import { MessageChannel, Worker } from "node:worker_threads"
import { join } from "desm"
export default class WorkerThreadRunner {
#workerThread = null
constructor(funOptions, env) {
const { codeDir, functionKey, handler, servicePath, timeout } = funOptions
this.#workerThread = new Worker(
join(imp... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/index.js | export { default } from "./DockerRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerRunner.js | import DockerContainer from "./DockerContainer.js"
import { checkDockerDaemon } from "../../../utils/index.js"
export default class DockerRunner {
#codeDir = null
#container = null
constructor(funOptions, env, dockerOptions) {
const {
codeDir,
handler,
runtime,
architecture,
l... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerRuntime.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerRuntime.js | import { supportedRuntimesArchitecture } from "../../../config/supportedRuntimes.js"
export default class Runtime {
getImageNameTag(runtime, architecture) {
let runtimeImageTag = ""
if (runtime === this.provided) {
runtimeImageTag = "provided:alami"
} else if (runtime.startsWith("provided")) {
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerContainer.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerContainer.js | import { createHash } from "node:crypto"
import { createWriteStream } from "node:fs"
import { readFile, unlink, writeFile } from "node:fs/promises"
import { platform } from "node:os"
import { dirname, join, sep } from "node:path"
import { LambdaClient, GetLayerVersionCommand } from "@aws-sdk/client-lambda"
import { exe... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerImage.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/docker-runner/DockerImage.js | import { execa } from "execa"
// TODO FIXME eslint plugin import bug, or not supporting package.json "expprts" field?
// eslint-disable-next-line import/no-unresolved
import promiseMemoize from "p-memoize"
import { log } from "../../../utils/log.js"
export default class DockerImage {
#imageNameTag = null
static #... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/go-runner/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/go-runner/index.js | export { default } from "./GoRunner.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/go-runner/GoRunner.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/handler-runner/go-runner/GoRunner.js | import { mkdir, readFile, rm, rmdir, writeFile } from "node:fs/promises"
import { EOL } from "node:os"
import process, { chdir, cwd } from "node:process"
import { parse as pathParse, resolve, sep } from "node:path"
import { execa } from "execa"
import { log } from "../../../utils/log.js"
import { splitHandlerPathAndNam... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/index.js | export { default as invocationsRoute } from "./invocations/index.js"
export { default as invokeAsyncRoute } from "./invoke-async/index.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/index.js | export { default } from "./invokeAsyncRoute.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/InvokeAsyncController.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/InvokeAsyncController.js | export default class InvokeAsyncController {
#lambda = null
constructor(lambda) {
this.#lambda = lambda
}
async invokeAsync(functionName, event) {
const lambdaFunction = this.#lambda.getByFunctionName(functionName)
lambdaFunction.setEvent(event)
// don't await result!
lambdaFunction.runH... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/invokeAsyncRoute.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invoke-async/invokeAsyncRoute.js | import InvokeAsyncController from "./InvokeAsyncController.js"
const { parse } = JSON
// https://docs.aws.amazon.com/lambda/latest/dg/API_InvokeAsync.html
export default function invokeRoute(lambda, options) {
const invokeAsyncController = new InvokeAsyncController(lambda)
return {
handler(request) {
c... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/invocationsRoute.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/invocationsRoute.js | import { Buffer } from "node:buffer"
import { Headers } from "node-fetch"
import InvocationsController from "./InvocationsController.js"
const { parse } = JSON
// https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html
export default function invocationsRoute(lambda, options) {
const invocationsController = ne... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/InvocationsController.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/InvocationsController.js | import { log } from "../../../utils/log.js"
export default class InvocationsController {
#lambda = null
constructor(lambda) {
this.#lambda = lambda
}
async invoke(functionName, invocationType, event, clientContext) {
// Reject gracefully if functionName does not exist
const functionNames = this.#... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/lambda/routes/invocations/index.js | export { default } from "./invocationsRoute.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/authCanExecuteResource.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/authCanExecuteResource.js | import authMatchPolicyResource from "./authMatchPolicyResource.js"
const { isArray } = Array
function checkStatementsAgainstResource(Statement, resource, effect) {
return Statement.some((statement) => {
const resourceArray = isArray(statement.Resource)
? statement.Resource
: [statement.Resource]
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/authValidateContext.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/authValidateContext.js | import Boom from "@hapi/boom"
import { log } from "../utils/log.js"
const { entries, fromEntries, values } = Object
function internalServerError(message) {
const errorType = "AuthorizerConfigurationException"
const error = Boom.internal()
error.output.headers["x-amzn-ErrorType"] = errorType
error.output.pay... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/authFunctionNameExtractor.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/authFunctionNameExtractor.js | import { log } from "../utils/log.js"
function buildFailureResult(warningMessage) {
log.warning(warningMessage)
return {
unsupportedAuth: true,
}
}
function buildSuccessResult(authorizerName) {
return {
authorizerName,
}
}
function handleStringAuthorizer(authorizerString) {
if (authorizerString.... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/authMatchPolicyResource.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/authMatchPolicyResource.js | function parseResource(resource) {
const [, region = "*", accountId = "*", restApiId = "*", path = "*"] =
resource.match(
/arn:aws:execute-api:([^\s:]+)(?::([^\s:]+))?(?::([^\s/:]+))?(?:\/(.*))?/,
)
return {
accountId,
path,
region,
restApiId,
}
}
export default function authMatchP... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/HttpServer.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/HttpServer.js | import { Buffer } from "node:buffer"
import { exit } from "node:process"
import { Server } from "@hapi/hapi"
import { log } from "../../utils/log.js"
import {
detectEncoding,
generateAlbHapiPath,
getHttpApiCorsConfig,
} from "../../utils/index.js"
import LambdaAlbRequestEvent from "./lambda-events/LambdaAlbReques... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/Alb.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/Alb.js | import AlbEventDefinition from "./AlbEventDefinition.js"
import HttpServer from "./HttpServer.js"
export default class Alb {
#httpServer = null
#lambda = null
#options = null
#serverless = null
constructor(serverless, options, lambda) {
this.#lambda = lambda
this.#options = options
this.#serv... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/index.js | export { default } from "./Alb.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/AlbEventDefinition.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/AlbEventDefinition.js | const { assign } = Object
export default class AlbEventDefinition {
constructor(rawAlbEventDefinition) {
let listenerArn
let priority
let conditions
let rest
if (typeof rawAlbEventDefinition === "string") {
;[listenerArn, priority, conditions] = rawAlbEventDefinition.split(" ")
} else ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/lambda-events/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/lambda-events/index.js | export { default } from "./LambdaAlbRequestEvent.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/lambda-events/LambdaAlbRequestEvent.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/alb/lambda-events/LambdaAlbRequestEvent.js | import {
parseMultiValueHeaders,
parseMultiValueQueryStringParameters,
} from "../../../utils/index.js"
const { fromEntries } = Object
export default class LambdaAlbRequestEvent {
#path = null
#request = null
#stage = null
constructor(request, stage, path) {
this.#path = path
this.#request = re... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/ScheduleEventDefinition.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/ScheduleEventDefinition.js | const { assign } = Object
export default class ScheduleEventDefinition {
constructor(rawHttpEventDefinition) {
let enabled
let rate
let rest
if (typeof rawHttpEventDefinition === "string") {
rate = rawHttpEventDefinition
} else {
;({ enabled, rate, ...rest } = rawHttpEventDefinition)... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/index.js | export { default } from "./Schedule.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/ScheduleEvent.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/ScheduleEvent.js | import crypto from "node:crypto"
export default class ScheduleEvent {
account = crypto.randomUUID()
detail = {};
["detail-type"] = "Scheduled Event"
id = crypto.randomUUID()
region = null
resources = []
source = "aws.events"
// format of aws displaying the time, e.g.: 2020-02-09T14:13:57Z
time... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/Schedule.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/schedule/Schedule.js | // based on:
// https://github.com/ajmath/serverless-offline-scheduler
import nodeSchedule from "node-schedule"
import { log } from "../../utils/log.js"
import ScheduleEvent from "./ScheduleEvent.js"
import ScheduleEventDefinition from "./ScheduleEventDefinition.js"
const CRON_LENGTH_WITH_YEAR = 6
const { stringify ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/OfflineEndpoint.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/OfflineEndpoint.js | export default class OfflineEndpoint {
apiKeyRequired = false
authorizationType = "none"
authorizerFunction = false
path = ""
requestParameters = {}
requestTemplates = {
"application/json": "",
}
responses = {
default: {
400: {
statusCode: "400",
},
responseModels... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/HttpServer.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/HttpServer.js | import { Buffer } from "node:buffer"
import { readFile } from "node:fs/promises"
import { createRequire } from "node:module"
import { join, resolve } from "node:path"
import { exit } from "node:process"
import h2o2 from "@hapi/h2o2"
import { Server } from "@hapi/hapi"
import { log } from "../../utils/log.js"
import aut... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | true |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/createAuthScheme.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/createAuthScheme.js | import Boom from "@hapi/boom"
import { log } from "../../utils/log.js"
import authCanExecuteResource from "../authCanExecuteResource.js"
import authValidateContext from "../authValidateContext.js"
import {
getRawQueryParams,
nullIfEmpty,
parseHeaders,
parseMultiValueHeaders,
parseMultiValueQueryStringParamete... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/index.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/index.js | export { default } from "./Http.js"
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/Endpoint.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/Endpoint.js | import { existsSync, readFileSync } from "node:fs"
import { join } from "desm"
import { log } from "../../utils/log.js"
import OfflineEndpoint from "./OfflineEndpoint.js"
const { entries } = Object
// velocity template defaults
const defaultRequestTemplate = readFileSync(
join(import.meta.url, "templates/offline-de... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/javaHelpers.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/javaHelpers.js | // String functions
// For velocity templates to access java functions, to mimick AWS
function javaContains(value) {
return this.includes(value)
}
function javaEquals(anObject) {
return this.toString() === anObject.toString()
}
function javaEqualsIgnoreCase(anotherString) {
return anotherString === null
? ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/createJWTAuthScheme.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/createJWTAuthScheme.js | import Boom from "@hapi/boom"
import { decodeJwt } from "jose"
import { log } from "../../utils/log.js"
const { isArray } = Array
const { now } = Date
export default function createJWTAuthScheme(jwtOptions) {
const authorizerName = jwtOptions.name
const identitySourceMatch = /^\$request.header.((?:\w+-?)+\w+)$/.... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/HttpEventDefinition.js | aws/aiHintGeneration/node_modules/serverless-offline/src/events/http/HttpEventDefinition.js | const { assign } = Object
export default class HttpEventDefinition {
constructor(rawHttpEventDefinition) {
let method
let path
let rest
if (typeof rawHttpEventDefinition === "string") {
;[method, path] = rawHttpEventDefinition.split(" ")
} else {
;({ method, path, ...rest } = rawHttp... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.