@n8n/decorators 0.30.0 → 0.31.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.
@@ -1,7 +1,7 @@
1
1
  export { Body, Query, Param } from './args';
2
2
  export { RestController } from './rest-controller';
3
3
  export { RootLevelController } from './root-level-controller';
4
- export { Get, Post, Put, Patch, Delete, Options } from './route';
4
+ export { Get, Post, Put, Patch, Delete, Head, Options } from './route';
5
5
  export { Middleware } from './middleware';
6
6
  export { ControllerRegistryMetadata } from './controller-registry-metadata';
7
7
  export { Licensed } from './licensed';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProjectScope = exports.GlobalScope = exports.Licensed = exports.ControllerRegistryMetadata = exports.Middleware = exports.Options = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = exports.RootLevelController = exports.RestController = exports.Param = exports.Query = exports.Body = void 0;
3
+ exports.ProjectScope = exports.GlobalScope = exports.Licensed = exports.ControllerRegistryMetadata = exports.Middleware = exports.Options = exports.Head = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = exports.RootLevelController = exports.RestController = exports.Param = exports.Query = exports.Body = void 0;
4
4
  var args_1 = require("./args");
5
5
  Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return args_1.Body; } });
6
6
  Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return args_1.Query; } });
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "Post", { enumerable: true, get: function () { re
15
15
  Object.defineProperty(exports, "Put", { enumerable: true, get: function () { return route_1.Put; } });
16
16
  Object.defineProperty(exports, "Patch", { enumerable: true, get: function () { return route_1.Patch; } });
17
17
  Object.defineProperty(exports, "Delete", { enumerable: true, get: function () { return route_1.Delete; } });
18
+ Object.defineProperty(exports, "Head", { enumerable: true, get: function () { return route_1.Head; } });
18
19
  Object.defineProperty(exports, "Options", { enumerable: true, get: function () { return route_1.Options; } });
19
20
  var middleware_1 = require("./middleware");
20
21
  Object.defineProperty(exports, "Middleware", { enumerable: true, get: function () { return middleware_1.Middleware; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controller/index.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAAnC,4FAAA,IAAI,OAAA;AAAE,6FAAA,KAAK,OAAA;AAAE,6FAAA,KAAK,OAAA;AAC3B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,iCAAiE;AAAxD,4FAAA,GAAG,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,4FAAA,GAAG,OAAA;AAAE,8FAAA,KAAK,OAAA;AAAE,+FAAA,MAAM,OAAA;AAAE,gGAAA,OAAO,OAAA;AAC/C,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+EAA4E;AAAnE,0IAAA,0BAA0B,OAAA;AACnC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mCAAqD;AAA5C,qGAAA,WAAW,OAAA;AAAE,sGAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controller/index.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAAnC,4FAAA,IAAI,OAAA;AAAE,6FAAA,KAAK,OAAA;AAAE,6FAAA,KAAK,OAAA;AAC3B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,iCAAuE;AAA9D,4FAAA,GAAG,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,4FAAA,GAAG,OAAA;AAAE,8FAAA,KAAK,OAAA;AAAE,+FAAA,MAAM,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,gGAAA,OAAO,OAAA;AACrD,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+EAA4E;AAAnE,0IAAA,0BAA0B,OAAA;AACnC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mCAAqD;AAA5C,qGAAA,WAAW,OAAA;AAAE,sGAAA,YAAY,OAAA"}
@@ -14,5 +14,6 @@ export declare const Post: (path: `/${string}`, options?: RouteOptions) => Metho
14
14
  export declare const Put: (path: `/${string}`, options?: RouteOptions) => MethodDecorator;
15
15
  export declare const Patch: (path: `/${string}`, options?: RouteOptions) => MethodDecorator;
16
16
  export declare const Delete: (path: `/${string}`, options?: RouteOptions) => MethodDecorator;
17
+ export declare const Head: (path: `/${string}`, options?: RouteOptions) => MethodDecorator;
17
18
  export declare const Options: (path: `/${string}`, options?: RouteOptions) => MethodDecorator;
18
19
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Options = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = void 0;
3
+ exports.Options = exports.Head = exports.Delete = exports.Patch = exports.Put = exports.Post = exports.Get = void 0;
4
4
  const di_1 = require("@n8n/di");
5
5
  const controller_registry_metadata_1 = require("./controller-registry-metadata");
6
6
  const RouteFactory = (method) => (path, options = {}) => (target, handlerName) => {
@@ -20,5 +20,6 @@ exports.Post = RouteFactory('post');
20
20
  exports.Put = RouteFactory('put');
21
21
  exports.Patch = RouteFactory('patch');
22
22
  exports.Delete = RouteFactory('delete');
23
+ exports.Head = RouteFactory('head');
23
24
  exports.Options = RouteFactory('options');
24
25
  //# sourceMappingURL=route.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/controller/route.ts"],"names":[],"mappings":";;;AAAA,gCAAoC;AAGpC,iFAA4E;AAiB5E,MAAM,YAAY,GACjB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,IAAkB,EAAE,UAAwB,EAAE,EAAmB,EAAE,CACpE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;IACvB,MAAM,aAAa,GAAG,cAAS,CAAC,GAAG,CAAC,yDAA0B,CA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vB,MAAM,aAAa,GAAG,cAAS,CAAC,GAAG,CAAC,yDAA0B,CAAC,CAAC,gBAAgB,CAC/E,MAAM,CAAC,WAAyB,EAChC,MAAM,CAAC,WAAW,CAAC,CACnB,CAAC;IACF,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;IAC9B,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;IACtD,aAAa,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,KAAK,CAAC;IAC7D,aAAa,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC;IACnD,aAAa,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,IAAI,KAAK,CAAC;IAC3E,aAAa,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,KAAK,CAAC;IAC3D,aAAa,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC;IACvD,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAC7C,CAAC,CAAC;AAEU,QAAA,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAC5B,QAAA,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAC1B,QAAA,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAC9B,QAAA,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,QAAA,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAC5B,QAAA,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import type { BooleanLicenseFeature } from '@n8n/constants';
2
2
  import type { Constructable } from '@n8n/di';
3
3
  import type { Scope } from '@n8n/permissions';
4
4
  import type { RequestHandler, Router } from 'express';
5
- export type Method = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'options';
5
+ export type Method = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head' | 'options';
6
6
  export type Arg = {
7
7
  type: 'body' | 'query';
8
8
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/decorators",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -16,10 +16,10 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "lodash": "4.17.21",
19
+ "@n8n/constants": "^0.14.0",
19
20
  "@n8n/permissions": "^0.42.0",
20
- "@n8n/constants": "^0.13.0",
21
21
  "@n8n/di": "^0.9.0",
22
- "n8n-workflow": "^1.117.0"
22
+ "n8n-workflow": "^1.118.0"
23
23
  },
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "homepage": "https://n8n.io",