Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baku89/pentool
/ functions
Functions
109 in github.com/baku89/pentool
⨍
Functions
109
◇
Types & classes
26
↓ 20 callers
Function
getFriendlyURL
dev-dist/workbox-5357ef54.js:678
↓ 9 callers
Method
iterateCallbacks
* Accepts a callback and returns an iterable of matching plugin callbacks, * where each callback is wrapped with the current handler state (i.e
dev-dist/workbox-5357ef54.js:2118
↓ 5 callers
Method
match
({ url })
dev-dist/workbox-5357ef54.js:643
↓ 5 callers
Method
waitUntil
* Adds a promise to the * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}
dev-dist/workbox-5357ef54.js:2147
↓ 4 callers
Method
handle
* Perform a request strategy and returns a `Promise` that will resolve with * a `Response`, invoking all relevant plugin callbacks. *
dev-dist/workbox-5357ef54.js:2306
↓ 4 callers
Function
normalizeHandler
dev-dist/workbox-5357ef54.js:518
↓ 4 callers
Method
runCallbacks
* Runs all plugin callbacks matching the given name, in order, passing the * given param object (merged ith the current plugin state) as the on
dev-dist/workbox-5357ef54.js:2102
↓ 4 callers
Function
toRequest
(input)
dev-dist/workbox-5357ef54.js:1728
↓ 3 callers
Function
_createCacheName
dev-dist/workbox-5357ef54.js:1217
↓ 3 callers
Method
cachePut
* Puts a request/response pair in the cache (and invokes any applicable * plugin callback methods) using the `cacheName` and `plugins` defined
dev-dist/workbox-5357ef54.js:1972
↓ 3 callers
Function
createNewPath
()
examples/acidgraphics.js:24
↓ 3 callers
Method
fetch
* Fetches a given request (and invokes any applicable plugin callback * methods) using the `fetchOptions` (for non-navigation requests) and
dev-dist/workbox-5357ef54.js:1831
↓ 3 callers
Method
getCacheKey
* Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and * executes any of those callbacks found in sequence. The final `Request
dev-dist/workbox-5357ef54.js:2053
↓ 3 callers
Method
getCacheKeyForURL
* Returns the cache key used for storing a given URL. If that URL is * unversioned, like `/index.html', then the cache key will be the original
dev-dist/workbox-5357ef54.js:2886
↓ 3 callers
Function
getOrCreatePrecacheController
()
dev-dist/workbox-5357ef54.js:2962
↓ 2 callers
Function
_nestedGroup
* @param {string} groupTitle * @param {Array<string>} urls * * @private
dev-dist/workbox-5357ef54.js:1466
↓ 2 callers
Method
_useDefaultCacheabilityPluginIfNeeded
* This method is complex, as there a number of things to account for: * * The `plugins` array can be set at construction, and/or it migh
dev-dist/workbox-5357ef54.js:2616
↓ 2 callers
Function
getT
(a, b, m)
examples/acidgraphics.js:11
↓ 2 callers
Method
handleAll
* Similar to {@link workbox-strategies.Strategy~handle}, but * instead of just returning a `Promise` that resolves to a `Response` it *
dev-dist/workbox-5357ef54.js:2332
↓ 2 callers
Method
handleRequest
* Apply the routing rules to a FetchEvent object to get a Response from an * appropriate Route's handler. * * @param {Object} opt
dev-dist/workbox-5357ef54.js:812
↓ 2 callers
Method
hasCallback
* Returns true if the strategy has at least one plugin with the given * callback. * * @param {string} name The name of the callba
dev-dist/workbox-5357ef54.js:2078
↓ 2 callers
Function
stripParams
(fullURL, ignoreParams)
dev-dist/workbox-5357ef54.js:1591
↓ 2 callers
Function
waitUntil
* A utility method that makes it easier to use `event.waitUntil` with * async functions and return the result. * * @param {ExtendableEv
dev-dist/workbox-5357ef54.js:1265
↓ 1 callers
Method
_awaitComplete
(responseDone, handler, request, event)
dev-dist/workbox-5357ef54.js:2397
↓ 1 callers
Method
_ensureResponseSafeToCache
* This method will call cacheWillUpdate on the available plugins (or use * status === 200) to determine if the Response is safe and valid to ca
dev-dist/workbox-5357ef54.js:2184
↓ 1 callers
Method
_getResponse
(handler, request, event)
dev-dist/workbox-5357ef54.js:2353
↓ 1 callers
Method
_handle
* @private * @param {Request|string} request A request to run this strategy for. * @param {workbox-strategies.StrategyHandler} handler T
dev-dist/workbox-5357ef54.js:2503
↓ 1 callers
Method
_handleFetch
(request, handler)
dev-dist/workbox-5357ef54.js:2517
↓ 1 callers
Method
_handleInstall
(request, handler)
dev-dist/workbox-5357ef54.js:2573
↓ 1 callers
Method
_match
* Routes match handler. * * @param {Object} options * @param {URL} options.url * @param {Request} options.request *
dev-dist/workbox-5357ef54.js:3329
↓ 1 callers
Method
addCacheListener
* Adds a message event listener for URLs to cache from the window. * This is useful to cache resources loaded on the page prior to when the
dev-dist/workbox-5357ef54.js:766
↓ 1 callers
Method
addFetchListener
* Adds a fetch event listener to respond to events when a route matches * the event's request.
dev-dist/workbox-5357ef54.js:729
↓ 1 callers
Function
addRoute
* Add a `fetch` listener to the service worker that will * respond to * [network requests]{@link https://developer.mozilla.org/en-US/docs/We
dev-dist/workbox-5357ef54.js:3125
↓ 1 callers
Method
addToCacheList
* This method will add items to the precache list, removing duplicates * and ensuring the information is valid. * * @param {Array
dev-dist/workbox-5357ef54.js:2734
↓ 1 callers
Method
cacheMatch
* Matches a request from the cache (and invokes any applicable plugin * callback methods) using the `cacheName`, `matchOptions`, and `plugins`
dev-dist/workbox-5357ef54.js:1927
↓ 1 callers
Function
cacheMatchIgnoreParams
* Matches an item in the cache, ignoring specific URL params. This is similar * to the `ignoreSearch` option, but it allows you to ignore just sp
dev-dist/workbox-5357ef54.js:1610
↓ 1 callers
Function
canConstructResponseFromBodyStream
* A utility function that determines whether the current browser supports * constructing a new `Response` from a `response.body` stream. *
dev-dist/workbox-5357ef54.js:1515
↓ 1 callers
Function
clamp
(v, a, b)
examples/acidgraphics.js:7
↓ 1 callers
Function
copyResponse
* Allows developers to copy a response and modify its `headers`, `status`, * or `statusText` values (the values settable via a * [`ResponseI
dev-dist/workbox-5357ef54.js:1557
↓ 1 callers
Function
createCacheKey
* Converts a manifest entry into a versioned URL suitable for precaching. * * @param {Object|string} entry * @return {string} A URL wit
dev-dist/workbox-5357ef54.js:1294
↓ 1 callers
Method
createHandlerBoundToURL
* Returns a function that looks up `url` in the precache (taking into * account revision information), and returns the corresponding `Response`
dev-dist/workbox-5357ef54.js:2933
↓ 1 callers
Function
deleteOutdatedCaches
(currentPrecacheName, substringToFind = SUBSTRING_TO_FIND)
dev-dist/workbox-5357ef54.js:3214
↓ 1 callers
Method
destroy
* Stops running the strategy and immediately resolves any pending * `waitUntil()` promises.
dev-dist/workbox-5357ef54.js:2171
↓ 1 callers
Method
doneWaiting
* Returns a promise that resolves once all promises passed to * {@link workbox-strategies.StrategyHandler~waitUntil} * have settled.
dev-dist/workbox-5357ef54.js:2161
↓ 1 callers
Function
drawArc
(name, start, end, color)
examples/pie-graph.js:23
↓ 1 callers
Function
eachCacheNameDetail
dev-dist/workbox-5357ef54.js:1220
↓ 1 callers
Function
executeQuotaErrorCallbacks
* Runs all of the callback functions, one at a time sequentially, in the order * in which they were registered. * * @memberof workbox-c
dev-dist/workbox-5357ef54.js:1683
↓ 1 callers
Method
findMatchingRoute
* Checks a request and URL (and optionally an event) against the list of * registered routes, and if there's a match, returns the corresponding
dev-dist/workbox-5357ef54.js:956
↓ 1 callers
Function
generateURLVariations
* Generator function that yields possible variations on the original URL to * check, one at a time. * * @param {string} url * @par
dev-dist/workbox-5357ef54.js:3016
↓ 1 callers
Method
getIntegrityForCacheKey
* @param {string} url A cache key whose SRI you want to look up. * @return {string} The subresource integrity associated with the cache key,
dev-dist/workbox-5357ef54.js:2895
↓ 1 callers
Function
getOrCreateDefaultRouter
()
dev-dist/workbox-5357ef54.js:1115
↓ 1 callers
Method
getURLsToCacheKeys
* Returns a mapping of a precached URL to the corresponding cache key, taking * into account the revision information for the URL. *
dev-dist/workbox-5357ef54.js:2865
↓ 1 callers
Function
logGroup
(groupTitle, deletedURLs)
dev-dist/workbox-5357ef54.js:1431
↓ 1 callers
Function
precache
* Adds items to the precache list, removing any duplicates and * stores the files in the * {@link workbox-core.cacheNames|"precache cache"}
dev-dist/workbox-5357ef54.js:3157
↓ 1 callers
Method
precache
* Adds items to the precache list, removing any duplicates and * stores the files in the * {@link workbox-core.cacheNames|"precache cach
dev-dist/workbox-5357ef54.js:2719
↓ 1 callers
Function
print
(method, args)
dev-dist/workbox-5357ef54.js:47
↓ 1 callers
Function
printCleanupDetails
* @param {Array<string>} deletedURLs * * @private * @memberof workbox-precaching
dev-dist/workbox-5357ef54.js:1444
↓ 1 callers
Function
printInstallDetails
* @param {Array<string>} urlsToPrecache * @param {Array<string>} urlsAlreadyPrecached * * @private * @memberof workbox-precaching
dev-dist/workbox-5357ef54.js:1483
↓ 1 callers
Function
registerRoute
* Easily register a RegExp, string, or function with a caching * strategy to a singleton Router instance. * * This method will generate
dev-dist/workbox-5357ef54.js:1150
↓ 1 callers
Method
registerRoute
* Registers a route with the router. * * @param {workbox-routing.Route} route The route to register.
dev-dist/workbox-5357ef54.js:1040
↓ 1 callers
Function
removeIgnoredSearchParams
* Removes any URL search parameters that should be ignored. * * @param {URL} urlObject The original URL. * @param {Array<RegExp>} ignor
dev-dist/workbox-5357ef54.js:2988
↓ 1 callers
Function
timeout
* Returns a promise that resolves and the passed number of milliseconds. * This utility is an async/await-friendly version of `setTimeout`.
dev-dist/workbox-5357ef54.js:1712
Method
activate
* Deletes assets that are no longer present in the current precache manifest. * Call this method from the service worker activate event.
dev-dist/workbox-5357ef54.js:2837
Function
cacheWillUpdate
({ response })
dev-dist/workbox-5357ef54.js:2643
Function
cleanupOutdatedCaches
* Adds an `activate` event listener which will clean up incompatible * precaches that were created by older versions of Workbox. * * @m
dev-dist/workbox-5357ef54.js:3236
Function
clientsClaim
* Claim any currently available clients once the service worker * becomes active. This is normally used in conjunction with `skipWaiting()`.
dev-dist/workbox-5357ef54.js:21
Method
constructor
* * @param {string} errorCode The error code that * identifies this particular error. * @param {Object=} details Any relevant arg
dev-dist/workbox-5357ef54.js:396
Method
constructor
* Constructor for Route class. * * @param {workbox-routing~matchCallback} match * A callback function that determines whether the
dev-dist/workbox-5357ef54.js:572
Method
constructor
* If the regular expression contains * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
dev-dist/workbox-5357ef54.js:634
Method
constructor
* Initializes a new Router.
dev-dist/workbox-5357ef54.js:713
Method
constructor
()
dev-dist/workbox-5357ef54.js:1352
Method
constructor
({ precacheController })
dev-dist/workbox-5357ef54.js:1399
Method
constructor
* Creates a promise and exposes its resolve and reject functions as methods.
dev-dist/workbox-5357ef54.js:1649
Method
constructor
* Creates a new instance associated with the passed strategy and event * that's handling the request. * * The constructor also in
dev-dist/workbox-5357ef54.js:1757
Method
constructor
* Creates a new instance of the strategy and sets all documented option * properties as public instance properties. * * Note: if
dev-dist/workbox-5357ef54.js:2253
Method
constructor
* * @param {Object} [options] * @param {string} [options.cacheName] Cache name to store and retrieve * requests. Defaults to the
dev-dist/workbox-5357ef54.js:2486
Method
constructor
* Create a new PrecacheController. * * @param {Object} [options] * @param {string} [options.cacheName] The cache to use for preca
dev-dist/workbox-5357ef54.js:2683
Method
constructor
* @param {PrecacheController} precacheController A `PrecacheController` * instance used to both match requests and respond to fetch events.
dev-dist/workbox-5357ef54.js:3080
Method
constructor
* If both `denylist` and `allowlist` are provided, the `denylist` will * take precedence and the request will not match this route. *
dev-dist/workbox-5357ef54.js:3297
Function
createHandlerBoundToURL
* Helper function that calls * {@link PrecacheController#createHandlerBoundToURL} on the default * {@link PrecacheController} instance.
dev-dist/workbox-5357ef54.js:3382
Method
fetchAndCachePut
* Calls `this.fetch()` and (in the background) runs `this.cachePut()` on * the response generated by `this.fetch()`. * * The call
dev-dist/workbox-5357ef54.js:1909
Function
findNumericLiteralAtColumn
(subject: string, index: number)
src/utils.ts:33
Function
findTextBetweenDelimiters
( subject: string, index: number, open: string, close: string )
src/utils.ts:10
Function
generatorFunction
(code, details = {})
dev-dist/workbox-5357ef54.js:362
Function
get
()
src/use/useCommentMeta.ts:22
Method
getCachedURLs
* Returns a list of all the URLs that have been precached by the current * service worker. * * @return {Array<string>} The precac
dev-dist/workbox-5357ef54.js:2874
Function
hasMethod
(object, expectedMethod, details)
dev-dist/workbox-5357ef54.js:422
Method
install
* Precaches new and updated assets. Call this method from the service worker * install event. * * Note: this method calls `event.
dev-dist/workbox-5357ef54.js:2790
Function
isArray
(value, details)
dev-dist/workbox-5357ef54.js:417
Function
isArrayOfClass
(value, // Need general type to do check later. expectedClass, // eslint-disable-line details)
dev-dist/workbox-5357ef54.js:450
Function
isInstance
(object, // Need the general type to do the check later. // eslint-disable-next-line @typescript-eslin
dev-dist/workbox-5357ef54.js:435
Function
isOneOf
(value, validValues, details)
dev-dist/workbox-5357ef54.js:444
Function
isType
(object, expectedType, details)
dev-dist/workbox-5357ef54.js:429
Method
match
({ request })
dev-dist/workbox-5357ef54.js:3081
Function
matchCallback
({ url })
dev-dist/workbox-5357ef54.js:1171
Method
matchPrecache
* This acts as a drop-in replacement for * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) * with the fo
dev-dist/workbox-5357ef54.js:2916
Function
normalizeColorToHexCode
(color: string)
src/utils.ts:3
Function
precacheAndRoute
* This method will add entries to the precache list and add a route to * respond to fetch events. * * This is a convenience method that
dev-dist/workbox-5357ef54.js:3183
Function
replaceTextBetween
( subject: string, startIndex: number, endIndex: number, replacement: string )
src/utils.ts:72
Method
routes
* @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP * method name ('GET', etc.) to an array of all the corresponding `
dev-dist/workbox-5357ef54.js:722
next →
1–100 of 109, ranked by callers