@hahnpro/flow-sdk 4.20.9 → 4.20.11

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 (2) hide show
  1. package/dist/FlowModule.js +3 -3
  2. package/package.json +10 -11
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FlowModule = void 0;
4
4
  function FlowModule(metadata) {
5
- const fqnRegExp = new RegExp('^([a-zA-Z][a-zA-Z0-9]*[.-])*[a-zA-Z][a-zA-Z0-9]*$');
6
- if (!fqnRegExp.test(metadata.name)) {
7
- throw new Error(`Flow Module name (${metadata.name}) is not valid`);
5
+ const validateNameRegExp = new RegExp(/^(@[a-z][a-z0-9-]*\/)?[a-z][a-z0-9-]*$/);
6
+ if (!validateNameRegExp.test(metadata.name)) {
7
+ throw new Error(`Flow Module name (${metadata.name}) is not valid. Name must be all lowercase and not contain any special characters except for hyphens. Can optionally start with a scope "@scopename/"`);
8
8
  }
9
9
  return (target) => {
10
10
  Reflect.defineMetadata('module:name', metadata.name, target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/flow-sdk",
3
- "version": "4.20.9",
3
+ "version": "4.20.11",
4
4
  "description": "SDK for building Flow Modules",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,9 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@hahnpro/hpc-api": "2.3.0",
27
+ "@hahnpro/hpc-api": "2.3.1",
28
28
  "amqp-connection-manager": "^3.9.0",
29
- "amqplib": "^0.8.0",
29
+ "amqplib": "^0.9.0",
30
30
  "class-transformer": "0.5.1",
31
31
  "class-validator": "~0.13.2",
32
32
  "cloudevents": "^6.0.1",
@@ -39,16 +39,16 @@
39
39
  "uuid": "^8.3.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@golevelup/nestjs-rabbitmq": "^2.2.0",
43
- "@nestjs/common": "^8.4.3",
42
+ "@golevelup/nestjs-rabbitmq": "^2.3.0",
43
+ "@nestjs/common": "^8.4.4",
44
44
  "@types/amqp-connection-manager": "^2.0.12",
45
45
  "@types/amqplib": "^0.8.2",
46
- "@types/jest": "^27.4.1",
47
- "@types/lodash": "^4.14.181",
48
- "@types/node": "^16.11.26",
46
+ "@types/jest": "^27.5.0",
47
+ "@types/lodash": "^4.14.182",
48
+ "@types/node": "^16.11.34",
49
49
  "class-validator-jsonschema": "^3.1.0",
50
50
  "jest": "^27.5.1",
51
- "typescript": "^4.6.3"
51
+ "typescript": "^4.6.4"
52
52
  },
53
53
  "engines": {
54
54
  "node": "^14.13.1 || >=16.0.0"
@@ -57,6 +57,5 @@
57
57
  "build": "../../node_modules/.bin/tsc -p tsconfig.lib.json",
58
58
  "build:nocomments": "../../node_modules/.bin/tsc -p tsconfig.nocomments.json",
59
59
  "postbuild": "../../node_modules/.bin/copyfiles -u 1 lib/*.py dist"
60
- },
61
- "readme": "# `@hahnpro/flow-sdk`\n\nhttps://github.com/hahnprojects/flow\n"
60
+ }
62
61
  }