Skip to content

Commit

Permalink
feat: add gid and uid
Browse files Browse the repository at this point in the history
  • Loading branch information
denizdogan committed May 9, 2023
1 parent 4622967 commit 56931c7
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shim-deno/PROGRESS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stable Progress

85%. 28 stable members to go:
86%. 26 stable members to go:

- [x] 👻 **`Addr`**
- [ ] 👻 **`BenchDefinition`**
Expand Down Expand Up @@ -124,7 +124,7 @@
- [x] **`ftruncateSync`**
- [x] **`futime`**
- [x] **`futimeSync`**
- [ ] **`gid`**
- [x] **`gid`**
- [x] **`hostname`**
- [x] **`inspect`**
- [x] **`isatty`**
Expand Down Expand Up @@ -195,7 +195,7 @@
- [x] **`test`**
- [x] **`truncate`**
- [x] **`truncateSync`**
- [ ] **`uid`**
- [x] **`uid`**
- [ ] **`unrefTimer`**
- [ ] **`upgradeWebSocket`**
- [x] **`utime`**
Expand Down
26 changes: 26 additions & 0 deletions packages/shim-deno/lib/shim-deno.lib.d.ts

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

2 changes: 2 additions & 0 deletions packages/shim-deno/src/deno/stable/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export { fsync } from "./functions/fsync.js";
export { fsyncSync } from "./functions/fsyncSync.js";
export { ftruncate } from "./functions/ftruncate.js";
export { ftruncateSync } from "./functions/ftruncateSync.js";
export { gid } from "./functions/gid.js";
export { hostname } from "./functions/hostname.js";
export { inspect } from "./functions/inspect.js";
export { kill } from "./functions/kill.js";
Expand Down Expand Up @@ -73,6 +74,7 @@ export { symlinkSync } from "./functions/symlinkSync.js";
export { test } from "./functions/test.js";
export { truncate } from "./functions/truncate.js";
export { truncateSync } from "./functions/truncateSync.js";
export { uid } from "./functions/uid.js";
export { watchFs } from "./functions/watchFs.js";
export { write } from "./functions/write.js";
export { writeFile } from "./functions/writeFile.js";
Expand Down
5 changes: 5 additions & 0 deletions packages/shim-deno/src/deno/stable/functions/gid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference path="../lib.deno.d.ts" />

import ps from "process";

export const gid: typeof Deno.gid = ps.getgid;
5 changes: 5 additions & 0 deletions packages/shim-deno/src/deno/stable/functions/uid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference path="../lib.deno.d.ts" />

import ps from "process";

export const uid: typeof Deno.uid = ps.getuid;

0 comments on commit 56931c7

Please sign in to comment.