MCPcopy Create free account
hub / github.com/angular/dev-infra / stringify

Function stringify

github-actions/browserstack/set-browserstack-env.js:16573–16620  ·  view source on GitHub ↗
(cookie)

Source from the content-addressed store, hash-verified

16571 if (__privateGet(this, _caches).has(cacheName)) {
16572 const cache2 = __privateGet(this, _caches).get(cacheName);
16573 return new Cache(kConstruct, cache2);
16574 }
16575 const cache = [];
16576 __privateGet(this, _caches).set(cacheName, cache);
16577 return new Cache(kConstruct, cache);
16578 });
16579 }
16580 /**
16581 * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete
16582 * @param {string} cacheName
16583 * @returns {Promise<boolean>}
16584 */
16585 delete(_0) {
16586 return __async(this, arguments, function* (cacheName) {
16587 webidl.brandCheck(this, _CacheStorage);
16588 const prefix = "CacheStorage.delete";
16589 webidl.argumentLengthCheck(arguments, 1, prefix);
16590 cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
16591 return __privateGet(this, _caches).delete(cacheName);
16592 });
16593 }
16594 /**
16595 * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys
16596 * @returns {Promise<string[]>}
16597 */
16598 keys() {
16599 return __async(this, null, function* () {
16600 webidl.brandCheck(this, _CacheStorage);
16601 const keys = __privateGet(this, _caches).keys();
16602 return [...keys];
16603 });
16604 }
16605 };
16606 _caches = new WeakMap();
16607 var CacheStorage = _CacheStorage;
16608 Object.defineProperties(CacheStorage.prototype, {
16609 [Symbol.toStringTag]: {
16610 value: "CacheStorage",
16611 configurable: true
16612 },
16613 match: kEnumerableProperty,
16614 has: kEnumerableProperty,
16615 open: kEnumerableProperty,
16616 delete: kEnumerableProperty,
16617 keys: kEnumerableProperty
16618 });
16619 module.exports = {
16620 CacheStorage
16621 };
16622 }
16623 });

Callers 2

buildURLFunction · 0.70
setCookieFunction · 0.70

Calls 8

validateCookieNameFunction · 0.70
validateCookieValueFunction · 0.70
validateCookieMaxAgeFunction · 0.70
validateCookieDomainFunction · 0.70
validateCookiePathFunction · 0.70
toIMFDateFunction · 0.70
pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected