rho-cc-node-style-callback
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"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" | ||
} | ||
} |
@@ -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 @@ |
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
5
8
31371