source: trip-planner-front/node_modules/uuid/dist/version.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 474 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _validate = _interopRequireDefault(require("./validate.js"));
9
10function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
12function 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
20var _default = version;
21exports.default = _default;
Note: See TracBrowser for help on using the repository browser.