@things-factory/id-rule-base 4.1.28 → 4.2.12

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.
@@ -79,7 +79,7 @@ export class GristCodeInput extends InputEditor {
79
79
  new CustomEvent('notify', {
80
80
  detail: {
81
81
  level: 'error',
82
- message: i18next.t('text.please save your modifications first.')
82
+ message: i18next.t('text.please_save_your_modifications_first')
83
83
  }
84
84
  })
85
85
  )
@@ -33,12 +33,13 @@ let SequenceMutation = class SequenceMutation {
33
33
  where: { pattern, type: constants_1.SEQUENCE_TYPE.PRODUCT_LABEL_COUNTER, domain }
34
34
  });
35
35
  if (foundSeq) {
36
- return await seqRepo.update({ id: foundSeq.id }, {
36
+ await seqRepo.update({ id: foundSeq.id }, {
37
37
  pattern,
38
38
  seq: counter ? foundSeq.seq + counter : foundSeq.seq + 1,
39
39
  expiresAt,
40
40
  updatedAt: now
41
41
  });
42
+ return await seqRepo.findOne(foundSeq.id);
42
43
  }
43
44
  else {
44
45
  return await seqRepo.save({
@@ -1 +1 @@
1
- {"version":3,"file":"sequence-mutation.js","sourceRoot":"","sources":["../../../server/service/sequence/sequence-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,+CAA+C;AAC/C,yCAAqC;AAGrC,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAE3B,KAAK,CAAC,cAAc,CACL,IAAY,EACT,OAAe,EACZ,UAAkB,EAC9B,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAChC,MAAM,OAAO,GAAG,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAA;QACvC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAA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AQ,CAAC,GAAG,GAAG,CAAC;gBACxD,SAAS;gBACT,SAAS,EAAE,GAAG;aACf,CACF,CAAA;YAED,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;SAC1C;aAAM;YACL,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC;gBACxB,MAAM;gBACN,OAAO;gBACP,GAAG,EAAE,OAAO,IAAI,CAAC;gBACjB,SAAS;gBACT,IAAI,EAAE,yBAAa,CAAC,qBAAqB;aAC1C,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA;AA7CC;IADC,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,mBAAQ,CAAC;IAE3B,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IACX,WAAA,IAAA,kBAAG,EAAC,SAAS,CAAC,CAAA;IACd,WAAA,IAAA,kBAAG,EAAC,YAAY,CAAC,CAAA;IACjB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;sDAwCP;AA9CU,gBAAgB;IAD5B,IAAA,uBAAQ,EAAC,mBAAQ,CAAC;GACN,gBAAgB,CA+C5B;AA/CY,4CAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/id-rule-base",
3
- "version": "4.1.28",
3
+ "version": "4.2.12",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,14 +24,14 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/grist-ui": "^4.1.28",
28
- "@things-factory/i18n-base": "^4.1.28",
29
- "@things-factory/setting-base": "^4.1.28",
30
- "@things-factory/shell": "^4.1.28",
27
+ "@things-factory/grist-ui": "^4.2.12",
28
+ "@things-factory/i18n-base": "^4.2.12",
29
+ "@things-factory/setting-base": "^4.2.12",
30
+ "@things-factory/shell": "^4.2.12",
31
31
  "codemirror": "^5.59.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/codemirror": "^0.0.105"
35
35
  },
36
- "gitHead": "3f902602b38074b6e4a2188ab16b2a486f812877"
36
+ "gitHead": "fea26f2ea238a3a279c7ab6427cd8aedcd68926b"
37
37
  }
@@ -31,7 +31,7 @@ export class SequenceMutation {
31
31
  })
32
32
 
33
33
  if (foundSeq) {
34
- return await seqRepo.update(
34
+ await seqRepo.update(
35
35
  { id: foundSeq.id },
36
36
  {
37
37
  pattern,
@@ -40,6 +40,8 @@ export class SequenceMutation {
40
40
  updatedAt: now
41
41
  }
42
42
  )
43
+
44
+ return await seqRepo.findOne(foundSeq.id)
43
45
  } else {
44
46
  return await seqRepo.save({
45
47
  domain,
@@ -2,5 +2,6 @@
2
2
  "title.ID Rule Editor": "ID Rule Editor",
3
3
  "label.arguments": "arguments",
4
4
  "label.argument domain description": "domain ID",
5
- "label.argument seed description": "data for ID combination"
5
+ "label.argument seed description": "data for ID combination",
6
+ "text.please_save_your_modifications_first": "please save your modifications first"
6
7
  }
@@ -2,5 +2,6 @@
2
2
  "title.ID Rule Editor": "ID 규칙 편집기",
3
3
  "label.arguments": "매개변수",
4
4
  "label.argument domain description": "도메인 ID",
5
- "label.argument seed description": "ID 조합에 필요한 데이터"
5
+ "label.argument seed description": "ID 조합에 필요한 데이터",
6
+ "text.please_save_your_modifications_first": "[ko] please save your modifications first"
6
7
  }
@@ -2,5 +2,6 @@
2
2
  "title.ID Rule Editor": "ID Rule Editor",
3
3
  "label.arguments": "arguments",
4
4
  "label.argument domain description": "domain ID",
5
- "label.argument seed description": "data for ID combination"
5
+ "label.argument seed description": "data for ID combination",
6
+ "text.please_save_your_modifications_first": "please save your modifications first"
6
7
  }
@@ -2,5 +2,6 @@
2
2
  "title.ID Rule Editor": "ID Rule Editor",
3
3
  "label.arguments": "arguments",
4
4
  "label.argument domain description": "domain ID",
5
- "label.argument seed description": "data for ID combination"
5
+ "label.argument seed description": "data for ID combination",
6
+ "text.please_save_your_modifications_first": "please save your modifications first"
6
7
  }