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

@blocklet/meta

Package Overview
Dependencies
Maintainers
2
Versions
743
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocklet/meta - npm Package Compare versions

Comparing version 1.1.9 to 1.1.11

2

lib/constants.js

@@ -78,2 +78,4 @@ const BLOCKLET_INTERFACE_TYPE_WEB = 'web';

BLOCKLET_PLATFORMS: ['aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', 'win32'],
BLOCKLET_ARCHITECTURES: ['arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', 'x64'],
BLOCKLET_GROUPS: ['dapp', 'static'],

@@ -80,0 +82,0 @@ BLOCKLET_MODES: Object.freeze({

@@ -9,2 +9,4 @@ /* eslint-disable newline-per-chained-call */

BLOCKLET_GROUPS,
BLOCKLET_PLATFORMS,
BLOCKLET_ARCHITECTURES,
BLOCKLET_INTERFACE_TYPES,

@@ -79,3 +81,5 @@ BLOCKLET_INTERFACE_PROTOCOLS,

const engineSchema = Joi.object({
platform: Joi.string().valid('aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', 'win32').optional(),
platform: Joi.string()
.valid(...BLOCKLET_PLATFORMS)
.optional(),
interpreter: Joi.string().valid('binary', 'node', 'zero').default('node'),

@@ -98,3 +102,3 @@ script: Joi.string().required(),

const statsSchema = Joi.object({
downloads: Joi.number().positive(),
downloads: Joi.number().integer().greater(-1),
star: Joi.number().default(0),

@@ -154,4 +158,20 @@ purchases: Joi.number().default(0),

start: Joi.number().min(10).max(600), // start check timeout, 10 seconds ~ 10 minutes
}).default({ start: 10 }),
}).default({ start: 60 }),
requirements: Joi.object({
abtnode: Joi.semverRange().valid(),
os: Joi.alternatives().try(
Joi.string().valid('*', ...BLOCKLET_PLATFORMS),
Joi.array()
.items(Joi.string().valid(...BLOCKLET_PLATFORMS))
.min(1)
),
cpu: Joi.alternatives().try(
Joi.string().valid('*', ...BLOCKLET_ARCHITECTURES),
Joi.array()
.items(Joi.string().valid(...BLOCKLET_ARCHITECTURES))
.min(1)
),
}).default({ abtnode: '>=1.1.0', os: '*', cpu: '*' }),
// interfaces: https://github.com/blocklet/blocklet-specification/issues/2

@@ -158,0 +178,0 @@ interfaces: Joi.array().items(interfaceSchema).unique('name').min(1).default([]),

16

package.json

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

},
"version": "1.1.9",
"version": "1.1.11",
"description": "Library to parse/validate/fix blocklet meta",

@@ -22,8 +22,8 @@ "main": "lib/index.js",

"dependencies": {
"@arcblock/did": "^1.5.1",
"@arcblock/did-ext": "^1.5.1",
"@arcblock/forge-util": "^1.5.1",
"@arcblock/mcrypto": "^1.5.1",
"axios": "^0.21.0",
"debug": "^4.2.0",
"@arcblock/did": "^1.5.5",
"@arcblock/did-ext": "^1.5.5",
"@arcblock/forge-util": "^1.5.5",
"@arcblock/mcrypto": "^1.5.5",
"axios": "^0.21.1",
"debug": "^4.3.1",
"fs-extra": "^9.0.1",

@@ -40,3 +40,3 @@ "hosted-git-info": "^3.0.7",

},
"gitHead": "70b2adc98cd1bd020771583cb0e34474c2902dfc"
"gitHead": "e33b75d4d02d058a915a33876977d521cce70826"
}
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