Comparing version 1.0.3 to 1.0.4
@@ -5,4 +5,9 @@ function floor(scope, args){ | ||
function random(scope, args){ | ||
return Math.random(); | ||
} | ||
module.exports = { | ||
floor: floor | ||
floor: floor, | ||
random: random | ||
}; |
{ | ||
"name": "ample", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "ample.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -54,2 +54,6 @@ var test = require('grape'), | ||
}); | ||
test("random()", function (t) { | ||
t.plan(1); | ||
t.ok(!isNaN(ample.evaluate(t.name))); | ||
}); | ||
test("var a = 5; floor(a / 2)", function (t) { | ||
@@ -56,0 +60,0 @@ t.plan(1); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70261
2095
1