New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cc-globals

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-globals - npm Package Compare versions

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
};

10

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc