Skip to content

Commit

Permalink
chore: replace deprecated uuid package
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniAkash committed Apr 23, 2024
1 parent 7916a07 commit 2f732dc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
29 changes: 13 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.0",
"@types/node": "^20.11.16",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vitest/coverage-v8": "^1.3.1",
Expand Down Expand Up @@ -73,7 +74,7 @@
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"safe-flat": "^2.1.0",
"uuidv4": "^6.2.13",
"uuid": "^9.0.1",
"winston": "^3.11.0",
"zod": "^3.22.4"
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import * as yaml from "js-yaml";
import { validateWorkflow } from "../workflows/validate";
import { getYamlOutputInfoProto } from "../workflows/utils";
import { Model as ModelConstructor } from "./model";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import { fromProtobufObject } from "from-protobuf-object";
import { fromPartialProtobufObject } from "../utils/fromPartialProtobufObject";
import { flatten } from "safe-flat";
Expand Down
2 changes: 1 addition & 1 deletion src/client/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
} from "google-protobuf/google/protobuf/struct_pb";
import { parse } from "csv-parse";
import { finished } from "stream/promises";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import {
CancelInputsAddJobRequest,
DeleteInputsRequest,
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/upload/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "clarifai-nodejs-grpc/proto/clarifai/api/resources_pb";
import { ClarifaiDataLoader, ClarifaiDataset } from "./base";
import path from "path";
import { uuid } from "uuidv4";
import { v4 as uuid } from "uuid";
import { Input } from "../../client/input";
import {
VisualClassificationFeatures,
Expand Down

0 comments on commit 2f732dc

Please sign in to comment.