mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
chore: update dependencies
This commit is contained in:
parent
a6750da5da
commit
c21aa7fbbf
5 changed files with 8266 additions and 4059 deletions
6341
backend/package-lock.json
generated
6341
backend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -56,7 +56,7 @@ export function initAuth(app: express.Express) {
|
||||||
app.use(passport.initialize());
|
app.use(passport.initialize());
|
||||||
|
|
||||||
passport.serializeUser((user, done) => done(null, user));
|
passport.serializeUser((user, done) => done(null, user));
|
||||||
passport.deserializeUser((user, done) => done(null, user));
|
passport.deserializeUser((user, done) => done(null, user as IPassportApiUser));
|
||||||
|
|
||||||
const apiLogins = new ApiLogins();
|
const apiLogins = new ApiLogins();
|
||||||
const apiUserInfo = new ApiUserInfo();
|
const apiUserInfo = new ApiUserInfo();
|
||||||
|
|
|
@ -5,7 +5,10 @@ import { validateNoObjectAliases } from "./validateNoObjectAliases";
|
||||||
* Loads a YAML file safely while removing object anchors/aliases (including arrays)
|
* Loads a YAML file safely while removing object anchors/aliases (including arrays)
|
||||||
*/
|
*/
|
||||||
export function loadYamlSafely(yamlStr: string): any {
|
export function loadYamlSafely(yamlStr: string): any {
|
||||||
const loaded = yaml.safeLoad(yamlStr);
|
let loaded = yaml.safeLoad(yamlStr);
|
||||||
|
if (loaded == null || typeof loaded !== "object") {
|
||||||
|
loaded = {};
|
||||||
|
}
|
||||||
validateNoObjectAliases(loaded);
|
validateNoObjectAliases(loaded);
|
||||||
return loaded;
|
return loaded;
|
||||||
}
|
}
|
||||||
|
|
1052
package-lock.json
generated
1052
package-lock.json
generated
File diff suppressed because it is too large
Load diff
4925
shared/package-lock.json
generated
4925
shared/package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue