@civic/auth
Advanced tools
Comparing version 0.1.4-beta.5 to 0.1.4-beta.6
# 0.1.4 Refactor hooks and providers | ||
- Refactor the internal hooks and providers implementation | ||
- change modalIframe prop to new iframeMode that can be either 'embedded' or 'modal' (default) | ||
- output the current lib version to the command line | ||
@@ -5,0 +6,0 @@ # 0.1.3 Update README |
export type { Tokens, Endpoints, Config, User, DisplayMode, ForwardedTokens, AuthStorage, } from "./types.js"; | ||
export type * from "./shared/lib/types.js"; | ||
export type { UserContextType } from "./shared/providers/UserProvider.js"; | ||
import { VERSION } from "./shared/index.js"; | ||
export { VERSION }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// These are the default exports of the project. | ||
// They are limited by design to ensure that the public API does not expose any internal implementation details. | ||
// Do not change this without thinking carefully about the impact on the client-facing public API. | ||
const version_js_1 = require("./version.js"); | ||
console.log(version_js_1.VERSION); | ||
exports.VERSION = void 0; | ||
const index_js_1 = require("./shared/index.js"); | ||
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return index_js_1.VERSION; } }); | ||
console.log((0, index_js_1.printVersion)()); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CivicAuthProvider = exports.NextjsClientStorage = exports.NextjsCookieStorage = exports.clearAuthCookies = exports.createUserInfoCookie = exports.createTokenCookies = exports.handler = exports.getUser = exports.createCivicAuthPlugin = void 0; | ||
const version_js_1 = require("../version.js"); | ||
console.log(version_js_1.VERSION); | ||
const index_js_1 = require("../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
var config_js_1 = require("../nextjs/config.js"); | ||
@@ -7,0 +7,0 @@ Object.defineProperty(exports, "createCivicAuthPlugin", { enumerable: true, get: function () { return config_js_1.createCivicAuthPlugin; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.withAuth = exports.auth = exports.authMiddleware = void 0; | ||
const index_js_1 = require("../../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
var middleware_js_1 = require("../../nextjs/middleware.js"); | ||
@@ -5,0 +7,0 @@ Object.defineProperty(exports, "authMiddleware", { enumerable: true, get: function () { return middleware_js_1.authMiddleware; } }); |
@@ -21,3 +21,3 @@ "use strict"; | ||
// Do not change this without thinking carefully about the impact on the client-facing public API. | ||
const version_js_1 = require("../version.js"); | ||
const version_js_1 = require("../shared/version.js"); | ||
console.log(`${version_js_1.VERSION}`); | ||
@@ -24,0 +24,0 @@ __exportStar(require("../reactjs/hooks/index.js"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.refreshTokens = exports.getUser = exports.buildLoginUrl = exports.isLoggedIn = exports.resolveOAuthAccessCode = exports.CookieStorage = void 0; | ||
const version_js_1 = require("../version.js"); | ||
console.log(version_js_1.VERSION); | ||
const index_js_1 = require("../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
var storage_js_1 = require("../shared/lib/storage.js"); | ||
@@ -7,0 +7,0 @@ Object.defineProperty(exports, "CookieStorage", { enumerable: true, get: function () { return storage_js_1.CookieStorage; } }); |
export type { Tokens, Endpoints, Config, User, DisplayMode, ForwardedTokens, AuthStorage, } from "./types.js"; | ||
export type * from "./shared/lib/types.js"; | ||
export type { UserContextType } from "./shared/providers/UserProvider.js"; | ||
import { VERSION } from "./shared/index.js"; | ||
export { VERSION }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,6 +0,4 @@ | ||
// These are the default exports of the project. | ||
// They are limited by design to ensure that the public API does not expose any internal implementation details. | ||
// Do not change this without thinking carefully about the impact on the client-facing public API. | ||
import { VERSION } from "./version.js"; | ||
console.log(VERSION); | ||
import { VERSION, printVersion } from "./shared/index.js"; | ||
console.log(printVersion()); | ||
export { VERSION }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { VERSION } from "../version.js"; | ||
console.log(VERSION); | ||
import { printVersion } from "../shared/index.js"; | ||
console.log(printVersion()); | ||
export { createCivicAuthPlugin } from "../nextjs/config.js"; | ||
@@ -4,0 +4,0 @@ export { getUser } from "../nextjs/GetUser.js"; |
@@ -0,2 +1,4 @@ | ||
import { printVersion } from "../../shared/index.js"; | ||
console.log(printVersion()); | ||
export { authMiddleware, auth, withAuth } from "../../nextjs/middleware.js"; | ||
//# sourceMappingURL=index.js.map |
// These are the default exports of the project. | ||
// They are limited by design to ensure that the public API does not expose any internal implementation details. | ||
// Do not change this without thinking carefully about the impact on the client-facing public API. | ||
import { VERSION } from "../version.js"; | ||
import { VERSION } from "../shared/version.js"; | ||
console.log(`${VERSION}`); | ||
@@ -6,0 +6,0 @@ export * from "../reactjs/hooks/index.js"; |
@@ -1,3 +0,3 @@ | ||
import { VERSION } from "../version.js"; | ||
console.log(VERSION); | ||
import { printVersion } from "../shared/index.js"; | ||
console.log(printVersion()); | ||
export { CookieStorage } from "../shared/lib/storage.js"; | ||
@@ -4,0 +4,0 @@ export { resolveOAuthAccessCode, isLoggedIn, buildLoginUrl, } from "../server/login.js"; |
{ | ||
"name": "@civic/auth", | ||
"version": "0.1.4-beta.5", | ||
"version": "0.1.4-beta.6", | ||
"type": "module", | ||
@@ -111,3 +111,2 @@ "main": "./dist/cjs/index.js", | ||
"build:esm": "tsc -p tsconfig.esm.json --noEmit false && tsc-alias -p tsconfig.esm.json", | ||
"prepublish": "pnpm generate-version && node ../../etc/scripts/prompt-changelog.js && pnpm build", | ||
"dev": "tsc --watch", | ||
@@ -114,0 +113,0 @@ "pretest": "pnpm generate-version", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1165381
605
8621