Skip to content

Commit 1b75108

Browse files
Merge pull request #3 from terminusdb/remove_unneeded_dependencies
Remove unneeded packages
2 parents da7ec52 + 2663d91 commit 1b75108

File tree

3 files changed

+4
-35
lines changed

3 files changed

+4
-35
lines changed

package-lock.json

+1-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@
3737
"graphql": "^16.6.0",
3838
"graphql-tag": "^2.12.6",
3939
"http-proxy-middleware": "^2.0.6",
40-
"i": "^0.3.7",
4140
"morgan": "~1.9.1",
4241
"npm": "^9.8.0",
43-
"swagger-ui-express": "^4.5.0",
44-
"uuid": "^9.0.0"
42+
"swagger-ui-express": "^4.5.0"
4543
},
4644
"devDependencies": {
4745
"@types/cookie-parser": "^1.4.3",

src/api/core/ChangeRequestDB.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import * as settings from './settings'
88

99
import dbSchema from '../../change_request_schema.json'
1010
import { doc } from "@terminusdb/terminusdb-client/dist/typescript/lib/woql"
11-
//import {v4 as uuidv4} from 'uuid';
12-
const { v4: uuidv4 } = require('uuid');
11+
const crypto = require('node:crypto');
1312

1413
//const endpoint :string = process.env.SERVER_ENDPOINT || "http://127.0.0.1:6363"
1514
//const key = process.env.USER_KEY || "root"
@@ -108,7 +107,7 @@ class ChangeRequestDB {
108107
original_branch: originalBranch,
109108
creator: creator,
110109
// we autogenerate the branchName
111-
tracking_branch : uuidv4(),
110+
tracking_branch : crypto.randomUUID(),
112111
origin_commit_id : lastStartBranchCommitID,
113112
creator_email: this.request.body.author || creator,
114113
creation_time: timestamp,

0 commit comments

Comments
 (0)