uuid 3.3.0 → 3.3.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="3.3.2"></a>
6
+ ## [3.3.2](https://github.com/kelektiv/node-uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * typo ([305d877](https://github.com/kelektiv/node-uuid/commit/305d877))
12
+
13
+
14
+
15
+ <a name="3.3.1"></a>
16
+ ## [3.3.1](https://github.com/kelektiv/node-uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * fix [#284](https://github.com/kelektiv/node-uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/kelektiv/node-uuid/commit/f2a60f2))
22
+
23
+
24
+
5
25
  <a name="3.3.0"></a>
6
26
  # [3.3.0](https://github.com/kelektiv/node-uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
7
27
 
@@ -24,18 +44,9 @@ All notable changes to this project will be documented in this file. See [standa
24
44
 
25
45
  ### Bug Fixes
26
46
 
27
- * assignment to readonly property to allow running in strict mode ([#270](https://github.com/kelektiv/node-uuid/issues/270)) ([d062fdc](https://github.com/kelektiv/node-uuid/commit/d062fdc))
28
- * fix [#229](https://github.com/kelektiv/node-uuid/issues/229) ([c9684d4](https://github.com/kelektiv/node-uuid/commit/c9684d4))
29
- * Get correct version of IE11 crypto ([#274](https://github.com/kelektiv/node-uuid/issues/274)) ([153d331](https://github.com/kelektiv/node-uuid/commit/153d331))
30
- * mem issue when generating uuid ([#267](https://github.com/kelektiv/node-uuid/issues/267)) ([c47702c](https://github.com/kelektiv/node-uuid/commit/c47702c))
31
47
  * use msCrypto if available. Fixes [#241](https://github.com/kelektiv/node-uuid/issues/241) ([#247](https://github.com/kelektiv/node-uuid/issues/247)) ([1fef18b](https://github.com/kelektiv/node-uuid/commit/1fef18b))
32
48
 
33
49
 
34
- ### Features
35
-
36
- * enforce Conventional Commit style commit messages ([#282](https://github.com/kelektiv/node-uuid/issues/282)) ([cc9a182](https://github.com/kelektiv/node-uuid/commit/cc9a182))
37
-
38
-
39
50
 
40
51
  <a name="3.2.0"></a>
41
52
  # [3.2.0](https://github.com/kelektiv/node-uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
package/README.md CHANGED
@@ -28,7 +28,7 @@ Version 1 (timestamp):
28
28
 
29
29
  ```javascript
30
30
  const uuidv1 = require('uuid/v1');
31
- uuidv1(); // ⇨ '22643650-7944-11e8-8ca7-93cbb72bf7b7'
31
+ uuidv1(); // ⇨ '45745c60-7b1a-11e8-9c9c-2d42b21b1a3e'
32
32
 
33
33
  ```
34
34
 
@@ -56,7 +56,7 @@ Version 4 (random):
56
56
 
57
57
  ```javascript
58
58
  const uuidv4 = require('uuid/v4');
59
- uuidv4(); // ⇨ '7afe74af-5a7d-4a4e-a3c1-ebe44f564695'
59
+ uuidv4(); // ⇨ '10ba038e-48da-487b-96e8-8d3b99b6d18a'
60
60
 
61
61
  ```
62
62
 
@@ -167,8 +167,8 @@ Example: In-place generation of two binary IDs
167
167
  ```javascript
168
168
  // Generate two ids in an array
169
169
  const arr = new Array();
170
- uuidv1(null, arr, 0); // ⇨ [ 34, 101, 32, 176, 121, 68, 17, 232, 146, 52, 147, 203, 183, 43, 247, 183 ]
171
- uuidv1(null, arr, 16); // ⇨ [ 34, 101, 32, 176, 121, 68, 17, 232, 146, 52, 147, 203, 183, 43, 247, 183, 34, 101, 71, 192, 121, 68, 17, 232, 146, 52, 147, 203, 183, 43, 247, 183 ]
170
+ uuidv1(null, arr, 0); // ⇨ [ 69, 117, 109, 208, 123, 26, 17, 232, 146, 52, 45, 66, 178, 27, 26, 62 ]
171
+ uuidv1(null, arr, 16); // ⇨ [ 69, 117, 109, 208, 123, 26, 17, 232, 146, 52, 45, 66, 178, 27, 26, 62, 69, 117, 109, 209, 123, 26, 17, 232, 146, 52, 45, 66, 178, 27, 26, 62 ]
172
172
 
173
173
  ```
174
174
 
@@ -237,8 +237,8 @@ Example: Generate two IDs in a single buffer
237
237
 
238
238
  ```javascript
239
239
  const buffer = new Array();
240
- uuidv4(null, buffer, 0); // ⇨ [ 99, 19, 185, 60, 95, 165, 69, 65, 170, 166, 39, 0, 243, 153, 94, 148 ]
241
- uuidv4(null, buffer, 16); // ⇨ [ 99, 19, 185, 60, 95, 165, 69, 65, 170, 166, 39, 0, 243, 153, 94, 148, 208, 145, 176, 198, 100, 47, 65, 92, 182, 96, 194, 143, 212, 122, 218, 15 ]
240
+ uuidv4(null, buffer, 0); // ⇨ [ 54, 122, 218, 70, 45, 70, 65, 24, 171, 53, 95, 130, 83, 195, 242, 45 ]
241
+ uuidv4(null, buffer, 16); // ⇨ [ 54, 122, 218, 70, 45, 70, 65, 24, 171, 53, 95, 130, 83, 195, 242, 45, 108, 204, 255, 103, 171, 86, 76, 94, 178, 225, 188, 236, 150, 20, 151, 87 ]
242
242
 
243
243
  ```
244
244
 
package/lib/v35.js CHANGED
@@ -43,9 +43,10 @@ module.exports = function(name, version, hashfunc) {
43
43
  return buf || bytesToUuid(bytes);
44
44
  };
45
45
 
46
- // only attempt to set the name if's configurable (which it should be on node > 0.12)
47
- if (Object.getOwnPropertyDescriptor(generateUUID, 'name').configurable) {
48
- Object.defineProperty(generateUUID, 'name', {value: name});
46
+ // Function#name is not settable on some platforms (#270)
47
+ try {
48
+ generateUUID.name = name;
49
+ } catch (err) {
49
50
  }
50
51
 
51
52
  // Pre-defined namespaces, per Appendix C
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uuid",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "RFC4122 (v1, v4, and v5) UUIDs",
5
5
  "commitlint": {
6
6
  "extends": [