Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binguru

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binguru - npm Package Compare versions

Comparing version 1.0.0-alpha.1.0 to 1.0.0-alpha.3.0

dist/index.cjs

14

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc