Skip to content

Commit 915c5bc

Browse files
committed
refactor(ghoulscript): use sref
1 parent bef06f8 commit 915c5bc

File tree

4 files changed

+10
-87
lines changed

4 files changed

+10
-87
lines changed

packages/ghoulscript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"dependencies": {
3232
"@privyid/ghostscript": "workspace:^",
3333
"defu": "^6.1.4",
34+
"sref": "^1.0.1",
3435
"ufo": "^1.5.3"
3536
},
3637
"license": "AGPL-3.0-only",

packages/ghoulscript/src/rpc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
CommandResult,
55
Commands,
66
} from './call'
7-
import { useRef } from '../utils/use-ref'
7+
import useRef from 'sref'
88

99
export interface RPC <C extends Commands = any> {
1010
id: number,

packages/ghoulscript/src/utils/use-ref.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ __metadata:
670670
dependencies:
671671
"@privyid/ghostscript": "workspace:^"
672672
defu: "npm:^6.1.4"
673+
sref: "npm:^1.0.1"
673674
typescript: "npm:5.5.3"
674675
ufo: "npm:^1.5.3"
675676
vite: "npm:5.3.4"
@@ -5938,6 +5939,13 @@ __metadata:
59385939
languageName: node
59395940
linkType: hard
59405941

5942+
"sref@npm:^1.0.1":
5943+
version: 1.0.1
5944+
resolution: "sref@npm:1.0.1"
5945+
checksum: 10c0/3d51cf4392e42f187a72c92df1c81227999df4511b43d64a33787faf84e83d89f483385b0f1fe0e54e9aa027397d0a81243b0200fea3dc0a4b0eb0fba6eb1ec4
5946+
languageName: node
5947+
linkType: hard
5948+
59415949
"ssri@npm:^10.0.0":
59425950
version: 10.0.6
59435951
resolution: "ssri@npm:10.0.6"

0 commit comments

Comments
 (0)