Skip to content

Commit

Permalink
npm install/require support
Browse files Browse the repository at this point in the history
  • Loading branch information
agea committed Dec 17, 2013
1 parent ec9db23 commit 2492329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/cmis.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

//check if we are running on node
var isNode = typeof module !== 'undefined' && module.exports;

if(isNode){
module.exports = lib;
}
/**
* @return {CmisSession}
*
Expand Down
2 changes: 1 addition & 1 deletion test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (isNode){
var Stream = require('stream');

var assert = require('assert'),
cmis = require('../lib/cmis').cmis;
cmis = require('../lib/cmis');

if (process.argv.indexOf('--url')!=-1) {
url = process.argv[process.argv.indexOf('--url')+1];
Expand Down

0 comments on commit 2492329

Please sign in to comment.