Comparing version 0.3.1 to 0.3.2
@@ -10,12 +10,13 @@ 'use strict'; | ||
exports.senDeleteRequest = senDeleteRequest; | ||
/** | ||
* Created by Chyroc on 17/1/10. | ||
*/ | ||
var fetch = require('isomorphic-fetch'); | ||
var _isomorphicFetch = require('isomorphic-fetch'); | ||
var _isomorphicFetch2 = _interopRequireDefault(_isomorphicFetch); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function sendRequest(method, url) { | ||
var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
return fetch(url, { method: method, body: body }).then(function (res) { | ||
return (0, _isomorphicFetch2.default)(url, { method: method, body: body }).then(function (res) { | ||
return res.json(); | ||
@@ -25,3 +26,5 @@ }).catch(function (err) { | ||
}); | ||
} | ||
} /** | ||
* Created by Chyroc on 17/1/10. | ||
*/ | ||
@@ -28,0 +31,0 @@ function sendGetRequest(url) { |
{ | ||
"name": "hasoop", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "dist/index.js", | ||
@@ -43,18 +43,18 @@ "license": "MIT", | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.21.0", | ||
"babel-plugin-transform-export-extensions": "^6.8.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.20.2", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-preset-latest": "^6.16.0", | ||
"babel-cli": "^6.22.2", | ||
"babel-core": "^6.22.1", | ||
"babel-plugin-transform-export-extensions": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.22.0", | ||
"babel-plugin-transform-runtime": "^6.22.0", | ||
"babel-preset-latest": "^6.22.0", | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.11.15", | ||
"coveralls": "^2.11.16", | ||
"faker": "^3.1.0", | ||
"husky": "^0.12.0", | ||
"husky": "^0.13.1", | ||
"mocha": "^3.2.0", | ||
"nyc": "^10.0.0", | ||
"nyc": "^10.1.2", | ||
"rimraf": "^2.5.4", | ||
"snazzy": "^5.0.0", | ||
"snazzy": "^6.0.0", | ||
"standard": "^8.6.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
36933
918
0