Sha256: d79ac480fed15b3c6e2b43d1260b477a862f3bc77abd640c612ecdafe5711031

Contents?: true

Size: 1.01 KB

Versions: 52

Compression:

Stored size: 1.01 KB

Contents

{"version":3,"sources":["../../src/utils/bufferUtils.ts"],"sourcesContent":["const encoder = new TextEncoder()\n\nexport function encodeBuffer(text: string): Uint8Array {\n  return encoder.encode(text)\n}\n\nexport function decodeBuffer(buffer: ArrayBuffer, encoding?: string): string {\n  const decoder = new TextDecoder(encoding)\n  return decoder.decode(buffer)\n}\n\n/**\n * Create an `ArrayBuffer` from the given `Uint8Array`.\n * Takes the byte offset into account to produce the right buffer\n * in the case when the buffer is bigger than the data view.\n */\nexport function toArrayBuffer(array: Uint8Array): ArrayBuffer {\n  return array.buffer.slice(\n    array.byteOffset,\n    array.byteOffset + array.byteLength\n  )\n}\n"],"mappings":";AAAA,IAAM,UAAU,IAAI,YAAY;AAEzB,SAAS,aAAa,MAA0B;AACrD,SAAO,QAAQ,OAAO,IAAI;AAC5B;AAEO,SAAS,aAAa,QAAqB,UAA2B;AAC3E,QAAM,UAAU,IAAI,YAAY,QAAQ;AACxC,SAAO,QAAQ,OAAO,MAAM;AAC9B;AAOO,SAAS,cAAc,OAAgC;AAC5D,SAAO,MAAM,OAAO;AAAA,IAClB,MAAM;AAAA,IACN,MAAM,aAAa,MAAM;AAAA,EAC3B;AACF;","names":[]}

Version data entries

52 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.26 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.25 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.25 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.24 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.24 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.23 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.23 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.22 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.22 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.21 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.21 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.20 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.20 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.19 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.19 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.18 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.18 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map
clapton-0.0.17 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs.map
clapton-0.0.17 lib/clapton/javascripts/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs.map