@live-change/uid 0.9.209 → 0.9.213

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -69,7 +69,8 @@ function hashCode(str) {
69
69
  return Math.abs(hash)
70
70
  }
71
71
 
72
- function uidGenerator(fingerprint = randomString(4), numberLength = 0, borders = '{}', idSuffix = '') {
72
+ // Default [] upload paths allow [a-zA-Z0-9\[\]@\.-]; {} are sanitized to _ by upload-service.
73
+ function uidGenerator(fingerprint = randomString(4), numberLength = 0, borders = '[]', idSuffix = '') {
73
74
  let lastMillisecond = Date.now(), lastId = 0
74
75
  function next() {
75
76
  const date = new Date()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/uid",
3
- "version": "0.9.209",
3
+ "version": "0.9.213",
4
4
  "description": "Simple unique id generator with timestamp and source",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,5 +21,5 @@
21
21
  "url": "https://github.com/live-change/live-change-stack/issues"
22
22
  },
23
23
  "homepage": "https://github.com/live-change/live-change-stack",
24
- "gitHead": "e1f934934d5d8a119f7ed27aa97bc6b9e9791719"
24
+ "gitHead": "1e22d761822df56c327242bccb3d7aed57631146"
25
25
  }