@n1k1t/mock-server 0.1.60 → 0.1.62
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/lib/package.json +1 -1
- package/lib/src/gui/app/types/dev.d.ts +7 -0
- package/lib/src/gui/app/types/dev.d.ts.map +1 -0
- package/lib/src/gui/app/types/dev.js +3 -0
- package/lib/src/gui/app/types/dev.js.map +1 -0
- package/lib/src/gui/app/types/index.d.ts +2 -0
- package/lib/src/gui/app/types/index.d.ts.map +1 -0
- package/lib/src/gui/app/types/index.js +18 -0
- package/lib/src/gui/app/types/index.js.map +1 -0
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/server/types/index.d.ts +27 -0
- package/lib/src/server/types/index.d.ts.map +1 -0
- package/lib/src/server/types/index.js +3 -0
- package/lib/src/server/types/index.js.map +1 -0
- package/package.json +1 -1
package/lib/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../../src/gui/app/types/dev.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE;QACF,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../../src/gui/app/types/dev.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gui/app/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dev"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gui/app/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { default as config } from './config';
|
|
2
2
|
export * from './expectations/types';
|
|
3
|
+
export * from '../types';
|
|
3
4
|
export * from './server';
|
|
4
5
|
export * from './client';
|
|
5
6
|
export * from './logger';
|
|
6
|
-
export * from '../types';
|
|
7
7
|
export * from './meta';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AAEzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/lib/src/index.js
CHANGED
|
@@ -21,9 +21,9 @@ exports.config = void 0;
|
|
|
21
21
|
var config_1 = require("./config");
|
|
22
22
|
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return __importDefault(config_1).default; } });
|
|
23
23
|
__exportStar(require("./expectations/types"), exports);
|
|
24
|
+
__exportStar(require("../types"), exports);
|
|
24
25
|
__exportStar(require("./server"), exports);
|
|
25
26
|
__exportStar(require("./client"), exports);
|
|
26
27
|
__exportStar(require("./logger"), exports);
|
|
27
|
-
__exportStar(require("../types"), exports);
|
|
28
28
|
__exportStar(require("./meta"), exports);
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
package/lib/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAE1B,uDAAqC;AACrC,2CAAyB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAE1B,uDAAqC;AACrC,2CAAyB;AAEzB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HttpTransport, WsTransport } from '../transports';
|
|
2
|
+
import type { TMetricPoint } from '../services';
|
|
3
|
+
import type { Expectation } from '../../expectations';
|
|
4
|
+
import type { History } from '../models';
|
|
5
|
+
export type TRequestPayloadType = 'json' | 'plain' | 'xml';
|
|
6
|
+
export type TDefaultServerContext = HttpTransport['TContext'] | WsTransport['TContext'];
|
|
7
|
+
export interface IServerContextInput {
|
|
8
|
+
transport?: string;
|
|
9
|
+
event?: string;
|
|
10
|
+
flag?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IServerContext<TInput extends IServerContextInput = {}> {
|
|
13
|
+
transport: Extract<TInput['transport'], string>;
|
|
14
|
+
event: Extract<TInput['event'], string>;
|
|
15
|
+
flag: Extract<TInput['flag'], string>;
|
|
16
|
+
}
|
|
17
|
+
export interface IIoExchangeSchema {
|
|
18
|
+
'expectation:added': Expectation<any>['TPlain'];
|
|
19
|
+
'expectation:updated': Expectation<any>['TPlain'];
|
|
20
|
+
'history:added': History['TPlain'];
|
|
21
|
+
'history:updated': History['TPlain'];
|
|
22
|
+
'metric:registered': {
|
|
23
|
+
name: string;
|
|
24
|
+
point: TMetricPoint;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAExF,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MA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