diff --git a/package.json b/package.json index be952a5..49d0031 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mowojang", - "version": "0.2.0", + "version": "0.2.1", "description": "A simple JavaScript and TypeScript compatible API Wrapper for the Mowojang-API.", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 37d871f..4be55fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ export const Client = client; export const validate = { player: validatePlayer, - uuid: validateUUID, + UUID: validateUUID, username: validateUsername, }; diff --git a/test/index.js b/test/index.js index 504b918..fd9678b 100644 --- a/test/index.js +++ b/test/index.js @@ -20,10 +20,10 @@ describe("Utility Functions", { timeout: 10000 }, function () { describe("Validator Functions", { timeout: 10000 }, function () { describe("#UUID()", function () { it("Should be true on an valid UUIDv4 String", function () { - assert.strictEqual(validate.uuid("14727fae-fbdc-4aff-848c-d2713eb9939e"), true); + assert.strictEqual(validate.UUID("14727fae-fbdc-4aff-848c-d2713eb9939e"), true); }); it("Should be false on an invalid UUIDv4 String", function () { - assert.strictEqual(validate.username("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), false); + assert.strictEqual(validate.UUID("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), false); }); }); describe("#username()", function () {