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

eslint-plugin-pipedream

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-pipedream - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

20

index.js

@@ -222,3 +222,21 @@ function isModuleExports(node) {

function componentVersionTsMacroCheck(context, node) {
const versionProp = checkComponentIsSourceAndReturnTargetProp(node, "version");
let component;
if (isDefaultExport(node)) {
component = node?.body[0]?.declaration;
}
if (node.expression) {
const {
left,
right,
} = node.expression;
if (isModuleExports(left) && isObjectWithProperties(right)) {
component = right;
}
}
if (!component) return;
const { properties } = component;
const versionProp = findPropertyWithName("version", properties);
if (!versionProp) return;

@@ -225,0 +243,0 @@ if (versionProp?.value?.value.includes("{{ts}}")) {

2

package.json
{
"name": "eslint-plugin-pipedream",
"version": "0.2.0",
"version": "0.2.1",
"description": "ESLint plugin for Pipedream components: https://pipedream.com/docs/components/api/",

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

@@ -102,5 +102,5 @@ module.exports = {

description: "foo",
type: "source",
type: "action",
version: "0.0.{{ts}}",
},
};
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