Skip to content

Commit

Permalink
🔧 Build for both CommonJS and ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Dec 3, 2024
1 parent 7cff70f commit ed249ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/library.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { strict as assert } from "assert";
import sinon from "sinon";
import { Amplify } from "aws-amplify";
import axios from "axios";
import { signIn, configure } from "../src/library";
import { configure } from "../src/library";

describe("library", () => {
let axiosStub: sinon.SinonStub;
Expand Down
4 changes: 1 addition & 3 deletions src/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const signIn = async (username: string, password: string): Promise<string> => {
// in case the user is already signed in, refs:
// https://github.com/aws-amplify/amplify-js/issues/13813
await amplifyAuth.signOut();
const { isSignedIn, nextStep } = await amplifyAuth.signIn({
const { isSignedIn } = await amplifyAuth.signIn({
username,
password,
});
Expand Down Expand Up @@ -72,6 +72,4 @@ const configure = (baseURL: string = API_URL) => {
};
};

const defaultApi = configure();

export { signIn, configure };

0 comments on commit ed249ad

Please sign in to comment.