New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bunadmin-auth-buncms

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunadmin-auth-buncms - npm Package Compare versions

Comparing version 1.1.3-beta.8 to 1.1.3-beta.9

4

lib/index.d.ts
import initData from "./utils/initData";
import users from "./users";
import SignIn from "./sign-in";
export { initData, users, SignIn };
import signIn from "./sign-in";
export { initData, users, signIn };
export declare const authResponseKey = "id";
export declare const authRequestUrl = "/auth/me";
export declare const authRequestMethod = "POST";

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.authRequestMethod = exports.authRequestUrl = exports.authResponseKey = exports.SignIn = exports.users = exports.initData = void 0;
exports.authRequestMethod = exports.authRequestUrl = exports.authResponseKey = exports.signIn = exports.users = exports.initData = void 0;
var initData_1 = __importDefault(require("./utils/initData"));

@@ -13,5 +13,5 @@ exports.initData = initData_1.default;

var sign_in_1 = __importDefault(require("./sign-in"));
exports.SignIn = sign_in_1.default;
exports.signIn = sign_in_1.default;
exports.authResponseKey = "id";
exports.authRequestUrl = "/auth/me";
exports.authRequestMethod = "POST";

@@ -10,3 +10,3 @@ import { Values } from "../types";

}
declare const submitController: ({ t, values, setSubmitting, }: Props) => Promise<void>;
declare const submitController: ({ t, values, setSubmitting, router }: Props) => Promise<void>;
export default submitController;

@@ -45,5 +45,5 @@ "use strict";

var submitController = function (_a) {
var t = _a.t, values = _a.values, setSubmitting = _a.setSubmitting;
var t = _a.t, values = _a.values, setSubmitting = _a.setSubmitting, router = _a.router;
return __awaiter(void 0, void 0, void 0, function () {
var res, primary, updated_at, db;
var res, primary, updated_at, db, asPath, pathArr, redirect, regex, matchStr, isMatch;
var _b;

@@ -96,4 +96,14 @@ return __generator(this, function (_c) {

_c.sent();
// push to origin url
window.location.reload();
asPath = router.asPath;
pathArr = asPath.split("?redirect=");
redirect = pathArr[1] || "/";
regex = /\//g;
matchStr = redirect.match(regex) || [];
isMatch = matchStr.length === 2;
if (regex && isMatch) {
router.replace(bunadmin_1.DynamicRoute, redirect);
}
else {
router.replace(redirect);
}
return [3 /*break*/, 8];

@@ -100,0 +110,0 @@ case 6:

import { Values } from "../types";
import { TFunction } from "i18next";
export default function validateController(values: Values, t: TFunction): Partial<Values>;

@@ -0,0 +0,0 @@ "use strict";

export default function SignInContainer(): JSX.Element;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface SignInParamsType {

@@ -0,0 +0,0 @@ "use strict";

declare const useStyles: (props?: any) => Record<"form" | "root" | "loginArea" | "paper" | "avatar" | "submit", string>;
export default useStyles;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface Values {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { Column } from "material-table";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

export default function list(): JSX.Element;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare const SchemaName = "user";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export default interface Values {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { IPluginData } from "@bunred/bunadmin";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "bunadmin-auth-buncms",
"version": "1.1.3-beta.8",
"version": "1.1.3-beta.9",
"license": "Apache-2.0",

@@ -19,3 +19,3 @@ "main": "lib/index.js",

},
"gitHead": "29e0928318a29fd09da78b21ccc8cb019f80ad63"
"gitHead": "68a898ab77a6447dad61f4aed75ec5537e84146b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc