From e83785afd9c22a5cd53ec1714c69002389046ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=BD=D0=B8=D0=BD=20=D0=95=D0=B3=D0=BE?= =?UTF-8?q?=D1=80?= Date: Sat, 20 Feb 2021 00:03:16 +1000 Subject: [PATCH] Fix parse method --- package-lock.json | 2 +- package.json | 2 +- src/RawJSONBuilder.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4b75c5a..bf166c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rawjsonbuilder", - "version": "1.0.6", + "version": "1.0.7", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 9f4e518..3ac5c67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rawjsonbuilder", - "version": "1.0.6", + "version": "1.0.7", "description": "Minecraft Raw JSON text builder", "main": "./lib/RawJSONBuilder.js", "types": "./lib/interfaces.d.ts", diff --git a/src/RawJSONBuilder.ts b/src/RawJSONBuilder.ts index 93edcc3..e3e0be2 100644 --- a/src/RawJSONBuilder.ts +++ b/src/RawJSONBuilder.ts @@ -66,7 +66,7 @@ export class RawJSONBuilder { } parse(text: string): RawJSONBuilder { - return new RawJSONBuilder(parser(text)); + return new RawJSONBuilder(parser.parseString(text)); } toJSON(): (IText | ITranslate | IClickEvent | IKeybind | NBT | IScore | ISelector) & { extra: (IText | ITranslate | IClickEvent | IKeybind | NBT | IScore | ISelector)[] } {