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

@01/as-virtual-code

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@01/as-virtual-code - npm Package Compare versions

Comparing version 0.0.1-alpha3 to 0.0.1-alpha4

16

assembly/virtual-code/functions/date-built-ins.ts

@@ -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,

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