@powfix/core-js 0.20.3 → 0.20.4

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.
@@ -73,7 +73,7 @@ class UUID {
73
73
  }
74
74
  }
75
75
  static version(input) {
76
- return this.parse(input)[14];
76
+ return (this.parse(input)[6] >> 4) & 0x0F;
77
77
  }
78
78
  /* --------------------------------------------------------------------
79
79
  * Parsing / formatting helpers
@@ -70,7 +70,7 @@ export class UUID {
70
70
  }
71
71
  }
72
72
  static version(input) {
73
- return this.parse(input)[14];
73
+ return (this.parse(input)[6] >> 4) & 0x0F;
74
74
  }
75
75
  /* --------------------------------------------------------------------
76
76
  * Parsing / formatting helpers
@@ -73,7 +73,7 @@ class UUID {
73
73
  }
74
74
  }
75
75
  static version(input) {
76
- return this.parse(input)[14];
76
+ return (this.parse(input)[6] >> 4) & 0x0F;
77
77
  }
78
78
  /* --------------------------------------------------------------------
79
79
  * Parsing / formatting helpers
@@ -70,7 +70,7 @@ export class UUID {
70
70
  }
71
71
  }
72
72
  static version(input) {
73
- return this.parse(input)[14];
73
+ return (this.parse(input)[6] >> 4) & 0x0F;
74
74
  }
75
75
  /* --------------------------------------------------------------------
76
76
  * Parsing / formatting helpers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,