From 94cf8d129a44c91933b5443c080bb999ae5d6a10 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 23 Jun 2012 03:14:45 -0800 Subject: [PATCH] [fix] Changed require('sys') to require('util') for compatibility with node v0.8 --- node_modules/txn/node_modules/obj_diff/diff.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node_modules/txn/node_modules/obj_diff/diff.js b/node_modules/txn/node_modules/obj_diff/diff.js index 3874787..9abfe9d 100644 --- a/node_modules/txn/node_modules/obj_diff/diff.js +++ b/node_modules/txn/node_modules/obj_diff/diff.js @@ -35,7 +35,7 @@ function change_matches(allowed_change, from_value, to_value) { if(typeOf(allowed_change) != 'object') throw new Error("allowed_change must be an object"); - //var I = require('sys').inspect; + //var I = require('util').inspect; //console.log('change_matches:\n%s', I({allowed_change:allowed_change, from_value:from_value, to_value:to_value})); //for (var a in allowed_change) // console.log(" I see: " + a); @@ -82,14 +82,14 @@ function is_change_rule(rule) { return true; return false; - //console.log('Rule "%s" is a rule? %s!', require('sys').inspect(rule), is_change_rule(rule)); + //console.log('Rule "%s" is a rule? %s!', require('util').inspect(rule), is_change_rule(rule)); } // Return whether the differences between two documents contains a subset of those specified. function doc_diff_atmost(from, to, allowed, strict) { - //console.log('diff_atmost\n%s', require('sys').inspect({from:from, to:to, allowed:allowed})); + //console.log('diff_atmost\n%s', require('util').inspect({from:from, to:to, allowed:allowed})); var diff = doc_diff(from, to); - //console.log('diff = ' + require('sys').inspect(diff)); + //console.log('diff = ' + require('util').inspect(diff)); if(!strict && !allowed.hasOwnProperty('_revisions')) allowed._revisions = {ids: {from:Array, to:function(x) { return typeOf(x) == 'array' && x.length > 0; }}};