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

@trayio/connector-utils

Package Overview
Dependencies
Maintainers
11
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trayio/connector-utils - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

13

lib/generateInputSchema.js

@@ -25,3 +25,3 @@ /* eslint-disable no-console */

})),
['key', 'type', 'description', 'full stop'],
['key', 'type', 'description', 'ending punctuation'],
);

@@ -90,2 +90,9 @@ };

// check if description ends in valid punctuation
const hasValidEndingPunctuation = description => {
const validPunctuation = ['.', '?', '!']
const endingChar = description.slice(-1)
return validPunctuation.includes(endingChar)
}
// Schema elements must include 'type' and 'description' keys.

@@ -101,4 +108,4 @@ const checkForIncompleteSchemaElements = ({ element, key }) => {

incompleteSchemaElements.push({ key, missing: 'description' });
} else if (!_.get(element, 'description', '.').endsWith('.')) {
incompleteSchemaElements.push({ key, missing: 'full stop' });
} else if (!hasValidEndingPunctuation(_.get(element, 'description', '.'))) {
incompleteSchemaElements.push({ key, missing: 'ending punctuation' });
}

@@ -105,0 +112,0 @@ }

{
"name": "@trayio/connector-utils",
"version": "0.3.4",
"version": "0.3.5",
"description": "Common utility functions used in connectors.",

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

@@ -432,5 +432,5 @@ # Connector-utils

- `type` or `description` keys are missing, or
- a `description` does not end in a full stop
- a `description` does not end with valid punctuation
Will not log to the console if requested key does not exist, but is overridden with at least a type and description with a full stop.
Will not log to the console if requested key does not exist, but is overridden with at least a type and description ending with a valid punctuation mark.

@@ -437,0 +437,0 @@ For more information on how to use the schema generator, please see [schema-generation.md](./schema-generation.md).

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