Socket
Socket
Sign inDemoInstall

@modusjs/units

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modusjs/units - npm Package Compare versions

Comparing version 1.0.1 to 1.0.4

2

dist-browser/bundle.d.ts

@@ -5,3 +5,3 @@ // Generated by dts-bundle v0.7.3

// ../type-fest
// ../@lhncbc/ucum-lhc
// ../src/ucum-lhc.d.ts

@@ -8,0 +8,0 @@ declare module '@modusjs/units' {

@@ -0,7 +1,8 @@

/// <reference path="../src/ucum-lhc.d.ts" />
import type { NutrientResults } from '@oada/types/modus/v1/global.js';
import type { Merge, SetRequired } from 'type-fest';
import ucum from '@lhncbc/ucum-lhc';
declare type oadaNutrientResult = NutrientResults[0];
declare type NR = SetRequired<oadaNutrientResult, 'Element'>;
declare type UVU = {
type oadaNutrientResult = NutrientResults[0];
type NR = SetRequired<oadaNutrientResult, 'Element'>;
type UVU = {
UCUM_ValueUnit?: string | undefined;

@@ -11,3 +12,3 @@ CsvHeader?: string | undefined;

};
export declare type NutrientResult = Merge<NR, UVU>;
export type NutrientResult = Merge<NR, UVU>;
export declare function convertUnits(from: NutrientResult | NutrientResult[], to?: NutrientResult | NutrientResult[], strict?: boolean): NutrientResult[];

@@ -21,3 +22,3 @@ export declare function simpleConvert(inValue: number, inUnits: string, outUnits: string): number | ucum.ConversionResult;

export declare const molecularWeights: Record<string, any>;
export declare type Units = Record<string, string | undefined>;
export type Units = Record<string, string | undefined>;
export {};

@@ -140,3 +140,3 @@ // Functions to auto-detect types and convert a batch of files into an array of Modus JSON's,

'kg/ac': 'kg/[acr_us]',
'kg/ha': 'kg/har',
'kg/ha': 'kg/har', //see "hectare" @ https://ucum.org/ucum
'kg/ha/day': 'kh/har/d',

@@ -143,0 +143,0 @@ 'meq/100g': 'meq/(100.g)',

@@ -0,7 +1,8 @@

/// <reference path="../src/ucum-lhc.d.ts" />
import type { NutrientResults } from '@oada/types/modus/v1/global.js';
import type { Merge, SetRequired } from 'type-fest';
import ucum from '@lhncbc/ucum-lhc';
declare type oadaNutrientResult = NutrientResults[0];
declare type NR = SetRequired<oadaNutrientResult, 'Element'>;
declare type UVU = {
type oadaNutrientResult = NutrientResults[0];
type NR = SetRequired<oadaNutrientResult, 'Element'>;
type UVU = {
UCUM_ValueUnit?: string | undefined;

@@ -11,3 +12,3 @@ CsvHeader?: string | undefined;

};
export declare type NutrientResult = Merge<NR, UVU>;
export type NutrientResult = Merge<NR, UVU>;
export declare function convertUnits(from: NutrientResult | NutrientResult[], to?: NutrientResult | NutrientResult[], strict?: boolean): NutrientResult[];

@@ -21,3 +22,3 @@ export declare function simpleConvert(inValue: number, inUnits: string, outUnits: string): number | ucum.ConversionResult;

export declare const molecularWeights: Record<string, any>;
export declare type Units = Record<string, string | undefined>;
export type Units = Record<string, string | undefined>;
export {};

@@ -140,3 +140,3 @@ // Functions to auto-detect types and convert a batch of files into an array of Modus JSON's,

'kg/ac': 'kg/[acr_us]',
'kg/ha': 'kg/har',
'kg/ha': 'kg/har', //see "hectare" @ https://ucum.org/ucum
'kg/ha/day': 'kh/har/d',

@@ -143,0 +143,0 @@ 'meq/100g': 'meq/(100.g)',

{
"name": "@modusjs/units",
"packageManager": "yarn@3.2.1",
"version": "1.0.1",
"packageManager": "yarn@4.1.1",
"version": "1.0.4",
"description": "Universal library for interacting with Modus XML files",

@@ -58,9 +58,8 @@ "type": "module",

"rollup-plugin-typescript2": "^0.34.1",
"type-fest": "^3.3.0",
"typescript": "^4.7.4"
"type-fest": "^3.3.0"
},
"dependencies": {
"@lhncbc/ucum-lhc": "^4.1.6",
"@modusjs/examples": "^1.0.0",
"@modusjs/industry": "^1.0.1",
"@modusjs/examples": "^1.0.4",
"@modusjs/industry": "^1.0.4",
"@oada/types": "^3.5.3",

@@ -83,4 +82,5 @@ "@overleaf/o-error": "^3.4.0",

"save-file": "^2.3.1",
"tslib": "^2.4.0"
"tslib": "^2.4.0",
"typescript": "^5.4.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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