@things-factory/product-base 4.3.23 → 4.3.32

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.
@@ -7,7 +7,7 @@ class ProductUtil {
7
7
  }
8
8
  }
9
9
  exports.ProductUtil = ProductUtil;
10
- const generateRandomString = function (length, randomString = "") {
10
+ const generateRandomString = function (length, randomString = '') {
11
11
  randomString += Math.random().toString(20).substr(2, length);
12
12
  if (randomString.length > length)
13
13
  return randomString.slice(0, length);
@@ -1 +1 @@
1
- {"version":3,"file":"product-util.js","sourceRoot":"","sources":["../../server/utils/product-util.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IACtB,MAAM,CAAC,cAAc;QACnB,OAAO,IAAI,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAA;IACxC,CAAC;CACF;AAJD,kCAIC;AAED,MAAM,oBAAoB,GAAG,UAAU,MAAM,EAAE,YAAY,GAAC,EAAE;IAC5D,YAAY,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC7D,IAAI,YAAY,CAAC,MAAM,GAAG,MAAM;QAAE,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACvE,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACpD,CAAC,CAAC"}
1
+ {"version":3,"file":"product-util.js","sourceRoot":"","sources":["../../server/utils/product-util.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IACtB,MAAM,CAAC,cAAc;QACnB,OAAO,IAAI,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAA;IACxC,CAAC;CACF;AAJD,kCAIC;AAED,MAAM,oBAAoB,GAAG,UAAU,MAAM,EAAE,YAAY,GAAG,EAAE;IAC9D,YAAY,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;IAC5D,IAAI,YAAY,CAAC,MAAM,GAAG,MAAM;QAAE,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;IACtE,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "4.3.23",
3
+ "version": "4.3.32",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,8 +24,8 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/biz-base": "^4.3.23",
28
- "@things-factory/routing-base": "^4.3.23"
27
+ "@things-factory/biz-base": "^4.3.32",
28
+ "@things-factory/routing-base": "^4.3.32"
29
29
  },
30
- "gitHead": "1fc1cde1702acc5f1c1b7adedeb1ba4448438848"
30
+ "gitHead": "0c5bd74405efd1db48838320c9afa68811c3e37a"
31
31
  }
@@ -1,13 +1,11 @@
1
- import uuid from 'uuid/v4'
2
-
3
1
  export class ProductUtil {
4
2
  static productSetCode() {
5
3
  return 'PS' + generateRandomString(10)
6
- }
4
+ }
7
5
  }
8
6
 
9
- const generateRandomString = function (length, randomString="") {
10
- randomString += Math.random().toString(20).substr(2, length);
11
- if (randomString.length > length) return randomString.slice(0, length);
12
- return generateRandomString(length, randomString);
13
- };
7
+ const generateRandomString = function (length, randomString = '') {
8
+ randomString += Math.random().toString(20).substr(2, length)
9
+ if (randomString.length > length) return randomString.slice(0, length)
10
+ return generateRandomString(length, randomString)
11
+ }