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

redink

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redink - npm Package Compare versions

Comparing version 2.0.0-beta.24 to 2.0.0-beta.25

18

dist/Model.js

@@ -136,2 +136,18 @@ 'use strict';

/**
* Returns the total count of resources.
* @return {Number}
*/
}, {
key: 'count',
value: function count() {
var conn = this.conn;
var schema = this.schema;
var type = schema.type;
return _rethinkdb2.default.table(type).count().run(conn);
}
/**
* Finds resources using the index named `index`.

@@ -395,2 +411,2 @@ *

exports.default = Model;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Nb2RlbC5qcyJdLCJuYW1lcyI6WyJNb2RlbCIsImNvbm4iLCJ0eXBlIiwic2NoZW1hIiwiVHlwZUVycm9yIiwicHJlIiwicG9zdCIsInRhYmxlIiwiY29lcmNlVG8iLCJydW4iLCJ0aGVuIiwicmVjb3JkcyIsImZpbmQiLCJyZXNvdXJjZXMiLCJmaXJzdCIsImluZGV4IiwidmFsdWUiLCJnZXRBbGwiLCJmaW5kQnlJbmRleCIsImlkIiwicmVsYXRpb25zaGlwIiwicGFyZW50VHlwZSIsInJlbGF0aW9uc2hpcHMiLCJyZWxhdGVkVHlwZSIsInJlbGF0ZWRTY2hlbWEiLCJyZWxhdGlvbiIsImludmVyc2UiLCJmaWVsZCIsImFyZ3MiLCJnZXQiLCJyZWNvcmRPclJlY29yZHMiLCJyZWNvcmQiLCJjaGVja0NvbXBsaWFuY2VBbmROb3JtYWxpemVSZWNvcmQiLCJjb21wbGlhbnQiLCJFcnJvciIsImNyZWF0ZVJlY29yZCIsIm5vcm1hbGl6ZWRSZWNvcmQiLCJjcmVhdGVkUmVjb3JkSWQiLCJjcmVhdGVkUmVzb3VyY2UiLCJpbnNlcnQiLCJrZXlzIiwiZ2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Qgc3luY1JlbGF0aW9uc2hpcHNBcnJheSA9IHN5bmNSZWxhdGlvbnNoaXBzKHJlY29yZCwgc2NoZW1hLCBjcmVhdGVkUmVjb3JkSWQpO1xuXG4gICAgICAgICAgcmV0dXJuIHIuZG8oc3luY1JlbGF0aW9uc2hpcHNBcnJheSkucnVuKGNvbm4pO1xuICAgICAgICB9KVxuXG4gICAgICAgIC8vIHJldHVybiB0aGUgcmVzb3VyY2VcbiAgICAgICAgLnRoZW4oKCkgPT4gY3JlYXRlZFJlc291cmNlKTtcbiAgICB9O1xuXG4gICAgLy8gY2hlY2sgcmVjb3JkIGFuZCBpdCdzIHJlbGF0aW9uc2hpcHMgZm9yIFJlZGluayBjb25zdHJhaW50c1xuICAgIHJldHVybiBpc0NyZWF0ZUNvbXBsaWFudChyZWNvcmQsIHNjaGVtYSwgY29ubilcbiAgICAgIC50aGVuKGNoZWNrQ29tcGxpYW5jZUFuZE5vcm1hbGl6ZVJlY29yZClcbiAgICAgIC50aGVuKGNyZWF0ZVJlY29yZCk7XG4gIH1cbn1cbiJdfQ==

10

dist/utils/mergeRelationships.js

@@ -105,12 +105,14 @@ 'use strict';

var relatedTable = _rethinkdb2.default.table(type);
var inverseField = inverse.field;
var fieldOptions = options.include[field];
if (relation === 'hasMany') {
if ((0, _requiresIndex2.default)(relation, inverse.relation)) {
return mergeWithIndex(relatedTable, record, field, inverse.field, options.include[field]);
return mergeWithIndex(relatedTable, record, field, inverseField, fieldOptions);
}
return record.hasFields(field).branch(mergeWithManyRecords(relatedTable, record, field, options.include[field]), {});
return record.hasFields(field).branch(mergeWithManyRecords(relatedTable, record, field, fieldOptions), {});
}
return record.hasFields(field).branch(mergeWithSingleRecord(relatedTable, record, field, options.include[field]), {});
return record.hasFields(field).branch(mergeWithSingleRecord(relatedTable, record, field, fieldOptions), {});
})));

@@ -124,2 +126,2 @@ };

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u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gICAgICBmaWVsZCxcbiAgICAgICAgICBpbnZlcnNlLmZpZWxkLFxuICAgICAgICAgIG9wdGlvbnMuaW5jbHVkZVtmaWVsZF0sXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiByZWNvcmQuaGFzRmllbGRzKGZpZWxkKS5icmFuY2goXG4gICAgICAgIG1lcmdlV2l0aE1hbnlSZWNvcmRzKFxuICAgICAgICAgIHJlbGF0ZWRUYWJsZSxcbiAgICAgICAgICByZWNvcmQsXG4gICAgICAgICAgZmllbGQsXG4gICAgICAgICAgb3B0aW9ucy5pbmNsdWRlW2ZpZWxkXSxcbiAgICAgICAgKSxcbiAgICAgICAge30sXG4gICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiByZWNvcmQuaGFzRmllbGRzKGZpZWxkKS5icmFuY2goXG4gICAgICBtZXJnZVdpdGhTaW5nbGVSZWNvcmQoXG4gICAgICAgIHJlbGF0ZWRUYWJsZSxcbiAgICAgICAgcmVjb3JkLFxuICAgICAgICBmaWVsZCxcbiAgICAgICAgb3B0aW9ucy5pbmNsdWRlW2ZpZWxkXSxcbiAgICAgICksXG4gICAgICB7fSxcbiAgICApO1xuICB9KSkpO1xuXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZVxuICB0YWJsZSA9IHRhYmxlLm1lcmdlKGZpZWxkc1RvTWVyZ2UpO1xuXG4gIHJldHVybiB0YWJsZTtcbn07XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9tZXJnZVJlbGF0aW9uc2hpcHMuanMiXSwibmFtZXMiOlsibWVyZ2VXaXRoSW5kZXgiLCJ0YWJsZSIsInJlY29yZCIsImZpZWxkIiwiaW5kZXgiLCJvcHRpb25zIiwicm93IiwiZ2V0QWxsIiwiY29lcmNlVG8iLCJtZXJnZVdpdGhNYW55UmVjb3JkcyIsImFyZ3MiLCJtZXJnZVdpdGh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ZmllbGRPcHRpb25zLFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gcmVjb3JkLmhhc0ZpZWxkcyhmaWVsZCkuYnJhbmNoKFxuICAgICAgICBtZXJnZVdpdGhNYW55UmVjb3JkcyhcbiAgICAgICAgICByZWxhdGVkVGFibGUsXG4gICAgICAgICAgcmVjb3JkLFxuICAgICAgICAgIGZpZWxkLFxuICAgICAgICAgIGZpZWxkT3B0aW9ucyxcbiAgICAgICAgKSxcbiAgICAgICAge30sXG4gICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiByZWNvcmQuaGFzRmllbGRzKGZpZWxkKS5icmFuY2goXG4gICAgICBtZXJnZVdpdGhTaW5nbGVSZWNvcmQoXG4gICAgICAgIHJlbGF0ZWRUYWJsZSxcbiAgICAgICAgcmVjb3JkLFxuICAgICAgICBmaWVsZCxcbiAgICAgICAgZmllbGRPcHRpb25zLFxuICAgICAgKSxcbiAgICAgIHt9LFxuICAgICk7XG4gIH0pKSk7XG5cbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lXG4gIHRhYmxlID0gdGFibGUubWVyZ2UoZmllbGRzVG9NZXJnZSk7XG5cbiAgcmV0dXJuIHRhYmxlO1xufTtcbiJdfQ==
{
"name": "redink",
"version": "2.0.0-beta.24",
"version": "2.0.0-beta.25",
"description": "RethinkDB model layer",

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

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