tja-parser 0.2.8 → 0.2.9
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/class/Course.d.ts.map +1 -1
- package/dist/class/Course.js +1 -0
- package/dist/class/Course.js.map +1 -1
- package/format.mediawiki +714 -714
- package/package.json +2 -2
- package/src/class/Bar.ts +71 -71
- package/src/class/Branch.ts +32 -32
- package/src/class/Command.ts +138 -138
- package/src/class/Course.ts +513 -512
- package/src/class/Item.ts +26 -26
- package/src/class/Note.ts +171 -171
- package/src/class/NoteGroup.ts +35 -35
- package/src/class/Song.ts +96 -96
- package/src/exception/ParseException.ts +12 -12
- package/src/index.ts +12 -12
- package/tsconfig.json +22 -22
- package/dist/class/BarLine.d.ts +0 -14
- package/dist/class/BarLine.d.ts.map +0 -1
- package/dist/class/BarLine.js +0 -26
- package/dist/class/BarLine.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TjaException } from './TjaException.js';
|
|
2
|
-
|
|
3
|
-
export class ParseException extends TjaException {
|
|
4
|
-
line?: string;
|
|
5
|
-
|
|
6
|
-
constructor(line?: string) {
|
|
7
|
-
super();
|
|
8
|
-
this.line = line;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export class MetadataParseException extends ParseException { };
|
|
12
|
-
export class CourseParseException extends ParseException { };
|
|
1
|
+
import { TjaException } from './TjaException.js';
|
|
2
|
+
|
|
3
|
+
export class ParseException extends TjaException {
|
|
4
|
+
line?: string;
|
|
5
|
+
|
|
6
|
+
constructor(line?: string) {
|
|
7
|
+
super();
|
|
8
|
+
this.line = line;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export class MetadataParseException extends ParseException { };
|
|
12
|
+
export class CourseParseException extends ParseException { };
|
|
13
13
|
export class UnknownCourseDifficultyException extends CourseParseException { };
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './class/Bar.js';
|
|
2
|
-
export * from './class/Branch.js';
|
|
3
|
-
export * from './class/Command.js';
|
|
4
|
-
export * from './class/Course.js';
|
|
5
|
-
export * from './class/Item.js';
|
|
6
|
-
export * from './class/Note.js';
|
|
7
|
-
export * from './class/NoteGroup.js';
|
|
8
|
-
export * from './class/Song.js';
|
|
9
|
-
|
|
10
|
-
export * from './exception/ParseException.js';
|
|
11
|
-
export * from './exception/TjaException.js';
|
|
12
|
-
|
|
1
|
+
export * from './class/Bar.js';
|
|
2
|
+
export * from './class/Branch.js';
|
|
3
|
+
export * from './class/Command.js';
|
|
4
|
+
export * from './class/Course.js';
|
|
5
|
+
export * from './class/Item.js';
|
|
6
|
+
export * from './class/Note.js';
|
|
7
|
+
export * from './class/NoteGroup.js';
|
|
8
|
+
export * from './class/Song.js';
|
|
9
|
+
|
|
10
|
+
export * from './exception/ParseException.js';
|
|
11
|
+
export * from './exception/TjaException.js';
|
|
12
|
+
|
|
13
13
|
export type * from './types.js';
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": [
|
|
3
|
-
"./src/**/*.ts"
|
|
4
|
-
],
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"target": "ESNext",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"removeComments": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"module": "NodeNext",
|
|
16
|
-
"moduleResolution": "NodeNext",
|
|
17
|
-
"outDir": "./dist"
|
|
18
|
-
},
|
|
19
|
-
"exclude": [
|
|
20
|
-
"./node_modules",
|
|
21
|
-
"**/node_modules/*"
|
|
22
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"./src/**/*.ts"
|
|
4
|
+
],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"target": "ESNext",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"removeComments": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"module": "NodeNext",
|
|
16
|
+
"moduleResolution": "NodeNext",
|
|
17
|
+
"outDir": "./dist"
|
|
18
|
+
},
|
|
19
|
+
"exclude": [
|
|
20
|
+
"./node_modules",
|
|
21
|
+
"**/node_modules/*"
|
|
22
|
+
]
|
|
23
23
|
}
|
package/dist/class/BarLine.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Item } from "./Item";
|
|
2
|
-
export declare class BarLine extends Item {
|
|
3
|
-
type: string;
|
|
4
|
-
private hidden;
|
|
5
|
-
isHidden(): boolean;
|
|
6
|
-
hide(): void;
|
|
7
|
-
show(): void;
|
|
8
|
-
toJSON(): {
|
|
9
|
-
type: string;
|
|
10
|
-
hidden: boolean;
|
|
11
|
-
timing: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=BarLine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarLine.d.ts","sourceRoot":"","sources":["../../src/class/BarLine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,OAAQ,SAAQ,IAAI;IAC7B,IAAI,SAAY;IAChB,OAAO,CAAC,MAAM,CAAkB;IAEhC,QAAQ;IAGR,IAAI;IAGJ,IAAI;IAIJ,MAAM;;;;;CAOT"}
|
package/dist/class/BarLine.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BarLine = void 0;
|
|
4
|
-
const Item_1 = require("./Item");
|
|
5
|
-
class BarLine extends Item_1.Item {
|
|
6
|
-
type = 'barline';
|
|
7
|
-
hidden = false;
|
|
8
|
-
isHidden() {
|
|
9
|
-
return this.hidden;
|
|
10
|
-
}
|
|
11
|
-
hide() {
|
|
12
|
-
this.hidden = true;
|
|
13
|
-
}
|
|
14
|
-
show() {
|
|
15
|
-
this.hidden = false;
|
|
16
|
-
}
|
|
17
|
-
toJSON() {
|
|
18
|
-
return {
|
|
19
|
-
...super.toJSON(),
|
|
20
|
-
type: this.type,
|
|
21
|
-
hidden: this.hidden
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.BarLine = BarLine;
|
|
26
|
-
//# sourceMappingURL=BarLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarLine.js","sourceRoot":"","sources":["../../src/class/BarLine.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAE9B,MAAa,OAAQ,SAAQ,WAAI;IAC7B,IAAI,GAAG,SAAS,CAAA;IACR,MAAM,GAAY,KAAK,CAAC;IAEhC,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACD,IAAI;QACA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IACD,IAAI;QACA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,MAAM;QACF,OAAO;YACH,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAA;IACL,CAAC;CACJ;AArBD,0BAqBC"}
|