@tsed/common 7.0.0-beta.2 → 7.0.0-beta.3

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.
Files changed (31) hide show
  1. package/lib/cjs/decorators/index.js +10 -5
  2. package/lib/cjs/decorators/index.js.map +1 -1
  3. package/lib/esm/decorators/index.js +1 -5
  4. package/lib/esm/decorators/index.js.map +1 -1
  5. package/lib/types/decorators/index.d.ts +1 -5
  6. package/package.json +16 -16
  7. package/lib/cjs/decorators/method/endpointFn.js +0 -15
  8. package/lib/cjs/decorators/method/endpointFn.js.map +0 -1
  9. package/lib/cjs/decorators/method/location.js +0 -6
  10. package/lib/cjs/decorators/method/location.js.map +0 -1
  11. package/lib/cjs/decorators/method/redirect.js +0 -6
  12. package/lib/cjs/decorators/method/redirect.js.map +0 -1
  13. package/lib/cjs/decorators/method/route.js +0 -13
  14. package/lib/cjs/decorators/method/route.js.map +0 -1
  15. package/lib/cjs/decorators/method/view.js +0 -34
  16. package/lib/cjs/decorators/method/view.js.map +0 -1
  17. package/lib/esm/decorators/method/endpointFn.js +0 -11
  18. package/lib/esm/decorators/method/endpointFn.js.map +0 -1
  19. package/lib/esm/decorators/method/location.js +0 -2
  20. package/lib/esm/decorators/method/location.js.map +0 -1
  21. package/lib/esm/decorators/method/redirect.js +0 -2
  22. package/lib/esm/decorators/method/redirect.js.map +0 -1
  23. package/lib/esm/decorators/method/route.js +0 -2
  24. package/lib/esm/decorators/method/route.js.map +0 -1
  25. package/lib/esm/decorators/method/view.js +0 -30
  26. package/lib/esm/decorators/method/view.js.map +0 -1
  27. package/lib/types/decorators/method/endpointFn.d.ts +0 -9
  28. package/lib/types/decorators/method/location.d.ts +0 -1
  29. package/lib/types/decorators/method/redirect.d.ts +0 -1
  30. package/lib/types/decorators/method/route.d.ts +0 -1
  31. package/lib/types/decorators/method/view.d.ts +0 -25
@@ -1,16 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.All = exports.Options = exports.Head = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  (0, tslib_1.__exportStar)(require("./httpServer"), exports);
5
6
  (0, tslib_1.__exportStar)(require("./httpsServer"), exports);
6
7
  (0, tslib_1.__exportStar)(require("./multer"), exports);
7
8
  // Method
8
- (0, tslib_1.__exportStar)(require("./method/route"), exports);
9
+ var schema_1 = require("@tsed/schema");
10
+ Object.defineProperty(exports, "Get", { enumerable: true, get: function () { return schema_1.Get; } });
11
+ Object.defineProperty(exports, "Post", { enumerable: true, get: function () { return schema_1.Post; } });
12
+ Object.defineProperty(exports, "Put", { enumerable: true, get: function () { return schema_1.Put; } });
13
+ Object.defineProperty(exports, "Patch", { enumerable: true, get: function () { return schema_1.Patch; } });
14
+ Object.defineProperty(exports, "Delete", { enumerable: true, get: function () { return schema_1.Delete; } });
15
+ Object.defineProperty(exports, "Head", { enumerable: true, get: function () { return schema_1.Head; } });
16
+ Object.defineProperty(exports, "Options", { enumerable: true, get: function () { return schema_1.Options; } });
17
+ Object.defineProperty(exports, "All", { enumerable: true, get: function () { return schema_1.All; } });
9
18
  (0, tslib_1.__exportStar)(require("./method/acceptMime"), exports);
10
- (0, tslib_1.__exportStar)(require("./method/location"), exports);
11
- (0, tslib_1.__exportStar)(require("./method/redirect"), exports);
12
- (0, tslib_1.__exportStar)(require("./method/endpointFn"), exports);
13
- (0, tslib_1.__exportStar)(require("./method/view"), exports);
14
19
  // Params
15
20
  (0, tslib_1.__exportStar)(require("./params/response"), exports);
16
21
  (0, tslib_1.__exportStar)(require("./params/request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;AAAA,4DAA6B;AAC7B,6DAA8B;AAE9B,wDAAyB;AAEzB,SAAS;AACT,8DAA+B;AAC/B,mEAAoC;AACpC,iEAAkC;AAClC,iEAAkC;AAClC,mEAAoC;AACpC,6DAA8B;AAE9B,SAAS;AACT,iEAAkC;AAClC,gEAAiC;AACjC,6DAA8B;AAC9B,8DAA+B;AAE/B,QAAQ;AACR,4EAA6C","sourcesContent":["export * from \"./httpServer\";\nexport * from \"./httpsServer\";\n\nexport * from \"./multer\";\n\n// Method\nexport * from \"./method/route\";\nexport * from \"./method/acceptMime\";\nexport * from \"./method/location\";\nexport * from \"./method/redirect\";\nexport * from \"./method/endpointFn\";\nexport * from \"./method/view\";\n\n// Params\nexport * from \"./params/response\";\nexport * from \"./params/request\";\nexport * from \"./params/next\";\nexport * from \"./params/error\";\n\n// utils\nexport * from \"../utils/mapReturnedResponse\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;;AAAA,4DAA6B;AAC7B,6DAA8B;AAE9B,wDAAyB;AAEzB,SAAS;AACT,uCAA+E;AAAvE,6FAAA,GAAG,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,6FAAA,GAAG,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,6FAAA,GAAG,OAAA;AACzD,mEAAoC;AAEpC,SAAS;AACT,iEAAkC;AAClC,gEAAiC;AACjC,6DAA8B;AAC9B,8DAA+B;AAE/B,QAAQ;AACR,4EAA6C","sourcesContent":["export * from \"./httpServer\";\nexport * from \"./httpsServer\";\n\nexport * from \"./multer\";\n\n// Method\nexport {Get, Post, Put, Patch, Delete, Head, Options, All} from \"@tsed/schema\";\nexport * from \"./method/acceptMime\";\n\n// Params\nexport * from \"./params/response\";\nexport * from \"./params/request\";\nexport * from \"./params/next\";\nexport * from \"./params/error\";\n\n// utils\nexport * from \"../utils/mapReturnedResponse\";\n"]}
@@ -2,12 +2,8 @@ export * from "./httpServer";
2
2
  export * from "./httpsServer";
3
3
  export * from "./multer";
4
4
  // Method
5
- export * from "./method/route";
5
+ export { Get, Post, Put, Patch, Delete, Head, Options, All } from "@tsed/schema";
6
6
  export * from "./method/acceptMime";
7
- export * from "./method/location";
8
- export * from "./method/redirect";
9
- export * from "./method/endpointFn";
10
- export * from "./method/view";
11
7
  // Params
12
8
  export * from "./params/response";
13
9
  export * from "./params/request";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAE9B,cAAc,UAAU,CAAC;AAEzB,SAAS;AACT,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAE9B,SAAS;AACT,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAE/B,QAAQ;AACR,cAAc,8BAA8B,CAAC","sourcesContent":["export * from \"./httpServer\";\nexport * from \"./httpsServer\";\n\nexport * from \"./multer\";\n\n// Method\nexport * from \"./method/route\";\nexport * from \"./method/acceptMime\";\nexport * from \"./method/location\";\nexport * from \"./method/redirect\";\nexport * from \"./method/endpointFn\";\nexport * from \"./method/view\";\n\n// Params\nexport * from \"./params/response\";\nexport * from \"./params/request\";\nexport * from \"./params/next\";\nexport * from \"./params/error\";\n\n// utils\nexport * from \"../utils/mapReturnedResponse\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAE9B,cAAc,UAAU,CAAC;AAEzB,SAAS;AACT,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC;AAC/E,cAAc,qBAAqB,CAAC;AAEpC,SAAS;AACT,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAE/B,QAAQ;AACR,cAAc,8BAA8B,CAAC","sourcesContent":["export * from \"./httpServer\";\nexport * from \"./httpsServer\";\n\nexport * from \"./multer\";\n\n// Method\nexport {Get, Post, Put, Patch, Delete, Head, Options, All} from \"@tsed/schema\";\nexport * from \"./method/acceptMime\";\n\n// Params\nexport * from \"./params/response\";\nexport * from \"./params/request\";\nexport * from \"./params/next\";\nexport * from \"./params/error\";\n\n// utils\nexport * from \"../utils/mapReturnedResponse\";\n"]}
@@ -1,12 +1,8 @@
1
1
  export * from "./httpServer";
2
2
  export * from "./httpsServer";
3
3
  export * from "./multer";
4
- export * from "./method/route";
4
+ export { Get, Post, Put, Patch, Delete, Head, Options, All } from "@tsed/schema";
5
5
  export * from "./method/acceptMime";
6
- export * from "./method/location";
7
- export * from "./method/redirect";
8
- export * from "./method/endpointFn";
9
- export * from "./method/view";
10
6
  export * from "./params/response";
11
7
  export * from "./params/request";
12
8
  export * from "./params/next";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/common",
3
- "version": "7.0.0-beta.2",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "A TypeScript Framework on top of Express",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -46,7 +46,7 @@
46
46
  "bugs": {
47
47
  "url": "https://github.com/tsedio/tsed/issues"
48
48
  },
49
- "homepage": "https://github.com/tsedio/tsed/tree/alpha/packages/platform/common",
49
+ "homepage": "https://github.com/tsedio/tsed/tree/beta/packages/platform/common",
50
50
  "repository": "https://github.com/tsedio/tsed",
51
51
  "funding": [
52
52
  {
@@ -59,22 +59,22 @@
59
59
  }
60
60
  ],
61
61
  "dependencies": {
62
- "@tsed/components-scan": "7.0.0-beta.2",
63
- "@tsed/core": "7.0.0-beta.2",
64
- "@tsed/di": "7.0.0-beta.2",
65
- "@tsed/exceptions": "7.0.0-beta.2",
66
- "@tsed/json-mapper": "7.0.0-beta.2",
62
+ "@tsed/components-scan": "7.0.0-beta.3",
63
+ "@tsed/core": "7.0.0-beta.3",
64
+ "@tsed/di": "7.0.0-beta.3",
65
+ "@tsed/exceptions": "7.0.0-beta.3",
66
+ "@tsed/json-mapper": "7.0.0-beta.3",
67
67
  "@tsed/logger": "^6.0.0",
68
68
  "@tsed/logger-file": "^6.0.0",
69
- "@tsed/perf": "7.0.0-beta.2",
70
- "@tsed/platform-cache": "7.0.0-beta.2",
71
- "@tsed/platform-exceptions": "7.0.0-beta.2",
72
- "@tsed/platform-log-middleware": "7.0.0-beta.2",
73
- "@tsed/platform-middlewares": "7.0.0-beta.2",
74
- "@tsed/platform-params": "7.0.0-beta.2",
75
- "@tsed/platform-response-filter": "7.0.0-beta.2",
76
- "@tsed/platform-views": "7.0.0-beta.2",
77
- "@tsed/schema": "7.0.0-beta.2",
69
+ "@tsed/perf": "7.0.0-beta.3",
70
+ "@tsed/platform-cache": "7.0.0-beta.3",
71
+ "@tsed/platform-exceptions": "7.0.0-beta.3",
72
+ "@tsed/platform-log-middleware": "7.0.0-beta.3",
73
+ "@tsed/platform-middlewares": "7.0.0-beta.3",
74
+ "@tsed/platform-params": "7.0.0-beta.3",
75
+ "@tsed/platform-response-filter": "7.0.0-beta.3",
76
+ "@tsed/platform-views": "7.0.0-beta.3",
77
+ "@tsed/schema": "7.0.0-beta.3",
78
78
  "@types/json-schema": "7.0.7",
79
79
  "on-finished": "2.3.0",
80
80
  "tslib": "2.2.0",
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EndpointFn = void 0;
4
- const schema_1 = require("@tsed/schema");
5
- /**
6
- *
7
- * @param fn
8
- * @decorator
9
- * @deprecated Deprecated since 2021-10-05. Use JsonEntityFn instead.
10
- */
11
- function EndpointFn(fn) {
12
- return (0, schema_1.JsonEntityFn)(fn);
13
- }
14
- exports.EndpointFn = EndpointFn;
15
- //# sourceMappingURL=endpointFn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpointFn.js","sourceRoot":"","sources":["../../../../src/decorators/method/endpointFn.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAG1C;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,EAAyE;IAClG,OAAO,IAAA,qBAAY,EAAmB,EAAE,CAAQ,CAAC;AACnD,CAAC;AAFD,gCAEC","sourcesContent":["import {DecoratorParameters} from \"@tsed/core\";\nimport {JsonEntityFn} from \"@tsed/schema\";\nimport {EndpointMetadata} from \"../../domain\";\n\n/**\n *\n * @param fn\n * @decorator\n * @deprecated Deprecated since 2021-10-05. Use JsonEntityFn instead.\n */\nexport function EndpointFn(fn: (endpoint: EndpointMetadata, parameters: DecoratorParameters) => void): MethodDecorator {\n return JsonEntityFn<EndpointMetadata>(fn) as any;\n}\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Location = void 0;
4
- var schema_1 = require("@tsed/schema");
5
- Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return schema_1.Location; } });
6
- //# sourceMappingURL=location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../src/decorators/method/location.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA9B,kGAAA,QAAQ,OAAA","sourcesContent":["export {Location} from \"@tsed/schema\";\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Redirect = void 0;
4
- var schema_1 = require("@tsed/schema");
5
- Object.defineProperty(exports, "Redirect", { enumerable: true, get: function () { return schema_1.Redirect; } });
6
- //# sourceMappingURL=redirect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redirect.js","sourceRoot":"","sources":["../../../../src/decorators/method/redirect.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA9B,kGAAA,QAAQ,OAAA","sourcesContent":["export {Redirect} from \"@tsed/schema\";\n"]}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.All = exports.Options = exports.Head = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = void 0;
4
- var schema_1 = require("@tsed/schema");
5
- Object.defineProperty(exports, "Get", { enumerable: true, get: function () { return schema_1.Get; } });
6
- Object.defineProperty(exports, "Post", { enumerable: true, get: function () { return schema_1.Post; } });
7
- Object.defineProperty(exports, "Put", { enumerable: true, get: function () { return schema_1.Put; } });
8
- Object.defineProperty(exports, "Patch", { enumerable: true, get: function () { return schema_1.Patch; } });
9
- Object.defineProperty(exports, "Delete", { enumerable: true, get: function () { return schema_1.Delete; } });
10
- Object.defineProperty(exports, "Head", { enumerable: true, get: function () { return schema_1.Head; } });
11
- Object.defineProperty(exports, "Options", { enumerable: true, get: function () { return schema_1.Options; } });
12
- Object.defineProperty(exports, "All", { enumerable: true, get: function () { return schema_1.All; } });
13
- //# sourceMappingURL=route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/decorators/method/route.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAAvE,6FAAA,GAAG,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,6FAAA,GAAG,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,6FAAA,GAAG,OAAA","sourcesContent":["export {Get, Post, Put, Patch, Delete, Head, Options, All} from \"@tsed/schema\";\n"]}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.View = void 0;
4
- const core_1 = require("@tsed/core");
5
- /**
6
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
7
- *
8
- * * viewOptions, an object whose properties define local variables for the view.
9
- *
10
- * The view argument is a string that is the file path of the view file to render.
11
- * This can be an absolute path, or a path relative to the views setting.
12
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
13
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
14
- * and render it using the loaded module’s __express function.
15
- *
16
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
17
- *
18
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
19
- * and as so for security reasons should not contain input from the end-user.
20
- *
21
- * @param path Relative path to the view file.
22
- * @param options Additional options
23
- * @decorator
24
- * @operation
25
- * @response
26
- * @ignores
27
- * @deprecated Use View decorator from @tsed/platform-views instead.
28
- */
29
- // istanbul ignore next
30
- function View(path, options) {
31
- return (0, core_1.StoreSet)("view", { path, options });
32
- }
33
- exports.View = View;
34
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/decorators/method/view.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,uBAAuB;AACvB,SAAgB,IAAI,CAAC,IAAY,EAAE,OAAgB;IACjD,OAAO,IAAA,eAAQ,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,CAAQ,CAAC;AAClD,CAAC;AAFD,oBAEC","sourcesContent":["import {StoreSet} from \"@tsed/core\";\n\n/**\n * Use a view and sends the rendered HTML string to the client. Optional parameter:\n *\n * * viewOptions, an object whose properties define local variables for the view.\n *\n * The view argument is a string that is the file path of the view file to render.\n * This can be an absolute path, or a path relative to the views setting.\n * If the path does not contain a file extension, then the view engine setting determines the file extension.\n * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())\n * and render it using the loaded module’s __express function.\n *\n * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).\n *\n * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,\n * and as so for security reasons should not contain input from the end-user.\n *\n * @param path Relative path to the view file.\n * @param options Additional options\n * @decorator\n * @operation\n * @response\n * @ignores\n * @deprecated Use View decorator from @tsed/platform-views instead.\n */\n// istanbul ignore next\nexport function View(path: string, options?: Object): MethodDecorator {\n return StoreSet(\"view\", {path, options}) as any;\n}\n"]}
@@ -1,11 +0,0 @@
1
- import { JsonEntityFn } from "@tsed/schema";
2
- /**
3
- *
4
- * @param fn
5
- * @decorator
6
- * @deprecated Deprecated since 2021-10-05. Use JsonEntityFn instead.
7
- */
8
- export function EndpointFn(fn) {
9
- return JsonEntityFn(fn);
10
- }
11
- //# sourceMappingURL=endpointFn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpointFn.js","sourceRoot":"","sources":["../../../../src/decorators/method/endpointFn.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAG1C;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,EAAyE;IAClG,OAAO,YAAY,CAAmB,EAAE,CAAQ,CAAC;AACnD,CAAC","sourcesContent":["import {DecoratorParameters} from \"@tsed/core\";\nimport {JsonEntityFn} from \"@tsed/schema\";\nimport {EndpointMetadata} from \"../../domain\";\n\n/**\n *\n * @param fn\n * @decorator\n * @deprecated Deprecated since 2021-10-05. Use JsonEntityFn instead.\n */\nexport function EndpointFn(fn: (endpoint: EndpointMetadata, parameters: DecoratorParameters) => void): MethodDecorator {\n return JsonEntityFn<EndpointMetadata>(fn) as any;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export { Location } from "@tsed/schema";
2
- //# sourceMappingURL=location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../src/decorators/method/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC","sourcesContent":["export {Location} from \"@tsed/schema\";\n"]}
@@ -1,2 +0,0 @@
1
- export { Redirect } from "@tsed/schema";
2
- //# sourceMappingURL=redirect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redirect.js","sourceRoot":"","sources":["../../../../src/decorators/method/redirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC","sourcesContent":["export {Redirect} from \"@tsed/schema\";\n"]}
@@ -1,2 +0,0 @@
1
- export { Get, Post, Put, Patch, Delete, Head, Options, All } from "@tsed/schema";
2
- //# sourceMappingURL=route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/decorators/method/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC","sourcesContent":["export {Get, Post, Put, Patch, Delete, Head, Options, All} from \"@tsed/schema\";\n"]}
@@ -1,30 +0,0 @@
1
- import { StoreSet } from "@tsed/core";
2
- /**
3
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
4
- *
5
- * * viewOptions, an object whose properties define local variables for the view.
6
- *
7
- * The view argument is a string that is the file path of the view file to render.
8
- * This can be an absolute path, or a path relative to the views setting.
9
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
10
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
11
- * and render it using the loaded module’s __express function.
12
- *
13
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
14
- *
15
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
16
- * and as so for security reasons should not contain input from the end-user.
17
- *
18
- * @param path Relative path to the view file.
19
- * @param options Additional options
20
- * @decorator
21
- * @operation
22
- * @response
23
- * @ignores
24
- * @deprecated Use View decorator from @tsed/platform-views instead.
25
- */
26
- // istanbul ignore next
27
- export function View(path, options) {
28
- return StoreSet("view", { path, options });
29
- }
30
- //# sourceMappingURL=view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/decorators/method/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,uBAAuB;AACvB,MAAM,UAAU,IAAI,CAAC,IAAY,EAAE,OAAgB;IACjD,OAAO,QAAQ,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,CAAQ,CAAC;AAClD,CAAC","sourcesContent":["import {StoreSet} from \"@tsed/core\";\n\n/**\n * Use a view and sends the rendered HTML string to the client. Optional parameter:\n *\n * * viewOptions, an object whose properties define local variables for the view.\n *\n * The view argument is a string that is the file path of the view file to render.\n * This can be an absolute path, or a path relative to the views setting.\n * If the path does not contain a file extension, then the view engine setting determines the file extension.\n * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())\n * and render it using the loaded module’s __express function.\n *\n * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).\n *\n * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,\n * and as so for security reasons should not contain input from the end-user.\n *\n * @param path Relative path to the view file.\n * @param options Additional options\n * @decorator\n * @operation\n * @response\n * @ignores\n * @deprecated Use View decorator from @tsed/platform-views instead.\n */\n// istanbul ignore next\nexport function View(path: string, options?: Object): MethodDecorator {\n return StoreSet(\"view\", {path, options}) as any;\n}\n"]}
@@ -1,9 +0,0 @@
1
- import { DecoratorParameters } from "@tsed/core";
2
- import { EndpointMetadata } from "../../domain";
3
- /**
4
- *
5
- * @param fn
6
- * @decorator
7
- * @deprecated Deprecated since 2021-10-05. Use JsonEntityFn instead.
8
- */
9
- export declare function EndpointFn(fn: (endpoint: EndpointMetadata, parameters: DecoratorParameters) => void): MethodDecorator;
@@ -1 +0,0 @@
1
- export { Location } from "@tsed/schema";
@@ -1 +0,0 @@
1
- export { Redirect } from "@tsed/schema";
@@ -1 +0,0 @@
1
- export { Get, Post, Put, Patch, Delete, Head, Options, All } from "@tsed/schema";
@@ -1,25 +0,0 @@
1
- /**
2
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
3
- *
4
- * * viewOptions, an object whose properties define local variables for the view.
5
- *
6
- * The view argument is a string that is the file path of the view file to render.
7
- * This can be an absolute path, or a path relative to the views setting.
8
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
9
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
10
- * and render it using the loaded module’s __express function.
11
- *
12
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
13
- *
14
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
15
- * and as so for security reasons should not contain input from the end-user.
16
- *
17
- * @param path Relative path to the view file.
18
- * @param options Additional options
19
- * @decorator
20
- * @operation
21
- * @response
22
- * @ignores
23
- * @deprecated Use View decorator from @tsed/platform-views instead.
24
- */
25
- export declare function View(path: string, options?: Object): MethodDecorator;