From fff8b1acdf6d603128475961f82a00a688aa30a6 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Tue, 2 Jul 2024 06:38:25 +0200 Subject: [PATCH] fix: Fixes on 1.2.0 release candidate (#275) * docs: Add deprecated notation * chore: replace humanise by humanize --- README.md | 2 +- test/raygun.messageBuilder_test.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f484442..12532fa 100644 --- a/README.md +++ b/README.md @@ -298,7 +298,7 @@ raygunClient.user = function (req) { **Param**: *req*: the current request. **Returns**: The current user's identifier, or an object that describes the user. -#### Global `setUser(user)` method +#### Global `setUser(user)` method (Deprecated) You can set the user information globally by calling `setUser(user)` and providing the user information. diff --git a/test/raygun.messageBuilder_test.js b/test/raygun.messageBuilder_test.js index 32d15ae..1674042 100644 --- a/test/raygun.messageBuilder_test.js +++ b/test/raygun.messageBuilder_test.js @@ -48,7 +48,7 @@ test("basic builder tests", function (t) { tt.end(); }); - t.test("humanise error string", function (tt) { + t.test("humanize error string", function (tt) { var builder = new MessageBuilder({ useHumanStringForObject: true }); builder.setErrorDetails({ name: "Test" }); @@ -60,7 +60,7 @@ test("basic builder tests", function (t) { }); // Reference: https://github.com/MindscapeHQ/raygun4node/issues/68 - t.test("humanise Symbol object string", function (tt) { + t.test("humanize Symbol object string", function (tt) { var builder = new MessageBuilder({ useHumanStringForObject: true }); builder.setErrorDetails({ symbol: Symbol("Test") }); var message = builder.build(); @@ -70,7 +70,7 @@ test("basic builder tests", function (t) { tt.end(); }); - t.test("humanise self-referencing complex error string", function (tt) { + t.test("humanize self-referencing complex error string", function (tt) { var builder = new MessageBuilder({ useHumanStringForObject: true }); // error self-references, causing a potential infinite recursion in the filter method @@ -98,7 +98,7 @@ test("basic builder tests", function (t) { tt.end(); }); - t.test("humanise leaves strings intact", function (tt) { + t.test("humanize leaves strings intact", function (tt) { var builder = new MessageBuilder({ useHumanStringForObject: true }); builder.setErrorDetails("my awesome error"); @@ -108,7 +108,7 @@ test("basic builder tests", function (t) { tt.end(); }); - t.test("dont humanise string", function (tt) { + t.test("dont humanize string", function (tt) { var builder = new MessageBuilder({ useHumanStringForObject: false }); builder.setErrorDetails({ name: "Test" });