@openfn/language-collections 0.7.19 → 0.8.1
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 +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/types/collections.d.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -32,6 +32,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
32
32
|
// src/collections.js
|
|
33
33
|
var collections_exports = {};
|
|
34
34
|
__export(collections_exports, {
|
|
35
|
+
createMockAPI: () => API,
|
|
35
36
|
createMockServer: () => createServer,
|
|
36
37
|
each: () => each,
|
|
37
38
|
expandQuery: () => expandQuery,
|
|
@@ -591,7 +592,7 @@ var request = async (state, client2, path, options = {}) => {
|
|
|
591
592
|
const { headers: _h, query: _q, ...otherOptions } = options;
|
|
592
593
|
const query = parseQuery(options);
|
|
593
594
|
const args = {
|
|
594
|
-
path: import_node_path.default.join(basePath, path),
|
|
595
|
+
path: import_node_path.default.posix.join(basePath, path),
|
|
595
596
|
headers,
|
|
596
597
|
method: "GET",
|
|
597
598
|
query,
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// src/collections.js
|
|
8
8
|
var collections_exports = {};
|
|
9
9
|
__export(collections_exports, {
|
|
10
|
+
createMockAPI: () => API,
|
|
10
11
|
createMockServer: () => createServer,
|
|
11
12
|
each: () => each,
|
|
12
13
|
expandQuery: () => expandQuery,
|
|
@@ -566,7 +567,7 @@ var request = async (state, client2, path, options = {}) => {
|
|
|
566
567
|
const { headers: _h, query: _q, ...otherOptions } = options;
|
|
567
568
|
const query = parseQuery(options);
|
|
568
569
|
const args = {
|
|
569
|
-
path: nodepath.join(basePath, path),
|
|
570
|
+
path: nodepath.posix.join(basePath, path),
|
|
570
571
|
headers,
|
|
571
572
|
method: "GET",
|
|
572
573
|
query,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-collections",
|
|
3
3
|
"label": "Collections",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"description": "Collections Adaptor for OpenFn",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"stream-json": "^1.8.0",
|
|
25
25
|
"undici": "^5.29.0",
|
|
26
|
-
"@openfn/language-common": "3.2.
|
|
26
|
+
"@openfn/language-common": "3.2.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"assertion-error": "2.0.0",
|
package/types/collections.d.ts
CHANGED
|
@@ -87,7 +87,6 @@ export function remove(name: string, query?: string | QueryOptions, options?: {}
|
|
|
87
87
|
* })
|
|
88
88
|
*/
|
|
89
89
|
export function each(name: string, query?: string | QueryOptions, callback?: Function): (state: any) => Promise<any>;
|
|
90
|
-
export { createServer as createMockServer };
|
|
91
90
|
export function setMockClient(mockClient: any): void;
|
|
92
91
|
export function streamResponse(response: any, onValue: any): Promise<any>;
|
|
93
92
|
export function expandQuery(query: any): any;
|
|
@@ -99,3 +98,5 @@ export function handleError(response: any, path: any, endpoint: any): Promise<ne
|
|
|
99
98
|
*/
|
|
100
99
|
export type QueryOptions = any;
|
|
101
100
|
import { createServer } from "./mock.js";
|
|
101
|
+
import { API } from "./mock.js";
|
|
102
|
+
export { createServer as createMockServer, API as createMockAPI };
|