Comparing version 0.3.1 to 0.3.2
@@ -212,2 +212,6 @@ // Copyright 2012 The Obvious Corporation. | ||
function isObject(x) { | ||
return (typeof x) === OBJECT; | ||
} | ||
function isInt(x) { | ||
@@ -293,2 +297,8 @@ if (!isNumber(x) || (x !== Math.floor(x)) || !isFinite(x)) { | ||
function assertObject(x) { | ||
if (!isObject(x)) { | ||
failType(x, OBJECT); | ||
} | ||
} | ||
function assertString(x) { | ||
@@ -331,4 +341,5 @@ if (!isString(x)) { | ||
assertInt: assertInt, | ||
assertMap: assertMap, | ||
assertNumber: assertNumber, | ||
assertMap: assertMap, | ||
assertObject: assertObject, | ||
assertString: assertString, | ||
@@ -348,4 +359,5 @@ assertUint: assertUint, | ||
isFunction: isFunction, | ||
isMap: isMap, | ||
isNumber: isNumber, | ||
isMap: isMap, | ||
isObject: isObject, | ||
isString: isString, | ||
@@ -352,0 +364,0 @@ isUint: isUint, |
{ | ||
"name": "bidar", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"keywords": | ||
@@ -17,3 +17,7 @@ ["object", "serialization", "data", "graph"], | ||
} ], | ||
"author": "Dan Bornstein <danfuzz@milk.com>", | ||
"author": { | ||
"name": "Dan Bornstein", | ||
"email": "danfuzz@milk.com", | ||
"url": "http://www.milk.com/" | ||
}, | ||
"maintainers": [ { | ||
@@ -20,0 +24,0 @@ "name": "Dan Bornstein", |
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
93660
2228