@linqapp/sdk 0.66.2 → 0.66.3
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 +7 -0
- package/package.json +1 -1
- package/resources/chats/location.d.mts +8 -23
- package/resources/chats/location.d.mts.map +1 -1
- package/resources/chats/location.d.ts +8 -23
- package/resources/chats/location.d.ts.map +1 -1
- package/resources/chats/location.js +8 -23
- package/resources/chats/location.js.map +1 -1
- package/resources/chats/location.mjs +8 -23
- package/resources/chats/location.mjs.map +1 -1
- package/src/resources/chats/location.ts +8 -23
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.66.3](https://github.com/linq-team/linq-node/compare/v0.66.2...v0.66.3) (2026-09-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* clarify location sharing stop endpoint behavior ([530026d](https://github.com/linq-team/linq-node/commit/530026d0f5e0731a8fb7243ebf61648f1b305d81))
|
|
9
|
+
|
|
3
10
|
## [0.66.2](https://github.com/linq-team/linq-node/compare/v0.66.1...v0.66.2) (2026-09-11)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -104,32 +104,17 @@ export declare class Location extends APIResource {
|
|
|
104
104
|
*/
|
|
105
105
|
request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* can start a fresh share cleanly.
|
|
107
|
+
* Stop a contact's location share with you. `handle` is required and names whose
|
|
108
|
+
* share to end.
|
|
110
109
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* confusing for them because their phone still shows everything as working.
|
|
110
|
+
* Returns `202` when the request is accepted. The stop is carried out on the
|
|
111
|
+
* contact's device, and the `location.sharing.stopped` webhook fires once sharing
|
|
112
|
+
* has ended.
|
|
115
113
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* with `POST /v3/chats/{chatId}/location/request`.
|
|
114
|
+
* Sharing is per contact, so this ends that contact's share in every chat you have
|
|
115
|
+
* with them.
|
|
119
116
|
*
|
|
120
|
-
*
|
|
121
|
-
* so this ends that contact's share everywhere, not only in this chat.
|
|
122
|
-
*
|
|
123
|
-
* `handle` names whose share to end, and is always required — a group chat can
|
|
124
|
-
* have several people sharing, and this is not an operation to infer a target for.
|
|
125
|
-
*
|
|
126
|
-
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
127
|
-
* the sharing relationship, so a success here means the request was accepted, not
|
|
128
|
-
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
129
|
-
* confirm it — that webhook is what tells you the contact's device has actually
|
|
130
|
-
* let go.
|
|
131
|
-
*
|
|
132
|
-
* Returns `404` if the contact is not currently sharing.
|
|
117
|
+
* Returns `404` if the contact isn't currently sharing.
|
|
133
118
|
*
|
|
134
119
|
* @example
|
|
135
120
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.mts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAOvF;;;;;;;;;;;;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,EAAE,OAAO,CAAC,UAAU,CAAC;YAE/B,IAAI,EAAE,SAAS,CAAC;SACjB;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,QAAQ;gBACvB;;mBAEG;gBACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE3B,IAAI,EAAE,OAAO,CAAC;aACf;YAED,UAAiB,UAAU;gBACzB;;mBAEG;gBACH,MAAM,EAAE,MAAM,CAAC;gBAEf;;mBAEG;gBACH,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB;;mBAEG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,UAAU,CAAC,EAAE,MAAM,CAAC;aACrB;SACF;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -104,32 +104,17 @@ export declare class Location extends APIResource {
|
|
|
104
104
|
*/
|
|
105
105
|
request(chatID: string, options?: RequestOptions): APIPromise<LocationRequestResponse>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* can start a fresh share cleanly.
|
|
107
|
+
* Stop a contact's location share with you. `handle` is required and names whose
|
|
108
|
+
* share to end.
|
|
110
109
|
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* confusing for them because their phone still shows everything as working.
|
|
110
|
+
* Returns `202` when the request is accepted. The stop is carried out on the
|
|
111
|
+
* contact's device, and the `location.sharing.stopped` webhook fires once sharing
|
|
112
|
+
* has ended.
|
|
115
113
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* with `POST /v3/chats/{chatId}/location/request`.
|
|
114
|
+
* Sharing is per contact, so this ends that contact's share in every chat you have
|
|
115
|
+
* with them.
|
|
119
116
|
*
|
|
120
|
-
*
|
|
121
|
-
* so this ends that contact's share everywhere, not only in this chat.
|
|
122
|
-
*
|
|
123
|
-
* `handle` names whose share to end, and is always required — a group chat can
|
|
124
|
-
* have several people sharing, and this is not an operation to infer a target for.
|
|
125
|
-
*
|
|
126
|
-
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
127
|
-
* the sharing relationship, so a success here means the request was accepted, not
|
|
128
|
-
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
129
|
-
* confirm it — that webhook is what tells you the contact's device has actually
|
|
130
|
-
* let go.
|
|
131
|
-
*
|
|
132
|
-
* Returns `404` if the contact is not currently sharing.
|
|
117
|
+
* Returns `404` if the contact isn't currently sharing.
|
|
133
118
|
*
|
|
134
119
|
* @example
|
|
135
120
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,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AE,OAAO,CAAC,QAAQ,CAAC;YAE3B,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC;YAE/B,IAAI,EAAE,SAAS,CAAC;SACjB;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,QAAQ;gBACvB;;mBAEG;gBACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE3B,IAAI,EAAE,OAAO,CAAC;aACf;YAED,UAAiB,UAAU;gBACzB;;mBAEG;gBACH,MAAM,EAAE,MAAM,CAAC;gBAEf;;mBAEG;gBACH,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB;;mBAEG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,UAAU,CAAC,EAAE,MAAM,CAAC;aACrB;SACF;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -115,32 +115,17 @@ class Location extends resource_1.APIResource {
|
|
|
115
115
|
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/location/request`, options);
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* can start a fresh share cleanly.
|
|
118
|
+
* Stop a contact's location share with you. `handle` is required and names whose
|
|
119
|
+
* share to end.
|
|
121
120
|
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* confusing for them because their phone still shows everything as working.
|
|
121
|
+
* Returns `202` when the request is accepted. The stop is carried out on the
|
|
122
|
+
* contact's device, and the `location.sharing.stopped` webhook fires once sharing
|
|
123
|
+
* has ended.
|
|
126
124
|
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* with `POST /v3/chats/{chatId}/location/request`.
|
|
125
|
+
* Sharing is per contact, so this ends that contact's share in every chat you have
|
|
126
|
+
* with them.
|
|
130
127
|
*
|
|
131
|
-
*
|
|
132
|
-
* so this ends that contact's share everywhere, not only in this chat.
|
|
133
|
-
*
|
|
134
|
-
* `handle` names whose share to end, and is always required — a group chat can
|
|
135
|
-
* have several people sharing, and this is not an operation to infer a target for.
|
|
136
|
-
*
|
|
137
|
-
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
138
|
-
* the sharing relationship, so a success here means the request was accepted, not
|
|
139
|
-
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
140
|
-
* confirm it — that webhook is what tells you the contact's device has actually
|
|
141
|
-
* let go.
|
|
142
|
-
*
|
|
143
|
-
* Returns `404` if the contact is not currently sharing.
|
|
128
|
+
* Returns `404` if the contact isn't currently sharing.
|
|
144
129
|
*
|
|
145
130
|
* @example
|
|
146
131
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,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Ac,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAtGD,4BAsGC"}
|
|
@@ -112,32 +112,17 @@ export class Location extends APIResource {
|
|
|
112
112
|
return this._client.post(path `/v3/chats/${chatID}/location/request`, options);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* can start a fresh share cleanly.
|
|
115
|
+
* Stop a contact's location share with you. `handle` is required and names whose
|
|
116
|
+
* share to end.
|
|
118
117
|
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* confusing for them because their phone still shows everything as working.
|
|
118
|
+
* Returns `202` when the request is accepted. The stop is carried out on the
|
|
119
|
+
* contact's device, and the `location.sharing.stopped` webhook fires once sharing
|
|
120
|
+
* has ended.
|
|
123
121
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* with `POST /v3/chats/{chatId}/location/request`.
|
|
122
|
+
* Sharing is per contact, so this ends that contact's share in every chat you have
|
|
123
|
+
* with them.
|
|
127
124
|
*
|
|
128
|
-
*
|
|
129
|
-
* so this ends that contact's share everywhere, not only in this chat.
|
|
130
|
-
*
|
|
131
|
-
* `handle` names whose share to end, and is always required — a group chat can
|
|
132
|
-
* have several people sharing, and this is not an operation to infer a target for.
|
|
133
|
-
*
|
|
134
|
-
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
135
|
-
* the sharing relationship, so a success here means the request was accepted, not
|
|
136
|
-
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
137
|
-
* confirm it — that webhook is what tells you the contact's device has actually
|
|
138
|
-
* let go.
|
|
139
|
-
*
|
|
140
|
-
* Returns `404` if the contact is not currently sharing.
|
|
125
|
+
* Returns `404` if the contact isn't currently sharing.
|
|
141
126
|
*
|
|
142
127
|
* @example
|
|
143
128
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"location.mjs","sourceRoot":"","sources":["../../src/resources/chats/location.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,IAAI,CACF,MAAc,EACd,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
|
@@ -118,32 +118,17 @@ export class Location extends APIResource {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* can start a fresh share cleanly.
|
|
121
|
+
* Stop a contact's location share with you. `handle` is required and names whose
|
|
122
|
+
* share to end.
|
|
124
123
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* confusing for them because their phone still shows everything as working.
|
|
124
|
+
* Returns `202` when the request is accepted. The stop is carried out on the
|
|
125
|
+
* contact's device, and the `location.sharing.stopped` webhook fires once sharing
|
|
126
|
+
* has ended.
|
|
129
127
|
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* with `POST /v3/chats/{chatId}/location/request`.
|
|
128
|
+
* Sharing is per contact, so this ends that contact's share in every chat you have
|
|
129
|
+
* with them.
|
|
133
130
|
*
|
|
134
|
-
*
|
|
135
|
-
* so this ends that contact's share everywhere, not only in this chat.
|
|
136
|
-
*
|
|
137
|
-
* `handle` names whose share to end, and is always required — a group chat can
|
|
138
|
-
* have several people sharing, and this is not an operation to infer a target for.
|
|
139
|
-
*
|
|
140
|
-
* **This returns `202`, not `200`.** The removal happens on the device that holds
|
|
141
|
-
* the sharing relationship, so a success here means the request was accepted, not
|
|
142
|
-
* that sharing has ended. Wait for the `location.sharing.stopped` webhook to
|
|
143
|
-
* confirm it — that webhook is what tells you the contact's device has actually
|
|
144
|
-
* let go.
|
|
145
|
-
*
|
|
146
|
-
* Returns `404` if the contact is not currently sharing.
|
|
131
|
+
* Returns `404` if the contact isn't currently sharing.
|
|
147
132
|
*
|
|
148
133
|
* @example
|
|
149
134
|
* ```ts
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.66.
|
|
1
|
+
export const VERSION = '0.66.3'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.66.
|
|
1
|
+
export declare const VERSION = "0.66.3";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.66.
|
|
1
|
+
export declare const VERSION = "0.66.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.66.
|
|
1
|
+
export const VERSION = '0.66.3'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|