Socket
Socket
Sign inDemoInstall

@mayahq/maya-db

Package Overview
Dependencies
161
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

2

lib/src/io/mongo/lock.js

@@ -140,3 +140,3 @@ "use strict";

e_1 = _a.sent();
return [2 /*return*/, callback(e_1, null, null)];
return [2 /*return*/, callback(e_1, null, null, null)];
case 5: return [2 /*return*/, callback(null, releaseFunction, lockDocument, lockId_1)];

@@ -143,0 +143,0 @@ case 6:

@@ -118,8 +118,5 @@ "use strict";

blockPath = (0, util_1.normalizePath)(blockPath);
console.log('here1', blockPath, opts);
console.log('ready', mongoose_1.default.connection.readyState);
return [4 /*yield*/, mongoose_1.default.startSession()];
case 1:
session = _a.sent();
console.log('hey');
return [4 /*yield*/, session.withTransaction(function () { return __awaiter(_this, void 0, void 0, function () {

@@ -129,5 +126,3 @@ var col, err, e_1, err;

switch (_a.label) {
case 0:
console.log('here2');
return [4 /*yield*/, collectionSchema_1.default.findOne({ path: path_1.default.dirname(blockPath) })];
case 0: return [4 /*yield*/, collectionSchema_1.default.findOne({ path: path_1.default.dirname(blockPath) })];
case 1:

@@ -146,11 +141,8 @@ col = _a.sent();

case 4:
console.log('here3');
_a.label = 5;
_a.trys.push([4, 6, , 7]);
return [4 /*yield*/, blockSchema_1.default.create({ path: blockPath })];
case 5:
_a.trys.push([5, 7, , 8]);
return [4 /*yield*/, blockSchema_1.default.create({ path: blockPath })];
_a.sent();
return [3 /*break*/, 7];
case 6:
_a.sent();
return [3 /*break*/, 8];
case 7:
e_1 = _a.sent();

@@ -166,6 +158,4 @@ console.log('Real error creating block:', e_1);

}
return [3 /*break*/, 8];
case 8:
console.log('here4');
return [2 /*return*/];
return [3 /*break*/, 7];
case 7: return [2 /*return*/];
}

@@ -176,7 +166,5 @@ });

_a.sent();
console.log('here2');
return [4 /*yield*/, session.endSession()];
case 3:
_a.sent();
console.log('here3');
block = this.getBlock(blockPath);

@@ -183,0 +171,0 @@ return [2 /*return*/, block];

{
"name": "@mayahq/maya-db",
"version": "0.0.8",
"version": "0.0.9",
"description": "A small, encrypted simple document database meant for client-side use.",

@@ -5,0 +5,0 @@ "main": "lib/src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc