Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cormo

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cormo - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

40

lib/command/console.js
// Generated by CoffeeScript 1.6.2
(function() {
var CommandConsole, Connection, Fiber, Future, Model, Query, addHistory, addMultilineHandler, coffee, commander, console_future, fs, path, prettyErrorMessage, repl, vm;
var CommandConsole, Connection, Fiber, Future, Model, Query, addArgCompleter, addHistory, addMultilineHandler, coffee, commander, console_future, fs, path, prettyErrorMessage, repl, vm;

@@ -140,2 +140,39 @@ coffee = require('coffee-script');

addArgCompleter = function(repl) {
var node_completer, rli;
rli = repl.rli;
node_completer = rli.completer;
return rli.completer = function(line, callback) {
return node_completer(line, function(error, result) {
var show_args;
show_args = true;
if (error || !result[0]) {
show_args = false;
} else if (result[0].length > 1) {
show_args = false;
} else if (result[0].length === 1 && result[0][0] !== result[1]) {
show_args = false;
} else if (!/^[A-Za-z0-9_.]+\s*$/.test(line)) {
show_args = false;
}
if (!show_args) {
return callback(error, result);
}
return repl["eval"](line, repl.context, 'repl', function(error, obj) {
var argsMatch;
if (typeof obj === 'function') {
rli.output.write('\r\n');
argsMatch = obj.toString().match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m);
rli.output.write("" + (line.trim()) + " \u001b[35m" + argsMatch[1] + "\u001b[39m\r\n");
rli._refreshLine();
}
return callback(error, result);
});
});
};
};
CommandConsole = (function() {

@@ -228,2 +265,3 @@ function CommandConsole(argv) {

}
addArgCompleter(repl);
return this._setupContext(repl.context);

@@ -230,0 +268,0 @@ };

15

lib/query.js

@@ -166,3 +166,3 @@ // Generated by CoffeeScript 1.6.2

Query.prototype.return_raw_instance = function() {
Query.prototype.lean = function() {
this._options.return_raw_instance = true;

@@ -172,2 +172,4 @@ return this;

Query.prototype.return_raw_instance = Query.prototype.lean;
Query.prototype.cache = function(options) {

@@ -197,2 +199,5 @@ this._options.cache = options;

}
if (!this._id) {
return callback(new Error('not found'));
}
this._adapter.findById(this._name, this._id, this._options, _bindDomain(function(error, record) {

@@ -207,3 +212,3 @@ if (error || !record) {

expected_count = void 0;
if (this._id) {
if (this._id || this._find_single_id) {
if (Array.isArray(this._id)) {

@@ -319,3 +324,3 @@ if (this._id.length === 0) {

return console_future.execute(callback, function(callback) {
if (_this._id) {
if (_this._id || _this._find_single_id) {
_this._conditions.push({

@@ -382,3 +387,3 @@ id: _this._id

}
if (_this._id) {
if (_this._id || _this._find_single_id) {
_this._conditions.push({

@@ -511,3 +516,3 @@ id: _this._id

return console_future.execute(callback, function(callback) {
if (_this._id) {
if (_this._id || _this._find_single_id) {
_this._conditions.push({

@@ -514,0 +519,0 @@ id: _this._id

{
"name": "cormo",
"description": "ORM framework for Node.js",
"version": "0.6.7",
"version": "0.6.8",
"keywords": [

@@ -6,0 +6,0 @@ "orm",

Sorry, the diff of this file is not supported yet

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