File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change 1+ import { randomUUID } from 'node:crypto' ;
2+
13// @ts -ignore ignore types
24import jwt from 'jsonwebtoken' ;
3- // @ts -ignore ignore types
4- import * as uuid from 'uuid' ;
55
66const rsaPairs = {
77 a : {
@@ -77,10 +77,10 @@ t5o8u/dlwJ1fGGday48gs/hA4V/F9zDjecNkYWUB/wUwVStqZljn
7777const allConfigs : any = [ ] ;
7878
7979export function generateConfig ( { mode, matchedKeys = true } : { mode : 'test' | 'live' ; matchedKeys ?: boolean } ) {
80- const ins_id = uuid . v4 ( ) ;
81- const pkHost = `clerk.${ uuid . v4 ( ) } .com` ;
80+ const ins_id = randomUUID ( ) ;
81+ const pkHost = `clerk.${ randomUUID ( ) } .com` ;
8282 const pk = `pk_${ mode } _${ btoa ( `${ pkHost } $` ) } ` ;
83- const sk = `sk_${ mode } _${ uuid . v4 ( ) } ` ;
83+ const sk = `sk_${ mode } _${ randomUUID ( ) } ` ;
8484 const rsa = matchedKeys
8585 ? rsaPairs . a
8686 : {
Original file line number Diff line number Diff line change 9494 "@testing-library/jest-dom" : " ^6.9.1" ,
9595 "@testing-library/react" : " ^16.3.2" ,
9696 "@testing-library/user-event" : " ^14.6.5" ,
97- "@types/cross-spawn" : " ^6.0.6" ,
9897 "@types/node" : " ^22.20.1" ,
9998 "@types/proper-lockfile" : " ^4.1.4" ,
10099 "@types/react" : " catalog:react" ,
106105 "citty" : " ^0.2.2" ,
107106 "conventional-changelog-conventionalcommits" : " ^4.6.3" ,
108107 "cpy-cli" : " ^5.0.0" ,
109- "cross-spawn" : " ^7.0.6" ,
110108 "dotenv" : " ^16.6.1" ,
111109 "eslint" : " 9.31.0" ,
112110 "eslint-config-prettier" : " 10.1.8" ,
157155 "typescript" : " catalog:repo" ,
158156 "typescript-eslint" : " 8.58.0" ,
159157 "unrun" : " 0.3.1" ,
160- "uuid" : " 11.1.1" ,
161158 "vitest" : " 5.0.0" ,
162159 "zx" : " catalog:repo"
163160 },
Original file line number Diff line number Diff line change 109109 "lint" : " eslint src" ,
110110 "lint:attw" : " attw --pack . --profile node16 --ignore-rules false-cjs" ,
111111 "lint:publint" : " publint" ,
112- "test" : " run-s test:node test:edge-runtime" ,
112+ "test" : " pnpm test:node && pnpm test:edge-runtime" ,
113113 "test:edge-runtime" : " vitest run --environment edge-runtime" ,
114114 "test:node" : " vitest run --environment node" ,
115- "test:watch" : " run-s test:watch:node test:watch:edge-runtime" ,
115+ "test:watch" : " pnpm test:watch:node && pnpm test:watch:edge-runtime" ,
116116 "test:watch:edge-runtime" : " vitest watch --environment edge-runtime" ,
117117 "test:watch:node" : " vitest watch --environment node"
118118 },
125125 "@edge-runtime/vm" : " 5.0.0" ,
126126 "cookie" : " 1.1.1" ,
127127 "msw" : " 2.15.0" ,
128- "npm-run-all" : " ^4.1.5" ,
129128 "snakecase-keys" : " 9.0.2"
130129 },
131130 "engines" : {
You can’t perform that action at this time.
0 commit comments