MCPcopy
hub / github.com/GoogleChrome/workbox / get

Method get

packages/workbox-sw/controllers/WorkboxSW.mjs:118–129  ·  view source on GitHub ↗
(target, key)

Source from the content-addressed store, hash-verified

116
117 return new Proxy(this, {
118 get(target, key) {
119 if (target[key]) {
120 return target[key];
121 }
122
123 const moduleName = MODULE_KEY_TO_NAME_MAPPING[key];
124 if (moduleName) {
125 target.loadModule(`workbox-${moduleName}`);
126 }
127
128 return target[key];
129 },
130 });
131 }
132

Callers 15

matchMethod · 0.80
addToCacheListMethod · 0.80
installMethod · 0.80
getCacheKeyForURLMethod · 0.80
getCacheKeyForURLFunction · 0.80
responsesAreSameFunction · 0.80
notifyIfUpdatedMethod · 0.80
isResponseCacheableMethod · 0.80
createOnSyncCallbackFunction · 0.80
_getCacheExpirationMethod · 0.80

Calls 1

loadModuleMethod · 0.80

Tested by

no test coverage detected