@powerhousedao/codegen 0.21.0 → 0.21.2

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.
@@ -2,7 +2,7 @@
2
2
  to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/src/index.ts"
3
3
  force: true
4
4
  ---
5
- import { generateUUID } from "document-drive";
5
+ import { randomUUID } from "crypto";
6
6
  import { AnalyticsPath } from "@powerhousedao/analytics-engine-core";
7
7
  import {
8
8
  AnalyticsProcessor,
@@ -10,7 +10,7 @@ import {
10
10
  ProcessorUpdate
11
11
  } from "@powerhousedao/reactor-api";
12
12
  <% documentTypes.forEach(type => { _%>
13
- import { <%= documentTypesMap[type].name %>Document } from "../../<%= documentTypesMap[type].importPath %>";
13
+ import { <%= documentTypesMap[type].name %>Document } from "<%= documentTypesMap[type].importPath %>";
14
14
  %><% }); _%>
15
15
 
16
16
  <% if(documentTypes.length) { %>type DocumentType = <%= documentTypes.map(type => `${documentTypesMap[type].name}Document`).join(" | ") %> <% } %>;
@@ -18,7 +18,7 @@ import { <%= documentTypesMap[type].name %>Document } from "../../<%= documentTy
18
18
  export class <%= pascalName %>Processor extends AnalyticsProcessor<% if(documentTypes.length) { %><DocumentType><% } %> {
19
19
 
20
20
  protected processorOptions: ProcessorOptions = {
21
- listenerId: generateUUID(),
21
+ listenerId: randomUUID(),
22
22
  filter: {
23
23
  branch: ["main"],
24
24
  documentId: ["*"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/codegen",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "execa": "^8.0.1",
34
34
  "hygen": "^6.2.11",
35
35
  "@powerhousedao/config": "1.2.0",
36
- "document-model": "2.11.0"
36
+ "document-model": "2.12.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "copyfiles": "^2.4.1",