@cyclonedx/cdxgen 11.4.4 → 11.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,24 @@
1
- export function isAllowedHost(hostname: any): any;
2
- export function isAllowedPath(p: any): any;
1
+ /**
2
+ * Checks the given hostname against the allowed list.
3
+ *
4
+ * @param {string} hostname Host name to check
5
+ * @returns {boolean} true if the hostname in its entirety is allowed. false otherwise.
6
+ */
7
+ export function isAllowedHost(hostname: string): boolean;
8
+ /**
9
+ * Checks the given path string to belong to a drive in Windows.
10
+ *
11
+ * @param {string} p Path string to check
12
+ * @returns {boolean} true if the windows path belongs to a drive. false otherwise (device names)
13
+ */
14
+ export function isAllowedWinPath(p: string): boolean;
15
+ /**
16
+ * Checks the given path against the allowed list.
17
+ *
18
+ * @param {string} p Path string to check
19
+ * @returns {boolean} true if the path is present in the allowed paths. false otherwise.
20
+ */
21
+ export function isAllowedPath(p: string): boolean;
3
22
  /**
4
23
  * Method to safely parse value passed via the query string or body.
5
24
  *
@@ -9,6 +28,7 @@ export function isAllowedPath(p: any): any;
9
28
  */
10
29
  export function parseValue(raw: string | number | Array<string | number>): string | number | boolean | Array<string | number | boolean>;
11
30
  export function parseQueryString(q: any, body?: {}, options?: {}): {};
31
+ export function getQueryParams(req: any): {};
12
32
  export function configureServer(cdxgenServer: any): void;
13
33
  export function start(options: any): void;
14
34
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/server/server.js"],"names":[],"mappings":"AA2DA,kDAOC;AAED,2CAOC;AA0CD;;;;;;GAMG;AACH,gCAJW,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,GAChC,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAC,CAkC9D;AAED,sEAiBC;AAiBD,yDAKC;AAID,0CAsLC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../lib/server/server.js"],"names":[],"mappings":"AAkEA;;;;;GAKG;AACH,wCAHW,MAAM,GACJ,OAAO,CAanB;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,OAAO,CAsCnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAoBnB;AA2CD;;;;;;GAMG;AACH,gCAJW,MAAM,GAAC,MAAM,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,GAChC,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,KAAK,CAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAC,CAkC9D;AAED,sEAiBC;AAED,6CA+BC;AAiBD,yDAKC;AAID,0CAwLC"}