Skip to content

Commit

Permalink
version bump, eslinting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vinniegarcia committed Mar 8, 2015
1 parent c7c22b7 commit 5894899
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "proposal",
"version": "1.1.0",
"version": "1.1.1",
"description": "Takes a node-style callbacking function and converts it into a Promise automagically",
"main": "dist/index.js",
"scripts": {
"lint": "eslint src/**/*.es6",
"compile": "babel --experimental -d dist/ src/",
"copydata": "mkdir -p dist/test/fixtures && cp -R src/test/fixtures/* dist/test/fixtures/",
"cc": "npm run compile && npm run copydata",
Expand Down
2 changes: 2 additions & 0 deletions src/index.es6
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

import 'babel/polyfill';

//convert the err,data callback to promise resolve/reject calls
Expand Down
3 changes: 2 additions & 1 deletion src/test/a-modtest-proposal.es6
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict';
// builtins
import {ok} from 'assert';
import fs from 'fs';
// local modules
import {sample as sampleFile } from './fixtures/';
import {errify, h1, cool, fw} from './fixtures/emoji';
import {errify, h1, cool} from './fixtures/emoji';
import Proposal from '../index';

const fileReadAssertions = (fileReadPromise, cont) => {
Expand Down
3 changes: 2 additions & 1 deletion src/test/async-await.es6
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
// builtins
import {ok} from 'assert';
import fs from 'fs';
// babel (needed for async/await)
import 'babel/polyfill';
// local modules
import {sample as sampleFile } from './fixtures';
import {errify, h1, cool, fw} from './fixtures/emoji';
import {errify, h1, cool } from './fixtures/emoji';
import Proposal from '../index';

describe(h1('async/await test'), () => {
Expand Down
4 changes: 3 additions & 1 deletion src/test/crypto.es6
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

import {ok} from 'assert';
import crypto from 'crypto';
import {errify, h1, cool, fw} from './fixtures/emoji';
import { h1, cool } from './fixtures/emoji';
import Proposal from '../index';

describe(h1('crypto tests where no callbacks makes a method sync'), () => {
Expand Down
4 changes: 3 additions & 1 deletion src/test/fixtures/emoji.es6
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

import {emoji} from 'node-emoji';

const emojify = (emo, pre='') => (str) => `${pre}${emoji[emo]} ${str}`,
const emojify = (emo, pre='') => (str) => `${pre}${emoji[emo]} ${str}`,
errify = emojify('poop'),
h1 = emojify('pineapple'),
cool = emojify('cool'),
Expand Down
1 change: 1 addition & 0 deletions src/test/http-server.es6
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
// builtins
import http from 'http';
import {ok} from 'assert';
Expand Down

0 comments on commit 5894899

Please sign in to comment.