@nattyjs/testing 0.0.1-beta.22 → 0.0.1-beta.25
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 -4
- package/dist/index.d.ts +15 -15
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const cli = require('@nattyjs/cli');
|
|
6
4
|
const axios = require('axios');
|
|
7
5
|
|
|
8
|
-
function
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
9
7
|
|
|
10
|
-
const axios__default = /*#__PURE__*/
|
|
8
|
+
const axios__default = /*#__PURE__*/_interopDefaultCompat(axios);
|
|
11
9
|
|
|
12
10
|
async function $setup() {
|
|
13
11
|
await cli.init("test");
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
declare function $setup(): Promise<void>;
|
|
2
2
|
|
|
3
|
-
interface BaseRequest {
|
|
4
|
-
host?: string;
|
|
5
|
-
path: string | string[];
|
|
6
|
-
headers?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
interface PayloadRequest extends BaseRequest {
|
|
11
|
-
body: any;
|
|
3
|
+
interface BaseRequest {
|
|
4
|
+
host?: string;
|
|
5
|
+
path: string | string[];
|
|
6
|
+
headers?: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface PayloadRequest extends BaseRequest {
|
|
11
|
+
body: any;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface Response<T> {
|
|
15
|
-
body: T;
|
|
16
|
-
headers: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
status: number;
|
|
14
|
+
interface Response<T> {
|
|
15
|
+
body: T;
|
|
16
|
+
headers: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
status: number;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
declare function $get<T>(request: BaseRequest | string | string[]): Promise<Response<T>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattyjs/testing",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.25",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "ajayojha <ojhaajay@outlook.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"unbuild": "1.2.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@nattyjs/cli": "0.0.1-beta.
|
|
22
|
-
"@nattyjs/types": "0.0.1-beta.
|
|
21
|
+
"@nattyjs/cli": "0.0.1-beta.26",
|
|
22
|
+
"@nattyjs/types": "0.0.1-beta.26",
|
|
23
23
|
"axios": "1.6.2"
|
|
24
24
|
}
|
|
25
25
|
}
|