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

@featurevisor/core

Package Overview
Dependencies
Maintainers
1
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featurevisor/core - npm Package Compare versions

Comparing version 0.64.0 to 0.64.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.64.1](https://github.com/featurevisor/featurevisor/compare/v0.64.0...v0.64.1) (2023-12-10)
**Note:** Version bump only for package @featurevisor/core
# [0.64.0](https://github.com/featurevisor/featurevisor/compare/v0.63.0...v0.64.0) (2023-11-29)

@@ -8,0 +16,0 @@

48

lib/linter/lintProject.js

@@ -71,9 +71,9 @@ "use strict";

key = attributes_1[_i];
_e.label = 3;
case 3:
_e.trys.push([3, 6, , 7]);
return [4 /*yield*/, datasource.readAttribute(key)];
case 3:
case 4:
parsed = _e.sent();
availableAttributeKeys.push(key);
_e.label = 4;
case 4:
_e.trys.push([4, 6, , 7]);
return [4 /*yield*/, attributeJoiSchema.validateAsync(parsed)];

@@ -86,2 +86,3 @@ case 5:

console.log(" =>", key);
console.log("");
if (e_1 instanceof Joi.ValidationError) {

@@ -109,9 +110,9 @@ (0, printJoiError_1.printJoiError)(e_1);

key = segments_1[_a];
_e.label = 11;
case 11:
_e.trys.push([11, 14, , 15]);
return [4 /*yield*/, datasource.readSegment(key)];
case 11:
case 12:
parsed = _e.sent();
availableSegmentKeys.push(key);
_e.label = 12;
case 12:
_e.trys.push([12, 14, , 15]);
return [4 /*yield*/, segmentJoiSchema.validateAsync(parsed)];

@@ -124,2 +125,3 @@ case 13:

console.log(" =>", key);
console.log("");
if (e_2 instanceof Joi.ValidationError) {

@@ -146,9 +148,10 @@ (0, printJoiError_1.printJoiError)(e_2);

key = features_1[_b];
parsed = void 0;
_e.label = 19;
case 19:
_e.trys.push([19, 22, , 23]);
return [4 /*yield*/, datasource.readFeature(key)];
case 19:
case 20:
parsed = _e.sent();
availableFeatureKeys.push(key);
_e.label = 20;
case 20:
_e.trys.push([20, 22, , 23]);
return [4 /*yield*/, featureJoiSchema.validateAsync(parsed)];

@@ -161,2 +164,3 @@ case 21:

console.log(" =>", key);
console.log("");
if (e_3 instanceof Joi.ValidationError) {

@@ -171,3 +175,3 @@ (0, printJoiError_1.printJoiError)(e_3);

case 23:
if (!parsed.required) return [3 /*break*/, 27];
if (!(parsed && parsed.required)) return [3 /*break*/, 27];
_e.label = 24;

@@ -199,8 +203,8 @@ case 24:

key = groups_1[_c];
_e.label = 31;
case 31:
_e.trys.push([31, 34, , 35]);
return [4 /*yield*/, datasource.readGroup(key)];
case 31:
case 32:
parsed = _e.sent();
_e.label = 32;
case 32:
_e.trys.push([32, 34, , 35]);
return [4 /*yield*/, groupJoiSchema.validateAsync(parsed)];

@@ -213,2 +217,3 @@ case 33:

console.log(" =>", key);
console.log("");
if (e_5 instanceof Joi.ValidationError) {

@@ -235,8 +240,8 @@ (0, printJoiError_1.printJoiError)(e_5);

key = tests_1[_d];
_e.label = 39;
case 39:
_e.trys.push([39, 42, , 43]);
return [4 /*yield*/, datasource.readTest(key)];
case 39:
case 40:
parsed = _e.sent();
_e.label = 40;
case 40:
_e.trys.push([40, 42, , 43]);
return [4 /*yield*/, testsJoiSchema.validateAsync(parsed)];

@@ -249,2 +254,3 @@ case 41:

console.log(" =>", key);
console.log("");
if (e_6 instanceof Joi.ValidationError) {

@@ -251,0 +257,0 @@ (0, printJoiError_1.printJoiError)(e_6);

{
"name": "@featurevisor/core",
"version": "0.64.0",
"version": "0.64.1",
"description": "Core package of Featurevisor for Node.js usage",

@@ -60,3 +60,3 @@ "main": "lib/index.js",

},
"gitHead": "a65e3b0b639e7d2f7550fc29857a2cba61cfe172"
"gitHead": "4b64d98c5d9e2ece10b2e03b34e63838b4335750"
}

@@ -31,9 +31,9 @@ // for use in node only

for (const key of attributes) {
const parsed = await datasource.readAttribute(key);
availableAttributeKeys.push(key);
try {
const parsed = await datasource.readAttribute(key);
availableAttributeKeys.push(key);
await attributeJoiSchema.validateAsync(parsed);
} catch (e) {
console.log(" =>", key);
console.log("");

@@ -58,9 +58,9 @@ if (e instanceof Joi.ValidationError) {

for (const key of segments) {
const parsed = await datasource.readSegment(key);
availableSegmentKeys.push(key);
try {
const parsed = await datasource.readSegment(key);
availableSegmentKeys.push(key);
await segmentJoiSchema.validateAsync(parsed);
} catch (e) {
console.log(" =>", key);
console.log("");

@@ -89,9 +89,12 @@ if (e instanceof Joi.ValidationError) {

for (const key of features) {
const parsed = await datasource.readFeature(key);
availableFeatureKeys.push(key);
let parsed;
try {
parsed = await datasource.readFeature(key);
availableFeatureKeys.push(key);
await featureJoiSchema.validateAsync(parsed);
} catch (e) {
console.log(" =>", key);
console.log("");

@@ -107,3 +110,3 @@ if (e instanceof Joi.ValidationError) {

if (parsed.required) {
if (parsed && parsed.required) {
try {

@@ -127,8 +130,8 @@ await checkForCircularDependencyInRequired(datasource, key, parsed.required);

for (const key of groups) {
const parsed = await datasource.readGroup(key);
try {
const parsed = await datasource.readGroup(key);
await groupJoiSchema.validateAsync(parsed);
} catch (e) {
console.log(" =>", key);
console.log("");

@@ -158,8 +161,8 @@ if (e instanceof Joi.ValidationError) {

for (const key of tests) {
const parsed = await datasource.readTest(key);
try {
const parsed = await datasource.readTest(key);
await testsJoiSchema.validateAsync(parsed);
} catch (e) {
console.log(" =>", key);
console.log("");

@@ -166,0 +169,0 @@ if (e instanceof Joi.ValidationError) {

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

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

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

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