chordsheetjs 9.0.1 → 9.0.2
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/lib/bundle.js +28216 -27059
- package/lib/bundle.min.js +183 -0
- package/lib/index.js +17 -5
- package/lib/index.js.map +1 -1
- package/lib/module.js +17 -5
- package/lib/module.js.map +1 -1
- package/package.json +6 -5
package/lib/module.js
CHANGED
|
@@ -18996,7 +18996,6 @@ var $a2a605be2775ff64$export$2e2bcd8739ae039 = {
|
|
|
18996
18996
|
var $3ee44ddd3f7a8b61$export$2e2bcd8739ae039 = $3ee44ddd3f7a8b61$var$ChordsOverWordsFormatter;
|
|
18997
18997
|
|
|
18998
18998
|
|
|
18999
|
-
|
|
19000
18999
|
// eslint-disable-next-line import/prefer-default-export
|
|
19001
19000
|
function $559e0277f2c887f5$export$9f6ee93f4e2fb3d2(string) {
|
|
19002
19001
|
const result = /(\s+)(\S+)/.exec(string);
|
|
@@ -31235,6 +31234,8 @@ function $524984546aa7a02b$var$peg$parse(input, options) {
|
|
|
31235
31234
|
const $524984546aa7a02b$export$98e6a39c04603d36 = $524984546aa7a02b$var$peg$parse;
|
|
31236
31235
|
|
|
31237
31236
|
|
|
31237
|
+
|
|
31238
|
+
|
|
31238
31239
|
/**
|
|
31239
31240
|
* Parses a chords over words sheet into a song
|
|
31240
31241
|
*
|
|
@@ -31272,13 +31273,24 @@ const $524984546aa7a02b$export$98e6a39c04603d36 = $524984546aa7a02b$var$peg$pars
|
|
|
31272
31273
|
* Whisper words of wisdom, let it be
|
|
31273
31274
|
*
|
|
31274
31275
|
* `ChordsOverWordsParser` is the better version of `ChordSheetParser`, which is deprecated.
|
|
31275
|
-
*/ class $b72f5288e28a9b64$var$ChordsOverWordsParser
|
|
31276
|
+
*/ class $b72f5288e28a9b64$var$ChordsOverWordsParser {
|
|
31277
|
+
/**
|
|
31278
|
+
* All warnings raised during parsing the chord sheet
|
|
31279
|
+
* @member
|
|
31280
|
+
* @type {ParserWarning[]}
|
|
31281
|
+
*/ get warnings() {
|
|
31282
|
+
return this.song?.warnings || [];
|
|
31283
|
+
}
|
|
31276
31284
|
/**
|
|
31277
31285
|
* Parses a chords over words sheet into a song
|
|
31278
|
-
* @param {string}
|
|
31286
|
+
* @param {string} chordSheet the chords over words sheet
|
|
31287
|
+
* @param {ParseOptions} options Parser options.
|
|
31288
|
+
* @see https://peggyjs.org/documentation.html#using-the-parser
|
|
31279
31289
|
* @returns {Song} The parsed song
|
|
31280
|
-
*/ parse(
|
|
31281
|
-
|
|
31290
|
+
*/ parse(chordSheet, options) {
|
|
31291
|
+
const ast = (0, $524984546aa7a02b$export$98e6a39c04603d36)((0, $974bd1d260bb1d53$export$ba13e0e2f19e61a1)(chordSheet), options);
|
|
31292
|
+
this.song = new (0, $2a399cf90c614489$export$2e2bcd8739ae039)().deserialize(ast);
|
|
31293
|
+
return this.song;
|
|
31282
31294
|
}
|
|
31283
31295
|
}
|
|
31284
31296
|
var $b72f5288e28a9b64$export$2e2bcd8739ae039 = $b72f5288e28a9b64$var$ChordsOverWordsParser;
|