Comparing version 2.0.0 to 4.0.0
25
index.js
@@ -1,5 +0,26 @@ | ||
var R = require('ramda'); | ||
var R = require('ramda'); | ||
var fetch = require('isomorphic-fetch'); | ||
var bb = require('bluebird'); | ||
if (typeof global !== 'undefined') global.R = R; | ||
//make i-promise use bluebird | ||
require('i-promise/config').use(bb); | ||
//patch globals and context | ||
if (typeof global !== 'undefined') { | ||
global.R = R; | ||
global.Promie = bb; | ||
global.fetch = fetch; | ||
} | ||
this.R = R; | ||
this.Promie = bb; | ||
this.fetch = fetch; | ||
//export the modules this uses | ||
module.exports = { | ||
R: R, | ||
fetch: fetch, | ||
Promise: bb | ||
}; |
{ | ||
"name": "cc-globals", | ||
"version": "2.0.0", | ||
"version": "4.0.0", | ||
"description": "Setup global variables for ramda and fetch", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "exit 0", | ||
"publish-major": "npm run build && npm version major && npm publish && git push origin master && git push --tags", | ||
"publish-minor": "npm run build && npm version minor && npm publish && git push origin master && git push --tags", | ||
"publish-patch": "npm run build && npm version patch && npm publish && git push origin master && git push --tags" | ||
}, | ||
@@ -25,2 +29,4 @@ "repository": { | ||
"dependencies": { | ||
"bluebird": "^2.9.24", | ||
"i-promise": "^1.1.0", | ||
"isomorphic-fetch": "^2.0.0", | ||
@@ -27,0 +33,0 @@ "ramda": "^0.11.0" |
# cc-globals | ||
Setup global variables for next generation projects (ramda and fetch) | ||
Setup global variables for next generation projects. | ||
* `R` - Ramda | ||
* `Promise` - bluebird (also sets `i-promise`) | ||
* `fetch` - isomorphic-fetch |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3018
20
8
4
4
+ Addedbluebird@^2.9.24
+ Addedi-promise@^1.1.0
+ Addedbluebird@2.11.0(transitive)
+ Addedi-promise@1.1.0(transitive)