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

@itentialopensource/adapter-utils

Package Overview
Dependencies
Maintainers
3
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itentialopensource/adapter-utils - npm Package Compare versions

Comparing version 4.9.2 to 4.9.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## 4.9.3 [07-29-2019]
* add filter to response after field is found, based on respFilter in schema
See merge request itentialopensource/adapter-utils!103
---
## 4.9.2 [07-26-2019]

@@ -2,0 +9,0 @@ * fix for query path changes

13

lib/translatorUtil.js

@@ -15,2 +15,3 @@ /* @copyright Itential, LLC 2018-9 */

const AjvCl = require('ajv');
const jsonQuery = require('json-query');

@@ -250,3 +251,7 @@ let id = null;

if (fieldValue !== null) {
returnObj[schemaKeys[k]] = fieldValue;
if (field.respFilter) {
returnObj[schemaKeys[k]] = jsonQuery(field.respFilter, { data: fieldValue }).value;
} else {
returnObj[schemaKeys[k]] = fieldValue;
}
}

@@ -261,3 +266,7 @@ }

if (fieldValue !== null) {
returnObj[schemaKeys[k]] = fieldValue;
if (field.respFilter) {
returnObj[schemaKeys[k]] = jsonQuery(field.respFilter, { data: fieldValue }).value;
} else {
returnObj[schemaKeys[k]] = fieldValue;
}
}

@@ -264,0 +273,0 @@ }

2

package.json
{
"name": "@itentialopensource/adapter-utils",
"version": "4.9.2",
"version": "4.9.3",
"description": "Itential Adapter Utility Libraries",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

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