Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bump version to 0.1.1

  • Loading branch information...
commit 9ecf543dd4eec335cf367c4683ed9880c6311466 1 parent fcfef1e
Pavan Kumar Sunkara authored

Showing 2 changed files with 7 additions and 9 deletions. Show diff stats Hide diff stats

  1. +5 6 nosqlite.coffee
  2. +2 3 package.json
11 nosqlite.coffee
@@ -9,8 +9,7 @@ nosqlite = module.exports
9 9 # Requiring modules
10 10 path = require 'path'
11 11 fs = require 'fs'
12   -async = require 'async'
13   -rimraf = require 'rimraf'
  12 +utile = require 'utile'
14 13
15 14 # Declaring variables
16 15 nosqlite.path = path.join __dirname, 'data'
@@ -73,10 +72,10 @@ nosqlite.Connection::database = (name, mode) ->
73 72
74 73 # Destroy db
75 74 destroy: (cb) ->
76   - rimraf @dir, cb
  75 + utile.rimraf @dir, cb
77 76
78 77 destroySync: ->
79   - rimraf.sync @dir
  78 + utile.rimraf.sync @dir
80 79
81 80 # Get doc by id
82 81 get: (id, cb) ->
@@ -113,7 +112,7 @@ nosqlite.Connection::database = (name, mode) ->
113 112 # Find a doc
114 113 find: (cond, cb) ->
115 114 fs.readdir @dir, (err, files) =>
116   - async.map files, (file, callback) =>
  115 + utile.async.map files, (file, callback) =>
117 116 @get path.basename(file, '.json'), (err, data) =>
118 117 if @satisfy data, cond then callback err, data else callback err, null
119 118 , (err, files) ->
@@ -129,7 +128,7 @@ nosqlite.Connection::database = (name, mode) ->
129 128 # Get all docs
130 129 all: (cb) ->
131 130 fs.readdir @dir, (err, files) =>
132   - async.map files, (file, callback) =>
  131 + utile.async.map files, (file, callback) =>
133 132 @get path.basename(file, '.json'), callback
134 133 , cb
135 134
5 package.json
... ... @@ -1,6 +1,6 @@
1 1 {
2 2 "name": "nosqlite",
3   - "version": "0.1.0",
  3 + "version": "0.1.1",
4 4 "author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com>",
5 5 "description": "human readable nosql type filesystem json store",
6 6 "main": "./nosqlite",
@@ -28,8 +28,7 @@
28 28 }
29 29 ],
30 30 "dependencies": {
31   - "async": "*",
32   - "rimraf": "1.0.x"
  31 + "utile": "*"
33 32 },
34 33 "devDependencies": {
35 34 "coffee-script": "~1.2.0",

0 comments on commit 9ecf543

Please sign in to comment.
Something went wrong with that request. Please try again.