Skip to content

Commit 8380712

Browse files
authored
Convert all files to ES2015 (node-fetch#182)
Elements of this commit come from node-fetch#140 by @gwicke.
1 parent 993d4cd commit 8380712

File tree

8 files changed

+948
-966
lines changed

8 files changed

+948
-966
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "babel -d lib src",
88
"prepublish": "npm run build",
9-
"test": "mocha --compilers js:babel-register test/test.js",
9+
"test": "mocha --compilers js:babel-polyfill --compilers js:babel-register test/test.js",
1010
"report": "cross-env BABEL_ENV=test nyc --reporter lcov --reporter text mocha -R spec test/test.js",
1111
"coverage": "cross-env BABEL_ENV=test nyc --reporter lcovonly mocha -R spec test/test.js && cat ./coverage/lcov.info | coveralls"
1212
},
@@ -29,6 +29,7 @@
2929
"babel-cli": "^6.16.0",
3030
"babel-plugin-istanbul": "^2.0.1",
3131
"babel-plugin-transform-runtime": "^6.15.0",
32+
"babel-polyfill": "^6.16.0",
3233
"babel-preset-es2015": "^6.16.0",
3334
"babel-register": "^6.16.3",
3435
"bluebird": "^3.3.4",
@@ -44,6 +45,7 @@
4445
"resumer": "0.0.0"
4546
},
4647
"dependencies": {
48+
"babel-runtime": "^6.11.6",
4749
"encoding": "^0.1.11",
4850
"is-stream": "^1.0.1"
4951
},
@@ -67,6 +69,7 @@
6769
"src/*.js"
6870
],
6971
"require": [
72+
"babel-polyfill",
7073
"babel-register"
7174
],
7275
"sourceMap": false,

0 commit comments

Comments
 (0)