Skip to content

Commit

Permalink
Merge pull request #7 from scalio/fix/version
Browse files Browse the repository at this point in the history
chore: version bump
  • Loading branch information
michaelyali authored Nov 1, 2019
2 parents b4c119d + a620f09 commit d74bbfd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@scalio-oss/nest-couchbase",
"description": "Couchbase module for Nest framework",
"version": "0.2.0",
"version": "1.0.0",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions e2e/__stubs__/cat.entity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Entity } from '../../src/couchbase';
import { config } from './config';

@Entity(config.bucket)
@Entity()
export class Cat {
name: string;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@scalio-oss/nest-couchbase",
"description": "Couchbase module for Nest framework",
"version": "0.2.0",
"version": "1.0.0",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { oO } from '@zmotivat0r/o0';

export function promisify(fn: Function, ctx: any): Function {
export function promisify(fn: any, ctx: any): any {
return function(...args: any[]): Promise<any> {
return new Promise((resolve, reject) => {
fn.apply(ctx, [
Expand All @@ -17,9 +17,9 @@ export function promisify(fn: Function, ctx: any): Function {
};
}

export function flattenPromise(promise: Function): Function {
export function flattenPromise(promise: any): any {
return async function(...args: any[]): Promise<any[]> {
return await oO(promise(...args));
return oO(promise(...args));
};
}

Expand Down
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"object-literal-sort-keys": false,
"member-access": false,
"no-implicit-dependencies": false,
"member-ordering": false
"member-ordering": false,
"only-arrow-functions": false
},
"rulesDirectory": []
}

0 comments on commit d74bbfd

Please sign in to comment.