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

@abtnode/util

Package Overview
Dependencies
Maintainers
3
Versions
773
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/util - npm Package Compare versions

Comparing version 0.6.29 to 0.6.35

15

lib/read_blocklet_config.js

@@ -75,7 +75,2 @@ const fs = require('fs');

// Ensure main
if (attrs.main && !fs.existsSync(path.join(blockletDir, rawAttrs.main))) {
throw new Error('Invalid main path');
}
const notExistsFields = [];

@@ -89,6 +84,10 @@ // eslint-disable-next-line no-restricted-syntax

if (notExistsFields.length > 0) {
throw new Error(
`Blocklet ${blockletDir} not properly configured: missing required fields: ${notExistsFields.join(',')}`
);
throw new Error(`Blocklet not properly configured, missing required fields: ${notExistsFields.join(',')}`);
}
// Ensure main
if (!selectedAttrs.main || !fs.existsSync(path.join(blockletDir, selectedAttrs.main))) {
throw new Error('`main` field is not properly configured for blocklet');
}
selectedAttrs.path = `/${selectedAttrs.group}/${selectedAttrs.name}`;

@@ -95,0 +94,0 @@

@@ -6,3 +6,3 @@ {

},
"version": "0.6.29",
"version": "0.6.35",
"description": "ArcBlock's JavaScript utility",

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

},
"gitHead": "0688277ab087d31b89d948316435942531d02e09"
"gitHead": "e0258f2e81ed7ad2ce7d9dee4689678abeecf83c"
}
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