chore(deps): bson-objectid

This commit is contained in:
Oliver Eyton-Williams
2021-05-05 10:11:49 +02:00
committed by Mrugesh Mohapatra
parent 4dafe9e168
commit e5908ef281
3 changed files with 6 additions and 6 deletions

View File

@ -14,9 +14,9 @@
}
},
"bson-objectid": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/bson-objectid/-/bson-objectid-1.3.1.tgz",
"integrity": "sha512-eQBNQXsisEAXlwiSy8zRNZdW2xDBJaEVkTPbodYR9hGxxtE548Qq7ilYOd8WAQ86xF7NRUdiWSQ1pa/TkKiE2A==",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/bson-objectid/-/bson-objectid-2.0.1.tgz",
"integrity": "sha512-b4D1/G4uP9Yks4rv+nDVsZ4ybT1W5nQYw4lfpfaRP2Q18azlR6Oe2BAuirG1lzrwQFtHnJ0nrK5kWKKZVEMUng==",
"dev": true
},
"cross-env": {

View File

@ -22,7 +22,7 @@
"test": "mocha --delay --reporter progress --bail"
},
"devDependencies": {
"bson-objectid": "1.3.1",
"bson-objectid": "^2.0.1",
"cross-env": "7.0.3",
"gray-matter": "4.0.3"
}

View File

@ -82,7 +82,7 @@ ${seedTails}`
const template =
`---
id: ${ObjectID.generate()}
id: ${ObjectID()}
title: Part ${stepNum}
challengeType: 0
dashedName: part-${stepNum}
@ -174,7 +174,7 @@ const reorderSteps = () => {
);
const filePath = `${projectPath}${newFileName}.tmp`;
const frontMatter = matter.read(filePath);
const challengeID = frontMatter.data.id || ObjectID.generate();
const challengeID = frontMatter.data.id || ObjectID();
const title =
newFileName === 'final.md' ? 'Final Prototype' : `Part ${newStepNum}`;
const dashedName = `part-${newStepNum}`;