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.25.1 to 0.26.0

18

lib/element.js

@@ -51,2 +51,7 @@ 'use strict';

/**
* Regex to match an array or object string.
*/
const ARRAY_OR_OBJECT = /^(\[|\{)(.+)(\]|\})$/;
/**
* Represents an element in a document.

@@ -57,2 +62,15 @@ */

/**
* Bulk edit the element. Can accept JSON strings.
*
* @param {String} value - The JSON string value.
*/
bulkEdit(value) {
if (value.match(ARRAY_OR_OBJECT)) {
this.edit(JSON.parse(value));
} else {
this.edit(value);
}
}
/**
* Create the element.

@@ -59,0 +77,0 @@ *

2

package.json

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

"homepage": "https://github.com/mongodb-js/hadron-document",
"version": "0.25.1",
"version": "0.26.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