Skip to content

Commit

Permalink
Use jsr import for uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Feb 1, 2025
1 parent eb84783 commit 59c06a5
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/server/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@std/io": "jsr:@std/io@^0.225.1",
"@std/log": "jsr:@std/log@^0.224.13",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/uuid": "jsr:@std/uuid@^1.0.4",
"bcrypt/": "https://deno.land/x/bcrypt@v0.4.1/",
"bcrypt/src/": "https://deno.land/x/bcrypt@v0.4.1/src/",
"cors/": "https://deno.land/x/cors@v1.2.2/",
Expand All @@ -57,7 +58,6 @@
"react/": "https://esm.sh/v131/react@18.2.0/",
"twind": "https://esm.sh/v131/*twind@0.16.16",
"twind/": "https://esm.sh/v131/*twind@0.16.16/",
"uuid/": "https://deno.land/std@0.198.0/uuid/",
"~/shared/": "../shared/"
},
"scopes": {
Expand Down
30 changes: 20 additions & 10 deletions src/server/deno.lock

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

2 changes: 1 addition & 1 deletion src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* - Serving the web platform (`app/`)
*/

import * as uuid from 'uuid/mod.ts';
import * as uuid from '@std/uuid';
import { Application, Context, CookiesSetDeleteOptions, Middleware, Router, Status } from '@oak/oak';
import { Response as OakResponse, ResponseBody, ResponseBodyFunction } from '@oak/oak/response';
import Session from 'oak_sessions/src/Session.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/server/tasks/board_insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
PendingStatus,
RenderQuality,
} from '~/shared/models.ts';
import * as uuid from 'uuid/mod.ts';
import * as uuid from '@std/uuid';
import { generateShareId, getDemoFilePath, getFixedDemoFilePath } from '../utils.ts';
import { getDemoInfo } from '../demo.ts';
import { logger } from '../logger.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/server/tasks/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Get Video ID by Share ID or vice versa.
*/

import * as uuid from 'uuid/mod.ts';
import * as uuid from '@std/uuid';
import { db } from '../db.ts';
import { Video } from '~/shared/models.ts';
import { validateShareId } from '../utils.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/server/tests/render_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { assert, assertEquals } from '@std/assert';
import * as uuid from 'uuid/mod.ts';
import * as uuid from '@std/uuid';
import { validateShareId } from '../utils.ts';
import { Video } from '~/shared/models.ts';

Expand Down

0 comments on commit 59c06a5

Please sign in to comment.