Permalink
Browse files

Bump version to 0.1.1

  • Loading branch information...
1 parent fcfef1e commit 9ecf543dd4eec335cf367c4683ed9880c6311466 @pksunkara committed Jan 22, 2012
Showing with 7 additions and 9 deletions.
  1. +5 −6 nosqlite.coffee
  2. +2 −3 package.json
View
11 nosqlite.coffee
@@ -9,8 +9,7 @@ nosqlite = module.exports
# Requiring modules
path = require 'path'
fs = require 'fs'
-async = require 'async'
-rimraf = require 'rimraf'
+utile = require 'utile'
# Declaring variables
nosqlite.path = path.join __dirname, 'data'
@@ -73,10 +72,10 @@ nosqlite.Connection::database = (name, mode) ->
# Destroy db
destroy: (cb) ->
- rimraf @dir, cb
+ utile.rimraf @dir, cb
destroySync: ->
- rimraf.sync @dir
+ utile.rimraf.sync @dir
# Get doc by id
get: (id, cb) ->
@@ -113,7 +112,7 @@ nosqlite.Connection::database = (name, mode) ->
# Find a doc
find: (cond, cb) ->
fs.readdir @dir, (err, files) =>
- async.map files, (file, callback) =>
+ utile.async.map files, (file, callback) =>
@get path.basename(file, '.json'), (err, data) =>
if @satisfy data, cond then callback err, data else callback err, null
, (err, files) ->
@@ -129,7 +128,7 @@ nosqlite.Connection::database = (name, mode) ->
# Get all docs
all: (cb) ->
fs.readdir @dir, (err, files) =>
- async.map files, (file, callback) =>
+ utile.async.map files, (file, callback) =>
@get path.basename(file, '.json'), callback
, cb
View
5 package.json
@@ -1,6 +1,6 @@
{
"name": "nosqlite",
- "version": "0.1.0",
+ "version": "0.1.1",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com>",
"description": "human readable nosql type filesystem json store",
"main": "./nosqlite",
@@ -28,8 +28,7 @@
}
],
"dependencies": {
- "async": "*",
- "rimraf": "1.0.x"
+ "utile": "*"
},
"devDependencies": {
"coffee-script": "~1.2.0",

0 comments on commit 9ecf543

Please sign in to comment.