Comparing version 0.1.2 to 0.2.0
@@ -48,3 +48,3 @@ 'use strict'; | ||
module.exports = { | ||
var archi = { | ||
calc: function (num) { | ||
@@ -54,1 +54,7 @@ return new ArchiNumber(num); | ||
}; | ||
if (process.browser) { | ||
global.archi = archi; | ||
} | ||
module.exports = archi; |
{ | ||
"name": "archi", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Easy math with decimals for Javascript", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "jshint . --reporter node_modules/jshint-stylish/stylish.js && tape tests/**/*.js" | ||
"test": "jshint index.js && tape tests/**/*.js", | ||
"build": "npm run test; browserify index.js -d -o dist/archi.js; uglify -s dist/archi.js -o dist/archi.min.js" | ||
}, | ||
@@ -25,4 +26,4 @@ "repository": { | ||
"devDependencies": { | ||
"jshint": "~2.6.0", | ||
"jshint-stylish": "~1.0.0", | ||
"browserify": "^14.1.0", | ||
"jshint": "^2.9.4", | ||
"tape": "^4.0.0" | ||
@@ -29,0 +30,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# +archi | ||
# +archi [![Greenkeeper badge](https://badges.greenkeeper.io/nescalante/archi.svg)](https://greenkeeper.io/) | ||
@@ -15,2 +15,8 @@ > Easy math with decimals for Javascript | ||
Using `bower` | ||
``` | ||
bower install archi | ||
``` | ||
## Native simple Javascript sum | ||
@@ -17,0 +23,0 @@ |
@@ -39,1 +39,7 @@ 'use strict'; | ||
}); | ||
test('should not be a global if node process', function (t) { | ||
t.equal(global.archi, undefined); | ||
t.end(); | ||
}); |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
22419
13
289
53
2
5
1