Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@furystack/http-api

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/http-api - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

10

dist/IdentityService.js

@@ -77,2 +77,10 @@ "use strict";

serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`);
this.options.injector.GetInstance(core_1.LoggerCollection).Information({
scope: IdentityService.LogScope,
message: `User '${user.Username}' logged in.`,
data: {
user,
sessionId,
},
});
}

@@ -91,3 +99,3 @@ return user;

serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`);
this.options.injector.GetInstance(core_1.LoggerCollection).Verbose({
this.options.injector.GetInstance(core_1.LoggerCollection).Information({
scope: IdentityService.LogScope,

@@ -94,0 +102,0 @@ message: `User '${user.Username}' logged in with '${service.name}' external service.`,

4

package.json
{
"name": "@furystack/http-api",
"version": "0.4.3",
"version": "0.4.4",
"description": "HTTP Api FuryStack package",

@@ -81,2 +81,2 @@ "main": "dist/index.js",

"typings": "./dist/index.d.ts"
}
}

@@ -72,2 +72,10 @@ import { Constructable, InMemoryStore, IPhysicalStore, IUser, LoggerCollection, visitorUser } from "@furystack/core";

serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`);
this.options.injector.GetInstance(LoggerCollection).Information({
scope: IdentityService.LogScope,
message: `User '${user.Username}' logged in.`,
data: {
user,
sessionId,
},
});
}

@@ -85,3 +93,3 @@ return user;

serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`);
this.options.injector.GetInstance(LoggerCollection).Verbose({
this.options.injector.GetInstance(LoggerCollection).Information({
scope: IdentityService.LogScope,

@@ -101,3 +109,3 @@ message: `User '${user.Username}' logged in with '${service.name}' external service.`,

message: `Error during external login with '${service.name}': ${error.message}`,
data: {error},
data: { error },
});

@@ -104,0 +112,0 @@ }

Sorry, the diff of this file is not supported yet

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