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
20
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.29.0 to 1.0.0

7

lib/document.js

@@ -25,2 +25,5 @@ 'use strict';

cancel() {
for (let element of this.elements) {
element.cancel();
}
this.emit(Events.Cancel);

@@ -133,3 +136,3 @@ }

next() {
var lastElement = this.elements.lastElement;
const lastElement = this.elements.lastElement;
if (lastElement && lastElement.isAdded()) {

@@ -152,3 +155,3 @@ if (lastElement.isBlank()) {

_generateElements() {
var elements = new LinkedList();
const elements = new LinkedList();
for (let key of keys(this.doc)) {

@@ -155,0 +158,0 @@ elements.insertEnd(key, this.doc[key], this.cloned, this);

@@ -11,3 +11,3 @@ 'use strict';

const TypeChecker = require('hadron-type-checker');
const uuid = require('node-uuid');
const uuid = require('uuid');

@@ -77,2 +77,17 @@ /**

/**
* Cancel any modifications to the element.
*/
cancel() {
if (this.elements) {
for (let element of this.elements) {
element.cancel();
}
} else {
if (this.isModified()) {
this.revert();
}
}
}
/**
* Create the element.

@@ -79,0 +94,0 @@ *

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

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

@@ -34,3 +34,3 @@ "type": "git",

"lodash.keys": "^4.0.7",
"node-uuid": "^1.4.7"
"uuid": "^3.0.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {

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