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

pragma-schema

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pragma-schema - npm Package Compare versions

Comparing version 1.0.60 to 1.0.61

2

package.json
{
"name": "pragma-schema",
"version": "1.0.60",
"version": "1.0.61",
"description": "utility for building pragma schema structures",

@@ -5,0 +5,0 @@ "main": "commonjs/src/schema.js",

@@ -434,7 +434,13 @@ class IdObject {

static element() {
return {
element: "",
elements: []
}
static element(tagName, title, field, attributes, styles) {
const element = {
element: tagName || "",
title: title,
field: field
};
SchemaElementFactory.addAttributes(element, attributes);
SchemaElementFactory.addStyles(element, styles);
return element;
}

@@ -494,12 +500,3 @@

static input(title, field, attributes, styles) {
const result = {
element: "input",
title: title,
field: field
};
SchemaElementFactory.addAttributes(result, attributes);
SchemaElementFactory.addStyles(result, styles);
return result;
return this.element("input", title, field, attributes, styles);
}

@@ -524,13 +521,12 @@

static memo(title, field, attributes, styles) {
const result = {
element: "memo",
title: title,
field: field
};
SchemaElementFactory.addAttributes(result, attributes);
SchemaElementFactory.addStyles(result, styles);
return result;
return this.element("memo", title, field, attributes, styles);
}
static date(title, field, attributes, styles) {
return this.element("date", title, field, attributes, styles);
}
static dateTime(title, field, attributes, styles) {
return this.element("dateTime", title, field, attributes, styles);
}

@@ -537,0 +533,0 @@ static panelBar(title, actions, styles) {

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