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

@d3fc/d3fc-sample

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-sample - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 5.0.1 (2020-07-14)
**Note:** Version bump only for package @d3fc/d3fc-sample
# 5.0.0 (2020-04-16)

@@ -8,0 +16,0 @@

7

package.json
{
"name": "@d3fc/d3fc-sample",
"version": "5.0.0",
"version": "5.0.1",
"description": "A data subsampler that chooses representative data points using a largest triangle or mode-median approach.",

@@ -21,7 +21,6 @@ "license": "MIT",

"bundle": "npx rollup -c ../../scripts/rollup.config.js",
"test": " npx jasmine --config=../../scripts/jasmine.json",
"start": "npm start --prefix ../d3fc -- --configPkg=d3fc-sample"
},
"dependencies": {
"@d3fc/d3fc-rebind": "^6.0.0"
"@d3fc/d3fc-rebind": "^6.0.1"
},

@@ -34,3 +33,3 @@ "peerDependencies": {

},
"gitHead": "42460bbd9e769aa24b07ae8e6dc7037c63d3bea8"
"gitHead": "3c6890b82dbb430bafd52420c0dd506861f16f5d"
}

@@ -25,3 +25,3 @@ import bucket from '../src/bucket';

const bucketedData = dataBucketer.bucketSize(3)(data);
expect(bucketedData.length).toEqual(6);
expect(bucketedData).toHaveLength(6);
expect(bucketedData[0]).toEqual([0, 1, 6]);

@@ -28,0 +28,0 @@ expect(bucketedData[1]).toEqual([4, 8, 4]);

@@ -8,8 +8,8 @@ import jsdom from 'jsdom';

virtualConsole: jsdom.createVirtualConsole().sendTo({
error: fail
error: done
}),
scripts: [
require.resolve('d3/dist/d3.js'),
'./node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js',
'./build/d3fc-sample.js'
require.resolve('../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'),
require.resolve('../build/d3fc-sample.js')
],

@@ -16,0 +16,0 @@ done: (_, win) => {

@@ -44,3 +44,3 @@ import largestTriangleOneBucket from '../src/largestTriangleOneBucket';

var sampledData = dataGenerator(data);
expect(sampledData.length).toEqual(7);
expect(sampledData).toHaveLength(7);
});

@@ -47,0 +47,0 @@

@@ -44,3 +44,3 @@ import largestTriangleThreeBucket from '../src/largestTriangleThreeBucket';

var sampledData = dataGenerator(data);
expect(sampledData.length).toEqual(7);
expect(sampledData).toHaveLength(7);
});

@@ -47,0 +47,0 @@

@@ -23,3 +23,3 @@ import modeMedian from '../src/modeMedian';

var subsampledData = bucketGenerator.bucketSize(5)(data);
expect(subsampledData.length).toEqual(5);
expect(subsampledData).toHaveLength(5);
});

@@ -26,0 +26,0 @@

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