@finos/legend-graph 22.2.4 → 22.2.5

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.
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { addUniqueEntry } from '@finos/legend-shared';
16
+ import { addUniqueEntry, URL_SEPARATOR } from '@finos/legend-shared';
17
17
  import { isStubbed_PackageableElement } from '../../../graph/helpers/creator/DomainModelCreatorHelper.js';
18
18
  import { isStubbed_RawLambda } from '../../../graph/helpers/creator/RawValueSpecificationCreatorHelper.js';
19
19
  import { createValidationError, } from './ValidationHelper.js';
@@ -22,10 +22,10 @@ export const validate_ServicePattern = (pattern) => {
22
22
  if (!pattern) {
23
23
  addUniqueEntry(errors, 'Pattern must not be empty');
24
24
  }
25
- else if (pattern === '/') {
25
+ else if (pattern === URL_SEPARATOR) {
26
26
  addUniqueEntry(errors, `Pattern must not be '/'`);
27
27
  }
28
- else if (!pattern.startsWith('/')) {
28
+ else if (!pattern.startsWith(URL_SEPARATOR)) {
29
29
  addUniqueEntry(errors, `Pattern must start with a '/'`);
30
30
  }
31
31
  // TODO: potentially do more validation
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_Service_ValidationHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/validation/DSL_Service_ValidationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAC3G,OAAO,EAEL,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAAe,EACc,EAAE;IAC/B,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE;QACZ,cAAc,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;KACrD;SAAM,IAAI,OAAO,KAAK,GAAG,EAAE;QAC1B,cAAc,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;KACnD;SAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QACnC,cAAc,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;KACzD;IACD,uCAAuC;IACvC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,SAAwB,EACK,EAAE;IAC/B,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACvC,OAAO,qBAAqB,CAAC;YAC3B,4CAA4C;SAC7C,CAAC,CAAC;KACJ;IACD,iHAAiH;IACjH,wCAAwC;IACxC,8EAA8E;IAC9E,IAAI;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,OAAgB,EACa,EAAE,CAC/B,4BAA4B,CAAC,OAAO,CAAC;IACnC,CAAC,CAAC,qBAAqB,CAAC,CAAC,2CAA2C,CAAC,CAAC;IACtE,CAAC,CAAC,SAAS,CAAC"}
1
+ {"version":3,"file":"DSL_Service_ValidationHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/validation/DSL_Service_ValidationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAC3G,OAAO,EAEL,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAAe,EACc,EAAE;IAC/B,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE;QACZ,cAAc,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;KACrD;SAAM,IAAI,OAAO,KAAK,aAAa,EAAE;QACpC,cAAc,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;KACnD;SAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;QAC7C,cAAc,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;KACzD;IACD,uCAAuC;IACvC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,SAAwB,EACK,EAAE;IAC/B,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACvC,OAAO,qBAAqB,CAAC;YAC3B,4CAA4C;SAC7C,CAAC,CAAC;KACJ;IACD,iHAAiH;IACjH,wCAAwC;IACxC,8EAA8E;IAC9E,IAAI;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,OAAgB,EACa,EAAE,CAC/B,4BAA4B,CAAC,OAAO,CAAC;IACnC,CAAC,CAAC,qBAAqB,CAAC,CAAC,2CAA2C,CAAC,CAAC;IACtE,CAAC,CAAC,SAAS,CAAC"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-graph",
3
- "version": "22.2.4",
3
+ "version": "22.2.5",
4
4
  "description": "Legend graph and graph manager",
5
5
  "keywords": [
6
6
  "legend",
@@ -48,10 +48,10 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@finos/legend-dev-utils": "workspace:*",
51
- "@jest/globals": "29.4.1",
51
+ "@jest/globals": "29.4.2",
52
52
  "cross-env": "7.0.3",
53
53
  "eslint": "8.33.0",
54
- "jest": "29.4.1",
54
+ "jest": "29.4.2",
55
55
  "npm-run-all": "4.1.5",
56
56
  "rimraf": "4.1.2",
57
57
  "typescript": "4.9.5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-graph",
3
- "version": "22.2.4",
3
+ "version": "22.2.5",
4
4
  "description": "Legend graph and graph manager",
5
5
  "keywords": [
6
6
  "legend",
@@ -39,19 +39,19 @@
39
39
  "test:watch": "jest --watch"
40
40
  },
41
41
  "dependencies": {
42
- "@finos/legend-shared": "6.2.16",
43
- "@finos/legend-storage": "3.0.31",
42
+ "@finos/legend-shared": "6.2.17",
43
+ "@finos/legend-storage": "3.0.32",
44
44
  "mobx": "6.7.0",
45
45
  "mobx-react-lite": "3.4.0",
46
46
  "react": "18.2.0",
47
47
  "serializr": "3.0.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@finos/legend-dev-utils": "2.0.39",
51
- "@jest/globals": "29.4.1",
50
+ "@finos/legend-dev-utils": "2.0.40",
51
+ "@jest/globals": "29.4.2",
52
52
  "cross-env": "7.0.3",
53
53
  "eslint": "8.33.0",
54
- "jest": "29.4.1",
54
+ "jest": "29.4.2",
55
55
  "npm-run-all": "4.1.5",
56
56
  "rimraf": "4.1.2",
57
57
  "typescript": "4.9.5"
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { addUniqueEntry } from '@finos/legend-shared';
17
+ import { addUniqueEntry, URL_SEPARATOR } from '@finos/legend-shared';
18
18
  import type { Mapping } from '../../../graph/metamodel/pure/packageableElements/mapping/Mapping.js';
19
19
  import type { PureExecution } from '../../../graph/metamodel/pure/packageableElements/service/ServiceExecution.js';
20
20
  import { isStubbed_PackageableElement } from '../../../graph/helpers/creator/DomainModelCreatorHelper.js';
@@ -30,9 +30,9 @@ export const validate_ServicePattern = (
30
30
  const errors: string[] = [];
31
31
  if (!pattern) {
32
32
  addUniqueEntry(errors, 'Pattern must not be empty');
33
- } else if (pattern === '/') {
33
+ } else if (pattern === URL_SEPARATOR) {
34
34
  addUniqueEntry(errors, `Pattern must not be '/'`);
35
- } else if (!pattern.startsWith('/')) {
35
+ } else if (!pattern.startsWith(URL_SEPARATOR)) {
36
36
  addUniqueEntry(errors, `Pattern must start with a '/'`);
37
37
  }
38
38
  // TODO: potentially do more validation