Permalink
Browse files

updated code to reflect new delta-stream

  • Loading branch information...
1 parent 4a502f8 commit 2b7d4a92917d177c167a3d4e1dff7ed0eb479922 @Raynos committed Sep 4, 2012
Showing with 2 additions and 64 deletions.
  1. +0 −52 example/simple/npm-debug.log
  2. +1 −1 package.json
  3. +1 −11 row.js
@@ -1,52 +0,0 @@
-0 info it worked if it ends with ok
-1 verbose cli [ '/home/dominic/.nave/installed/0.8.6/bin/node',
-1 verbose cli '/home/dominic/.nave/installed/0.8.6/bin/npm',
-1 verbose cli 'install',
-1 verbose cli 'hipster',
-1 verbose cli '-g' ]
-2 info using npm@1.1.48
-3 info using node@v0.8.6
-4 verbose config file /home/dominic/.npmrc
-5 verbose config file /home/dominic/.nave/installed/0.8.6/etc/npmrc
-6 verbose config file /home/dominic/.nave/installed/0.8.6/lib/node_modules/npm/npmrc
-7 verbose read json /home/dominic/.nave/installed/0.8.6/lib/package.json
-8 verbose read json /home/dominic/.nave/installed/0.8.6/lib/package.json
-9 verbose cache add [ 'hipster', null ]
-10 silly cache add name=undefined spec="hipster" args=["hipster",null]
-11 verbose parsed url { pathname: 'hipster', path: 'hipster', href: 'hipster' }
-12 silly lockFile 37c6591c-hipster hipster
-13 verbose lock hipster /home/dominic/.npm/37c6591c-hipster.lock
-14 silly lockFile 37c6591c-hipster hipster
-15 verbose addNamed [ 'hipster', '' ]
-16 verbose addNamed [ null, '' ]
-17 silly lockFile c08b9b96-hipster hipster@
-18 verbose lock hipster@ /home/dominic/.npm/c08b9b96-hipster.lock
-19 silly addNameRange { name: 'hipster', range: '', hasData: false }
-20 verbose url raw hipster
-21 verbose url resolving [ 'https://registry.npmjs.org/', './hipster' ]
-22 verbose url resolved https://registry.npmjs.org/hipster
-23 info retry registry request attempt 1 at 19:28:22
-24 http GET https://registry.npmjs.org/hipster
-25 info retry will retry, error on last attempt: Error: getaddrinfo ENOENT
-26 info retry registry request attempt 2 at 19:28:32
-27 http GET https://registry.npmjs.org/hipster
-28 info retry will retry, error on last attempt: Error: getaddrinfo ENOENT
-29 info retry registry request attempt 3 at 19:29:32
-30 http GET https://registry.npmjs.org/hipster
-31 silly lockFile c08b9b96-hipster hipster@
-32 error Error: getaddrinfo ENOENT
-32 error at errnoException (dns.js:31:11)
-32 error at Object.onanswer [as oncomplete] (dns.js:123:16)
-33 error If you need help, you may report this log at:
-33 error <http://github.com/isaacs/npm/issues>
-33 error or email it to:
-33 error <npm-@googlegroups.com>
-34 error System Linux 3.2.0-23-generic
-35 error command "/home/dominic/.nave/installed/0.8.6/bin/node" "/home/dominic/.nave/installed/0.8.6/bin/npm" "install" "hipster" "-g"
-36 error cwd /home/dominic/c/crdt/example/simple
-37 error node -v v0.8.6
-38 error npm -v 1.1.48
-39 error syscall getaddrinfo
-40 error code ENOTFOUND
-41 error errno ENOTFOUND
-42 verbose exit [ 1, true ]
View
@@ -16,7 +16,7 @@
"dependencies": {
"between": "0.0.0",
"scuttlebutt": "~2.2.0",
- "delta-stream": "~1.1.1"
+ "delta-stream": "~1.2.0"
},
"devDependencies": {
"it-is": "~1.0.1",
View
12 row.js
@@ -13,16 +13,6 @@ function Row (id) {
delta._set = delta.set
- delta.validate = function (changes) {
- try {
- delta.emit('validate', changes)
- return true
- } catch (e) {
- console.error('validation', e.message)
- return false
- }
- }
-
delta.set = function (key, value) {
var changes = key
if (typeof key === 'string') {
@@ -36,5 +26,5 @@ function Row (id) {
}
function isRow(r) {
- return r.set && r.get && r.validate && r._update
+ return r.set && r.get && r.validate
}

0 comments on commit 2b7d4a9

Please sign in to comment.