Skip to content

Commit

Permalink
fix: Update typos in debug logs (#239)
Browse files Browse the repository at this point in the history
* Update typos in debug logs

* Update version and changelog
  • Loading branch information
prateek3255 authored Jan 3, 2024
1 parent 19cc05c commit 144f033
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [17.0.5] - 2024-01-03

### Fixes

- Fix typo in debug logging

## [17.0.4] - 2023-09-24

### Test changes
Expand Down
2 changes: 1 addition & 1 deletion bundle/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/build/fetch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/build/utils/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/ts/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export async function onUnauthorisedResponse(
postLockLSS.lastAccessTokenUpdate !== preRequestLSS.lastAccessTokenUpdate)
) {
logDebugMessage(
"onUnauthorisedResponse: Retrying early because pre and post id refresh tokens don't match"
"onUnauthorisedResponse: Retrying early because pre and post lastAccessTokenUpdate don't match"
);
// means that some other process has already called this API and succeeded. so we need to call it again
return { result: "RETRY" };
Expand Down Expand Up @@ -565,7 +565,7 @@ export async function onUnauthorisedResponse(
postRequestLSS.lastAccessTokenUpdate !== preRequestLSS.lastAccessTokenUpdate)
) {
logDebugMessage(
"onUnauthorisedResponse: lock acquired failed and retrying early because pre and post id refresh tokens don't match"
"onUnauthorisedResponse: lock acquired failed and retrying early because pre and post lastAccessTokenUpdate don't match"
);
return { result: "RETRY" };
}
Expand Down
5 changes: 5 additions & 0 deletions lib/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import CookieHandlerReference from "./utils/cookieHandler";
import WindowHandlerReference from "./utils/windowHandler";
import LockFactoryReference from "./utils/lockFactory";
import { SessionClaimValidatorStore } from "./utils/sessionClaimValidatorStore";
import { enableLogging } from "./logger";

export default class AuthHttpRequest {
private static axiosInterceptorQueue: (() => void)[] = [];
Expand All @@ -35,6 +36,10 @@ export default class AuthHttpRequest {
);

let config = validateAndNormaliseInputOrThrowError(options);

if (options.enableDebugLogs !== undefined && options.enableDebugLogs) {
enableLogging();
}
const recipeImpl = new OverrideableBuilder(
RecipeImplementation({
onHandleEvent: config.onHandleEvent,
Expand Down
5 changes: 0 additions & 5 deletions lib/ts/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
RecipePreAPIHookFunction
} from "../types";
import WindowHandlerReference from "../utils/windowHandler";
import { enableLogging } from "../logger";

export function normaliseURLDomainOrThrowError(input: string): string {
let str = new NormalisedURLDomain(input).getAsStringDangerous();
Expand Down Expand Up @@ -148,10 +147,6 @@ export function validateAndNormaliseInputOrThrowError(options: InputType): Norma
...options.override
};

if (options.enableDebugLogs !== undefined && options.enableDebugLogs) {
enableLogging();
}

return {
apiDomain,
apiBasePath,
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
export const package_version = "17.0.4";
export const package_version = "17.0.5";

export const supported_fdi = ["1.16", "1.17", "1.18"];
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supertokens-website",
"version": "17.0.4",
"version": "17.0.5",
"description": "frontend sdk for website to be used for auth solution.",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 144f033

Please sign in to comment.