Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aeldar committed Jun 2, 2017
2 parents f343a5d + 226ec37 commit 12a2c2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Simple Object Transformer
[![NPM](https://nodei.co/npm/simple-object-transformer.png)](https://nodei.co/npm/simple-object-transformer/)


[![Greenkeeper badge](https://badges.greenkeeper.io/aeldar/simple-object-transformer.svg)](https://greenkeeper.io/)

Declare Rules to transform flat JS object into another flat JS object.
Useful for simple transformations between internal state objects
and server requests/responses.
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"build:commonjs": "babel src/index.js -o dist/index.js",
"build:umd": "browserify src/index.js -t babelify --outfile dist/index.umd.js --standalone SimpleObjectTransformer",
"build": "npm run build:commonjs && npm run build:umd",
"test": "NODE_ENV=test mocha --compilers js:babel-register src/**/*.spec.js",
"coverage:show": "NODE_ENV=test nyc npm test",
"coverage": "NODE_ENV=test nyc npm test && nyc report --reporter=text-lcov | coveralls",
"test": "cross-env NODE_ENV=test mocha --compilers js:babel-register src/**/*.spec.js",
"coverage:show": "cross-env NODE_ENV=test nyc npm test",
"coverage": "cross-env NODE_ENV=test nyc npm test && nyc report --reporter=text-lcov | coveralls",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"lint": "eslint src"
},
Expand All @@ -40,15 +40,16 @@
"babel-register": "^6.22.0",
"babelify": "^7.3.0",
"browserify": "^14.0.0",
"chai": "^3.5.0",
"chai": "^4.0.1",
"coveralls": "^2.11.16",
"cross-env": "5.0.0",
"eslint": "^3.15.0",
"eslint-config-airbnb-base": "^11.1.0",
"eslint-plugin-chai-friendly": "^0.2.0",
"eslint-plugin-chai-friendly": "^0.3.6",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-mocha": "^4.8.0",
"flow-bin": "^0.38.0",
"flow-bin": "^0.47.0",
"mocha": "^3.2.0",
"nyc": "^10.1.2"
"nyc": "^11.0.1"
}
}
2 changes: 1 addition & 1 deletion src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('transformerFactory()', () => {
// $FlowIgnore
it('creates a function', () => {
const tformer = transformerFactory(RULES);
expect(tformer).to.be.a.function;
expect(typeof tformer).to.be.equal('function');
});
it('created transformer converts source into target according to provided rules', () => {
const tformer = transformerFactory(RULES);
Expand Down

0 comments on commit 12a2c2c

Please sign in to comment.