Comparing version 1.0.3 to 1.0.4
@@ -7,4 +7,4 @@ import al from './src/altitude.js'; | ||
console.log(al().data([[10, 20], [30, 40], [50, 60], [70, 80], [90, 100]]).data()) | ||
console.log(al().data([[10, 20], [30, 40], [50, 60], [70, 80], [90, 100]]).sort_by_start().data()) | ||
console.log(al().data([[10, 20], [30, 40], [50, 60], [70, 80], [90, 100]]).extent()) |
{ | ||
"name": "altitude", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Managing interval-based data", | ||
@@ -5,0 +5,0 @@ "main": "src/altitude.js", |
@@ -0,1 +1,5 @@ | ||
import isValid from './util/is-valid.js'; | ||
import identity from './util/identity.js'; | ||
export default function al() { | ||
@@ -33,2 +37,10 @@ | ||
table.isValid = () => { | ||
return isValid(data); | ||
} | ||
table.identity = () => { | ||
return identity(table); | ||
} | ||
table.sort_by_start = () => { | ||
@@ -38,3 +50,3 @@ data.sort((a, b) => { | ||
}); | ||
return data; | ||
return table; | ||
} | ||
@@ -46,3 +58,3 @@ | ||
}); | ||
return data; | ||
return table; | ||
} | ||
@@ -49,0 +61,0 @@ |
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
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
3884
8
99