Comparing version 1.0.0-alpha.1.0 to 1.0.0-alpha.3.0
{ | ||
"name": "binguru", | ||
"version": "1.0.0-alpha.1.0", | ||
"description": "BinGuru is a Javascript package with an API to 18+ established data binning / data classification methods, often used for visualizing data on choropleth maps. It also includes an implementation of a new, consensus binning method, 'Resiliency'.", | ||
"main": "lib/index.js", | ||
"version": "1.0.0-alpha.3.0", | ||
"description": "BinGuru is a Javascript package with an API to several established data binning / data classification methods, often used for visualizing data on choropleth maps. It also includes an implementation of a new, consensus binning method, 'Resiliency'.", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.esm.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublish": "tsc" | ||
"build": "rimraf dist && tsc && rollup -c rollup.config.js" | ||
}, | ||
@@ -18,3 +20,2 @@ "repository": { | ||
}, | ||
"bundledDependencies": true, | ||
"keywords": [ | ||
@@ -38,4 +39,7 @@ "data", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^25.0.2", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.25.3", | ||
"typescript": "^5.1.5" | ||
} | ||
} |
@@ -34,3 +34,4 @@ # BinGuru | ||
### Build and Publish | ||
- Build the package: `npm install` | ||
- Install dependencies: `npm install` | ||
- Build the package: `npm run build` | ||
- Publish to the registry: `npm publish` | ||
@@ -37,0 +38,0 @@ |
@@ -237,3 +237,3 @@ /*********************************************************** | ||
let clusters = ss.ckmeans(context.data, context.binCount); | ||
binBreaks = clusters.map(function (cluster) { | ||
binBreaks = clusters.map(function (cluster:number[]) { | ||
return cluster[cluster.length - 1]; // Last element of each cluster is the bin's upper limit; | ||
@@ -240,0 +240,0 @@ }); |
@@ -6,3 +6,4 @@ { | ||
"lib": ["es2019"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ | ||
"module": "commonjs", /* Specify what module code is generated. */ | ||
"module": "esnext", /* Specify what module code is generated. */ | ||
"moduleResolution": "node", | ||
"outDir": "./lib/", /* Specify an output folder for all emitted files. */ | ||
@@ -12,3 +13,4 @@ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
"skipLibCheck": true, /* Skip type checking all .d.ts files. */ | ||
"declaration": true, // generates declaration files | ||
}, | ||
@@ -15,0 +17,0 @@ "files": [ |
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 2 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
2
66
0
1
Yes
222198
4
10
4786