Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
chore(release): Release 0.6.0 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideast committed Dec 29, 2016
1 parent c225c28 commit b24af50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion gulpfile.js
Expand Up @@ -28,7 +28,8 @@ gulp.task('ts', () => {
gulp.task('rollup', () => {
return gulp.src('./es6/entry.js')
.pipe(rollup({
entry: './es6/entry.js'
entry: './es6/entry.js',
moduleName: 'querybase'
}, 'umd'))
.pipe(rename('querybase.umd.js'))
.pipe(gulp.dest('./dist'));
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "querybase",
"version": "0.5.0",
"version": "0.6.0",
"description": "Bringing the where statement to Firebase",
"main": "dist/querybase.umd.min.js",
"scripts": {
Expand Down
13 changes: 6 additions & 7 deletions src/QuerybaseQuery.ts
Expand Up @@ -2,16 +2,16 @@ export type DatabaseQuery = firebase.database.Query;

/**
* QuerybaseQuery - Provides a simple querying API
*
*
* A QuerybaseQuery is created through using a string criteria
* on a Querybase reference. It is not meant to be directly created.
*
* @param {DatabaseQuery} query
*
*
* @param {DatabaseQuery} query
*
* @example
* const firebaseRef = firebase.database.ref.child('people');
* const querybaseRef = querybase.ref(firebaseRef, ['name', 'age', 'location']);
*
*
* // Querybase for a single string criteria, returns
* // a QuerybaseQuery, which returns a Firebase Ref
* querybaseRef.where('name').startsWith('Da');
Expand Down Expand Up @@ -62,8 +62,7 @@ export class QuerybaseQuery {
* @return {DatabaseQuery}
*/
startsWith(value: string) {
const firstChar = value.substr(0, 1);
return this.query().startAt(firstChar).endAt(`${value}\uf8ff`);
return this.query().startAt(value).endAt(`${value}\uf8ff`);
}

/**
Expand Down

0 comments on commit b24af50

Please sign in to comment.