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

@janiscommerce/api

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/api - npm Package Compare versions

Comparing version 6.2.2 to 6.3.0

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [6.3.0] - 2021-06-11
### Added
- Now API Request logs have basic information in the `message` property
## [6.2.2] - 2021-05-10

@@ -11,0 +15,0 @@ ### Fixed

@@ -52,2 +52,3 @@ 'use strict';

type: this.type,
message: this.formatRequestMessage(api),
...api.session.userId && { userCreated: api.session.userId },

@@ -58,2 +59,6 @@ log

static formatRequestMessage({ httpMethod, endpoint, response }) {
return `${httpMethod.toUpperCase()} /api/${endpoint} (${response.code})`;
}
static shouldCreateLog(api) {

@@ -60,0 +65,0 @@

2

package.json
{
"name": "@janiscommerce/api",
"version": "6.2.2",
"version": "6.3.0",
"description": "A package for managing API from any origin",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -9,4 +9,9 @@ export = LogHelper;

static save(api: import('../api')): Promise<void>;
static formatRequestMessage({ httpMethod, endpoint, response }: {
httpMethod: any;
endpoint: any;
response: any;
}): string;
static shouldCreateLog(api: any): any;
static generateId(): any;
}
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