New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-diff-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-diff-sync - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+0
-0
.babelrc

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

+19
-7

@@ -38,2 +38,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {

class AbstractRepo {
initialize() {
return _asyncToGenerator(function* () {})();
}
submit(revs) {

@@ -147,26 +151,34 @@ return _asyncToGenerator(function* () {})();

submit(revs) {
initialize() {
var _this = this;
return _asyncToGenerator(function* () {
yield _this.repo.submit(revs);
yield _this.repo.initialize();
})();
}
pull(revId) {
submit(revs) {
var _this2 = this;
return _asyncToGenerator(function* () {
return yield _this2.repo.pull(revId);
yield _this2.repo.submit(revs);
})();
}
update() {
pull(revId) {
var _this3 = this;
return _asyncToGenerator(function* () {
var changedRevs = yield _this3.pull(_this3.latestRevisionId);
return yield _this3.repo.pull(revId);
})();
}
update() {
var _this4 = this;
return _asyncToGenerator(function* () {
var changedRevs = yield _this4.pull(_this4.latestRevisionId);
if (changedRevs.length > 0) {
_this3.latestRevisionId = changedRevs[changedRevs.length - 1].id;
_this4.latestRevisionId = changedRevs[changedRevs.length - 1].id;
}

@@ -173,0 +185,0 @@

@@ -42,2 +42,6 @@ 'use strict';

class AbstractRepo {
initialize() {
return _asyncToGenerator(function* () {})();
}
submit(revs) {

@@ -151,26 +155,34 @@ return _asyncToGenerator(function* () {})();

submit(revs) {
initialize() {
var _this = this;
return _asyncToGenerator(function* () {
yield _this.repo.submit(revs);
yield _this.repo.initialize();
})();
}
pull(revId) {
submit(revs) {
var _this2 = this;
return _asyncToGenerator(function* () {
return yield _this2.repo.pull(revId);
yield _this2.repo.submit(revs);
})();
}
update() {
pull(revId) {
var _this3 = this;
return _asyncToGenerator(function* () {
var changedRevs = yield _this3.pull(_this3.latestRevisionId);
return yield _this3.repo.pull(revId);
})();
}
update() {
var _this4 = this;
return _asyncToGenerator(function* () {
var changedRevs = yield _this4.pull(_this4.latestRevisionId);
if (changedRevs.length > 0) {
_this3.latestRevisionId = changedRevs[changedRevs.length - 1].id;
_this4.latestRevisionId = changedRevs[changedRevs.length - 1].id;
}

@@ -177,0 +189,0 @@

@@ -0,0 +0,0 @@ MIT License

{
"name": "react-diff-sync",
"version": "1.0.1",
"version": "1.0.2",
"description": "The diff versioning library for React Project",

@@ -5,0 +5,0 @@ "author": "samick17",

@@ -0,0 +0,0 @@ # react-diff-sync