@things-factory/qc 5.0.0-y.0 → 5.0.0-zeta.10

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.
@@ -20,13 +20,13 @@ class DataUseCaseQC {
20
20
  const { minimum, maximum, acceptables } = spec['passLimits'];
21
21
  for (let i = 0; i < values.length; i++) {
22
22
  const value = values[i];
23
- if (typeof minimum !== 'undefined' && minimum !== null && value < minimum) {
23
+ if (minimum != null && value < minimum) {
24
24
  return { oos: true, ooc: true };
25
25
  }
26
- if (typeof maximum !== 'undefined' && maximum !== null && value > maximum) {
26
+ if (maximum != null && value > maximum) {
27
27
  return { oos: true, ooc: true };
28
28
  }
29
- if (typeof acceptables !== 'undefined' && acceptables !== null && acceptables.includes(value)) {
29
+ if (acceptables != null && acceptables.includes(value)) {
30
30
  return { oos: true, ooc: true };
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"data-use-case-qc.js","sourceRoot":"","sources":["../../server/controllers/data-use-case-qc.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;IACxB,gBAAgB;QACd,OAAO;YACL,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,EAAE;YACR,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,WAAW,CAAC,kEAAkE;oBACpF,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,YAAY;iBACnB;aACF;SACF,CAAA;IACH,CAAC;IAED,QAAQ,CAAC,IAAS,EAAE,MAAa;QAC/B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,CAAA;QAE5D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;YAEvB,IAAI,OAAO,OAAO,KAAK,WAAW,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B,IAAI,OAAO,IAAI,IAAI,IAAI,KAAK,GAAG,OAAO,EAAE;gBACtC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;aAChC;YAED,IAAI,OAAO,IAAI,IAAI,IAAI,KAAK,GAAG,OAAO,EAAE;gBACtC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;aAChC;YAED,IAAI,WAAW,IAAI,IAAI,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACtD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;aAChC;SACF;QAED,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;IACnC,CAAC;CACF;AArCD,sCAqCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/qc",
3
- "version": "5.0.0-y.0",
3
+ "version": "5.0.0-zeta.10",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,10 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@operato/dataset": "^1.0.0-beta.26",
28
- "@operato/qc": "^1.0.0-beta.26",
29
- "@things-factory/dataset": "^5.0.0-y.0",
30
- "@things-factory/shell": "^5.0.0-y.0"
27
+ "@operato/dataset": "^1.0.0-beta.41",
28
+ "@things-factory/dataset": "^5.0.0-zeta.10",
29
+ "@things-factory/shell": "^5.0.0-zeta.10"
31
30
  },
32
- "gitHead": "2fb8066dae72d864b0fc3a5b439a18579fa39ee6"
31
+ "gitHead": "8e48b626f92a0fa3c19c25a5cf5c04b8b7e60478"
33
32
  }
@@ -22,15 +22,15 @@ export class DataUseCaseQC implements DataUseCase {
22
22
  for (let i = 0; i < values.length; i++) {
23
23
  const value = values[i]
24
24
 
25
- if (typeof minimum !== 'undefined' && minimum !== null && value < minimum) {
25
+ if (minimum != null && value < minimum) {
26
26
  return { oos: true, ooc: true }
27
27
  }
28
28
 
29
- if (typeof maximum !== 'undefined' && maximum !== null && value > maximum) {
29
+ if (maximum != null && value > maximum) {
30
30
  return { oos: true, ooc: true }
31
31
  }
32
32
 
33
- if (typeof acceptables !== 'undefined' && acceptables !== null && acceptables.includes(value)) {
33
+ if (acceptables != null && acceptables.includes(value)) {
34
34
  return { oos: true, ooc: true }
35
35
  }
36
36
  }
@@ -1,13 +1 @@
1
- import bootstrap from './client/bootstrap'
2
- import route from './client/route'
3
-
4
- export default {
5
- route,
6
- routes: [
7
- {
8
- tagname: 'ccp-main',
9
- page: 'ccp-main'
10
- }
11
- ],
12
- bootstrap
13
- }
1
+ export default {}
@@ -1,5 +1,5 @@
1
1
  {
2
- "label.pass limits": "pass limits",
2
+ "label.pass-limits": "pass limits",
3
3
  "label.minimum value": "minimum value",
4
4
  "label.maximum value": "maximum value"
5
- }
5
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "label.pass limits": "허용 한계",
2
+ "label.pass-limits": "허용 한계",
3
3
  "label.minimum value": "최소값",
4
4
  "label.maximum value": "최대값"
5
- }
5
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "label.pass limits": "pass limits",
2
+ "label.pass-limits": "pass limits",
3
3
  "label.minimum value": "minimum value",
4
4
  "label.maximum value": "maximum value"
5
- }
5
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "label.pass limits": "pass limits",
2
+ "label.pass-limits": "pass limits",
3
3
  "label.minimum value": "minimum value",
4
4
  "label.maximum value": "maximum value"
5
- }
5
+ }
@@ -1,3 +0,0 @@
1
- import '@operato/qc' /* to register QC DataItemSpecProvider */
2
-
3
- export default function bootstrap() {}
package/client/index.js DELETED
File without changes
package/client/route.js DELETED
@@ -1,4 +0,0 @@
1
- export default function route(page) {
2
- switch (page) {
3
- }
4
- }