File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ SPDX-License-Identifier: Apache-2.0
1717Copyright (c) OWASP Foundation. All Rights Reserved.
1818*/
1919
20+ const possibleStringifiers = [
21+ // prioritized list of possible implementations
22+ 'xmlbuilder2'
23+ ]
24+
25+ /* c8 ignore start */
2026module . exports . stringify = function ( ) {
21- /* c8 ignore start */
2227 throw new Error (
2328 'No stringifier available. Please install any of the optional xml libraries: ' +
2429 possibleStringifiers . join ( ', ' )
2530 )
26- /* c8 ignore end */
2731}
28-
29- const possibleStringifiers = [
30- // prioritized list of possible implementations
31- 'xmlbuilder2'
32- ]
32+ /* c8 ignore end */
3333
3434for ( const file of possibleStringifiers ) {
3535 try {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1818*/
1919
2020const { create } = require ( 'xmlbuilder2' )
21- const { getNS, makeIndent } = require ( './helpers ' )
21+ const { getNS, makeIndent } = require ( './_helpers ' )
2222
2323module . exports = typeof create === 'function'
2424 ? stringify
You can’t perform that action at this time.
0 commit comments