Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rho-cc-node-style-callback

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rho-cc-node-style-callback - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

.eslintrc.yml

15

package.json
{
"name": "rho-cc-node-style-callback",
"description": "Create rho-contracts for Node-style callbacks",
"version": "1.0.2",
"version": "2.0.0",
"license": "MPL-2.0",
"main": "src/node-style-callback.js",
"scripts": {
"jscs": "jscs --config node_modules/bodylabs-javascript-style/jscs/jscsrc-shared src --extract '*.js'",
"eslint": "eslint --config node_modules/bodylabs-javascript-style/eslint/eslintrc-shared.yml 'src/**/*.js'",
"lint": "npm run jscs && npm run eslint",
"lint": "eslint src",
"unittest": "mocha src",

@@ -22,12 +20,11 @@ "test": "npm run unittest && npm run lint"

"peerDependencies": {
"rho-contracts": ">=1.2.0"
"rho-contracts-fork": ">=1.2.0"
},
"devDependencies": {
"bodylabs-javascript-style": "^4.0.0",
"eslint": "^2.0.0",
"jscs": "^2.1.1",
"eslint": "^2.13.0",
"eslint-plugin-bodylabs": "^7.1.0",
"mocha": "~2.0.1",
"rho-contracts": "git+https://github.com/bodylabs/rho-contracts.js.git#1.2.2",
"rho-contracts-fork": "^1.3.0",
"should": "~8.3.1"
}
}

8

README.md

@@ -12,6 +12,6 @@ rho-cc-node-style-callback

You must use the Body Labs fork of rho-contracts:
You must use the Body Labs package, `rho-contracts-fork`:
```js
"dependencies": {
"rho-contracts": "git+https://github.com/bodylabs/rho-contracts.js.git#1.1.0"
"rho-contracts-fork": "^1.3.0"
}

@@ -40,3 +40,3 @@ ```

var c = require('rho-contracts');
var c = require('rho-contracts-fork');

@@ -54,3 +54,3 @@ var cc = {};

```sh
npm install rho-contracts rho-cc-node-style-callback
npm install rho-contracts-fork rho-cc-node-style-callback
```

@@ -57,0 +57,0 @@

@@ -1,5 +0,5 @@

// jscs:disable disallowNamedUnassignedFunctions
/* eslint-disable func-names */
var c = require('rho-contracts'),
errors = require('rho-contracts/src/contract-errors'),
var c = require('rho-contracts-fork'),
errors = require('rho-contracts-fork/src/contract-errors'),
util = require('util'),

@@ -20,3 +20,3 @@ _ = require('underscore');

var result =
function callback(/*...*/) {
function callback(/* ... */) {
var result = c.fun().extraArgs(c.any);

@@ -43,3 +43,3 @@

return oldWrapper.call(self, function (/*...*/) {
return oldWrapper.call(self, function (/* ... */) {
var err = arguments[0];

@@ -46,0 +46,0 @@

@@ -1,2 +0,2 @@

var c = require('rho-contracts'),
var c = require('rho-contracts-fork'),
should = require('should');

@@ -3,0 +3,0 @@

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