WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

28
node_modules/gatsby/dist/utils/create-node-id.js generated vendored Normal file
View File

@ -0,0 +1,28 @@
"use strict";
const uuidv5 = require(`uuid/v5`);
const report = require(`gatsby-cli/lib/reporter`);
const seedConstant = `638f7a53-c567-4eca-8fc1-b23efb1cfb2b`;
/**
* createNodeId() Generate UUID
*
* @param {String} id - A string of arbitrary length
* @param {String} namespace - Namespace to use for UUID
*
* @return {String} - UUID
*/
function createNodeId(id, namespace) {
if (typeof id === `number`) {
id = id.toString();
} else if (typeof id !== `string`) {
report.panic(`Parameter passed to createNodeId must be a String or Number (got ${typeof id})`);
}
return uuidv5(id, uuidv5(namespace, seedConstant));
}
module.exports = createNodeId;
//# sourceMappingURL=create-node-id.js.map