Skip to content

Commit

Permalink
[AUT-159] - Rename export (#11)
Browse files Browse the repository at this point in the history
* Deprecate old export

* Rename file

* Bump version
  • Loading branch information
hwhmeikle committed Jul 22, 2022
1 parent cadc724 commit caee9b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@authsignal/browser",
"type": "module",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/authsignal-browser.ts → src/authsignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {PopupHandler} from "./popup-handler";
const DEFAULT_ENDPOINT = "https://mfa.authsignal.com/";
const DEFAULT_COOKIE_NAME = "__as_aid";

export class AuthsignalBrowser {
export class Authsignal {
anonymousId = "";
cookieDomain = "";
anonymousIdCookieName = "";
Expand Down Expand Up @@ -86,3 +86,8 @@ export class AuthsignalBrowser {
}
}
}

/**
* @deprecated Use Authsignal
*/
export class AuthsignalBrowser extends Authsignal {}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export {AuthsignalBrowser} from "./authsignal-browser";
export {AuthsignalBrowser, Authsignal} from "./authsignal";
export * from "./types";

0 comments on commit caee9b1

Please sign in to comment.