Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Overhaul process module #72

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The following core Node.js modules (v8.7.0+) have been implemented:
| [net](https://nodejs.org/api/net.html) | |
| [os](https://nodejs.org/api/os.html) | :heavy_check_mark: |
| [path](https://nodejs.org/api/path.html) | :heavy_check_mark: |
| [process](https://nodejs.org/api/process.html) | |
| [process](https://nodejs.org/api/process.html) | :heavy_check_mark: |
| [querystring](https://nodejs.org/api/querystring.html) | :heavy_check_mark: |
| [readline](https://nodejs.org/api/readline.html) | |
| [repl](https://nodejs.org/api/repl.html) | |
Expand Down
2 changes: 1 addition & 1 deletion app/current/src/main/scala/io/scalajs/nodejs/Global.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ trait Global extends js.Object {

def console: console_module.Console = js.native

def process: Process = js.native
def process: io.scalajs.nodejs.process.Process = js.native

def ref: Ref = js.native

Expand Down
640 changes: 0 additions & 640 deletions app/current/src/main/scala/io/scalajs/nodejs/Process.scala

This file was deleted.

13 changes: 5 additions & 8 deletions app/current/src/main/scala/io/scalajs/nodejs/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ package object nodejs {
// Type Definitions
/////////////////////////////////////////////////////////////////////////////////

type Environment = js.Dictionary[String]
@deprecated("use process.Process instead", "0.9.0")
type Process = process.Process

@deprecated("use process.Environment instead", "0.9.0")
type Environment = process.Environment

type EventType = String

Expand Down Expand Up @@ -87,13 +91,6 @@ package object nodejs {
@JSGlobal("global")
object global extends Global

/**
* The process object. See the process object section.
*/
@js.native
@JSGlobal("process")
object process extends Process

/////////////////////////////////////////////////////////////////////////////////
// Timers
/////////////////////////////////////////////////////////////////////////////////
Expand Down
Loading