@eventcatalog/create-eventcatalog 4.3.11 → 4.3.12-beta.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.
package/dist/index.js CHANGED
@@ -29835,7 +29835,7 @@ var import_os2 = __toESM(require("os"));
29835
29835
  var package_default = {
29836
29836
  name: "@eventcatalog/create-eventcatalog",
29837
29837
  description: "Create EventCatalog with one command",
29838
- version: "4.3.11",
29838
+ version: "4.3.12-beta.1",
29839
29839
  license: "MIT",
29840
29840
  bin: {
29841
29841
  "create-catalog": "./dist/index.js"
@@ -30010,12 +30010,14 @@ var installTemplate = async ({
30010
30010
  import_fs16.default.writeFileSync(import_path9.default.join(root, "AGENTS.md"), AGENT_RULES);
30011
30011
  import_fs16.default.writeFileSync(import_path9.default.join(root, "CLAUDE.md"), CLAUDE_RULES);
30012
30012
  const cId = (0, import_uuid.v4)();
30013
+ const tsd = Date.now();
30013
30014
  const eventCatalogConfigPath = import_path9.default.join(root, "eventcatalog.config.js");
30014
30015
  let eventCatalogConfig = import_fs16.default.readFileSync(eventCatalogConfigPath, "utf8");
30015
30016
  eventCatalogConfig = eventCatalogConfig.replace(/<organizationName>/g, organizationName2);
30016
30017
  eventCatalogConfig = eventCatalogConfig.replace(/<cId>/g, cId);
30018
+ eventCatalogConfig = eventCatalogConfig.replace(/'<tsd>'/g, String(tsd));
30017
30019
  import_fs16.default.writeFileSync(eventCatalogConfigPath, eventCatalogConfig);
30018
- await raiseEvent({ command: "create", org: organizationName2, cId });
30020
+ await raiseEvent({ command: "create", org: organizationName2, cId, tsd });
30019
30021
  if (!eslint) {
30020
30022
  await import_fs16.default.promises.unlink(import_path9.default.join(root, ".eslintrc.json"));
30021
30023
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/create-eventcatalog",
3
3
  "description": "Create EventCatalog with one command",
4
- "version": "4.3.11",
4
+ "version": "4.3.12-beta.1",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "create-catalog": "./dist/index.js"
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -46,6 +46,8 @@ export default {
46
46
  },
47
47
  // required random generated id used by eventcatalog
48
48
  cId: '<cId>',
49
+ // required by eventcatalog
50
+ tsd: '<tsd>',
49
51
  generators: [
50
52
  [
51
53
  '@eventcatalog/generator-amazon-apigateway',
@@ -5,6 +5,7 @@ interface EventMetadata {
5
5
  command: string;
6
6
  org: string;
7
7
  cId: string;
8
+ tsd: number;
8
9
  }
9
10
 
10
11
  async function raiseEvent(eventData: EventMetadata): Promise<void> {
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -86,4 +86,6 @@ export default {
86
86
  },
87
87
  // required random generated id used by eventcatalog
88
88
  cId: '<cId>',
89
+ // required by eventcatalog
90
+ tsd: '<tsd>',
89
91
  };
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -39,6 +39,8 @@ export default {
39
39
  },
40
40
  // required random generated id used by eventcatalog
41
41
  cId: '<cId>',
42
+ // required by eventcatalog
43
+ tsd: '<tsd>',
42
44
  // This lets you copy markdown contents from EventCatalog to your clipboard
43
45
  // Including schemas for your events and services
44
46
  llmsTxt: {
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -55,4 +55,6 @@ export default {
55
55
  },
56
56
  // required random generated id used by eventcatalog
57
57
  cId: '<cId>',
58
+ // required by eventcatalog
59
+ tsd: '<tsd>',
58
60
  };
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -38,4 +38,6 @@ export default {
38
38
  },
39
39
  // required random generated id used by eventcatalog
40
40
  cId: '<cId>',
41
+ // required by eventcatalog
42
+ tsd: '<tsd>',
41
43
  };
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -44,6 +44,8 @@ export default {
44
44
  },
45
45
  // required random generated id used by eventcatalog
46
46
  cId: '<cId>',
47
+ // required by eventcatalog
48
+ tsd: '<tsd>',
47
49
  // Just import all events into the Catalog from a registry
48
50
  generators: [
49
51
  '@eventcatalog/generator-eventbridge',
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -73,4 +73,6 @@ export default {
73
73
  ],
74
74
  // required random generated id used by eventcatalog
75
75
  cId: '<cId>',
76
+ // required by eventcatalog
77
+ tsd: '<tsd>',
76
78
  };
@@ -148,15 +148,18 @@ export const installTemplate = async ({
148
148
  fs.writeFileSync(path.join(root, 'CLAUDE.md'), CLAUDE_RULES);
149
149
 
150
150
  const cId = v4();
151
+ // trial start date (unix ms), stored as a number
152
+ const tsd = Date.now();
151
153
 
152
154
  // update the properties in the eventcatalog.config.js
153
155
  const eventCatalogConfigPath = path.join(root, 'eventcatalog.config.js');
154
156
  let eventCatalogConfig = fs.readFileSync(eventCatalogConfigPath, 'utf8');
155
157
  eventCatalogConfig = eventCatalogConfig.replace(/<organizationName>/g, organizationName);
156
158
  eventCatalogConfig = eventCatalogConfig.replace(/<cId>/g, cId);
159
+ eventCatalogConfig = eventCatalogConfig.replace(/'<tsd>'/g, String(tsd));
157
160
  fs.writeFileSync(eventCatalogConfigPath, eventCatalogConfig);
158
161
 
159
- await raiseEvent({ command: 'create', org: organizationName, cId });
162
+ await raiseEvent({ command: 'create', org: organizationName, cId, tsd });
160
163
 
161
164
  if (!eslint) {
162
165
  // remove un-necessary template file if eslint is not desired
@@ -1,4 +1,5 @@
1
1
  .eventcatalog-core/
2
+ .astro/
2
3
  .git/
3
4
  dist/
4
5
  node_modules/
@@ -85,4 +85,6 @@ export default {
85
85
  ],
86
86
  // required random generated id used by eventcatalog
87
87
  cId: '<cId>',
88
+ // required by eventcatalog
89
+ tsd: '<tsd>',
88
90
  };