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 |
|---|---|---|---|---|---|---|---|---|
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/api/api-connect.js | node_modules/undici/lib/api/api-connect.js | 'use strict'
const { AsyncResource } = require('async_hooks')
const { InvalidArgumentError, RequestAbortedError, SocketError } = require('../core/errors')
const util = require('../core/util')
const { addSignal, removeSignal } = require('./abort-signal')
class ConnectHandler extends AsyncResource {
constructor (opts... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/api/abort-signal.js | node_modules/undici/lib/api/abort-signal.js | const { addAbortListener } = require('../core/util')
const { RequestAbortedError } = require('../core/errors')
const kListener = Symbol('kListener')
const kSignal = Symbol('kSignal')
function abort (self) {
if (self.abort) {
self.abort()
} else {
self.onError(new RequestAbortedError())
}
}
function add... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/interceptor/redirectInterceptor.js | node_modules/undici/lib/interceptor/redirectInterceptor.js | 'use strict'
const RedirectHandler = require('../handler/RedirectHandler')
function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
return (dispatch) => {
return function Intercept (opts, handler) {
const { maxRedirections = defaultMaxRedirections } = opts
if (!maxRedirect... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fileapi/progressevent.js | node_modules/undici/lib/fileapi/progressevent.js | 'use strict'
const { webidl } = require('../fetch/webidl')
const kState = Symbol('ProgressEvent state')
/**
* @see https://xhr.spec.whatwg.org/#progressevent
*/
class ProgressEvent extends Event {
constructor (type, eventInitDict = {}) {
type = webidl.converters.DOMString(type)
eventInitDict = webidl.con... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fileapi/symbols.js | node_modules/undici/lib/fileapi/symbols.js | 'use strict'
module.exports = {
kState: Symbol('FileReader state'),
kResult: Symbol('FileReader result'),
kError: Symbol('FileReader error'),
kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),
kEvents: Symbol('FileReader events'),
kAborted: Symbol('FileReader aborted')
}
| javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fileapi/filereader.js | node_modules/undici/lib/fileapi/filereader.js | 'use strict'
const {
staticPropertyDescriptors,
readOperation,
fireAProgressEvent
} = require('./util')
const {
kState,
kError,
kResult,
kEvents,
kAborted
} = require('./symbols')
const { webidl } = require('../fetch/webidl')
const { kEnumerableProperty } = require('../core/util')
class FileReader ext... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fileapi/encoding.js | node_modules/undici/lib/fileapi/encoding.js | 'use strict'
/**
* @see https://encoding.spec.whatwg.org/#concept-encoding-get
* @param {string|undefined} label
*/
function getEncoding (label) {
if (!label) {
return 'failure'
}
// 1. Remove any leading and trailing ASCII whitespace from label.
// 2. If label is an ASCII case-insensitive match for an... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fileapi/util.js | node_modules/undici/lib/fileapi/util.js | 'use strict'
const {
kState,
kError,
kResult,
kAborted,
kLastProgressEventFired
} = require('./symbols')
const { ProgressEvent } = require('./progressevent')
const { getEncoding } = require('./encoding')
const { DOMException } = require('../fetch/constants')
const { serializeAMimeType, parseMIMEType } = requ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/symbols.js | node_modules/undici/lib/core/symbols.js | module.exports = {
kClose: Symbol('close'),
kDestroy: Symbol('destroy'),
kDispatch: Symbol('dispatch'),
kUrl: Symbol('url'),
kWriting: Symbol('writing'),
kResuming: Symbol('resuming'),
kQueue: Symbol('queue'),
kConnect: Symbol('connect'),
kConnecting: Symbol('connecting'),
kHeadersList: Symbol('head... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/connect.js | node_modules/undici/lib/core/connect.js | 'use strict'
const net = require('net')
const assert = require('assert')
const util = require('./util')
const { InvalidArgumentError, ConnectTimeoutError } = require('./errors')
let tls // include tls conditionally since it is not always available
// TODO: session re-use does not wait for the first
// connection to ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/constants.js | node_modules/undici/lib/core/constants.js | 'use strict'
/** @type {Record<string, string | undefined>} */
const headerNameLowerCasedRecord = {}
// https://developer.mozilla.org/docs/Web/HTTP/Headers
const wellknownHeaderNames = [
'Accept',
'Accept-Encoding',
'Accept-Language',
'Accept-Ranges',
'Access-Control-Allow-Credentials',
'Access-Control-Al... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/request.js | node_modules/undici/lib/core/request.js | 'use strict'
const {
InvalidArgumentError,
NotSupportedError
} = require('./errors')
const assert = require('assert')
const { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = require('./symbols')
const util = require('./util')
// tokenRegExp and headerCharRegex have been lifted from
// https://github... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/util.js | node_modules/undici/lib/core/util.js | 'use strict'
const assert = require('assert')
const { kDestroyed, kBodyUsed } = require('./symbols')
const { IncomingMessage } = require('http')
const stream = require('stream')
const net = require('net')
const { InvalidArgumentError } = require('./errors')
const { Blob } = require('buffer')
const nodeUtil = require('... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/core/errors.js | node_modules/undici/lib/core/errors.js | 'use strict'
class UndiciError extends Error {
constructor (message) {
super(message)
this.name = 'UndiciError'
this.code = 'UND_ERR'
}
}
class ConnectTimeoutError extends UndiciError {
constructor (message) {
super(message)
Error.captureStackTrace(this, ConnectTimeoutError)
this.name = ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/handler/RedirectHandler.js | node_modules/undici/lib/handler/RedirectHandler.js | 'use strict'
const util = require('../core/util')
const { kBodyUsed } = require('../core/symbols')
const assert = require('assert')
const { InvalidArgumentError } = require('../core/errors')
const EE = require('events')
const redirectableStatusCodes = [300, 301, 302, 303, 307, 308]
const kBody = Symbol('body')
clas... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/handler/RetryHandler.js | node_modules/undici/lib/handler/RetryHandler.js | const assert = require('assert')
const { kRetryHandlerDefaultRetry } = require('../core/symbols')
const { RequestRetryError } = require('../core/errors')
const { isDisturbed, parseHeaders, parseRangeHeader } = require('../core/util')
function calculateRetryAfterHeader (retryAfter) {
const current = Date.now()
con... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/handler/DecoratorHandler.js | node_modules/undici/lib/handler/DecoratorHandler.js | 'use strict'
module.exports = class DecoratorHandler {
constructor (handler) {
this.handler = handler
}
onConnect (...args) {
return this.handler.onConnect(...args)
}
onError (...args) {
return this.handler.onError(...args)
}
onUpgrade (...args) {
return this.handler.onUpgrade(...args)... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/webidl.js | node_modules/undici/lib/fetch/webidl.js | 'use strict'
const { types } = require('util')
const { hasOwn, toUSVString } = require('./util')
/** @type {import('../../types/webidl').Webidl} */
const webidl = {}
webidl.converters = {}
webidl.util = {}
webidl.errors = {}
webidl.errors.exception = function (message) {
return new TypeError(`${message.header}: ${... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/symbols.js | node_modules/undici/lib/fetch/symbols.js | 'use strict'
module.exports = {
kUrl: Symbol('url'),
kHeaders: Symbol('headers'),
kSignal: Symbol('signal'),
kState: Symbol('state'),
kGuard: Symbol('guard'),
kRealm: Symbol('realm')
}
| javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/dataURL.js | node_modules/undici/lib/fetch/dataURL.js | const assert = require('assert')
const { atob } = require('buffer')
const { isomorphicDecode } = require('./util')
const encoder = new TextEncoder()
/**
* @see https://mimesniff.spec.whatwg.org/#http-token-code-point
*/
const HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/
const HTTP_WHITESPACE_REGEX = /(\u0... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/body.js | node_modules/undici/lib/fetch/body.js | 'use strict'
const Busboy = require('@fastify/busboy')
const util = require('../core/util')
const {
ReadableStreamFrom,
isBlobLike,
isReadableStreamLike,
readableStreamClose,
createDeferredPromise,
fullyReadBody
} = require('./util')
const { FormData } = require('./formdata')
const { kState } = require('./... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/global.js | node_modules/undici/lib/fetch/global.js | 'use strict'
// In case of breaking changes, increase the version
// number to avoid conflicts.
const globalOrigin = Symbol.for('undici.globalOrigin.1')
function getGlobalOrigin () {
return globalThis[globalOrigin]
}
function setGlobalOrigin (newOrigin) {
if (newOrigin === undefined) {
Object.defineProperty(... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/index.js | node_modules/undici/lib/fetch/index.js | // https://github.com/Ethan-Arrowood/undici-fetch
'use strict'
const {
Response,
makeNetworkError,
makeAppropriateNetworkError,
filterResponse,
makeResponse
} = require('./response')
const { Headers } = require('./headers')
const { Request, makeRequest } = require('./request')
const zlib = require('zlib')
c... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | true |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/formdata.js | node_modules/undici/lib/fetch/formdata.js | 'use strict'
const { isBlobLike, toUSVString, makeIterator } = require('./util')
const { kState } = require('./symbols')
const { File: UndiciFile, FileLike, isFileLike } = require('./file')
const { webidl } = require('./webidl')
const { Blob, File: NativeFile } = require('buffer')
/** @type {globalThis['File']} */
co... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/constants.js | node_modules/undici/lib/fetch/constants.js | 'use strict'
const { MessageChannel, receiveMessageOnPort } = require('worker_threads')
const corsSafeListedMethods = ['GET', 'HEAD', 'POST']
const corsSafeListedMethodsSet = new Set(corsSafeListedMethods)
const nullBodyStatus = [101, 204, 205, 304]
const redirectStatus = [301, 302, 303, 307, 308]
const redirectSta... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/request.js | node_modules/undici/lib/fetch/request.js | /* globals AbortController */
'use strict'
const { extractBody, mixinBody, cloneBody } = require('./body')
const { Headers, fill: fillHeaders, HeadersList } = require('./headers')
const { FinalizationRegistry } = require('../compat/dispatcher-weakref')()
const util = require('../core/util')
const {
isValidHTTPToken... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/file.js | node_modules/undici/lib/fetch/file.js | 'use strict'
const { Blob, File: NativeFile } = require('buffer')
const { types } = require('util')
const { kState } = require('./symbols')
const { isBlobLike } = require('./util')
const { webidl } = require('./webidl')
const { parseMIMEType, serializeAMimeType } = require('./dataURL')
const { kEnumerableProperty } = ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/headers.js | node_modules/undici/lib/fetch/headers.js | // https://github.com/Ethan-Arrowood/undici-fetch
'use strict'
const { kHeadersList, kConstruct } = require('../core/symbols')
const { kGuard } = require('./symbols')
const { kEnumerableProperty } = require('../core/util')
const {
makeIterator,
isValidHeaderName,
isValidHeaderValue
} = require('./util')
const {... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/util.js | node_modules/undici/lib/fetch/util.js | 'use strict'
const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require('./constants')
const { getGlobalOrigin } = require('./global')
const { performance } = require('perf_hooks')
const { isBlobLike, toUSVString, ReadableStreamFrom } = require('../core/util')
const assert = require('a... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | true |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/fetch/response.js | node_modules/undici/lib/fetch/response.js | 'use strict'
const { Headers, HeadersList, fill } = require('./headers')
const { extractBody, cloneBody, mixinBody } = require('./body')
const util = require('../core/util')
const { kEnumerableProperty } = util
const {
isValidReasonPhrase,
isCancelled,
isAborted,
isBlobLike,
serializeJavascriptValueToJSONStr... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/websocket.js | node_modules/undici/lib/websocket/websocket.js | 'use strict'
const { webidl } = require('../fetch/webidl')
const { DOMException } = require('../fetch/constants')
const { URLSerializer } = require('../fetch/dataURL')
const { getGlobalOrigin } = require('../fetch/global')
const { staticPropertyDescriptors, states, opcodes, emptyBuffer } = require('./constants')
const... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/symbols.js | node_modules/undici/lib/websocket/symbols.js | 'use strict'
module.exports = {
kWebSocketURL: Symbol('url'),
kReadyState: Symbol('ready state'),
kController: Symbol('controller'),
kResponse: Symbol('response'),
kBinaryType: Symbol('binary type'),
kSentClose: Symbol('sent close'),
kReceivedClose: Symbol('received close'),
kByteParser: Symbol('byte p... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/frame.js | node_modules/undici/lib/websocket/frame.js | 'use strict'
const { maxUnsigned16Bit } = require('./constants')
/** @type {import('crypto')} */
let crypto
try {
crypto = require('crypto')
} catch {
}
class WebsocketFrameSend {
/**
* @param {Buffer|undefined} data
*/
constructor (data) {
this.frameData = data
this.maskKey = crypto.randomBytes... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/events.js | node_modules/undici/lib/websocket/events.js | 'use strict'
const { webidl } = require('../fetch/webidl')
const { kEnumerableProperty } = require('../core/util')
const { MessagePort } = require('worker_threads')
/**
* @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
*/
class MessageEvent extends Event {
#eventInit
constructor (type, even... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/constants.js | node_modules/undici/lib/websocket/constants.js | 'use strict'
// This is a Globally Unique Identifier unique used
// to validate that the endpoint accepts websocket
// connections.
// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3
const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
/** @type {PropertyDescriptor} */
const staticPropertyDescriptors = {
... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/connection.js | node_modules/undici/lib/websocket/connection.js | 'use strict'
const diagnosticsChannel = require('diagnostics_channel')
const { uid, states } = require('./constants')
const {
kReadyState,
kSentClose,
kByteParser,
kReceivedClose
} = require('./symbols')
const { fireEvent, failWebsocketConnection } = require('./util')
const { CloseEvent } = require('./events')... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/util.js | node_modules/undici/lib/websocket/util.js | 'use strict'
const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = require('./symbols')
const { states, opcodes } = require('./constants')
const { MessageEvent, ErrorEvent } = require('./events')
/* globals Blob */
/**
* @param {import('./websocket').WebSocket} ws
*/
function isEstablished (w... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/undici/lib/websocket/receiver.js | node_modules/undici/lib/websocket/receiver.js | 'use strict'
const { Writable } = require('stream')
const diagnosticsChannel = require('diagnostics_channel')
const { parserStates, opcodes, states, emptyBuffer } = require('./constants')
const { kReadyState, kSentClose, kResponse, kReceivedClose } = require('./symbols')
const { isValidStatusCode, failWebsocketConnect... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/http-client/lib/proxy.js | node_modules/@actions/http-client/lib/proxy.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkBypass = exports.getProxyUrl = void 0;
function getProxyUrl(reqUrl) {
const usingSsl = reqUrl.protocol === 'https:';
if (checkBypass(reqUrl)) {
return undefined;
}
const proxyVar = (() => {
if (usin... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/http-client/lib/index.js | node_modules/@actions/http-client/lib/index.js | "use strict";
/* eslint-disable @typescript-eslint/no-explicit-any */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/http-client/lib/auth.js | node_modules/@actions/http-client/lib/auth.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 | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/http-client/lib/interfaces.js | node_modules/@actions/http-client/lib/interfaces.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/exec/lib/interfaces.js | node_modules/@actions/exec/lib/interfaces.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/exec/lib/toolrunner.js | node_modules/@actions/exec/lib/toolrunner.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/exec/lib/exec.js | node_modules/@actions/exec/lib/exec.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/path-utils.js | node_modules/@actions/core/lib/path-utils.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/core.js | node_modules/@actions/core/lib/core.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/summary.js | node_modules/@actions/core/lib/summary.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 | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/platform.js | node_modules/@actions/core/lib/platform.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/oidc-utils.js | node_modules/@actions/core/lib/oidc-utils.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 | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/file-command.js | node_modules/@actions/core/lib/file-command.js | "use strict";
// For internal use, subject to change.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configur... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/command.js | node_modules/@actions/core/lib/command.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/core/lib/utils.js | node_modules/@actions/core/lib/utils.js | "use strict";
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCommandProperties = exports.toCommandValue = void 0;
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/io/lib/io.js | node_modules/@actions/io/lib/io.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@actions/io/lib/io-util.js | node_modules/@actions/io/lib/io-util.js | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js | node_modules/@fastify/busboy/deps/streamsearch/sbmh.js | 'use strict'
/**
* Copyright Brian White. All rights reserved.
*
* @see https://github.com/mscdex/streamsearch
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, i... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js | node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js | 'use strict'
const inherits = require('node:util').inherits
const ReadableStream = require('node:stream').Readable
function PartStream (opts) {
ReadableStream.call(this, opts)
}
inherits(PartStream, ReadableStream)
PartStream.prototype._read = function (n) {}
module.exports = PartStream
| javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js | node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js | 'use strict'
const WritableStream = require('node:stream').Writable
const inherits = require('node:util').inherits
const StreamSearch = require('../../streamsearch/sbmh')
const PartStream = require('./PartStream')
const HeaderParser = require('./HeaderParser')
const DASH = 45
const B_ONEDASH = Buffer.from('-')
cons... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js | node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js | 'use strict'
const EventEmitter = require('node:events').EventEmitter
const inherits = require('node:util').inherits
const getLimit = require('../../../lib/utils/getLimit')
const StreamSearch = require('../../streamsearch/sbmh')
const B_DCRLF = Buffer.from('\r\n\r\n')
const RE_CRLF = /\r\n/g
const RE_HDR = /^([^:]+)... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/main.js | node_modules/@fastify/busboy/lib/main.js | 'use strict'
const WritableStream = require('node:stream').Writable
const { inherits } = require('node:util')
const Dicer = require('../deps/dicer/lib/Dicer')
const MultipartParser = require('./types/multipart')
const UrlencodedParser = require('./types/urlencoded')
const parseParams = require('./utils/parseParams')
... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/utils/getLimit.js | node_modules/@fastify/busboy/lib/utils/getLimit.js | 'use strict'
module.exports = function getLimit (limits, name, defaultLimit) {
if (
!limits ||
limits[name] === undefined ||
limits[name] === null
) { return defaultLimit }
if (
typeof limits[name] !== 'number' ||
isNaN(limits[name])
) { throw new TypeError('Limit ' + name + ' is not a val... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/utils/parseParams.js | node_modules/@fastify/busboy/lib/utils/parseParams.js | /* eslint-disable object-property-newline */
'use strict'
const decodeText = require('./decodeText')
const RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g
const EncodedLookup = {
'%00': '\x00', '%01': '\x01', '%02': '\x02', '%03': '\x03', '%04': '\x04',
'%05': '\x05', '%06': '\x06', '%07': '\x07', '%08': '\x08', '%09': ... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/utils/Decoder.js | node_modules/@fastify/busboy/lib/utils/Decoder.js | 'use strict'
const RE_PLUS = /\+/g
const HEX = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/utils/basename.js | node_modules/@fastify/busboy/lib/utils/basename.js | 'use strict'
module.exports = function basename (path) {
if (typeof path !== 'string') { return '' }
for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var
switch (path.charCodeAt(i)) {
case 0x2F: // '/'
case 0x5C: // '\'
path = path.slice(i + 1)
return (path ===... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/utils/decodeText.js | node_modules/@fastify/busboy/lib/utils/decodeText.js | 'use strict'
// Node has always utf-8
const utf8Decoder = new TextDecoder('utf-8')
const textDecoders = new Map([
['utf-8', utf8Decoder],
['utf8', utf8Decoder]
])
function getDecoder (charset) {
let lc
while (true) {
switch (charset) {
case 'utf-8':
case 'utf8':
return decoders.utf8
... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/types/multipart.js | node_modules/@fastify/busboy/lib/types/multipart.js | 'use strict'
// TODO:
// * support 1 nested multipart level
// (see second multipart example here:
// http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)
// * support limits.fieldNameSize
// -- this will require modifications to utils.parseParams
const { Readable } = require('node:s... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
GabrielBB/xvfb-action | https://github.com/GabrielBB/xvfb-action/blob/5bcda06da84ba084708898801da79736b88e00a9/node_modules/@fastify/busboy/lib/types/urlencoded.js | node_modules/@fastify/busboy/lib/types/urlencoded.js | 'use strict'
const Decoder = require('../utils/Decoder')
const decodeText = require('../utils/decodeText')
const getLimit = require('../utils/getLimit')
const RE_CHARSET = /^charset$/i
UrlEncoded.detect = /^application\/x-www-form-urlencoded/i
function UrlEncoded (boy, cfg) {
const limits = cfg.limits
const pars... | javascript | MIT | 5bcda06da84ba084708898801da79736b88e00a9 | 2026-01-05T03:43:18.407050Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/babel.config.js | babel.config.js | module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-export-default-from',
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-proposal-private-... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/jest.config.js | jest.config.js | module.exports = {
collectCoverageFrom: ['<rootDir>/src/**/*.js'],
setupFiles: ['./test/setup.js'],
testEnvironment: './test/environment',
verbose: true,
};
| javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/index.js | src/index.js | // Elemental UI components
export Alert from 'components/alert';
export Button from 'components/button';
export Checkbox from 'components/checkbox';
export Image from 'components/image';
export Label from 'components/label';
export Link from 'components/link';
export LoadingBar from 'components/loading-bar';
export Mod... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/elemental.js | src/elemental.js | /* eslint-disable no-underscore-dangle */
import PropTypes from 'prop-types';
import { Component } from 'react';
import bootstrap from 'bootstrap';
/**
* Component that declaratively wraps logic for idempotently bootstrapping the library. Client code
* can be contained within the children of this component at the h... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/bootstrap.js | src/bootstrap.js | import { colors } from 'styles/color';
import { fonts, fontCSS } from 'styles/font';
import { buttonOutlinesCSS } from 'styles/spacing';
import injectCSS from 'util/inject-css';
const DEFAULT_COLORS = {
primary: colors.blue,
primaryLight: colors.blueLight,
primaryDark: colors.blueDark,
};
/**
* Universal spaci... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/util/noop.js | src/util/noop.js | /**
* Decidedly uninteresting.
*/
const noop = () => {};
export default noop;
| javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/util/inject-css.js | src/util/inject-css.js | /**
* Inject a CSS style declaration into the document head.
*
* @param {string} css Valid CSS string.
*/
const injectCSS = (css) => {
const node = document.createElement('style');
node.innerHTML = css;
document.body.appendChild(node);
};
export default injectCSS;
| javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/util/constants.js | src/util/constants.js | // Key code values
export const KEY_CODE_ENTER = 13;
export const KEY_CODE_ESC = 27;
export const KEY_CODE_SPACE = 32;
export const KEY_CODE_UP = 38;
export const KEY_CODE_DOWN = 40;
export const KEY_CODE_LEFT = 37;
export const KEY_CODE_RIGHT = 39;
| javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/util/omit.js | src/util/omit.js | /**
* Omit entries from an object with certain keys.
*
* @param {Object} obj Input object.
* @param {Array} paths Array of strings denoting keys in the input object to remove.
* @return {Object} New object instance with the requested keys removed.
*/
const omit = (obj, paths = []) => Object.entries(obj)
.filter... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/util/number.js | src/util/number.js | /**
* Some cleverness is required to make Javascript's modulo operator return a nonnegative number for
* modulo operations on negative integers.
*
* @param {number} num Number for which a modulo operation should be performed.
* @param {number} modulus Modulus integer.
*/
export const modulo = (num, modulus) => ((... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/styles/font.js | src/styles/font.js | import { colors } from 'styles/color';
export const fonts = {
primary: {
regular: '',
bold: '',
},
secondary: {
regular: '',
bold: '',
},
};
export const sizes = {
alpha: '60px',
beta: '54px',
gamma: '46px',
delta: '36px',
epsilon: '24px',
iota: '15px',
kilo: '13px',
lambda: '1... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/styles/transition.js | src/styles/transition.js | export const durations = {
alpha: '80ms',
beta: '120ms',
gamma: '170ms',
epsilon: '220ms',
iota: '270ms',
};
export const timing = {
default: 'cubic-bezier(0, .75, .35, 1)',
ease: 'cubic-bezier(.75, 0, .35, 1)',
};
/**
* Factory function for generating a transition style with predefined a timing functi... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/styles/spacing.js | src/styles/spacing.js | export const spacing = {
default: '24px',
micro: '4px',
tiny: '6px',
small: '12px',
large: '36px',
huge: '50px',
enormous: '100px',
};
/**
* Factory function for generating a margin style object of the specified size, for the specified
* dimension(s).
*
* @param {string} property Name of the CSS prop... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/styles/color.js | src/styles/color.js | const range = (low, high, skip) => ((low === high) ?
[] : [low].concat(range(low + skip, high, skip)));
const gray = {
black: 'rgb(0, 0, 0)',
white: 'rgb(255, 255, 255)',
transparent: 'rgba(0, 0, 0, 0.4)',
// Shades of gray for each fifth percentage
...range(5, 100, 5).reduce((grayShades, shadePercent) => ... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/icons/clear.js | src/icons/clear.js | import React from 'react';
/**
* Material Design clear icon; source: https://material.io/icons/#ic_clear
*/
const Clear = (props) => (
<svg viewBox="0 0 24 24" {...props}>
<path
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19
17.59 13.41 12z"
/>
</sv... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/icons/check.js | src/icons/check.js | import React from 'react';
/**
* Material Design check icon; source: https://material.io/icons/#ic_check
*/
const Check = (props) => (
<svg viewBox="0 0 24 24" {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg>
);
export default Check;
| javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/button.js | src/components/button.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, withForwardedRef, withToggleState } from '@linkiwi/hoc';
import Text from 'components/text';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/transition';
import { KEY_CODE_ENTER } from 'util/co... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/loading-bar.js | src/components/loading-bar.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
export const POSITION_LEFT = 0;
export const POSITION_RIGHT = 100;
/**
* Indeterminate loading bar component.
*/
exp... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/toast.js | src/components/toast.js | import PropTypes from 'prop-types';
import React from 'react';
import Spacing from 'components/spacing';
import { colors } from 'styles/color';
import { spacing } from 'styles/spacing';
/**
* Fixed-position notification element. This component is purely presentational; in actual usage,
* it should be wrapped in a ma... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/alert.js | src/components/alert.js | import PropTypes from 'prop-types';
import React from 'react';
import Spacing from 'components/spacing';
import Text from 'components/text';
import Clear from 'icons/clear';
import { colors } from 'styles/color';
import noop from 'util/noop';
// Mapping of alert types to their corresponding background and text colors
... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/link.js | src/components/link.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, withForwardedRef, withToggleState } from '@linkiwi/hoc';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
import { KEY_CODE_ENTER } from 'util/constants';
/**
* Styled link element.
*/
cl... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/pulsator.js | src/components/pulsator.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
const sizeMap = {
alpha: '26px',
beta: '18px',
gamma: '12px',
delta: '8px',
};
const DEFAULT_IDLE_COLOR = colo... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/tooltip.js | src/components/tooltip.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
export const GRACE_TIMEOUT_INTERVAL = 150;
/**
* Wrap an arbitrary element with a tooltip next to the element on hove... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/spinner.js | src/components/spinner.js | import PropTypes from 'prop-types';
import React from 'react';
import { withCSS } from '@linkiwi/hoc';
import { colors } from 'styles/color';
const sizeMap = {
alpha: '26px',
beta: '18px',
gamma: '12px',
delta: '8px',
};
const Spinner = ({
size,
ringColor,
accentColor = colors.primary,
duration,
thi... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/checkbox.js | src/components/checkbox.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withForwardedRef } from '@linkiwi/hoc';
import Spacing from 'components/spacing';
import Text from 'components/text';
import Check from 'icons/check';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/tra... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/spacing.js | src/components/spacing.js | import PropTypes from 'prop-types';
import React from 'react';
import { marginStyle } from 'styles/spacing';
/**
* Spacing component to add padding and margins.
*/
const Spacing = (props) => {
const {
padding,
size,
top,
right,
bottom,
left,
inline,
style: overrides,
children,
... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/label.js | src/components/label.js | import PropTypes from 'prop-types';
import React from 'react';
import Spacing from 'components/spacing';
import Text from 'components/text';
/**
* Text label accompanying an input field.
*
* @constructor
*/
const Label = ({ label, sublabel, ...proxyProps }) => (
<Spacing size="tiny" bottom {...proxyProps}>
{... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/modal.js | src/components/modal.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { colors } from 'styles/color';
import noop from 'util/noop';
import omit from 'util/omit';
const KEY_CODE_ESC = 27;
const widthMap = {
alpha: 900,
beta: 600,
gamma: 400,
};
/**
* Container for a full-page modal dialog.
*/
c... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/text-area.js | src/components/text-area.js | import PropTypes from 'prop-types';
import React from 'react';
import { withForwardedRef } from '@linkiwi/hoc';
import TextField from 'components/text-field';
import { transitionStyle } from 'styles/transition';
/**
* Styled textarea element for blobs of text input.
*
* This component behaves similarly to TextField... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/text-field.js | src/components/text-field.js | import Color from 'color';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, withForwardedRef, withToggleState } from '@linkiwi/hoc';
import Spacing from 'components/spacing';
import Text from 'components/text';
import { colors } from 'styles/color';
import { primaryFontSty... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/image.js | src/components/image.js | import Color from 'color';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { compose, withForwardedRef, withToggleState } from '@linkiwi/hoc';
import Text from 'components/text';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
// Image is not moun... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/tag.js | src/components/tag.js | import PropTypes from 'prop-types';
import React from 'react';
import Text from 'components/text';
import { colors } from 'styles/color';
import { spacing } from 'styles/spacing';
import { transitionStyle } from 'styles/transition';
import Clear from 'icons/clear';
import noop from 'util/noop';
const paddingMap = {
... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
LINKIWI/react-elemental | https://github.com/LINKIWI/react-elemental/blob/9dc31353320ee4a5accbff03b53d67af74ea8caa/src/components/text.js | src/components/text.js | import PropTypes from 'prop-types';
import React from 'react';
import { primaryFontStyle, secondaryFontStyle } from 'styles/font';
/**
* Text component with automatic typeface formatting.
*/
const Text = (props) => {
const {
secondary,
size,
color,
bold,
inline,
uppercase,
center,
r... | javascript | MIT | 9dc31353320ee4a5accbff03b53d67af74ea8caa | 2026-01-05T03:41:52.125682Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.