Skip to content

Commit

Permalink
fix(init):tests passing for all node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag committed Nov 10, 2017
2 parents 8a5b7e3 + 0d5e53f commit 925f4ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.org/kmontag/protobufjs-loader.svg?branch=master)](https://travis-ci.org/kmontag/protobufjs-loader)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# protobufjs-loader
Webpack loader to translate
[protobuf](https://github.com/google/protobuf/) definitions to
Expand Down Expand Up @@ -63,4 +66,4 @@ module.exports = {
*/
const Root require('my/protobuf.proto');

```
```
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@
"chalk": "^1.1.3",
"escodegen": "^1.9.0",
"espree": "^3.5.1",
"estraverse": "^4.2.0",
"glob": "^7.1.2",
"inspect-loader": "^1.0.0",
"jsdoc": "^3.5.5",
"loader-utils": "^1.1.0",
"memory-fs": "^0.4.1",
"minimist": "^1.2.0",
"mocha": "^4.0.1",
"schema-utils": "^0.4.2",
"semantic-release": "^8.2.0",
"semver": "^5.4.1",
"tmp": "0.0.31",
"uglify-js": "^2.8.29",
"uglify-loader": "^2.0.0",
"webpack": "^3.8.1",
"semantic-release": "^8.2.0"
"webpack": "^3.8.1"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion test/helpers/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const webpack = require('webpack');

const fixturePath = path.resolve(__dirname, '..', 'fixtures');

module.exports = function (fixture, loaderOpts, webpackOpts = {}) {
module.exports = function (fixture, loaderOpts, webpackOpts) {
webpackOpts = (webpackOpts || {});
return new Promise(function(resolve, reject) {
let inspect;
const compiler = webpack(Object.assign({
Expand Down

0 comments on commit 925f4ab

Please sign in to comment.