UNPKG

2.09 kBSource Map (JSON)View Raw
1{"version":3,"file":"request-ext.js","sourceRoot":"","sources":["../../../../src/http/request-ext.ts"],"names":[],"mappings":";;;AASA,kDAAiE;AAEpD,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAG3C,QAAA,WAAW,GAAG,YAAY,CAAC;AAC3B,QAAA,MAAM,GAAG,OAAO,CAAC;AACjB,QAAA,SAAS,GAAG,UAAU,CAAC;AACvB,QAAA,WAAW,GAAG,YAAY,CAAC;AAE3B,QAAA,KAAK,GAAG,MAAM,CAAC;AACf,QAAA,aAAa,GAAG,cAAc,CAAC;AAC/B,QAAA,YAAY,GAAG,aAAa,CAAC;AAC7B,QAAA,YAAY,GAAG,aAAa,CAAC","sourcesContent":["// ==LICENSE-BEGIN==\n// Copyright 2017 European Digital Reading Lab. All rights reserved.\n// Licensed to the Readium Foundation under one or more contributor license agreements.\n// Use of this source code is governed by a BSD-style license\n// that can be found in the LICENSE file exposed on Github (readium) in the project repository.\n// ==LICENSE-END==\n\nimport * as express from \"express\";\n\nimport { mediaOverlayURLParam } from \"@r2-shared-js/parser/epub\";\n\nexport const URL_PARAM_SESSION_INFO = \"r2_SESSION_INFO\";\n\n// export const _lcpPass64 = \"lcpPass64\";\nexport const _pathBase64 = \"pathBase64\";\nexport const _asset = \"asset\";\nexport const _jsonPath = \"jsonPath\";\nexport const _urlEncoded = \"urlEncoded\";\n\nexport const _show = \"show\";\nexport const _authResponse = \"authResponse\";\nexport const _authRequest = \"authRequest\";\nexport const _authRefresh = \"authRefresh\";\n\nexport interface IRequestPayloadExtension extends express.Request {\n lcpPass64: string;\n pathBase64: string;\n asset: string;\n jsonPath: string;\n urlEncoded: string;\n [mediaOverlayURLParam]: string;\n}\n\nexport interface IRequestQueryParams {\n show: string;\n canonical: string;\n authResponse: string;\n authRequest: string;\n authRefresh: string;\n [mediaOverlayURLParam]: string;\n [URL_PARAM_SESSION_INFO]: string;\n\n // express.Request.query is the return type of qs.parse by default\n // (https://expressjs.com/en/api.html#app-settings-property).\n // export interface Query { [key: string]: string | string[] | Query | Query[]; }\n [key: string]: string;\n}\n"]}
\No newline at end of file