@modusjs/units
Advanced tools
Comparing version 1.0.1 to 1.0.4
@@ -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
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
1307908
20
37670
22
+ Addedtypescript@^5.4.3
Updated@modusjs/examples@^1.0.4
Updated@modusjs/industry@^1.0.4