Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
474 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = void 0;
|
---|
| 7 |
|
---|
| 8 | var _validate = _interopRequireDefault(require("./validate.js"));
|
---|
| 9 |
|
---|
| 10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
| 11 |
|
---|
| 12 | function version(uuid) {
|
---|
| 13 | if (!(0, _validate.default)(uuid)) {
|
---|
| 14 | throw TypeError('Invalid UUID');
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | return parseInt(uuid.substr(14, 1), 16);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | var _default = version;
|
---|
| 21 | exports.default = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.