littlewing 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __export = (target, all) => {
|
|
4
3
|
for (var name in all)
|
|
@@ -474,9 +473,9 @@ var GET_QUARTER = (timestamp) => {
|
|
|
474
473
|
const month = new Date(timestamp).getMonth();
|
|
475
474
|
return Math.floor(month / 3) + 1;
|
|
476
475
|
};
|
|
477
|
-
var DIFFERENCE_IN_SECONDS = (ts1, ts2) => Math.
|
|
478
|
-
var DIFFERENCE_IN_MINUTES = (ts1, ts2) => Math.
|
|
479
|
-
var DIFFERENCE_IN_HOURS = (ts1, ts2) => Math.
|
|
476
|
+
var DIFFERENCE_IN_SECONDS = (ts1, ts2) => Math.ceil(Math.abs(ts1 - ts2) / 1000);
|
|
477
|
+
var DIFFERENCE_IN_MINUTES = (ts1, ts2) => Math.ceil(Math.abs(ts1 - ts2) / (60 * 1000));
|
|
478
|
+
var DIFFERENCE_IN_HOURS = (ts1, ts2) => Math.ceil(Math.abs(ts1 - ts2) / (60 * 60 * 1000));
|
|
480
479
|
var DIFFERENCE_IN_DAYS = (ts1, ts2) => {
|
|
481
480
|
const day1 = START_OF_DAY(ts1);
|
|
482
481
|
const day2 = START_OF_DAY(ts2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "littlewing",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "A minimal, high-performance arithmetic expression language with lexer, parser, and executor. Optimized for browsers with zero dependencies and type-safe execution.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arithmetic",
|