@openfn/language-collections 0.6.1 → 0.6.2
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/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/types/mock.d.ts +2 -0
package/dist/index.cjs
CHANGED
|
@@ -271,6 +271,7 @@ function createServer(url = "https://app.openfn.org") {
|
|
|
271
271
|
mockPool.intercept({ method: "delete", path: /collections\/./ }).reply(remove2).persist();
|
|
272
272
|
return {
|
|
273
273
|
api,
|
|
274
|
+
agent,
|
|
274
275
|
request: ({ method, path, data, ...rest }) => {
|
|
275
276
|
const opts = {
|
|
276
277
|
method,
|
package/dist/index.js
CHANGED
|
@@ -246,6 +246,7 @@ function createServer(url = "https://app.openfn.org") {
|
|
|
246
246
|
mockPool.intercept({ method: "delete", path: /collections\/./ }).reply(remove2).persist();
|
|
247
247
|
return {
|
|
248
248
|
api,
|
|
249
|
+
agent,
|
|
249
250
|
request: ({ method, path, data, ...rest }) => {
|
|
250
251
|
const opts = {
|
|
251
252
|
method,
|
package/package.json
CHANGED
package/types/mock.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export function API(): {
|
|
|
17
17
|
};
|
|
18
18
|
export function createServer(url?: string): {
|
|
19
19
|
api: any;
|
|
20
|
+
agent: MockAgent<MockAgent.Options>;
|
|
20
21
|
request: ({ method, path, data, ...rest }: {
|
|
21
22
|
[x: string]: any;
|
|
22
23
|
method: any;
|
|
@@ -24,3 +25,4 @@ export function createServer(url?: string): {
|
|
|
24
25
|
data: any;
|
|
25
26
|
}) => Promise<import("undici/types/dispatcher").default.ResponseData>;
|
|
26
27
|
};
|
|
28
|
+
import { MockAgent } from "undici/types";
|