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

@janiscommerce/api-get

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/api-get - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md

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

## [1.2.1] - 2019-08-28
### Added
- Now the format in process method awaits a promise
## [1.2.0] - 2019-08-27

@@ -10,0 +14,0 @@ ### Added

2

lib/api-get.js

@@ -44,3 +44,3 @@ 'use strict';

const response = this.format ? this.format(record[0]) : record[0];
const response = this.format ? await this.format(record[0]) : record[0];

@@ -47,0 +47,0 @@ this.setBody(response);

{
"name": "@janiscommerce/api-get",
"version": "1.2.0",
"version": "1.2.1",
"description": "A package to handle JANIS Get APIs",

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

@@ -21,2 +21,10 @@ # API Get

get fieldsToSelect() {
return [
'id',
'name',
'status'
];
}
async format(record) {

@@ -41,3 +49,3 @@ return {

Both methods are optional
All methods are optional

@@ -44,0 +52,0 @@ # Get APIs with parents

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