resting-squirrel-controller 2.6.0 → 2.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"controller.js","sourceRoot":"","sources":["../src/controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA6B;AAC7B,uDAc0B;AAC1B,+DAAwF;AAExF,wEAAgE;AAChE,wDAAiD;AACjD,kDAAiE;AACjE,kDAA6E;AAC7E,oDAAsD;AACtD,kDAAoD;AAEpD,mCAA4C;AAe5C,MAAM,CAAC;;AACN;;GAEG;AACW,KAAG,GAAG,aAAG,CAAC;AAExB;;GAEG;AACW,KAAG,GAAG,aAAG,CAAC;AAExB;;GAEG;AACW,MAAI,GAAG,cAAI,CAAC;AAE1B;;GAEG;AACW,QAAM,GAAG,aAAG,CAAC;AAE3B;;GAEG;AACW,MAAI,GAAG,cAAI,CAAC;AAE1B;;GAEG;AACW,SAAO,GAAG,iBAAgB,CAAC;AAEzC;;GAEG;AACW,QAAM,GAAG,CACtB,MAAS,EAAE,KAAkB,EAC5B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AAEnC;;GAEG;AACW,MAAI,GAAG,CAAC,IAAe,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACW,QAAM,GAAG,CACtB,MAAsD,EACtD,iBAAgC,EAAE,EAClC,OAAsB,EAAE,EACvB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;AAE5D;;GAEG;AACW,UAAQ,GAAG,CACxB,QAAyE,EACzE,OAAsB,EAAE,EACvB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,Y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;AAC9B,mBAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAE7D;;;GAGG;AACW,eAAI,GAAG,CAAC,IAAmC,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAE3F;;;GAGG;AACW,wBAAa,GAAG,CAAC,aAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;AAEhG;;;GAGG;AACW,0BAAe,GAAG,CAAC,eAA+D,EAAE,EAAE,CACnG,UAAU,CAAC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC;AAEzC;;;GAGG;AACW,kBAAO,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AAE7E;;;GAGG;AACW,gBAAK,GAAG,CAAkC,KAAa,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAExG;;;GAGG;AACH,4CAA4C;AAC9B,wBAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAExD,aAAa;AAEb,aAAa;AAEb,4CAA4C;AAC7B,uBAAY,GAAiB,EAAE,CAAC"}
@@ -1,17 +1,17 @@
1
- import { IRouteOptions, RouteAuth } from 'resting-squirrel';
2
- import { IRSDto } from 'resting-squirrel-dto';
3
- import Controller from '../controller';
4
- export declare type RSDtoType = new (...args: Array<any>) => IRSDto;
5
- export interface IOptions<IProps = {
6
- [key: string]: any;
7
- }> {
8
- auth: RouteAuth;
9
- errors: IRouteOptions['errors'];
10
- hideDocs: boolean;
11
- requireApiKey: boolean;
12
- excludedApiKeys: (() => Promise<Array<string>>) | Array<string>;
13
- timeout: number;
14
- props: IProps;
15
- }
16
- declare const _default: (options: Partial<IOptions>) => (target: typeof Controller) => void;
17
- export default _default;
1
+ import { IRouteOptions, RouteAuth } from 'resting-squirrel';
2
+ import { IRSDto } from 'resting-squirrel-dto';
3
+ import Controller from '../controller';
4
+ export declare type RSDtoType = new (...args: Array<any>) => IRSDto;
5
+ export interface IOptions<IProps = {
6
+ [key: string]: any;
7
+ }> {
8
+ auth: RouteAuth;
9
+ errors: IRouteOptions['errors'];
10
+ hideDocs: boolean;
11
+ requireApiKey: boolean;
12
+ excludedApiKeys: (() => Promise<Array<string>>) | Array<string>;
13
+ timeout: number;
14
+ props: IProps;
15
+ }
16
+ declare const _default: (options: Partial<IOptions>) => (target: typeof Controller) => void;
17
+ export default _default;
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (options) => {
4
- return (target) => {
5
- const t = target;
6
- if (!t.__options__) {
7
- t.__options__ = {};
8
- }
9
- let props = t.__options__.props;
10
- if (options.props) {
11
- props = Object.assign(Object.assign({}, props), options.props);
12
- }
13
- t.__options__ = Object.assign(Object.assign(Object.assign({}, t.__options__), options), { props });
14
- };
15
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (options) => {
4
+ return (target) => {
5
+ const t = target;
6
+ if (!t.__options__) {
7
+ t.__options__ = {};
8
+ }
9
+ let props = t.__options__.props;
10
+ if (options.props) {
11
+ props = Object.assign(Object.assign({}, props), options.props);
12
+ }
13
+ t.__options__ = Object.assign(Object.assign(Object.assign({}, t.__options__), options), { props });
14
+ };
15
+ };
16
16
  //# sourceMappingURL=controller-options.js.map
@@ -1,3 +1,3 @@
1
- import Controller from '../controller';
2
- declare const _default: (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
3
- export default _default;
1
+ import Controller from '../controller';
2
+ declare const _default: (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
3
+ export default _default;
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (target, propertyKey, descriptor) => {
4
- const t = target;
5
- if (!t.__deprecated__) {
6
- t.__deprecated__ = [];
7
- }
8
- t.__deprecated__.push(propertyKey);
9
- return descriptor;
10
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (target, propertyKey, descriptor) => {
4
+ const t = target;
5
+ if (!t.__deprecated__) {
6
+ t.__deprecated__ = [];
7
+ }
8
+ t.__deprecated__.push(propertyKey);
9
+ return descriptor;
10
+ };
11
11
  //# sourceMappingURL=deprecated.js.map
@@ -1,6 +1,6 @@
1
- import Controller from '../controller';
2
- export declare const put: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
3
- export declare const get: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
4
- export declare const post: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
5
- export declare const del: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
6
- export declare const head: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
1
+ import Controller from '../controller';
2
+ export declare const put: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
3
+ export declare const get: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
4
+ export declare const post: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
5
+ export declare const del: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
6
+ export declare const head: (endpoint: string) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1,108 +1,108 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.head = exports.del = exports.post = exports.get = exports.put = void 0;
13
- const put = (endpoint) => {
14
- return (target, propertyKey, descriptor) => {
15
- const t = target;
16
- if (!t.__endpoints__) {
17
- t.__endpoints__ = [];
18
- }
19
- t.__endpoints__.push({
20
- callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
21
- yield target.beforeExecution(req, res);
22
- return descriptor.value.apply(target, [req, res]);
23
- }),
24
- method: 'put',
25
- propertyKey,
26
- route: endpoint,
27
- });
28
- return descriptor;
29
- };
30
- };
31
- exports.put = put;
32
- const get = (endpoint) => {
33
- return (target, propertyKey, descriptor) => {
34
- const t = target;
35
- if (!t.__endpoints__) {
36
- t.__endpoints__ = [];
37
- }
38
- t.__endpoints__.push({
39
- callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
40
- yield target.beforeExecution(req, res);
41
- return descriptor.value.apply(target, [req, res]);
42
- }),
43
- method: 'get',
44
- propertyKey,
45
- route: endpoint,
46
- });
47
- return descriptor;
48
- };
49
- };
50
- exports.get = get;
51
- const post = (endpoint) => {
52
- return (target, propertyKey, descriptor) => {
53
- const t = target;
54
- if (!t.__endpoints__) {
55
- t.__endpoints__ = [];
56
- }
57
- t.__endpoints__.push({
58
- callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
59
- yield target.beforeExecution(req, res);
60
- return descriptor.value.apply(target, [req, res]);
61
- }),
62
- method: 'post',
63
- propertyKey,
64
- route: endpoint,
65
- });
66
- return descriptor;
67
- };
68
- };
69
- exports.post = post;
70
- const del = (endpoint) => {
71
- return (target, propertyKey, descriptor) => {
72
- const t = target;
73
- if (!t.__endpoints__) {
74
- t.__endpoints__ = [];
75
- }
76
- t.__endpoints__.push({
77
- callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
78
- yield target.beforeExecution(req, res);
79
- return descriptor.value.apply(target, [req, res]);
80
- }),
81
- method: 'delete',
82
- propertyKey,
83
- route: endpoint,
84
- });
85
- return descriptor;
86
- };
87
- };
88
- exports.del = del;
89
- const head = (endpoint) => {
90
- return (target, propertyKey, descriptor) => {
91
- const t = target;
92
- if (!t.__endpoints__) {
93
- t.__endpoints__ = [];
94
- }
95
- t.__endpoints__.push({
96
- callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
97
- yield target.beforeExecution(req, res);
98
- return descriptor.value.apply(target, [req, res]);
99
- }),
100
- method: 'head',
101
- propertyKey,
102
- route: endpoint,
103
- });
104
- return descriptor;
105
- };
106
- };
107
- exports.head = head;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.head = exports.del = exports.post = exports.get = exports.put = void 0;
13
+ const put = (endpoint) => {
14
+ return (target, propertyKey, descriptor) => {
15
+ const t = target;
16
+ if (!t.__endpoints__) {
17
+ t.__endpoints__ = [];
18
+ }
19
+ t.__endpoints__.push({
20
+ callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
21
+ yield target.beforeExecution(req, res);
22
+ return descriptor.value.apply(target, [req, res]);
23
+ }),
24
+ method: 'put',
25
+ propertyKey,
26
+ route: endpoint,
27
+ });
28
+ return descriptor;
29
+ };
30
+ };
31
+ exports.put = put;
32
+ const get = (endpoint) => {
33
+ return (target, propertyKey, descriptor) => {
34
+ const t = target;
35
+ if (!t.__endpoints__) {
36
+ t.__endpoints__ = [];
37
+ }
38
+ t.__endpoints__.push({
39
+ callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
40
+ yield target.beforeExecution(req, res);
41
+ return descriptor.value.apply(target, [req, res]);
42
+ }),
43
+ method: 'get',
44
+ propertyKey,
45
+ route: endpoint,
46
+ });
47
+ return descriptor;
48
+ };
49
+ };
50
+ exports.get = get;
51
+ const post = (endpoint) => {
52
+ return (target, propertyKey, descriptor) => {
53
+ const t = target;
54
+ if (!t.__endpoints__) {
55
+ t.__endpoints__ = [];
56
+ }
57
+ t.__endpoints__.push({
58
+ callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
59
+ yield target.beforeExecution(req, res);
60
+ return descriptor.value.apply(target, [req, res]);
61
+ }),
62
+ method: 'post',
63
+ propertyKey,
64
+ route: endpoint,
65
+ });
66
+ return descriptor;
67
+ };
68
+ };
69
+ exports.post = post;
70
+ const del = (endpoint) => {
71
+ return (target, propertyKey, descriptor) => {
72
+ const t = target;
73
+ if (!t.__endpoints__) {
74
+ t.__endpoints__ = [];
75
+ }
76
+ t.__endpoints__.push({
77
+ callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
78
+ yield target.beforeExecution(req, res);
79
+ return descriptor.value.apply(target, [req, res]);
80
+ }),
81
+ method: 'delete',
82
+ propertyKey,
83
+ route: endpoint,
84
+ });
85
+ return descriptor;
86
+ };
87
+ };
88
+ exports.del = del;
89
+ const head = (endpoint) => {
90
+ return (target, propertyKey, descriptor) => {
91
+ const t = target;
92
+ if (!t.__endpoints__) {
93
+ t.__endpoints__ = [];
94
+ }
95
+ t.__endpoints__.push({
96
+ callback: (req, res) => __awaiter(void 0, void 0, void 0, function* () {
97
+ yield target.beforeExecution(req, res);
98
+ return descriptor.value.apply(target, [req, res]);
99
+ }),
100
+ method: 'head',
101
+ propertyKey,
102
+ route: endpoint,
103
+ });
104
+ return descriptor;
105
+ };
106
+ };
107
+ exports.head = head;
108
108
  //# sourceMappingURL=methods.js.map
@@ -1,25 +1,25 @@
1
- import { Field, Response, RouteAuth, IRouteOptions } from 'resting-squirrel';
2
- import { ArgsDto, BaseDto, IRSDto, RequestDto, ResponseDto } from 'resting-squirrel-dto';
3
- import Controller from '../controller';
4
- export declare type RSDtoType = new (...args: Array<any>) => IRSDto;
5
- export interface IOptions<IProps = {
6
- [key: string]: any;
7
- }> {
8
- auth: RouteAuth;
9
- params: RSDtoType | typeof BaseDto | typeof RequestDto;
10
- response: RSDtoType | typeof BaseDto | typeof ResponseDto | Response.Base;
11
- errors?: IRouteOptions['errors'];
12
- description: string;
13
- hideDocs: boolean;
14
- args: (typeof ArgsDto) | Array<Field>;
15
- requireApiKey: boolean;
16
- excludedApiKeys: (() => Promise<Array<string>>) | Array<string>;
17
- timeout: number;
18
- props: IProps;
19
- optionalParams: Array<string>;
20
- omitParams: Array<string>;
21
- omitResponse: Array<string>;
22
- redirect: boolean;
23
- }
24
- declare const _default: (options: Partial<IOptions>) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
25
- export default _default;
1
+ import { Field, Response, RouteAuth, IRouteOptions } from 'resting-squirrel';
2
+ import { ArgsDto, BaseDto, IRSDto, RequestDto, ResponseDto } from 'resting-squirrel-dto';
3
+ import Controller from '../controller';
4
+ export declare type RSDtoType = new (...args: Array<any>) => IRSDto;
5
+ export interface IOptions<IProps = {
6
+ [key: string]: any;
7
+ }> {
8
+ auth: RouteAuth;
9
+ params: RSDtoType | typeof BaseDto | typeof RequestDto;
10
+ response: RSDtoType | typeof BaseDto | typeof ResponseDto | Response.Base;
11
+ errors?: IRouteOptions['errors'];
12
+ description: string;
13
+ hideDocs: boolean;
14
+ args: (typeof ArgsDto) | Array<Field>;
15
+ requireApiKey: boolean;
16
+ excludedApiKeys: (() => Promise<Array<string>>) | Array<string>;
17
+ timeout: number;
18
+ props: IProps;
19
+ optionalParams: Array<string>;
20
+ omitParams: Array<string>;
21
+ omitResponse: Array<string>;
22
+ redirect: boolean;
23
+ }
24
+ declare const _default: (options: Partial<IOptions>) => (target: Controller, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
25
+ export default _default;
@@ -1,18 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (options) => {
4
- return (target, propertyKey, descriptor) => {
5
- var _a;
6
- const t = target;
7
- if (!t.__options__) {
8
- t.__options__ = {};
9
- }
10
- let props = (_a = t.__options__[propertyKey]) === null || _a === void 0 ? void 0 : _a.props;
11
- if (options.props) {
12
- props = Object.assign(Object.assign({}, props), options.props);
13
- }
14
- t.__options__[propertyKey] = Object.assign(Object.assign(Object.assign({}, t.__options__[propertyKey]), options), { props });
15
- return descriptor;
16
- };
17
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (options) => {
4
+ return (target, propertyKey, descriptor) => {
5
+ var _a;
6
+ const t = target;
7
+ if (!t.__options__) {
8
+ t.__options__ = {};
9
+ }
10
+ let props = (_a = t.__options__[propertyKey]) === null || _a === void 0 ? void 0 : _a.props;
11
+ if (options.props) {
12
+ props = Object.assign(Object.assign({}, props), options.props);
13
+ }
14
+ t.__options__[propertyKey] = Object.assign(Object.assign(Object.assign({}, t.__options__[propertyKey]), options), { props });
15
+ return descriptor;
16
+ };
17
+ };
18
18
  //# sourceMappingURL=options.js.map
@@ -1,3 +1,3 @@
1
- import Controller from '../controller';
2
- declare const _default: (resource: string) => (target: typeof Controller) => void;
3
- export default _default;
1
+ import Controller from '../controller';
2
+ declare const _default: (resource: string) => (target: typeof Controller) => void;
3
+ export default _default;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (resource) => {
4
- return (target) => {
5
- target.__resource__ = resource;
6
- };
7
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (resource) => {
4
+ return (target) => {
5
+ target.__resource__ = resource;
6
+ };
7
+ };
8
8
  //# sourceMappingURL=resource.js.map
@@ -1,3 +1,3 @@
1
- import Controller from '../controller';
2
- declare const _default: (version: number) => (target: typeof Controller) => void;
3
- export default _default;
1
+ import Controller from '../controller';
2
+ declare const _default: (version: number) => (target: typeof Controller) => void;
3
+ export default _default;
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (version) => {
4
- return (target) => {
5
- target.__version__ = version;
6
- };
7
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (version) => {
4
+ return (target) => {
5
+ target.__version__ = version;
6
+ };
7
+ };
8
8
  //# sourceMappingURL=version.js.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import Controller from './controller';
2
- export default Controller;
1
+ import Controller from './controller';
2
+ export default Controller;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const controller_1 = require("./controller");
4
- exports.default = controller_1.default;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const controller_1 = require("./controller");
4
+ exports.default = controller_1.default;
5
5
  //# sourceMappingURL=index.js.map