@itrocks/framework 1.6.0 → 1.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.
@@ -100,7 +100,7 @@ function bind() {
100
100
  const template = new template_1.Template(data, containerData);
101
101
  template.applicationPath = request.request.applicationPath.bind(request.request);
102
102
  template.publicUrl = request.request.publicUrl.bind(request.request);
103
- template.urlAttributes.push('data-custom-list-route', 'data-fetch', 'data-feed', 'data-route');
103
+ template.urlAttributes.push('data-custom-list-route', 'data-fetch', 'data-feed', 'data-href', 'data-link', 'data-route');
104
104
  return this.htmlResponse(await template.parseFile(templateFile, contained && (0, node_path_1.join)(app_dir_1.appDir, config_1.config.container.file)), statusCode, headers);
105
105
  };
106
106
  }
package/cjs/language.js CHANGED
@@ -41,7 +41,8 @@ function configureLanguages() {
41
41
  // TODO search language files everywhere in application modules, not only into app
42
42
  const directories = [
43
43
  (0, node_path_2.join)((0, node_path_1.dirname)(require.resolve('@itrocks/custom-list')), '..'),
44
- (0, node_path_2.join)(__dirname, '..'), (0, node_path_2.join)(app_dir_1.appDir, 'app'), app_dir_1.appDir
44
+ (0, node_path_2.join)(__dirname, '..'), (0, node_path_2.join)(app_dir_1.appDir, 'app'),
45
+ app_dir_1.appDir
45
46
  ];
46
47
  for (const language of configuration.supportedLanguages) {
47
48
  for (const directory of directories) {
@@ -6,13 +6,13 @@ declare abstract class MetadataAction extends Action {
6
6
  json(request: Request): Promise<import("@itrocks/core-responses").JsonResponse>;
7
7
  }
8
8
  export declare class MetadataConfiguration extends MetadataAction {
9
- protected operation: "configuration";
9
+ protected operation: 'configuration';
10
10
  }
11
11
  export declare class MetadataContext extends MetadataAction {
12
- protected operation: "context";
12
+ protected operation: 'context';
13
13
  }
14
14
  export declare class MetadataResolve extends MetadataAction {
15
- protected operation: "resolve";
15
+ protected operation: 'resolve';
16
16
  }
17
17
  export declare class PropertySelectTemplate extends Action {
18
18
  html(): Promise<import("@itrocks/core-responses").HtmlResponse>;
@@ -24,8 +24,8 @@ export declare function metadataBootstrap(request: Request, root: RootId, usedPa
24
24
  contexts: ObjectContext[];
25
25
  errors: [string, string][];
26
26
  record: {
27
- state: import("@itrocks/property-select").SelectorState;
28
27
  revision: number;
28
+ state: import("@itrocks/property-select").SelectorState;
29
29
  };
30
30
  template: string;
31
31
  translations: {
@@ -25,7 +25,12 @@ const sql_join_dependencies_8 = require("./sql-join-dependencies");
25
25
  const dependencies = { mappingOf: () => undefined };
26
26
  function bindSqlJoins() {
27
27
  (0, sql_join_2.sqlJoinDependsOn)({
28
- columnDefinitionOf: sql_join_dependencies_1.columnDefinitionOf, columnDefinitionsOf: sql_join_dependencies_2.columnDefinitionsOf, columnOf: sql_join_dependencies_3.columnOf, componentOf: composition_1.componentOf, isCollection: sql_join_dependencies_4.isCollection, isScalar: sql_join_dependencies_5.isScalar,
28
+ columnDefinitionOf: sql_join_dependencies_1.columnDefinitionOf,
29
+ columnDefinitionsOf: sql_join_dependencies_2.columnDefinitionsOf,
30
+ columnOf: sql_join_dependencies_3.columnOf,
31
+ componentOf: composition_1.componentOf,
32
+ isCollection: sql_join_dependencies_4.isCollection,
33
+ isScalar: sql_join_dependencies_5.isScalar,
29
34
  multiplicityOf: property => {
30
35
  try {
31
36
  return (0, reflect_path_2.resolvePropertyPath)(property.class, [String(property.name)]).targetMultiplicity;
@@ -37,12 +42,15 @@ function bindSqlJoins() {
37
42
  : error.code === 'invalid-path' ? 'invalid-path' : 'unsupported-relationship', error.path);
38
43
  }
39
44
  },
40
- relationshipOf, requiredOf: required_1.requiredOf, rightColumnDefinitionOf: sql_join_dependencies_6.rightColumnDefinitionOf,
45
+ relationshipOf,
46
+ requiredOf: required_1.requiredOf,
47
+ rightColumnDefinitionOf: sql_join_dependencies_6.rightColumnDefinitionOf,
41
48
  storedAsValueOf: property => {
42
49
  const target = (0, sql_join_dependencies_7.tableDefinitionOf)(property);
43
50
  return !!target && !(0, store_1.storeOf)(target);
44
51
  },
45
- tableDefinitionOf: sql_join_dependencies_7.tableDefinitionOf, tableOf: sql_join_dependencies_8.tableOf
52
+ tableDefinitionOf: sql_join_dependencies_7.tableDefinitionOf,
53
+ tableOf: sql_join_dependencies_8.tableOf
46
54
  });
47
55
  }
48
56
  function relationshipOf(table, column, property) {
package/package.json CHANGED
@@ -125,5 +125,5 @@
125
125
  "build:test": "tsc -p test/tsconfig.json",
126
126
  "test": "npm run build && npm run build:test && node --test test/*.test.js test/*.test.mjs"
127
127
  },
128
- "version": "1.6.0"
128
+ "version": "1.6.1"
129
129
  }