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

@mathigon/euclid

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathigon/euclid - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

4

dist/euclid.cjs.js

@@ -352,4 +352,4 @@ 'use strict';

equals(other, tolerance) {
if (other.type !== 'line')
return false;
// Note: Checking line types breaks some applications in Mathigon textbooks.
// if (other.type !== 'line') return false;
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance);

@@ -356,0 +356,0 @@ }

@@ -348,4 +348,4 @@ import { mod, nearlyEquals, clamp, roundTo, square, lerp, Random, isBetween, subsets, quadratic } from '@mathigon/fermat';

equals(other, tolerance) {
if (other.type !== 'line')
return false;
// Note: Checking line types breaks some applications in Mathigon textbooks.
// if (other.type !== 'line') return false;
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance);

@@ -352,0 +352,0 @@ }

{
"name": "@mathigon/euclid",
"version": "0.6.5",
"version": "0.6.6",
"description": "Euclidean geometry classes and tools for JavaScript.",

@@ -30,16 +30,16 @@ "keywords": [

"dependencies": {
"@mathigon/core": "^0.5.2",
"@mathigon/fermat": "^0.6.0"
"@mathigon/core": "^0.6.0",
"@mathigon/fermat": "^0.6.1"
},
"devDependencies": {
"@rollup/plugin-typescript": "6.1.0",
"@rollup/plugin-typescript": "8.0.0",
"@types/tape": "4.13.0",
"rollup": "2.33.0",
"rollup": "2.34.0",
"tape": "5.0.1",
"ts-node": "9.0.0",
"tslib": "2.0.3",
"typescript": "4.0.5",
"@typescript-eslint/eslint-plugin": "4.6.0",
"@typescript-eslint/parser": "4.6.0",
"eslint": "7.12.1",
"typescript": "4.1.2",
"@typescript-eslint/eslint-plugin": "4.9.0",
"@typescript-eslint/parser": "4.9.0",
"eslint": "7.14.0",
"eslint-config-google": "0.14.0",

@@ -46,0 +46,0 @@ "eslint-plugin-import": "2.22.1"

@@ -137,3 +137,4 @@ // =============================================================================

equals(other: Line, tolerance?: number) {
if (other.type !== 'line') return false;
// Note: Checking line types breaks some applications in Mathigon textbooks.
// if (other.type !== 'line') return false;
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance);

@@ -140,0 +141,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