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

kongfig

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kongfig - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

12

lib/adminApi.js

@@ -103,5 +103,13 @@ 'use strict';

}).then(r => r.json()).then(json => {
if (!json.data) return json;
if (!json.next) return json.data;
if (!json.hasOwnProperty('data')) return json;
if (!json.hasOwnProperty('next')) {
if (Object.keys(json.data).length === 0 && json.data.constructor === Object) {
// when no results were found
// sometimes the data attribute is set to an empty object `{}` rather than a list `[]`
return [];
}
return json.data;
}
if (json.data.length < 100) {

@@ -108,0 +116,0 @@ // FIXME an hopeful hack to prevent a loop

2

package.json
{
"name": "kongfig",
"version": "1.5.0",
"version": "1.5.1",
"description": "A tool for Kong to allow declarative configuration.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/mybuilder/kongfig",

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