@things-factory/operato-board 5.0.0-alpha.51 → 5.0.0-alpha.52

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.
@@ -5,9 +5,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
8
  Object.defineProperty(exports, "__esModule", { value: true });
12
9
  exports.DomainSubscriber = void 0;
13
10
  const typeorm_1 = require("typeorm");
@@ -15,7 +12,7 @@ const shell_1 = require("@things-factory/shell");
15
12
  const domain_secret_1 = require("../service/domain-secret/domain-secret");
16
13
  const license_error_1 = require("../errors/license-error");
17
14
  const operato_license_checker_1 = require("@things-factory/operato-license-checker");
18
- const v4_1 = __importDefault(require("uuid/v4"));
15
+ const uuid_1 = require("uuid");
19
16
  let DomainSubscriber = class DomainSubscriber {
20
17
  listenTo() {
21
18
  return shell_1.Domain;
@@ -38,7 +35,7 @@ let DomainSubscriber = class DomainSubscriber {
38
35
  if ((0, operato_license_checker_1.checkDomain)(count)) {
39
36
  var domain = event.entity;
40
37
  var domainSecret = new domain_secret_1.DomainSecret();
41
- domainSecret.id = (0, v4_1.default)();
38
+ domainSecret.id = (0, uuid_1.v4)();
42
39
  domainSecret.domain = domain.domain;
43
40
  var hash = (0, operato_license_checker_1.doSomething)({ secId: domainSecret.id, id: domain.id });
44
41
  domainSecret.secret = hash;
@@ -1 +1 @@
1
- {"version":3,"file":"domain-subscriber.js","sourceRoot":"","sources":["../../server/subscribers/domain-subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyG;AACzG,iDAA8C;AAC9C,0EAAqE;AACrE,2DAAsD;AAC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AAY,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;gBACnC,IAAI,IAAI,GAAG,IAAA,qCAAW,EAAC,EAAE,KAAK,EAAE,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAA;gBACjE,YAAY,CAAC,MAAM,GAAG,IAAI,CAAA;gBAE1B,MAAM,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;aACvC;iBAAM;gBACL,MAAM,IAAI,4BAAY,CAAC;oBACrB,SAAS,EAAE,4BAAY,CAAC,WAAW,CAAC,kBAAkB;iBACvD,CAAC,CAAA;aACH;SACF;IACH,CAAC;IACD;;OAEG;IACH,KAAK,CAAC,WAAW,CAAC,KAA0B;QAC1C,IAAI,aAAa,GAAG,KAAK,CAAC,OAAO,CAAA;QACjC,MAAM,aAAa,CAAC,KAAK,CACvB;;4DAEsD,CACvD,CAAA;IACH,CAAC;CACF,CAAA;AAjDY,gBAAgB;IAD5B,IAAA,yBAAe,GAAE;GACL,gBAAgB,CAiD5B;AAjDY,4CAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-board",
3
- "version": "5.0.0-alpha.51",
3
+ "version": "5.0.0-alpha.52",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -42,13 +42,13 @@
42
42
  "docker:push:cn": "docker image push hatiolab/operato-board:latest-cn && docker image push hatiolab/operato-board:$npm_package_version-cn"
43
43
  },
44
44
  "dependencies": {
45
- "@operato/attachment": "1.0.0-beta.22",
46
- "@operato/font": "1.0.0-beta.22",
47
- "@operato/graphql": "1.0.0-beta.22",
48
- "@operato/help": "1.0.0-beta.22",
49
- "@operato/i18n": "1.0.0-beta.22",
50
- "@operato/layout": "1.0.0-beta.22",
51
- "@operato/pull-to-refresh": "1.0.0-beta.22",
45
+ "@operato/attachment": "1.0.0-beta.26",
46
+ "@operato/font": "1.0.0-beta.26",
47
+ "@operato/graphql": "1.0.0-beta.26",
48
+ "@operato/help": "1.0.0-beta.26",
49
+ "@operato/i18n": "1.0.0-beta.26",
50
+ "@operato/layout": "1.0.0-beta.26",
51
+ "@operato/pull-to-refresh": "1.0.0-beta.26",
52
52
  "@operato/scene-chartjs": "^1.0.0-alpha.18",
53
53
  "@operato/scene-clock": "^1.0.0-alpha.18",
54
54
  "@operato/scene-clone": "^1.0.0-alpha.18",
@@ -76,44 +76,44 @@
76
76
  "@operato/scene-table": "^1.0.0-alpha.18",
77
77
  "@operato/scene-timer": "^1.0.0-alpha.18",
78
78
  "@operato/scene-wheel-sorter": "^1.0.0-alpha.18",
79
- "@operato/shell": "1.0.0-beta.22",
80
- "@operato/styles": "1.0.0-beta.22",
81
- "@operato/utils": "1.0.0-beta.22",
82
- "@things-factory/apptool-ui": "^5.0.0-alpha.51",
83
- "@things-factory/attachment-ui": "^5.0.0-alpha.51",
84
- "@things-factory/auth-ui": "^5.0.0-alpha.51",
85
- "@things-factory/board-service": "^5.0.0-alpha.51",
86
- "@things-factory/board-ui": "^5.0.0-alpha.51",
87
- "@things-factory/context-ui": "^5.0.0-alpha.51",
88
- "@things-factory/export-ui": "^5.0.0-alpha.51",
89
- "@things-factory/fav-base": "^5.0.0-alpha.51",
90
- "@things-factory/font-base": "^5.0.0-alpha.51",
91
- "@things-factory/form-ui": "^5.0.0-alpha.51",
92
- "@things-factory/help": "^5.0.0-alpha.51",
93
- "@things-factory/i18n-base": "^5.0.0-alpha.51",
94
- "@things-factory/import-ui": "^5.0.0-alpha.51",
95
- "@things-factory/integration-notification": "^5.0.0-alpha.51",
96
- "@things-factory/integration-ui": "^5.0.0-alpha.51",
97
- "@things-factory/layout-ui": "^5.0.0-alpha.51",
98
- "@things-factory/more-ui": "^5.0.0-alpha.51",
99
- "@things-factory/notification": "^5.0.0-alpha.51",
100
- "@things-factory/oauth2-client": "^5.0.0-alpha.51",
101
- "@things-factory/offline-ui": "^5.0.0-alpha.51",
79
+ "@operato/shell": "1.0.0-beta.26",
80
+ "@operato/styles": "1.0.0-beta.26",
81
+ "@operato/utils": "1.0.0-beta.26",
82
+ "@things-factory/apptool-ui": "^5.0.0-alpha.52",
83
+ "@things-factory/attachment-ui": "^5.0.0-alpha.52",
84
+ "@things-factory/auth-ui": "^5.0.0-alpha.52",
85
+ "@things-factory/board-service": "^5.0.0-alpha.52",
86
+ "@things-factory/board-ui": "^5.0.0-alpha.52",
87
+ "@things-factory/context-ui": "^5.0.0-alpha.52",
88
+ "@things-factory/export-ui": "^5.0.0-alpha.52",
89
+ "@things-factory/fav-base": "^5.0.0-alpha.52",
90
+ "@things-factory/font-base": "^5.0.0-alpha.52",
91
+ "@things-factory/form-ui": "^5.0.0-alpha.52",
92
+ "@things-factory/help": "^5.0.0-alpha.52",
93
+ "@things-factory/i18n-base": "^5.0.0-alpha.52",
94
+ "@things-factory/import-ui": "^5.0.0-alpha.52",
95
+ "@things-factory/integration-notification": "^5.0.0-alpha.52",
96
+ "@things-factory/integration-ui": "^5.0.0-alpha.52",
97
+ "@things-factory/layout-ui": "^5.0.0-alpha.52",
98
+ "@things-factory/more-ui": "^5.0.0-alpha.52",
99
+ "@things-factory/notification": "^5.0.0-alpha.52",
100
+ "@things-factory/oauth2-client": "^5.0.0-alpha.52",
101
+ "@things-factory/offline-ui": "^5.0.0-alpha.52",
102
102
  "@things-factory/operato-license-checker": "^3.0.4",
103
- "@things-factory/pdf": "^5.0.0-alpha.51",
104
- "@things-factory/print-service": "^5.0.0-alpha.51",
105
- "@things-factory/print-ui": "^5.0.0-alpha.51",
106
- "@things-factory/resource-ui": "^5.0.0-alpha.51",
107
- "@things-factory/scene-google-map": "^5.0.0-alpha.51",
108
- "@things-factory/scene-visualizer": "^5.0.0-alpha.51",
109
- "@things-factory/screencast-ui": "^5.0.0-alpha.51",
110
- "@things-factory/setting-ui": "^5.0.0-alpha.51",
111
- "@things-factory/system-ui": "^5.0.0-alpha.51"
103
+ "@things-factory/pdf": "^5.0.0-alpha.52",
104
+ "@things-factory/print-service": "^5.0.0-alpha.52",
105
+ "@things-factory/print-ui": "^5.0.0-alpha.52",
106
+ "@things-factory/resource-ui": "^5.0.0-alpha.52",
107
+ "@things-factory/scene-google-map": "^5.0.0-alpha.52",
108
+ "@things-factory/scene-visualizer": "^5.0.0-alpha.52",
109
+ "@things-factory/screencast-ui": "^5.0.0-alpha.52",
110
+ "@things-factory/setting-ui": "^5.0.0-alpha.52",
111
+ "@things-factory/system-ui": "^5.0.0-alpha.52"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/board-test": "^5.0.0-alpha.51",
115
- "@things-factory/builder": "^5.0.0-alpha.51"
114
+ "@things-factory/board-test": "^5.0.0-alpha.52",
115
+ "@things-factory/builder": "^5.0.0-alpha.52"
116
116
  },
117
117
  "resolutions": {},
118
- "gitHead": "b83a1e08b773501783b4a95438291ce96f558bde"
118
+ "gitHead": "dd9c8f2e256e256e42bd9bd26db5eaa955f85620"
119
119
  }
@@ -3,7 +3,7 @@ import { Domain } from '@things-factory/shell'
3
3
  import { DomainSecret } from '../service/domain-secret/domain-secret'
4
4
  import { LicenseError } from '../errors/license-error'
5
5
  import { getVality, checkDomain, doSomething } from '@things-factory/operato-license-checker'
6
- import uuid from 'uuid/v4'
6
+ import { v4 as uuidv4 } from 'uuid'
7
7
 
8
8
  @EventSubscriber()
9
9
  export class DomainSubscriber implements EntitySubscriberInterface<Domain> {
@@ -31,7 +31,7 @@ export class DomainSubscriber implements EntitySubscriberInterface<Domain> {
31
31
  if (checkDomain(count)) {
32
32
  var domain: Domain = event.entity
33
33
  var domainSecret: DomainSecret = new DomainSecret()
34
- domainSecret.id = uuid()
34
+ domainSecret.id = uuidv4()
35
35
  domainSecret.domain = domain.domain
36
36
  var hash = doSomething({ secId: domainSecret.id, id: domain.id })
37
37
  domainSecret.secret = hash