@utiliread/primitives 1.0.0-67 → 1.0.0-69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":";;;AAoHa,QAAA,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
1
+ {"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":";;;AAyHa,QAAA,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
@@ -1 +1 @@
1
- export type MeasureId = "none" | "duration" | "energy" | "humidity" | "mass" | "massFlow" | "power" | "reactiveEnergy" | "reactivePower" | "temperature" | "time" | "volume" | "volumeFlow";
1
+ export type MeasureId = "none" | "duration" | "energy" | "humidity" | "mass" | "massFlow" | "pressure" | "power" | "reactiveEnergy" | "reactivePower" | "temperature" | "time" | "volume" | "volumeFlow";
@@ -1,2 +1,2 @@
1
- export type UnitId = "unitless" | "milliWattHour" | "wattHour" | "kiloWattHour" | "megaWattHour" | "gigaWattHour" | "calorie" | "kiloCalorie" | "megaCalorie" | "joule" | "kiloJoule" | "megaJoule" | "gigaJoule" | "liter" | "cubicMeter" | "fluidOunce" | "gallon" | "gram" | "kiloGram" | "tonne" | "ounce" | "pound" | "ton" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "milliWatt" | "milliWatt2" | "watt" | "watt2" | "kiloWatt" | "kiloWatt2" | "megaWatt" | "megaWatt2" | "gigaWatt" | "gigaWatt2" | "joulesPerSecond" | "joulesPerSecond2" | "joulesPerMinute" | "joulesPerMinute2" | "joulesPerHour" | "joulesPerHour2" | "litersPerSecond" | "litersPerSecond2" | "litersPerMinute" | "litersPerMinute2" | "litersPerHour" | "litersPerHour2" | "cubicMetersPerSecond" | "cubicMetersPerSecond2" | "cubicMetersPerMinute" | "cubicMetersPerMinute2" | "cubicMetersPerHour" | "cubicMetersPerHour2" | "fluidOuncesPerSecond" | "fluidOuncesPerSecond2" | "fluidOuncesPerMinute" | "fluidOuncesPerMinute2" | "fluidOuncesPerHour" | "fluidOuncesPerHour2" | "gallonsPerSecond" | "gallonsPerSecond2" | "gallonsPerMinute" | "gallonsPerMinute2" | "gallonsPerHour" | "gallonsPerHour2" | "gramsPerSecond" | "gramsPerSecond2" | "gramsPerMinute" | "gramsPerMinute2" | "gramsPerHour" | "gramsPerHour2" | "kiloGramsPerSecond" | "kiloGramsPerSecond2" | "kiloGramsPerMinute" | "kiloGramsPerMinute2" | "kiloGramsPerHour" | "kiloGramsPerHour2" | "celcius" | "kelvin" | "fahrenheit" | "var" | "kiloVar" | "megaVar" | "varHour" | "kiloVarHour" | "megaVarHour" | "percentage" | "literCelcius" | "cubicMeterCelcius";
1
+ export type UnitId = "unitless" | "milliWattHour" | "wattHour" | "kiloWattHour" | "megaWattHour" | "gigaWattHour" | "calorie" | "kiloCalorie" | "megaCalorie" | "joule" | "kiloJoule" | "megaJoule" | "gigaJoule" | "liter" | "cubicMeter" | "fluidOunce" | "gallon" | "gram" | "kiloGram" | "tonne" | "ounce" | "pound" | "ton" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "milliWatt" | "milliWatt2" | "watt" | "watt2" | "kiloWatt" | "kiloWatt2" | "megaWatt" | "megaWatt2" | "gigaWatt" | "gigaWatt2" | "joulesPerSecond" | "joulesPerSecond2" | "joulesPerMinute" | "joulesPerMinute2" | "joulesPerHour" | "joulesPerHour2" | "litersPerSecond" | "litersPerSecond2" | "litersPerMinute" | "litersPerMinute2" | "litersPerHour" | "litersPerHour2" | "cubicMetersPerSecond" | "cubicMetersPerSecond2" | "cubicMetersPerMinute" | "cubicMetersPerMinute2" | "cubicMetersPerHour" | "cubicMetersPerHour2" | "fluidOuncesPerSecond" | "fluidOuncesPerSecond2" | "fluidOuncesPerMinute" | "fluidOuncesPerMinute2" | "fluidOuncesPerHour" | "fluidOuncesPerHour2" | "gallonsPerSecond" | "gallonsPerSecond2" | "gallonsPerMinute" | "gallonsPerMinute2" | "gallonsPerHour" | "gallonsPerHour2" | "gramsPerSecond" | "gramsPerSecond2" | "gramsPerMinute" | "gramsPerMinute2" | "gramsPerHour" | "gramsPerHour2" | "kiloGramsPerSecond" | "kiloGramsPerSecond2" | "kiloGramsPerMinute" | "kiloGramsPerMinute2" | "kiloGramsPerHour" | "kiloGramsPerHour2" | "celcius" | "kelvin" | "fahrenheit" | "bar" | "bar2" | "pascal" | "pascal2" | "var" | "kiloVar" | "megaVar" | "varHour" | "kiloVarHour" | "megaVarHour" | "percentage" | "literCelcius" | "cubicMeterCelcius";
2
2
  export declare const energyUnits: UnitId[];
@@ -1 +1 @@
1
- {"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":"AAoHA,MAAM,CAAC,MAAM,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
1
+ {"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":"AAyHA,MAAM,CAAC,MAAM,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utiliread/primitives",
3
- "version": "1.0.0-67",
3
+ "version": "1.0.0-69",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
package/src/measure-id.ts CHANGED
@@ -5,10 +5,11 @@ export type MeasureId =
5
5
  "humidity" |
6
6
  "mass" |
7
7
  "massFlow" |
8
+ "pressure" |
8
9
  "power" |
9
10
  "reactiveEnergy" |
10
11
  "reactivePower" |
11
12
  "temperature" |
12
13
  "time" |
13
14
  "volume" |
14
- "volumeFlow";
15
+ "volumeFlow";
package/src/unit-id.ts CHANGED
@@ -1,126 +1,131 @@
1
- export type UnitId =
2
- "unitless" |
3
-
4
- "milliWattHour" |
5
- "wattHour" |
6
- "kiloWattHour" |
7
- "megaWattHour" |
8
- "gigaWattHour" |
9
- "calorie" |
10
- "kiloCalorie" |
11
- "megaCalorie" |
12
-
13
- "joule" |
14
- "kiloJoule" |
15
- "megaJoule" |
16
- "gigaJoule" |
17
-
18
- "liter" |
19
- "cubicMeter" |
20
-
21
- "fluidOunce" |
22
- "gallon" |
23
-
24
- "gram" |
25
- "kiloGram" |
26
- "tonne" |
27
-
28
- "ounce" |
29
- "pound" |
30
- "ton" |
31
-
32
- "second" |
33
- "minute" |
34
- "hour" |
35
- "day" |
36
- "week" |
37
- "month" |
38
- "year" |
39
-
40
- "milliWatt" |
41
- "milliWatt2" |
42
- "watt" |
43
- "watt2" |
44
- "kiloWatt" |
45
- "kiloWatt2" |
46
- "megaWatt" |
47
- "megaWatt2" |
48
- "gigaWatt" |
49
- "gigaWatt2" |
50
-
51
- "joulesPerSecond" |
52
- "joulesPerSecond2" |
53
- "joulesPerMinute" |
54
- "joulesPerMinute2" |
55
- "joulesPerHour" |
56
- "joulesPerHour2" |
57
-
58
- "litersPerSecond" |
59
- "litersPerSecond2" |
60
- "litersPerMinute" |
61
- "litersPerMinute2" |
62
- "litersPerHour" |
63
- "litersPerHour2" |
64
-
65
- "cubicMetersPerSecond" |
66
- "cubicMetersPerSecond2" |
67
- "cubicMetersPerMinute" |
68
- "cubicMetersPerMinute2" |
69
- "cubicMetersPerHour" |
70
- "cubicMetersPerHour2" |
71
-
72
- "fluidOuncesPerSecond" |
73
- "fluidOuncesPerSecond2" |
74
- "fluidOuncesPerMinute" |
75
- "fluidOuncesPerMinute2" |
76
- "fluidOuncesPerHour" |
77
- "fluidOuncesPerHour2" |
78
-
79
- "gallonsPerSecond" |
80
- "gallonsPerSecond2" |
81
- "gallonsPerMinute" |
82
- "gallonsPerMinute2" |
83
- "gallonsPerHour" |
84
- "gallonsPerHour2" |
85
-
86
- "gramsPerSecond" |
87
- "gramsPerSecond2" |
88
- "gramsPerMinute" |
89
- "gramsPerMinute2" |
90
- "gramsPerHour" |
91
- "gramsPerHour2" |
92
-
93
- "kiloGramsPerSecond" |
94
- "kiloGramsPerSecond2" |
95
- "kiloGramsPerMinute" |
96
- "kiloGramsPerMinute2" |
97
- "kiloGramsPerHour" |
98
- "kiloGramsPerHour2" |
99
-
100
- "celcius" |
101
- "kelvin" |
102
- "fahrenheit" |
103
-
104
- "var" |
105
- "kiloVar" |
106
- "megaVar" |
107
-
108
- "varHour" |
109
- "kiloVarHour" |
110
- "megaVarHour" |
111
-
112
- "percentage" |
113
-
114
- "literCelcius" |
115
- "cubicMeterCelcius";
116
-
117
- export const energyUnits: UnitId[] = [
118
- "milliWattHour",
119
- "wattHour",
120
- "kiloWattHour",
121
- "megaWattHour",
122
- "gigaWattHour",
123
- "calorie",
124
- "kiloCalorie",
125
- "megaCalorie",
126
- ];
1
+ export type UnitId =
2
+ "unitless" |
3
+
4
+ "milliWattHour" |
5
+ "wattHour" |
6
+ "kiloWattHour" |
7
+ "megaWattHour" |
8
+ "gigaWattHour" |
9
+ "calorie" |
10
+ "kiloCalorie" |
11
+ "megaCalorie" |
12
+
13
+ "joule" |
14
+ "kiloJoule" |
15
+ "megaJoule" |
16
+ "gigaJoule" |
17
+
18
+ "liter" |
19
+ "cubicMeter" |
20
+
21
+ "fluidOunce" |
22
+ "gallon" |
23
+
24
+ "gram" |
25
+ "kiloGram" |
26
+ "tonne" |
27
+
28
+ "ounce" |
29
+ "pound" |
30
+ "ton" |
31
+
32
+ "second" |
33
+ "minute" |
34
+ "hour" |
35
+ "day" |
36
+ "week" |
37
+ "month" |
38
+ "year" |
39
+
40
+ "milliWatt" |
41
+ "milliWatt2" |
42
+ "watt" |
43
+ "watt2" |
44
+ "kiloWatt" |
45
+ "kiloWatt2" |
46
+ "megaWatt" |
47
+ "megaWatt2" |
48
+ "gigaWatt" |
49
+ "gigaWatt2" |
50
+
51
+ "joulesPerSecond" |
52
+ "joulesPerSecond2" |
53
+ "joulesPerMinute" |
54
+ "joulesPerMinute2" |
55
+ "joulesPerHour" |
56
+ "joulesPerHour2" |
57
+
58
+ "litersPerSecond" |
59
+ "litersPerSecond2" |
60
+ "litersPerMinute" |
61
+ "litersPerMinute2" |
62
+ "litersPerHour" |
63
+ "litersPerHour2" |
64
+
65
+ "cubicMetersPerSecond" |
66
+ "cubicMetersPerSecond2" |
67
+ "cubicMetersPerMinute" |
68
+ "cubicMetersPerMinute2" |
69
+ "cubicMetersPerHour" |
70
+ "cubicMetersPerHour2" |
71
+
72
+ "fluidOuncesPerSecond" |
73
+ "fluidOuncesPerSecond2" |
74
+ "fluidOuncesPerMinute" |
75
+ "fluidOuncesPerMinute2" |
76
+ "fluidOuncesPerHour" |
77
+ "fluidOuncesPerHour2" |
78
+
79
+ "gallonsPerSecond" |
80
+ "gallonsPerSecond2" |
81
+ "gallonsPerMinute" |
82
+ "gallonsPerMinute2" |
83
+ "gallonsPerHour" |
84
+ "gallonsPerHour2" |
85
+
86
+ "gramsPerSecond" |
87
+ "gramsPerSecond2" |
88
+ "gramsPerMinute" |
89
+ "gramsPerMinute2" |
90
+ "gramsPerHour" |
91
+ "gramsPerHour2" |
92
+
93
+ "kiloGramsPerSecond" |
94
+ "kiloGramsPerSecond2" |
95
+ "kiloGramsPerMinute" |
96
+ "kiloGramsPerMinute2" |
97
+ "kiloGramsPerHour" |
98
+ "kiloGramsPerHour2" |
99
+
100
+ "celcius" |
101
+ "kelvin" |
102
+ "fahrenheit" |
103
+
104
+ "bar" |
105
+ "bar2" |
106
+ "pascal" |
107
+ "pascal2" |
108
+
109
+ "var" |
110
+ "kiloVar" |
111
+ "megaVar" |
112
+
113
+ "varHour" |
114
+ "kiloVarHour" |
115
+ "megaVarHour" |
116
+
117
+ "percentage" |
118
+
119
+ "literCelcius" |
120
+ "cubicMeterCelcius";
121
+
122
+ export const energyUnits: UnitId[] = [
123
+ "milliWattHour",
124
+ "wattHour",
125
+ "kiloWattHour",
126
+ "megaWattHour",
127
+ "gigaWattHour",
128
+ "calorie",
129
+ "kiloCalorie",
130
+ "megaCalorie",
131
+ ];