Permalink
Browse files

[fix] Changed require('util') to require('util') for compatibility wi…

…th node v0.8
  • Loading branch information...
1 parent 738cbf3 commit fec902808662fc8d06565409949411f4f7de17a9 @blakmatrix blakmatrix committed Jun 24, 2012
Showing with 10 additions and 10 deletions.
  1. +5 −5 README.md
  2. +5 −5 test/test.js
View
10 README.md
@@ -34,31 +34,31 @@ OSSP uuid bindings for node.js
## Example
- var sys = require('sys'),
+ var util = require('util'),
uuid = require('../lib/ossp_uuid');
console.log(
"version 1\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v1 ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v1 ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v1 ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v1 ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v1 ) );
console.log(
"version 3\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v3, uuid.ns.url, 'http://example.com/' ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v3, uuid.ns.url, 'http://example.com/' ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v3, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v3, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
' txt: ' + uuid.generate( uuid.TXT, uuid.v3, uuid.ns.url, 'http://example.com/' ) );
console.log(
"version 4\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v4 ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v4 ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v4 ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v4 ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v4 ) );
console.log(
"version 5\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v5, uuid.ns.url, 'http://example.com/' ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v5, uuid.ns.url, 'http://example.com/' ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v5, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v5, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v5, uuid.ns.url, 'http://example.com/' ) );
View
10 test/test.js
@@ -1,27 +1,27 @@
-var sys = require('sys'),
+var util = require('util'),
uuid = require( __dirname + '/../lib/ossp_uuid');
console.log(
"version 1\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v1 ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v1 ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v1 ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v1 ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v1 ) );
console.log(
"version 3\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v3, uuid.ns.url, 'http://example.com/' ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v3, uuid.ns.url, 'http://example.com/' ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v3, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v3, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
' txt: ' + uuid.generate( uuid.TXT, uuid.v3, uuid.ns.url, 'http://example.com/' ) );
console.log(
"version 4\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v4 ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v4 ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v4 ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v4 ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v4 ) );
console.log(
"version 5\n" +
' str: ' + uuid.generate( uuid.STR, uuid.v5, uuid.ns.url, 'http://example.com/' ) + "\n" +
' siv: ' + uuid.generate( uuid.SIV, uuid.v5, uuid.ns.url, 'http://example.com/' ) + "\n" +
- ' bin: ' + sys.inspect( uuid.generate( uuid.BIN, uuid.v5, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
+ ' bin: ' + util.inspect( uuid.generate( uuid.BIN, uuid.v5, uuid.ns.url, 'http://example.com/' ) ) + "\n" +
" txt: \n" + uuid.generate( uuid.TXT, uuid.v5, uuid.ns.url, 'http://example.com/' ) );

0 comments on commit fec9028

Please sign in to comment.