From 93ec0ed479a5670611a71a46b1e112094ff0cdb0 Mon Sep 17 00:00:00 2001 From: Fadhli Dzil Ikram Date: Sat, 19 Nov 2016 13:51:43 +0700 Subject: [PATCH 1/2] Add strict directive, change node test version to 4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add ‘use strict’ directive in library to enable let keyword usage on Node.js 4, change .travis.yml node version to 4. --- .travis.yml | 2 +- index.d.ts | 7 ------- lib/setlist.d.ts | 19 ------------------- lib/setlist.js | 2 ++ test/setlist.js | 2 ++ 5 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 index.d.ts delete mode 100644 lib/setlist.d.ts diff --git a/.travis.yml b/.travis.yml index 3dfcaec..f31b6d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "6" + - "4" before_script: - npm install -g istanbul script: istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage \ No newline at end of file diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 3730a4b..0000000 --- a/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * SetlistJS - * TypeScript Module Definition - * Copyright (c) 2016 Fadhli Dzil Ikram - */ - -export = require('./lib/setlist'); diff --git a/lib/setlist.d.ts b/lib/setlist.d.ts deleted file mode 100644 index 1b6191d..0000000 --- a/lib/setlist.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * SetlistJS TypeScript Definition - * Enable correct type-hinting on VSCode - * Copyright (c) 2016 Fadhli Dzil Ikram - */ - -interface run { - (fn: PromiseLike | Function | IterableIterator): Promise; - callbackify(fn: Function): Function; - promisify(fn: Function): Function; - proxify(obj: Object): void; - isPromise(fn: any): fn is PromiseLike; - isGenerator(fn: any): fn is IterableIterator; - isFunctionGenerator(fn: any): fn is Function; -} - -declare const run: run; - -export = run; diff --git a/lib/setlist.js b/lib/setlist.js index de5e2e8..a90bc54 100644 --- a/lib/setlist.js +++ b/lib/setlist.js @@ -4,6 +4,8 @@ * Copyright (c) 2016 Fadhli Dzil Ikram */ +'use strict'; + const lo = require('lodash'); // Export modules diff --git a/test/setlist.js b/test/setlist.js index 3ace7ef..1e95612 100644 --- a/test/setlist.js +++ b/test/setlist.js @@ -4,6 +4,8 @@ * @author Fadhli Dzil Ikram */ +'use strict'; + const $ = require('../lib/setlist'); const should = require('should'); From 5d0c788eca805ded6933485e41d51d707ad8e3b0 Mon Sep 17 00:00:00 2001 From: Fadhli Dzil Ikram Date: Sat, 19 Nov 2016 13:53:05 +0700 Subject: [PATCH 2/2] Change version to v0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2944640..55ee1fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setlist", - "version": "0.2.0", + "version": "0.2.1", "description": "Sequential-ish your asynchronous code with ES6 Generator Function and Promise", "main": "index.js", "scripts": {