@cyclonedx/cyclonedx-library 6.11.0 → 6.11.1
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.
- package/dist.d/_helpers/uri.d.ts +4 -4
- package/dist.d/_helpers/uri.d.ts.map +1 -1
- package/dist.node/_helpers/uri.js +3 -1
- package/dist.node/_helpers/uri.js.map +1 -1
- package/dist.web/lib.dev.js +3 -1
- package/dist.web/lib.dev.js.map +1 -1
- package/dist.web/lib.js +1 -1
- package/dist.web/lib.js.map +1 -1
- package/package.json +5 -5
- package/src/_helpers/uri.ts +7 -5
- package/tsconfig.d.tsbuildinfo +1 -0
- package/tsconfig.node.tsbuildinfo +1 -0
package/dist.d/_helpers/uri.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
|
|
|
23
23
|
*
|
|
24
24
|
* BEST EFFORT IMPLEMENTATION
|
|
25
25
|
*
|
|
26
|
-
* @see http://www.w3.org/TR/xmlschema-2/#anyURI
|
|
27
|
-
* @see http://www.datypic.com/sc/xsd/t-xsd_anyURI.html
|
|
28
|
-
* @see https://datatracker.ietf.org/doc/html/rfc2396
|
|
29
|
-
* @see https://datatracker.ietf.org/doc/html/rfc3987
|
|
26
|
+
* @see {@link http://www.w3.org/TR/xmlschema-2/#anyURI}
|
|
27
|
+
* @see {@link http://www.datypic.com/sc/xsd/t-xsd_anyURI.html}
|
|
28
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc2396}
|
|
29
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc3987}
|
|
30
30
|
*/
|
|
31
31
|
export declare function escapeUri<T extends (string | undefined)>(value: T): T;
|
|
32
32
|
//# sourceMappingURL=uri.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uri.d.ts","sourceRoot":"","sources":["../../src/_helpers/uri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;
|
|
1
|
+
{"version":3,"file":"uri.d.ts","sourceRoot":"","sources":["../../src/_helpers/uri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAcF;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAG,KAAK,EAAE,CAAC,GAAG,CAAC,CAStE"}
|
|
@@ -21,12 +21,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.escapeUri = escapeUri;
|
|
22
22
|
const _ESCAPES = [
|
|
23
23
|
[/ /g, '%20'],
|
|
24
|
+
[/"/g, '%22'],
|
|
25
|
+
[/'/g, '%27'],
|
|
24
26
|
[/\[/g, '%5B'],
|
|
25
27
|
[/]/g, '%5D'],
|
|
26
28
|
[/</g, '%3C'],
|
|
27
29
|
[/>/g, '%3E'],
|
|
28
30
|
[/\{/g, '%7B'],
|
|
29
|
-
[/}/g, '%7D']
|
|
31
|
+
[/}/g, '%7D'],
|
|
30
32
|
];
|
|
31
33
|
function escapeUri(value) {
|
|
32
34
|
if (value === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/_helpers/uri.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;
|
|
1
|
+
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/_helpers/uri.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;AA0BF,8BASC;AAjCD,MAAM,QAAQ,GAA4B;IACxC,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,KAAK,EAAE,KAAK,CAAC;IACd,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,KAAK,EAAE,KAAK,CAAC;IACd,CAAC,IAAI,EAAE,KAAK,CAAC;CACd,CAAA;AAcD,SAAgB,SAAS,CAAkC,KAAQ;IACjE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,KAAK,CAAA;IACd,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;QAE9B,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/dist.web/lib.dev.js
CHANGED
|
@@ -217,12 +217,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
217
217
|
exports.escapeUri = escapeUri;
|
|
218
218
|
const _ESCAPES = [
|
|
219
219
|
[/ /g, '%20'],
|
|
220
|
+
[/"/g, '%22'],
|
|
221
|
+
[/'/g, '%27'],
|
|
220
222
|
[/\[/g, '%5B'],
|
|
221
223
|
[/]/g, '%5D'],
|
|
222
224
|
[/</g, '%3C'],
|
|
223
225
|
[/>/g, '%3E'],
|
|
224
226
|
[/\{/g, '%7B'],
|
|
225
|
-
[/}/g, '%7D']
|
|
227
|
+
[/}/g, '%7D'],
|
|
226
228
|
];
|
|
227
229
|
function escapeUri(value) {
|
|
228
230
|
if (value === undefined) {
|