Permalink
Cannot retrieve contributors at this time
21 lines (15 sloc)
474 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/uuid/dist/commonjs-browser/version.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = void 0; | |
var _validate = _interopRequireDefault(require("./validate.js")); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
function version(uuid) { | |
if (!(0, _validate.default)(uuid)) { | |
throw TypeError('Invalid UUID'); | |
} | |
return parseInt(uuid.slice(14, 15), 16); | |
} | |
var _default = version; | |
exports.default = _default; |