Skip to content

Commit

Permalink
move from type() to typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
khrome committed Apr 18, 2018
1 parent a06ecb1 commit cc70599
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bit-mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OwnershipMask.prototype.modify = function(clause){
var subjects = [];
var ch;
var ob = this;
if(type(clause) == 'number') this.value = clause;
if(typeof clause == 'number') this.value = clause;
for(var lcv=0; lcv < clause.length; lcv++){
ch = clause.charAt(lcv);
if(operator){
Expand Down Expand Up @@ -94,4 +94,4 @@ OwnershipMask.prototype.setBit = BitMask.prototype.setBit;
OwnershipMask.prototype.getBit = BitMask.prototype.getBit;
OwnershipMask.prototype.bits = BitMask.prototype.bits;
module.exports = BitMask;
module.exports.OwnershipMask = OwnershipMask;
module.exports.OwnershipMask = OwnershipMask;
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bit-mask",
"homepage": "https://github.com/khrome/bit-mask",
"version": "1.0.1",
"version": "1.0.2",
"main": "bit-mask.js",
"description": "A utility for manipulating bit masks",
"keywords": [
Expand All @@ -20,15 +20,15 @@
"url": "[email protected]:khrome/bit-mask.git"
},
"dependencies": {
"array-events": "0.2.0"
"array-events": "^0.2.0"
},
"devDependencies": {
"mocha": "*",
"request": "*",
"should": "*"
},
"optionalDependencies": {
},
"optionalDependencies": {},
"engines": {
"node": "*"
}
}
}

0 comments on commit cc70599

Please sign in to comment.