@civic/auth
Advanced tools
Comparing version 0.1.5 to 0.1.6-beta.0
@@ -0,1 +1,4 @@ | ||
# 0.1.6 Fix printVersion usage | ||
- Only print the SDK version once | ||
# 0.1.5 Logout updates and faster user cookie retrieval | ||
@@ -2,0 +5,0 @@ - Implement client & auth-server logout functionality to invalidate tokens on logout |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return index_js_1.VERSION; } }); | ||
console.log((0, index_js_1.printVersion)()); | ||
(0, index_js_1.printVersion)(); | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
const index_js_1 = require("../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
(0, index_js_1.printVersion)(); | ||
var config_js_1 = require("../nextjs/config.js"); | ||
@@ -8,0 +8,0 @@ Object.defineProperty(exports, "createCivicAuthPlugin", { enumerable: true, get: function () { return config_js_1.createCivicAuthPlugin; } }); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const index_js_1 = require("../../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
(0, index_js_1.printVersion)(); | ||
var middleware_js_1 = require("../../nextjs/middleware.js"); | ||
@@ -8,0 +8,0 @@ Object.defineProperty(exports, "authMiddleware", { enumerable: true, get: function () { return middleware_js_1.authMiddleware; } }); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const index_js_1 = require("../shared/index.js"); | ||
console.log((0, index_js_1.printVersion)()); | ||
(0, index_js_1.printVersion)(); | ||
var storage_js_1 = require("../shared/lib/storage.js"); | ||
@@ -8,0 +8,0 @@ Object.defineProperty(exports, "CookieStorage", { enumerable: true, get: function () { return storage_js_1.CookieStorage; } }); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "@civic/auth:0.1.5"; | ||
export declare const VERSION = "@civic/auth:0.1.6-beta.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.VERSION = void 0; | ||
exports.VERSION = "@civic/auth:0.1.5"; | ||
exports.VERSION = "@civic/auth:0.1.6-beta.0"; | ||
//# sourceMappingURL=version.js.map |
import { VERSION, printVersion } from "./shared/index.js"; | ||
console.log(printVersion()); | ||
printVersion(); | ||
export { VERSION }; | ||
//# sourceMappingURL=index.js.map |
import { printVersion } from "../shared/index.js"; | ||
console.log(printVersion()); | ||
printVersion(); | ||
export { createCivicAuthPlugin } from "../nextjs/config.js"; | ||
@@ -4,0 +4,0 @@ export { getUser } from "../nextjs/GetUser.js"; |
import { printVersion } from "../../shared/index.js"; | ||
console.log(printVersion()); | ||
printVersion(); | ||
export { authMiddleware, auth, withAuth } from "../../nextjs/middleware.js"; | ||
//# sourceMappingURL=index.js.map |
import { printVersion } from "../shared/index.js"; | ||
console.log(printVersion()); | ||
printVersion(); | ||
export { CookieStorage } from "../shared/lib/storage.js"; | ||
@@ -4,0 +4,0 @@ export { resolveOAuthAccessCode, isLoggedIn, buildLoginUrl, buildLogoutRedirectUrl, } from "../server/login.js"; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "@civic/auth:0.1.5"; | ||
export declare const VERSION = "@civic/auth:0.1.6-beta.0"; | ||
//# sourceMappingURL=version.d.ts.map |
// This is an auto-generated file. Do not edit. | ||
export const VERSION = "@civic/auth:0.1.5"; | ||
export const VERSION = "@civic/auth:0.1.6-beta.0"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@civic/auth", | ||
"version": "0.1.5", | ||
"version": "0.1.6-beta.0", | ||
"type": "module", | ||
@@ -65,16 +65,2 @@ "main": "./dist/cjs/index.js", | ||
}, | ||
"scripts": { | ||
"prebuild": "rm -rf dist && pnpm generate-version", | ||
"build": "pnpm build:cjs && pnpm build:esm", | ||
"build:cjs": "tsc -p tsconfig.cjs.json --noEmit false && tsc-alias -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.esm.json --noEmit false && tsc-alias -p tsconfig.esm.json", | ||
"prepublishOnly": "pnpm generate-version && node ../../etc/scripts/prompt-changelog.js && pnpm build", | ||
"dev": "tsc --watch", | ||
"pretest": "pnpm generate-version", | ||
"test": "vitest", | ||
"lint": "eslint \"src/**/*.ts*\" --max-warnings 0", | ||
"lint:fix": "pnpm lint --fix", | ||
"test:update": "vitest --update", | ||
"generate-version": "npx tsx ./generateVersion.ts" | ||
}, | ||
"dependencies": { | ||
@@ -89,4 +75,2 @@ "debug": "^4.3.7", | ||
"devDependencies": { | ||
"@repo/eslint-config": "workspace:*", | ||
"@repo/typescript-config": "workspace:*", | ||
"@rollup/plugin-typescript": "^12.1.1", | ||
@@ -115,7 +99,22 @@ "@testing-library/jest-dom": "^6.5.0", | ||
"vite-plugin-dts": "^4.2.3", | ||
"vitest": "^2.1.8" | ||
"vitest": "^2.1.8", | ||
"@repo/typescript-config": "0.0.0", | ||
"@repo/eslint-config": "0.0.0" | ||
}, | ||
"optionalDependency": { | ||
"next": "^14" | ||
}, | ||
"scripts": { | ||
"prebuild": "rm -rf dist && pnpm generate-version", | ||
"build": "pnpm build:cjs && pnpm build:esm", | ||
"build:cjs": "tsc -p tsconfig.cjs.json --noEmit false && tsc-alias -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.esm.json --noEmit false && tsc-alias -p tsconfig.esm.json", | ||
"dev": "tsc --watch", | ||
"pretest": "pnpm generate-version", | ||
"test": "vitest", | ||
"lint": "eslint \"src/**/*.ts*\" --max-warnings 0", | ||
"lint:fix": "pnpm lint --fix", | ||
"test:update": "vitest --update", | ||
"generate-version": "npx tsx ./generateVersion.ts" | ||
} | ||
} | ||
} |
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
1363472
82
31
54
82