Sha256: da254e15248352b5bc4b451bb4db9f11120db734b2340d2d7fe3f8d37b3d6661

Contents?: true

Size: 797 Bytes

Versions: 26

Compression:

Stored size: 797 Bytes

Contents

{"version":3,"sources":["../../../../src/core/utils/request/storeResponseCookies.ts"],"sourcesContent":["import { cookieStore } from '../cookieStore'\nimport { kSetCookie } from '../HttpResponse/decorators'\n\nexport function storeResponseCookies(\n  request: Request,\n  response: Response,\n): void {\n  // Grab the raw \"Set-Cookie\" response header provided\n  // in the HeadersInit for this mocked response.\n  const responseCookies = Reflect.get(response, kSetCookie) as\n    | string\n    | undefined\n\n  if (responseCookies) {\n    cookieStore.setCookie(responseCookies, request.url)\n  }\n}\n"],"mappings":"AAAA,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAEpB,SAAS,qBACd,SACA,UACM;AAGN,QAAM,kBAAkB,QAAQ,IAAI,UAAU,UAAU;AAIxD,MAAI,iBAAiB;AACnB,gBAAY,UAAU,iBAAiB,QAAQ,GAAG;AAAA,EACpD;AACF;","names":[]}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.25 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.24 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.23 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.22 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.21 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.20 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.19 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.18 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.17 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.16 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.15 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.14 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.13 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.12 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.11 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.10 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.9 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.8 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map
clapton-0.0.7 lib/clapton/javascripts/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs.map