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

@sketch-hq/sketch-assistant-utils

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sketch-hq/sketch-assistant-utils - npm Package Compare versions

Comparing version 5.0.0-next.21 to 5.0.0-next.22

6

CHANGELOG.md
# @sketch-hq/sketch-assistant-utils
## 5.0.0-next.22
### Patch Changes
- 1bcbce7: Do not include unconfigured rules in result metadata.
## 5.0.0-next.21

@@ -4,0 +10,0 @@

7

dist/cjs/run/run-assistant/index.js

@@ -54,3 +54,2 @@ "use strict";

.filter((rule) => assistant_config_1.isRuleActive(assistant.config, rule.name)) // Rule turned on in config
.filter((rule) => !ignore_1.isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)) // Rule not full ignored
.filter((rule) => (rule.runtime ? rule.runtime === env.runtime : true)); // Rule platform is supported

@@ -65,3 +64,3 @@ const profile = {

},
rules: assistant.rules.reduce((acc, rule) => {
rules: activeRules.reduce((acc, rule) => {
const ruleConfig = assistant_config_1.getRuleConfig(assistant.config, rule.name);

@@ -86,4 +85,6 @@ const configTitle = assistant_config_1.getRuleTitle(assistant.config, rule.name);

};
// Filter out ignored rules to find the final set of rules to invoke
const rulesToRun = activeRules.filter((rule) => !ignore_1.isRuleFullIgnored(ignoreConfig, assistant.name, rule.name));
try {
yield p_map_1.default(activeRules, (rule) => __awaiter(void 0, void 0, void 0, function* () {
yield p_map_1.default(rulesToRun, (rule) => __awaiter(void 0, void 0, void 0, function* () {
if (operation.cancelled)

@@ -90,0 +91,0 @@ return;

@@ -48,3 +48,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

.filter((rule) => isRuleActive(assistant.config, rule.name)) // Rule turned on in config
.filter((rule) => !isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)) // Rule not full ignored
.filter((rule) => (rule.runtime ? rule.runtime === env.runtime : true)); // Rule platform is supported

@@ -59,3 +58,3 @@ const profile = {

},
rules: assistant.rules.reduce((acc, rule) => {
rules: activeRules.reduce((acc, rule) => {
const ruleConfig = getRuleConfig(assistant.config, rule.name);

@@ -80,4 +79,6 @@ const configTitle = getRuleTitle(assistant.config, rule.name);

};
// Filter out ignored rules to find the final set of rules to invoke
const rulesToRun = activeRules.filter((rule) => !isRuleFullIgnored(ignoreConfig, assistant.name, rule.name));
try {
yield pMap(activeRules, (rule) => __awaiter(void 0, void 0, void 0, function* () {
yield pMap(rulesToRun, (rule) => __awaiter(void 0, void 0, void 0, function* () {
if (operation.cancelled)

@@ -84,0 +85,0 @@ return;

{
"name": "@sketch-hq/sketch-assistant-utils",
"version": "5.0.0-next.21",
"version": "5.0.0-next.22",
"module": "dist/esm/index",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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