Skip to content

Commit 4d113a2

Browse files
author
Amir Tocker
committed
Fix Node version check. Fixes #217
1 parent 5b57b63 commit 4d113a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloudinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = Number(process.versions.node[0]) < 8 ? require('./lib-es5/cloudinary') : require('./lib/cloudinary');
1+
module.exports = Number(process.versions.node.split('.')[0]) < 8 ? require('./lib-es5/cloudinary') : require('./lib/cloudinary');

test/spechelper.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ expect = require('expect.js')
22
isFunction = require('lodash/isFunction')
33
cloneDeep = require('lodash/cloneDeep')
44

5-
libPath = exports.libPath = if Number(process.versions.node[0]) < 8 then 'lib-es5' else 'lib'
5+
libPath = exports.libPath = if Number(process.versions.node.split('.')[0]) < 8 then 'lib-es5' else 'lib'
66

77
cloudinary = require("../cloudinary")
88
{

0 commit comments

Comments
 (0)