New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

greenmotion-wasm

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greenmotion-wasm - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

28

greenmotion_wasm_bg.js

@@ -34,1 +34,29 @@ let wasm;

/**
* @param {number} gallons
* @returns {number}
*/
export function calculateEmissions(gallons) {
const ret = wasm.calculateEmissions(gallons);
return ret;
}
/**
* @param {number} vehicle_distance
* @returns {number}
*/
export function calculateCarJoules(vehicle_distance) {
const ret = wasm.calculateCarJoules(vehicle_distance);
return ret;
}
/**
* @param {number} car_joules
* @param {number} pedestrian_calories
* @returns {number}
*/
export function calculateWastedJoules(car_joules, pedestrian_calories) {
const ret = wasm.calculateWastedJoules(car_joules, pedestrian_calories);
return ret;
}

@@ -19,1 +19,17 @@ /* tslint:disable */

export function secondsToMinutes(seconds: number): number;
/**
* @param {number} gallons
* @returns {number}
*/
export function calculateEmissions(gallons: number): number;
/**
* @param {number} vehicle_distance
* @returns {number}
*/
export function calculateCarJoules(vehicle_distance: number): number;
/**
* @param {number} car_joules
* @param {number} pedestrian_calories
* @returns {number}
*/
export function calculateWastedJoules(car_joules: number, pedestrian_calories: number): number;

2

package.json
{
"name": "greenmotion-wasm",
"version": "0.3.0",
"version": "0.4.0",
"files": [

@@ -5,0 +5,0 @@ "greenmotion_wasm_bg.wasm",

Sorry, the diff of this file is not supported yet

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