@harborclient/sdk 1.0.44 → 1.0.45
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/dist/snippets.d.ts +9 -15
- package/package.json +2 -1
package/dist/snippets.d.ts
CHANGED
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* Keep in sync with the runtime hc sandbox in harborclient
|
|
5
5
|
* `src/main/scripting/scriptApi.ts` and editor completions in
|
|
6
6
|
* `src/renderer/src/scripting/hcCompletions.ts`.
|
|
7
|
+
*
|
|
8
|
+
* `hc.expect` is Chai BDD expect — see https://www.chaijs.com/api/bdd/
|
|
7
9
|
*/
|
|
8
10
|
|
|
11
|
+
/// <reference types="chai" />
|
|
12
|
+
|
|
13
|
+
/** Chai BDD expect factory type for hc.expect. */
|
|
14
|
+
type HcExpectStatic = typeof import('chai').expect;
|
|
15
|
+
|
|
9
16
|
/**
|
|
10
17
|
* Header helpers on hc.request.headers and hc.collection.headers.
|
|
11
18
|
*/
|
|
@@ -217,20 +224,6 @@ interface HcSendRequestResponse {
|
|
|
217
224
|
json(): unknown;
|
|
218
225
|
}
|
|
219
226
|
|
|
220
|
-
/**
|
|
221
|
-
* Chai-lite matcher returned by hc.expect(actual).
|
|
222
|
-
*/
|
|
223
|
-
interface HcExpectMatcher {
|
|
224
|
-
to: {
|
|
225
|
-
equal(expected: unknown): void;
|
|
226
|
-
eql(expected: unknown): void;
|
|
227
|
-
include(substr: string): void;
|
|
228
|
-
be: {
|
|
229
|
-
ok(): void;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
|
|
234
227
|
/**
|
|
235
228
|
* Element surface exposed by hc.response.document() for HTML bodies.
|
|
236
229
|
*/
|
|
@@ -297,7 +290,8 @@ interface HcScriptApi {
|
|
|
297
290
|
*/
|
|
298
291
|
sendRequest(req: HcSendRequestInput): Promise<HcSendRequestResponse>;
|
|
299
292
|
test(name: string, fn: () => void): void;
|
|
300
|
-
expect
|
|
293
|
+
/** Chai BDD expect; see https://www.chaijs.com/api/bdd/ */
|
|
294
|
+
expect: HcExpectStatic;
|
|
301
295
|
/**
|
|
302
296
|
* Available in post-request scripts after the primary request completes.
|
|
303
297
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harborclient/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "TypeScript SDK for HarborClient development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"harborclient",
|
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
"@storybook/react-vite": "^10.4.6",
|
|
201
201
|
"@tailwindcss/vite": "^4.3.1",
|
|
202
202
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
203
|
+
"@types/chai": "^4.3.20",
|
|
203
204
|
"@types/node": "^26.0.1",
|
|
204
205
|
"@types/react": "^19.1.2",
|
|
205
206
|
"@types/react-dom": "^19.1.2",
|