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

pragma-schema

Package Overview
Dependencies
Maintainers
7
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 2022.5.2-6 to 2022.5.2-7

2

package.json
{
"name": "pragma-schema",
"version": "2022.5.2-6",
"version": "2022.5.2-7",
"description": "utility for building pragma schema structures",

@@ -5,0 +5,0 @@ "main": "commonjs/src/schemajs",

@@ -213,12 +213,5 @@ class IdObject {

<<<<<<< HEAD
add(id, name) {
const templateId = id == undefined ? this.length : id;
const templateName = name == undefined ? `template ${templateId}` : name;
const itemToAdd = new Template(templateId, templateName);
=======
add(id) {
const templateId = this.length > 0 ? (Math.max(...this.map(item => item.id)) + 1) : 0;
const itemToAdd = new Template(templateId);
>>>>>>> develop
this.push(itemToAdd);

@@ -225,0 +218,0 @@ return itemToAdd;

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