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

duh-schema

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duh-schema - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

8

lib/primitive.js

@@ -10,2 +10,9 @@ 'use strict';

const expression = {
type: 'string',
minLength: 1,
maxLength: 256
// pattern: '^[a-zA-Z][:a-zA-Z0-9_]*$' // (a + 5)
};
exports.id = id;

@@ -45,1 +52,2 @@

exports.displayName = {type: 'string'};
exports.expression = expression;

12

lib/register.js
'use strict';
const {id, uint, int, access} = require('./primitive.js');
const {id, uint, int, access, expression} = require('./primitive.js');

@@ -10,4 +10,4 @@ const register = {

name: id,
addressOffset: uint,
size: uint,
addressOffset: uint, // base >> log2(regWidth)
size: uint, // regWidth
access: access,

@@ -20,5 +20,7 @@ displayName: { type: 'string' },

type: 'object',
// required: ['bits'],
required: ['bitOffset', 'bitWidth'],
properties: {
bits: uint,
// bits: uint,
bitOffset: {oneOf: [expression, uint]}, // base % regWidth
bitWidth: {oneOf: [expression, uint]}, // size
name: id,

@@ -25,0 +27,0 @@ desc: { type: 'string' },

{
"name": "duh-schema",
"version": "0.7.0",
"version": "0.7.1",
"description": "",

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

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