@camstack/types 1.2.562 → 1.2.564
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.
- package/CHANGELOG.md +27 -0
- package/dist/addon.js +3 -2
- package/dist/addon.mjs +3 -2
- package/dist/capabilities/cluster-update.cap.d.ts +16 -0
- package/dist/capabilities/device-manager.cap.d.ts +18 -17
- package/dist/capabilities/device-provider.cap.d.ts +7 -7
- package/dist/capabilities/device-search.d.ts +8 -6
- package/dist/capabilities/energy-system.cap.d.ts +10 -0
- package/dist/capabilities/media-player.cap.d.ts +3 -0
- package/dist/capabilities/notification-rules.cap.d.ts +4 -0
- package/dist/capabilities/remote.cap.d.ts +1 -0
- package/dist/capabilities/smtp-provider.cap.d.ts +2 -0
- package/dist/capabilities/switch.cap.d.ts +5 -0
- package/dist/client.js +48 -1
- package/dist/client.mjs +48 -1
- package/dist/{convert-BmtM6K-5.js → convert-BI8iTXn6.js} +15 -0
- package/dist/{convert-BAzH15HU.mjs → convert-BwMfbk5b.mjs} +15 -0
- package/dist/device/cap-vocabulary/index.d.ts +1 -1
- package/dist/device/cap-vocabulary/resolve.d.ts +6 -0
- package/dist/device/hero/build-hero-model.d.ts +3 -0
- package/dist/device/hero/hero-fragment.d.ts +3 -0
- package/dist/device/hero/hero-row.d.ts +1 -1
- package/dist/device/hero/media-player-view.d.ts +2 -1
- package/dist/device/source-info.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +434 -53
- package/dist/index.mjs +427 -54
- package/dist/notification/degrade-engine.d.ts +5 -0
- package/dist/notification/email-image-bytes.d.ts +26 -0
- package/dist/notification/email-mime.d.ts +52 -0
- package/dist/{sleep-Cb2px0Nb.js → sleep-B1IED7ED.js} +61 -32
- package/dist/{sleep-Cykc2bzi.mjs → sleep-D7hCDd7y.mjs} +61 -32
- package/dist/units/quantity.d.ts +1 -1
- package/dist/units/unit-table.d.ts +1 -1
- package/dist/units-lean.js +1 -1
- package/dist/units-lean.mjs +1 -1
- package/package.json +1 -1
|
@@ -48,6 +48,11 @@ export interface PreparedNotification {
|
|
|
48
48
|
readonly sound: string | null;
|
|
49
49
|
readonly ttl: number | null;
|
|
50
50
|
readonly tag: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The camera this notification is about, when it names one. Copied through so
|
|
53
|
+
* a sender that drops an image can tag the log with it.
|
|
54
|
+
*/
|
|
55
|
+
readonly deviceId?: number;
|
|
51
56
|
/**
|
|
52
57
|
* The notifier-declared delivery parameters the rule set for this target
|
|
53
58
|
* (D938), already validated by the dispatcher. An adapter reads the keys it
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read email images off `peerBytes` tickets and hand the bytes to {@link buildRawMime}.
|
|
3
|
+
*
|
|
4
|
+
* One body, one take (D613). A ticket that cannot be read is reported and left
|
|
5
|
+
* out — the mail still goes, without that image.
|
|
6
|
+
*/
|
|
7
|
+
import type { PeerBytesOpenResult, PeerBytesTicket } from '../interfaces/addon-peer-bytes.js';
|
|
8
|
+
import { type EmailImagePart, type EmailMimeImage } from './email-mime.js';
|
|
9
|
+
export type OpenEmailImage = (ticket: PeerBytesTicket) => Promise<PeerBytesOpenResult>;
|
|
10
|
+
export type EmailImageDropped = (reason: string, deviceId: number | undefined) => void;
|
|
11
|
+
/** What a sender knows before the tickets are opened. */
|
|
12
|
+
export interface OutboundEmail {
|
|
13
|
+
readonly from: string;
|
|
14
|
+
readonly to: string | readonly string[];
|
|
15
|
+
readonly cc?: readonly string[];
|
|
16
|
+
readonly bcc?: readonly string[];
|
|
17
|
+
readonly replyTo?: string;
|
|
18
|
+
readonly subject: string;
|
|
19
|
+
readonly text: string;
|
|
20
|
+
readonly html?: string;
|
|
21
|
+
readonly images?: readonly EmailImagePart[];
|
|
22
|
+
}
|
|
23
|
+
/** The images that fit. Each failure is handed to `onDropped` and skipped. */
|
|
24
|
+
export declare function materializeEmailImages(images: readonly EmailImagePart[] | undefined, open: OpenEmailImage, onDropped: EmailImageDropped): Promise<readonly EmailMimeImage[]>;
|
|
25
|
+
/** Tickets in, one MIME body out. The same call for Gmail and SMTP. */
|
|
26
|
+
export declare function assembleEmailMime(input: OutboundEmail, open: OpenEmailImage, onDropped: EmailImageDropped): Promise<string>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One RFC 5322 body for every mail sender.
|
|
3
|
+
*
|
|
4
|
+
* Gmail and the SMTP relay both call this. An HTML message with an inline image is
|
|
5
|
+
* `multipart/related` (the HTML sits in `multipart/alternative` and references
|
|
6
|
+
* `cid:`). A text message carries the same bytes as a normal attachment
|
|
7
|
+
* (`multipart/mixed`). The image bytes are already in hand — a sender reads them
|
|
8
|
+
* off a `peerBytes` ticket before calling in ({@link assembleEmailMime}).
|
|
9
|
+
*/
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
import { type PeerBytesTicket } from '../interfaces/addon-peer-bytes.js';
|
|
12
|
+
/** How many images one email will carry. */
|
|
13
|
+
export declare const EMAIL_IMAGE_MAX_COUNT: number;
|
|
14
|
+
/** Total image bytes one email will carry. */
|
|
15
|
+
export declare const EMAIL_IMAGE_MAX_TOTAL_BYTES: number;
|
|
16
|
+
/**
|
|
17
|
+
* Where an HTML body leaves room for the inline images: under the text, above
|
|
18
|
+
* the click link. The builder replaces it; a message with no image loses it.
|
|
19
|
+
*/
|
|
20
|
+
export declare const EMAIL_IMAGE_SLOT: string;
|
|
21
|
+
/** An image a sender still has to read (`peerBytes` ticket, not the bytes). */
|
|
22
|
+
export interface EmailImagePart {
|
|
23
|
+
readonly ticket: PeerBytesTicket;
|
|
24
|
+
readonly mime: string;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly contentId: string;
|
|
27
|
+
readonly placement: 'inline' | 'attachment';
|
|
28
|
+
readonly deviceId?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const EmailImagePartSchema: z.ZodType<EmailImagePart>;
|
|
31
|
+
/** An image whose bytes are already in hand, ready for the MIME body. */
|
|
32
|
+
export interface EmailMimeImage {
|
|
33
|
+
readonly bytes: Uint8Array;
|
|
34
|
+
readonly mime: string;
|
|
35
|
+
readonly name: string;
|
|
36
|
+
readonly contentId: string;
|
|
37
|
+
readonly placement: 'inline' | 'attachment';
|
|
38
|
+
}
|
|
39
|
+
/** The headers and bodies `buildRawMime` renders. `images` are bytes, not tickets. */
|
|
40
|
+
export interface RawMimeInput {
|
|
41
|
+
readonly from: string;
|
|
42
|
+
readonly to: string | readonly string[];
|
|
43
|
+
readonly cc?: readonly string[];
|
|
44
|
+
readonly bcc?: readonly string[];
|
|
45
|
+
readonly replyTo?: string;
|
|
46
|
+
readonly subject: string;
|
|
47
|
+
readonly text: string;
|
|
48
|
+
readonly html?: string;
|
|
49
|
+
readonly images?: readonly EmailMimeImage[];
|
|
50
|
+
}
|
|
51
|
+
/** Render one mail. No I/O: the caller has already decided which images survived. */
|
|
52
|
+
export declare function buildRawMime(input: RawMimeInput): string;
|
|
@@ -6850,6 +6850,8 @@ var READING_QUANTITIES = [
|
|
|
6850
6850
|
"information",
|
|
6851
6851
|
"sound-level",
|
|
6852
6852
|
"signal-level",
|
|
6853
|
+
"signal-ratio",
|
|
6854
|
+
"frequency",
|
|
6853
6855
|
"colour-temperature",
|
|
6854
6856
|
"angle",
|
|
6855
6857
|
"bitrate",
|
|
@@ -6896,6 +6898,8 @@ var QUANTITY_BASE = {
|
|
|
6896
6898
|
information: "B",
|
|
6897
6899
|
"sound-level": "dBFS",
|
|
6898
6900
|
"signal-level": "dBm",
|
|
6901
|
+
"signal-ratio": "dB",
|
|
6902
|
+
frequency: "Hz",
|
|
6899
6903
|
"colour-temperature": "mired",
|
|
6900
6904
|
angle: "°",
|
|
6901
6905
|
bitrate: "kbps",
|
|
@@ -7948,41 +7952,57 @@ var CAP_VOCABULARY = {
|
|
|
7948
7952
|
en: "Switch",
|
|
7949
7953
|
it: "Interruttore"
|
|
7950
7954
|
},
|
|
7951
|
-
actions: [
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
id: "switch.off",
|
|
7970
|
-
method: "setState",
|
|
7971
|
-
label: {
|
|
7972
|
-
en: "Turn off",
|
|
7973
|
-
it: "Spegni"
|
|
7955
|
+
actions: [
|
|
7956
|
+
{
|
|
7957
|
+
id: "switch.on",
|
|
7958
|
+
method: "setState",
|
|
7959
|
+
label: {
|
|
7960
|
+
en: "Turn on",
|
|
7961
|
+
it: "Accendi"
|
|
7962
|
+
},
|
|
7963
|
+
phrase: {
|
|
7964
|
+
en: "Turn on {device}",
|
|
7965
|
+
it: "Accendi {device}"
|
|
7966
|
+
},
|
|
7967
|
+
icon: "power",
|
|
7968
|
+
args: { on: true },
|
|
7969
|
+
effect: {
|
|
7970
|
+
field: "on",
|
|
7971
|
+
value: true
|
|
7972
|
+
}
|
|
7974
7973
|
},
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7974
|
+
{
|
|
7975
|
+
id: "switch.off",
|
|
7976
|
+
method: "setState",
|
|
7977
|
+
label: {
|
|
7978
|
+
en: "Turn off",
|
|
7979
|
+
it: "Spegni"
|
|
7980
|
+
},
|
|
7981
|
+
phrase: {
|
|
7982
|
+
en: "Turn off {device}",
|
|
7983
|
+
it: "Spegni {device}"
|
|
7984
|
+
},
|
|
7985
|
+
icon: "power-off",
|
|
7986
|
+
args: { on: false },
|
|
7987
|
+
effect: {
|
|
7988
|
+
field: "on",
|
|
7989
|
+
value: false
|
|
7990
|
+
}
|
|
7978
7991
|
},
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7992
|
+
{
|
|
7993
|
+
id: "switch.toggle",
|
|
7994
|
+
method: "toggle",
|
|
7995
|
+
label: {
|
|
7996
|
+
en: "Toggle",
|
|
7997
|
+
it: "Commuta"
|
|
7998
|
+
},
|
|
7999
|
+
phrase: {
|
|
8000
|
+
en: "Toggle {device}",
|
|
8001
|
+
it: "Commuta {device}"
|
|
8002
|
+
},
|
|
8003
|
+
icon: "toggle-right"
|
|
7984
8004
|
}
|
|
7985
|
-
|
|
8005
|
+
],
|
|
7986
8006
|
state: [{
|
|
7987
8007
|
kind: "boolean",
|
|
7988
8008
|
field: "on",
|
|
@@ -17986,6 +18006,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
17986
18006
|
{
|
|
17987
18007
|
"path": "storage.dischargedTodayKwh",
|
|
17988
18008
|
"valueType": "number"
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"path": "storage.healthPct",
|
|
18012
|
+
"valueType": "number"
|
|
17989
18013
|
}
|
|
17990
18014
|
],
|
|
17991
18015
|
"enum-sensor": [{
|
|
@@ -18366,6 +18390,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18366
18390
|
"path": "isMuted",
|
|
18367
18391
|
"valueType": "boolean"
|
|
18368
18392
|
},
|
|
18393
|
+
{
|
|
18394
|
+
"path": "muteReadback",
|
|
18395
|
+
"valueType": "boolean"
|
|
18396
|
+
},
|
|
18369
18397
|
{
|
|
18370
18398
|
"path": "source",
|
|
18371
18399
|
"valueType": "string"
|
|
@@ -20265,6 +20293,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20265
20293
|
const streamSignalsInterface = { listSignals: (input) => dispatch("stream-signals", "streamSignals", "listSignals", "query", input) };
|
|
20266
20294
|
const switchInterface = {
|
|
20267
20295
|
setState: (input) => dispatch("switch", "switch", "setState", "mutation", input),
|
|
20296
|
+
toggle: (input) => dispatch("switch", "switch", "toggle", "mutation", input),
|
|
20268
20297
|
getStatus: (input) => dispatch("switch", "switch", "getStatus", "query", input)
|
|
20269
20298
|
};
|
|
20270
20299
|
const tamperInterface = { getStatus: (input) => dispatch("tamper", "tamper", "getStatus", "query", input) };
|
|
@@ -6850,6 +6850,8 @@ var READING_QUANTITIES = [
|
|
|
6850
6850
|
"information",
|
|
6851
6851
|
"sound-level",
|
|
6852
6852
|
"signal-level",
|
|
6853
|
+
"signal-ratio",
|
|
6854
|
+
"frequency",
|
|
6853
6855
|
"colour-temperature",
|
|
6854
6856
|
"angle",
|
|
6855
6857
|
"bitrate",
|
|
@@ -6896,6 +6898,8 @@ var QUANTITY_BASE = {
|
|
|
6896
6898
|
information: "B",
|
|
6897
6899
|
"sound-level": "dBFS",
|
|
6898
6900
|
"signal-level": "dBm",
|
|
6901
|
+
"signal-ratio": "dB",
|
|
6902
|
+
frequency: "Hz",
|
|
6899
6903
|
"colour-temperature": "mired",
|
|
6900
6904
|
angle: "°",
|
|
6901
6905
|
bitrate: "kbps",
|
|
@@ -7948,41 +7952,57 @@ var CAP_VOCABULARY = {
|
|
|
7948
7952
|
en: "Switch",
|
|
7949
7953
|
it: "Interruttore"
|
|
7950
7954
|
},
|
|
7951
|
-
actions: [
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
id: "switch.off",
|
|
7970
|
-
method: "setState",
|
|
7971
|
-
label: {
|
|
7972
|
-
en: "Turn off",
|
|
7973
|
-
it: "Spegni"
|
|
7955
|
+
actions: [
|
|
7956
|
+
{
|
|
7957
|
+
id: "switch.on",
|
|
7958
|
+
method: "setState",
|
|
7959
|
+
label: {
|
|
7960
|
+
en: "Turn on",
|
|
7961
|
+
it: "Accendi"
|
|
7962
|
+
},
|
|
7963
|
+
phrase: {
|
|
7964
|
+
en: "Turn on {device}",
|
|
7965
|
+
it: "Accendi {device}"
|
|
7966
|
+
},
|
|
7967
|
+
icon: "power",
|
|
7968
|
+
args: { on: true },
|
|
7969
|
+
effect: {
|
|
7970
|
+
field: "on",
|
|
7971
|
+
value: true
|
|
7972
|
+
}
|
|
7974
7973
|
},
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7974
|
+
{
|
|
7975
|
+
id: "switch.off",
|
|
7976
|
+
method: "setState",
|
|
7977
|
+
label: {
|
|
7978
|
+
en: "Turn off",
|
|
7979
|
+
it: "Spegni"
|
|
7980
|
+
},
|
|
7981
|
+
phrase: {
|
|
7982
|
+
en: "Turn off {device}",
|
|
7983
|
+
it: "Spegni {device}"
|
|
7984
|
+
},
|
|
7985
|
+
icon: "power-off",
|
|
7986
|
+
args: { on: false },
|
|
7987
|
+
effect: {
|
|
7988
|
+
field: "on",
|
|
7989
|
+
value: false
|
|
7990
|
+
}
|
|
7978
7991
|
},
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7992
|
+
{
|
|
7993
|
+
id: "switch.toggle",
|
|
7994
|
+
method: "toggle",
|
|
7995
|
+
label: {
|
|
7996
|
+
en: "Toggle",
|
|
7997
|
+
it: "Commuta"
|
|
7998
|
+
},
|
|
7999
|
+
phrase: {
|
|
8000
|
+
en: "Toggle {device}",
|
|
8001
|
+
it: "Commuta {device}"
|
|
8002
|
+
},
|
|
8003
|
+
icon: "toggle-right"
|
|
7984
8004
|
}
|
|
7985
|
-
|
|
8005
|
+
],
|
|
7986
8006
|
state: [{
|
|
7987
8007
|
kind: "boolean",
|
|
7988
8008
|
field: "on",
|
|
@@ -17986,6 +18006,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
17986
18006
|
{
|
|
17987
18007
|
"path": "storage.dischargedTodayKwh",
|
|
17988
18008
|
"valueType": "number"
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"path": "storage.healthPct",
|
|
18012
|
+
"valueType": "number"
|
|
17989
18013
|
}
|
|
17990
18014
|
],
|
|
17991
18015
|
"enum-sensor": [{
|
|
@@ -18366,6 +18390,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18366
18390
|
"path": "isMuted",
|
|
18367
18391
|
"valueType": "boolean"
|
|
18368
18392
|
},
|
|
18393
|
+
{
|
|
18394
|
+
"path": "muteReadback",
|
|
18395
|
+
"valueType": "boolean"
|
|
18396
|
+
},
|
|
18369
18397
|
{
|
|
18370
18398
|
"path": "source",
|
|
18371
18399
|
"valueType": "string"
|
|
@@ -20265,6 +20293,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20265
20293
|
const streamSignalsInterface = { listSignals: (input) => dispatch("stream-signals", "streamSignals", "listSignals", "query", input) };
|
|
20266
20294
|
const switchInterface = {
|
|
20267
20295
|
setState: (input) => dispatch("switch", "switch", "setState", "mutation", input),
|
|
20296
|
+
toggle: (input) => dispatch("switch", "switch", "toggle", "mutation", input),
|
|
20268
20297
|
getStatus: (input) => dispatch("switch", "switch", "getStatus", "query", input)
|
|
20269
20298
|
};
|
|
20270
20299
|
const tamperInterface = { getStatus: (input) => dispatch("tamper", "tamper", "getStatus", "query", input) };
|
package/dist/units/quantity.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* numeric control): the quantity is chosen once, on the device, at adopt.
|
|
10
10
|
*/
|
|
11
11
|
import { z } from 'zod';
|
|
12
|
-
declare const READING_QUANTITY_VALUES: readonly ['temperature', 'pressure', 'speed', 'precipitation', 'precipitation-rate', 'length', 'area', 'illuminance', 'irradiance', 'power', 'energy', 'voltage', 'current', 'apparent-power', 'humidity', 'percentage', 'concentration-volume', 'concentration-mass', 'concentration-ppb', 'volume', 'duration', 'duration-ms', 'information', 'sound-level', 'signal-level', 'colour-temperature', 'angle', 'bitrate', 'rate', 'mass', 'index', 'ratio', 'count', 'none', 'device'];
|
|
12
|
+
declare const READING_QUANTITY_VALUES: readonly ['temperature', 'pressure', 'speed', 'precipitation', 'precipitation-rate', 'length', 'area', 'illuminance', 'irradiance', 'power', 'energy', 'voltage', 'current', 'apparent-power', 'humidity', 'percentage', 'concentration-volume', 'concentration-mass', 'concentration-ppb', 'volume', 'duration', 'duration-ms', 'information', 'sound-level', 'signal-level', 'signal-ratio', 'frequency', 'colour-temperature', 'angle', 'bitrate', 'rate', 'mass', 'index', 'ratio', 'count', 'none', 'device'];
|
|
13
13
|
export declare const READING_QUANTITIES: typeof READING_QUANTITY_VALUES;
|
|
14
14
|
export type ReadingQuantity = (typeof READING_QUANTITIES)[number];
|
|
15
15
|
export declare const ReadingQuantitySchema: z.ZodType<ReadingQuantity>;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* conversion stays refused.
|
|
24
24
|
*/
|
|
25
25
|
/** The physical dimensions CamStack surfaces across HA + Ecowitt + vendors. */
|
|
26
|
-
export type UnitDimension = 'temperature' | 'pressure' | 'speed' | 'precipitation-rate' | 'length' | 'area' | 'illuminance' | 'irradiance' | 'power' | 'apparent-power' | 'energy' | 'voltage' | 'current' | 'concentration-volume' | 'concentration-mass' | 'mass' | 'percentage' | 'volume' | 'duration' | 'information' | 'angle' | 'sound-level' | 'signal-level' | 'colour-temperature' | 'bitrate' | 'rate';
|
|
26
|
+
export type UnitDimension = 'temperature' | 'pressure' | 'speed' | 'precipitation-rate' | 'length' | 'area' | 'illuminance' | 'irradiance' | 'power' | 'apparent-power' | 'energy' | 'voltage' | 'current' | 'concentration-volume' | 'concentration-mass' | 'mass' | 'percentage' | 'volume' | 'duration' | 'information' | 'angle' | 'sound-level' | 'signal-level' | 'signal-ratio' | 'frequency' | 'colour-temperature' | 'bitrate' | 'rate';
|
|
27
27
|
/**
|
|
28
28
|
* Linear conversion spec: `canonical = value * factor + offset`. Temperature is
|
|
29
29
|
* the ONLY family using a non-zero `offset`.
|
package/dist/units-lean.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_convert = require("./convert-
|
|
2
|
+
const require_convert = require("./convert-BI8iTXn6.js");
|
|
3
3
|
exports.UNIT_TABLE = require_convert.UNIT_TABLE;
|
|
4
4
|
exports.tryConvertUnit = require_convert.tryConvertUnit;
|
|
5
5
|
exports.unitDimension = require_convert.unitDimension;
|
package/dist/units-lean.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as tryConvertUnit, c as UNIT_TABLE, o as unitDimension } from "./convert-
|
|
1
|
+
import { a as tryConvertUnit, c as UNIT_TABLE, o as unitDimension } from "./convert-BwMfbk5b.mjs";
|
|
2
2
|
export { UNIT_TABLE, tryConvertUnit, unitDimension };
|