mountebank-client 1.0.0 → 1.0.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.
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "node",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Example",
|
|
11
|
+
"runtimeArgs": [
|
|
12
|
+
"--require",
|
|
13
|
+
"ts-node/register/transpile-only"
|
|
14
|
+
],
|
|
15
|
+
"args": [
|
|
16
|
+
"${workspaceFolder}/examples/dev.ts"
|
|
17
|
+
],
|
|
18
|
+
"env": {
|
|
19
|
+
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json"
|
|
20
|
+
},
|
|
21
|
+
"sourceMaps": true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "node",
|
|
25
|
+
"request": "launch",
|
|
26
|
+
"name": "Jest All",
|
|
27
|
+
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
28
|
+
"args": ["--runInBand", "--config", "jest.config.js"],
|
|
29
|
+
"console": "integratedTerminal",
|
|
30
|
+
"internalConsoleOptions": "neverOpen",
|
|
31
|
+
"disableOptimisticBPs": true,
|
|
32
|
+
"windows": {
|
|
33
|
+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
|
|
34
|
+
},
|
|
35
|
+
"env": {
|
|
36
|
+
"DEBUG": "jest"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "node",
|
|
41
|
+
"request": "launch",
|
|
42
|
+
"name": "Jest Current File",
|
|
43
|
+
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
44
|
+
"args": ["--runTestsByPath", "${relativeFile}", "--config", "jest.config.js"],
|
|
45
|
+
"console": "integratedTerminal",
|
|
46
|
+
"internalConsoleOptions": "neverOpen",
|
|
47
|
+
"disableOptimisticBPs": true,
|
|
48
|
+
"windows": {
|
|
49
|
+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
|
|
50
|
+
},
|
|
51
|
+
"env": {
|
|
52
|
+
"DEBUG": "jest"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"type": "typescript",
|
|
6
|
+
"tsconfig": "tsconfig.json",
|
|
7
|
+
"option": "watch",
|
|
8
|
+
"problemMatcher": ["$tsc-watch"],
|
|
9
|
+
"group": {
|
|
10
|
+
"kind": "build",
|
|
11
|
+
"isDefault": true
|
|
12
|
+
},
|
|
13
|
+
"label": "tsc: watch - tsconfig.json"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -16,7 +16,7 @@ export declare class ImposterBuilder {
|
|
|
16
16
|
defaultResponse?: ImposterDefaultResponse;
|
|
17
17
|
stubs: Stub[];
|
|
18
18
|
constructor({ port, protocol, name, schema }: IImposterBuilder);
|
|
19
|
-
|
|
19
|
+
addDefaultResponse({ status, headers, body }: IDefaultReponse): this;
|
|
20
20
|
addStub(stub: Stub): this;
|
|
21
21
|
addImposter(): Promise<this>;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imposterBuilder.js","sourceRoot":"","sources":["../../src/builders/imposterBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iEAAyD;AAazD,MAAa,eAAe;IAQxB,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAoB;QAC1D,IAAI,CAAC,IAAI,GAAG,IAAI,CA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AChB,CAAC;KAAA;CACJ;AAzCD,0CAyCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountebank-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A TypeScript Client for Mountebank API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
"example": "ts-node --files ./examples/dev.ts",
|
|
25
25
|
"example:prod": "tsc && node ./dist/examples/dev.js",
|
|
26
26
|
"clean": "rm -rf dist/",
|
|
27
|
+
"pre:publish": "npm run clean && npm test && npm run build",
|
|
27
28
|
"pack": "npm pack",
|
|
28
29
|
"test:pack-install": "cd pack-install && npm install",
|
|
29
|
-
"test:pack-run": "cd pack-install && node test.js"
|
|
30
|
+
"test:pack-run": "cd pack-install && node test.js",
|
|
31
|
+
"publish": "npm run publish"
|
|
30
32
|
},
|
|
31
33
|
"keywords": [
|
|
32
34
|
"mountebank",
|