New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 3.0.0-alpha.2 to 3.0.0-alpha.3

7

dist/utils/syncRelationships.js

@@ -20,2 +20,3 @@ 'use strict';

var field = relationship.field;
var name = relationship.name;
var relation = relationship.relation;

@@ -27,3 +28,2 @@ var inverse = relationship.inverse;

var data = record[field];

@@ -36,3 +36,4 @@

var dataCoercedToArray = Array.isArray(data) ? data : [data];
queryToPush = (0, _queries.pushIdToInverseField)(inverseName, inverseField, [], dataCoercedToArray, id);
queryToPush = (0, _queries.pushIdToInverseField)(name, inverseField, [], dataCoercedToArray, id);
}

@@ -50,2 +51,2 @@

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9zeW5jUmVsYXRpb25zaGlwcy5qcyJdLCJuYW1lcyI6WyJyZWNvcmQiLCJ0eXBlIiwiaWQiLCJzeW5jUmVsYXRpb25zaGlwc0FycmF5IiwicmVsYXRpb25zaGlwcyIsImZvckVhY2giLCJmaWVsZCIsInJlbGF0aW9uc2hpcCIsInJlbGF0aW9uIiwiaW52ZXJzZSIsImludmVyc2VOYW1lIiwibmFtZSIsImludmVyc2VGaWVsZCIsImludmVyc2VSZWxhdGlvbiIsImRhdGEiLCJxdWVyeVRvUHVzaCIsImRhdGFDb2VyY2VkVG9BcnJheSIsIkFycmF5IiwiaXNBcnJheSIsInB1c2giXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOzs7O0FBRUE7Ozs7a0JBTWUsVUFBQ0EsTUFBRCxFQUFTQyxJQUFULEVBQWVDLEVBQWYsRUFBc0I7QUFDbkMsTUFBTUMseUJBQXlCLEVBQS9COztBQUVBRixPQUFLRyxhQUFMLENBQW1CQyxP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2VyY2VkVG9BcnJheSA9IEFycmF5LmlzQXJyYXkoZGF0YSkgPyBkYXRhIDogW2RhdGFdO1xuXG4gICAgICAgIHF1ZXJ5VG9QdXNoID0gcHVzaElkVG9JbnZlcnNlRmllbGQoXG4gICAgICAgICAgbmFtZSxcbiAgICAgICAgICBpbnZlcnNlRmllbGQsXG4gICAgICAgICAgW10sXG4gICAgICAgICAgZGF0YUNvZXJjZWRUb0FycmF5LFxuICAgICAgICAgIGlkLFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBpZiAoaW52ZXJzZVJlbGF0aW9uID09PSAnaGFzT25lJykge1xuICAgICAgICBxdWVyeVRvUHVzaCA9IHJlbGF0aW9uID09PSAnaGFzTWFueSdcbiAgICAgICAgICA/IHB1dElkVG9NYW55UmVjb3Jkc0ZpZWxkKGludmVyc2VOYW1lLCBkYXRhLCBpbnZlcnNlRmllbGQsIGlkKVxuICAgICAgICAgIDogcHV0SWRUb1JlY29yZEZpZWxkKGludmVyc2VOYW1lLCBkYXRhLCBpbnZlcnNlRmllbGQsIGlkKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHF1ZXJ5VG9QdXNoKSBzeW5jUmVsYXRpb25zaGlwc0FycmF5LnB1c2gocXVlcnlUb1B1c2gpO1xuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHN5bmNSZWxhdGlvbnNoaXBzQXJyYXk7XG59O1xuIl19
{
"name": "redink",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.3",
"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