@01/as-virtual-code
Advanced tools
Comparing version 0.0.1-alpha3 to 0.0.1-alpha4
@@ -168,5 +168,5 @@ import { Date as WASI_Date } from "as-wasi"; | ||
} | ||
log(`setUTCMonth: ${month}`); | ||
// log(`setUTCMonth: ${month}`); | ||
d2.setUTCMonth(month); | ||
log(`getUTCMonth: ${d2.getUTCMonth()}`); | ||
// log(`getUTCMonth: ${d2.getUTCMonth()}`); | ||
d2.setUTCDate(0); | ||
@@ -280,9 +280,9 @@ const daysInMonth = d2.getUTCDate(); | ||
const divider: f64 = f64(isNegative ? anchor - anchor2 : anchor2 - anchor); | ||
log(`adjust: ${adjust}`); | ||
log(`anchor1: ${anchor}`); | ||
log(`anchor2: ${anchor2}`); | ||
log(`divider: ${divider}`); | ||
// log(`adjust: ${adjust}`); | ||
// log(`anchor1: ${anchor}`); | ||
// log(`anchor2: ${anchor2}`); | ||
// log(`divider: ${divider}`); | ||
const fraction: f64 = divider == 0 ? 0 : f64(bms - anchor) / divider; | ||
log(`wholeMonthDiff: ${wholeMonthDiff}`); | ||
log(`fraction: ${fraction}`); | ||
// log(`wholeMonthDiff: ${wholeMonthDiff}`); | ||
// log(`fraction: ${fraction}`); | ||
return f64(-wholeMonthDiff) + fraction || 0; | ||
@@ -289,0 +289,0 @@ } |
@@ -6,3 +6,3 @@ import { JSON } from "assemblyscript-json"; | ||
export declare function log(msg: string): void; | ||
// export declare function log(msg: string): void; | ||
@@ -9,0 +9,0 @@ export enum EvaluationStatus { |
{ | ||
"name": "@01/as-virtual-code", | ||
"description": "JSON Based Virtual Code Evaluator written in AssemblyScript", | ||
"version": "0.0.1-alpha3", | ||
"version": "0.0.1-alpha4", | ||
"types": "assembly/index.ts", | ||
@@ -6,0 +6,0 @@ "private": false, |
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
150603