Skip to content

Commit c7518d7

Browse files
committed
chore: up version [skip ci]
1 parent f1b0030 commit c7518d7

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mp3tag.js",
3-
"version": "3.9.1",
3+
"version": "3.10.0",
44
"description": "MP3 tagging library written in pure JavaScript",
55
"keywords": [
66
"node",

src/mp3tag.mjs

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ import { overwriteDefault } from './utils/objects.mjs'
99
import { isBuffer } from './utils/types.mjs'
1010

1111
export default class MP3Tag {
12+
get name () { return 'MP3Tag' }
13+
set name (value) { throw new Error('Unable to set this property') }
14+
15+
get version () { return '3.10.0' }
16+
set version (value) { throw new Error('Unable to set this property') }
17+
1218
constructor (buffer, verbose = false) {
1319
if (!isBuffer(buffer)) {
1420
throw new TypeError('buffer is not ArrayBuffer/Buffer')
1521
}
1622

17-
this.name = 'MP3Tag'
18-
this.version = '3.9.1'
1923
this.verbose = verbose
20-
2124
this.buffer = buffer
2225
this.tags = {}
2326
this.error = ''

types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export type MP3TagReadOptions = Partial<MP3TagDefaultReadOptions>;
3838
export type MP3TagWriteOptions = Partial<MP3TagDefaultWriteOptions>;
3939

4040
export class MP3Tag {
41-
readonly name: 'MP3Tag';
42-
readonly version: '3.9.1';
41+
readonly name = 'MP3Tag';
42+
readonly version = '3.10.0';
4343

4444
verbose: boolean;
4545
buffer: MP3Buffer;

0 commit comments

Comments
 (0)