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
33
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.9.13 to 0.9.14

lib/meta.js

225

dist/schema.js

@@ -5,4 +5,5 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.schema = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

const {name, version, vendor, library, description} = require('./primitive.js');
const meta = require('ajv/lib/refs/json-schema-draft-06.json');
const meta = require('./meta.js');
const props = {

@@ -122,3 +123,3 @@ type: 'object',

},{"./primitive.js":12,"ajv/lib/refs/json-schema-draft-06.json":15}],2:[function(require,module,exports){
},{"./meta.js":12,"./primitive.js":13}],2:[function(require,module,exports){
'use strict';

@@ -145,3 +146,3 @@

},{"./primitive.js":12}],3:[function(require,module,exports){
},{"./primitive.js":13}],3:[function(require,module,exports){
'use strict';

@@ -204,3 +205,3 @@

},{"./primitive.js":12}],4:[function(require,module,exports){
},{"./primitive.js":13}],4:[function(require,module,exports){
'use strict';

@@ -360,3 +361,3 @@

},{"./primitive.js":12}],6:[function(require,module,exports){
},{"./primitive.js":13}],6:[function(require,module,exports){
'use strict';

@@ -438,3 +439,3 @@

},{"./abstractionDefinition.js":1,"./busDefinition.js":2,"./busInterface.js":3,"./catalog.js":4,"./component.js":5,"./design.js":7,"./memoryMap.js":11,"./register.js":13}],7:[function(require,module,exports){
},{"./abstractionDefinition.js":1,"./busDefinition.js":2,"./busInterface.js":3,"./catalog.js":4,"./component.js":5,"./design.js":7,"./memoryMap.js":11,"./register.js":14}],7:[function(require,module,exports){
'use strict';

@@ -541,3 +542,3 @@

},{"./primitive.js":12}],8:[function(require,module,exports){
},{"./primitive.js":13}],8:[function(require,module,exports){
'use strict';

@@ -569,3 +570,3 @@

},{"./primitive.js":12}],9:[function(require,module,exports){
},{"./primitive.js":13}],9:[function(require,module,exports){
'use strict';

@@ -623,3 +624,3 @@

},{"./enumeratedValues.js":8,"./primitive.js":12}],10:[function(require,module,exports){
},{"./enumeratedValues.js":8,"./primitive.js":13}],10:[function(require,module,exports){
'use strict';

@@ -693,5 +694,45 @@

},{"./primitive.js":12,"./registerFile.js":14}],12:[function(require,module,exports){
},{"./primitive.js":13,"./registerFile.js":15}],12:[function(require,module,exports){
'use strict';
let meta;
const simpleTypes = {
enum: [
'array',
'boolean',
'integer',
'null',
'number',
'object',
'string'
]
};
const schemaArray = {
type: 'array',
minItems: 1,
items: meta
};
meta = {
type: 'object',
properties: {
type: simpleTypes,
description: {type: 'string'},
properties: {
type: 'object',
additionalProperties: meta
},
allOf: schemaArray,
anyOf: schemaArray,
oneOf: schemaArray
}
};
module.exports = meta;
},{}],13:[function(require,module,exports){
'use strict';
const id = {

@@ -748,3 +789,3 @@ type: 'string',

},{}],13:[function(require,module,exports){
},{}],14:[function(require,module,exports){
'use strict';

@@ -779,3 +820,3 @@

},{"./field.js":9,"./primitive.js":12}],14:[function(require,module,exports){
},{"./field.js":9,"./primitive.js":13}],15:[function(require,module,exports){
'use strict';

@@ -811,162 +852,6 @@

},{"./primitive.js":12}],15:[function(require,module,exports){
},{"./primitive.js":13}],16:[function(require,module,exports){
module.exports={
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://json-schema.org/draft-06/schema#",
"title": "Core schema meta-schema",
"definitions": {
"schemaArray": {
"type": "array",
"minItems": 1,
"items": { "$ref": "#" }
},
"nonNegativeInteger": {
"type": "integer",
"minimum": 0
},
"nonNegativeIntegerDefault0": {
"allOf": [
{ "$ref": "#/definitions/nonNegativeInteger" },
{ "default": 0 }
]
},
"simpleTypes": {
"enum": [
"array",
"boolean",
"integer",
"null",
"number",
"object",
"string"
]
},
"stringArray": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true,
"default": []
}
},
"type": ["object", "boolean"],
"properties": {
"$id": {
"type": "string",
"format": "uri-reference"
},
"$schema": {
"type": "string",
"format": "uri"
},
"$ref": {
"type": "string",
"format": "uri-reference"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"default": {},
"examples": {
"type": "array",
"items": {}
},
"multipleOf": {
"type": "number",
"exclusiveMinimum": 0
},
"maximum": {
"type": "number"
},
"exclusiveMaximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"exclusiveMinimum": {
"type": "number"
},
"maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
"minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
"pattern": {
"type": "string",
"format": "regex"
},
"additionalItems": { "$ref": "#" },
"items": {
"anyOf": [
{ "$ref": "#" },
{ "$ref": "#/definitions/schemaArray" }
],
"default": {}
},
"maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
"minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
"uniqueItems": {
"type": "boolean",
"default": false
},
"contains": { "$ref": "#" },
"maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
"minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
"required": { "$ref": "#/definitions/stringArray" },
"additionalProperties": { "$ref": "#" },
"definitions": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"properties": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"patternProperties": {
"type": "object",
"additionalProperties": { "$ref": "#" },
"default": {}
},
"dependencies": {
"type": "object",
"additionalProperties": {
"anyOf": [
{ "$ref": "#" },
{ "$ref": "#/definitions/stringArray" }
]
}
},
"propertyNames": { "$ref": "#" },
"const": {},
"enum": {
"type": "array",
"minItems": 1,
"uniqueItems": true
},
"type": {
"anyOf": [
{ "$ref": "#/definitions/simpleTypes" },
{
"type": "array",
"items": { "$ref": "#/definitions/simpleTypes" },
"minItems": 1,
"uniqueItems": true
}
]
},
"format": { "type": "string" },
"allOf": { "$ref": "#/definitions/schemaArray" },
"anyOf": { "$ref": "#/definitions/schemaArray" },
"oneOf": { "$ref": "#/definitions/schemaArray" },
"not": { "$ref": "#" }
},
"default": {}
}
},{}],16:[function(require,module,exports){
module.exports={
"name": "duh-schema",
"version": "0.9.13",
"version": "0.9.14",
"description": "DUH Schema",

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

'use strict';
const {name, version, vendor, library, description} = require('./primitive.js');
const meta = require('ajv/lib/refs/json-schema-draft-06.json');
const meta = require('./meta.js');
const props = {

@@ -7,0 +8,0 @@ type: 'object',

{
"name": "duh-schema",
"version": "0.9.13",
"version": "0.9.14",
"description": "DUH Schema",

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

Sorry, the diff of this file is too big to display

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