New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flatten-js/core

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flatten-js/core - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

4

package.json
{
"name": "@flatten-js/core",
"version": "1.3.4",
"version": "1.3.5",
"description": "Javascript library for 2d geometry",

@@ -73,4 +73,4 @@ "main": "dist/main.cjs.js",

"dependencies": {
"@flatten-js/interval-tree": "^1.0.15"
"@flatten-js/interval-tree": "^1.0.19"
}
}

@@ -477,2 +477,3 @@ /**

splitToIslands() {
if (this.isEmpty()) return []; // return empty array if polygon is empty
let polygons = this.toArray(); // split into array of one-loop polygons

@@ -479,0 +480,0 @@ /* Sort polygons by area in descending order */

@@ -789,2 +789,8 @@ /**

});
it('splitToIslands should not fail if the polygon is empty', function() {
const polygon = new Polygon();
const islandsArray = polygon.splitToIslands();
expect(islandsArray.length).to.equal(0);
});
describe('#Flatten.Polygon.cut(multiline) methods', function() {

@@ -791,0 +797,0 @@ it('Can cut polygon with line. Case of non-intersection', function() {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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