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

hadron-document

Package Overview
Dependencies
Maintainers
1
Versions
546
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hadron-document - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

16

lib/element.js

@@ -168,2 +168,18 @@ 'use strict';

/**
* Determine if the key is a duplicate.
*
* @param {String} value - The value to check.
*
* @returns {Boolean} If the key is a duplicate.
*/
isDuplicateKey(value) {
if (value === this.currentKey) {
return false;
}
return some(this.parentElement.elements, (element) => {
return element.currentKey === value;
});
}
/**
* Determine if the element is edited - returns true if

@@ -170,0 +186,0 @@ * the key or value changed.

2

package.json

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/mongodb-js/hadron-document",
"version": "0.11.0",
"version": "0.12.0",
"repository": {

@@ -10,0 +10,0 @@ "type": "git",

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