@centeredgesoft/runtime-mock-routes 2.11.2 → 2.12.0
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/build/src/app.d.ts +1 -1
- package/build/src/app.js +2 -1
- package/build/src/appV2.d.ts +1 -1
- package/build/src/appV2.js +2 -1
- package/package.json +1 -1
- package/src/app.ts +3 -2
- package/src/appV2.ts +3 -2
package/build/src/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
1
|
+
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
2
2
|
export declare const SupportedMethodsColection: SupportedMethodsType;
|
|
3
3
|
export type SupportedMethod = SupportedMethodsType[number];
|
|
4
4
|
export declare const isSupportedMethod: (obj: any) => obj is SupportedMethod;
|
package/build/src/app.js
CHANGED
|
@@ -43,7 +43,7 @@ handlebars_1.default.registerHelper('chance', (funcName, ...rest) => {
|
|
|
43
43
|
return err;
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
exports.SupportedMethodsColection = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
46
|
+
exports.SupportedMethodsColection = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
47
47
|
const isSupportedMethod = (obj) => exports.SupportedMethodsColection.includes(obj);
|
|
48
48
|
exports.isSupportedMethod = isSupportedMethod;
|
|
49
49
|
const isRuntimeRequestBody = (obj) => {
|
|
@@ -176,6 +176,7 @@ const appFactory = (runtimeCollection) => {
|
|
|
176
176
|
app.put(/\/.*/, catchAllHandler);
|
|
177
177
|
app.patch(/\/.*/, catchAllHandler);
|
|
178
178
|
app.delete(/\/.*/, catchAllHandler);
|
|
179
|
+
app.query(/\/.*/, catchAllHandler);
|
|
179
180
|
Object.defineProperty(app, 'runtimeRequestCollection', {
|
|
180
181
|
get: () => {
|
|
181
182
|
return (0, lodash_1.cloneDeep)(runtimeRequestCollection);
|
package/build/src/appV2.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
1
|
+
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
2
2
|
export declare const SupportedMethodsColection: SupportedMethodsType;
|
|
3
3
|
export type SupportedMethod = SupportedMethodsType[number];
|
|
4
4
|
export declare const isSupportedMethod: (obj: any) => obj is SupportedMethod;
|
package/build/src/appV2.js
CHANGED
|
@@ -43,7 +43,7 @@ handlebars_1.default.registerHelper('chance', (funcName, ...rest) => {
|
|
|
43
43
|
return err;
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
exports.SupportedMethodsColection = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
46
|
+
exports.SupportedMethodsColection = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
47
47
|
const isSupportedMethod = (obj) => exports.SupportedMethodsColection.includes(obj);
|
|
48
48
|
exports.isSupportedMethod = isSupportedMethod;
|
|
49
49
|
const isRuntimeRequestMethodBody = (obj) => {
|
|
@@ -245,6 +245,7 @@ const appFactory = (runtimeCollection) => {
|
|
|
245
245
|
app.put(/\/.*/, catchAllHandler);
|
|
246
246
|
app.patch(/\/.*/, catchAllHandler);
|
|
247
247
|
app.delete(/\/.*/, catchAllHandler);
|
|
248
|
+
app.query(/\/.*/, catchAllHandler);
|
|
248
249
|
Object.defineProperty(app, 'runtimeRequestCollection', {
|
|
249
250
|
get: () => {
|
|
250
251
|
return (0, lodash_1.cloneDeep)(runtimeRequestCollection);
|
package/package.json
CHANGED
package/src/app.ts
CHANGED
|
@@ -28,8 +28,8 @@ Handlebars.registerHelper('chance', (funcName: string, ...rest: any[]) => {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
32
|
-
export const SupportedMethodsColection: SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
31
|
+
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
32
|
+
export const SupportedMethodsColection: SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
33
33
|
export type SupportedMethod = SupportedMethodsType[number];
|
|
34
34
|
|
|
35
35
|
export const isSupportedMethod = (obj: any): obj is SupportedMethod => SupportedMethodsColection.includes(obj);
|
|
@@ -221,6 +221,7 @@ export const appFactory = (runtimeCollection?: MethodBasedRuntimeRequestCollecti
|
|
|
221
221
|
app.put(/\/.*/, catchAllHandler);
|
|
222
222
|
app.patch(/\/.*/, catchAllHandler);
|
|
223
223
|
app.delete(/\/.*/, catchAllHandler);
|
|
224
|
+
app.query(/\/.*/, catchAllHandler);
|
|
224
225
|
|
|
225
226
|
Object.defineProperty(app, 'runtimeRequestCollection', {
|
|
226
227
|
get: () => {
|
package/src/appV2.ts
CHANGED
|
@@ -28,8 +28,8 @@ Handlebars.registerHelper('chance', (funcName: string, ...rest: any[]) => {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
32
|
-
export const SupportedMethodsColection: SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
31
|
+
type SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
32
|
+
export const SupportedMethodsColection: SupportedMethodsType = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'QUERY'];
|
|
33
33
|
export type SupportedMethod = SupportedMethodsType[number];
|
|
34
34
|
|
|
35
35
|
export const isSupportedMethod = (obj: any): obj is SupportedMethod => SupportedMethodsColection.includes(obj);
|
|
@@ -316,6 +316,7 @@ export const appFactory = (runtimeCollection?: RuntimeRequestCollection) => {
|
|
|
316
316
|
app.put(/\/.*/, catchAllHandler);
|
|
317
317
|
app.patch(/\/.*/, catchAllHandler);
|
|
318
318
|
app.delete(/\/.*/, catchAllHandler);
|
|
319
|
+
app.query(/\/.*/, catchAllHandler);
|
|
319
320
|
|
|
320
321
|
Object.defineProperty(app, 'runtimeRequestCollection', {
|
|
321
322
|
get: () => {
|