-
Notifications
You must be signed in to change notification settings - Fork 19
Update to PureScript v0.15.0 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomashoneyman
merged 17 commits into
purescript-node:master
from
sigma-andex:es-modules-libraries
Mar 22, 2022
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
be1ca27
ESM conversion
nwolverson 279bdf9
Arrow/let transformation
nwolverson d939b1f
Missing export
nwolverson 69fa560
Fix process export
nwolverson 984c009
Bad process export
nwolverson 9fab9d9
Breaking: Remove Node.Globals
nwolverson 479d900
Removed '"use strict";' in FFI files
sigma-andex 313265c
Update to CI to use 'unstable' purescript
sigma-andex 57112f2
Update Bower dependencies to master or main
sigma-andex d177a32
Update pulp to 16.0.0-0
sigma-andex 4532805
Update psa to 0.8.2
sigma-andex 6e1f1e3
Update Bower dependencies to master or main
sigma-andex 5cf9142
Add changelog entry
sigma-andex ee8388f
Update ci.yml to v2
sigma-andex e9e5518
Update src/Node/Process.js
thomashoneyman 479d8c0
Update eslintrc
sigma-andex a88408d
Readd environment section to eslint
sigma-andex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,70 @@ | ||
"use strict"; | ||
import process from "process"; | ||
export { process }; | ||
|
||
exports.process = process; | ||
|
||
exports.onBeforeExit = function (callback) { | ||
return function () { | ||
export function onBeforeExit(callback) { | ||
return () => { | ||
process.on("beforeExit", callback); | ||
}; | ||
}; | ||
} | ||
|
||
exports.onExit = function (callback) { | ||
return function () { | ||
process.on("exit", function (code) { | ||
export function onExit(callback) { | ||
return () => { | ||
process.on("exit", code => { | ||
callback(code)(); | ||
}); | ||
}; | ||
}; | ||
} | ||
|
||
exports.onUncaughtException = function (callback) { | ||
return function () { | ||
process.on("uncaughtException", function (error) { | ||
export function onUncaughtException(callback) { | ||
return () => { | ||
process.on("uncaughtException", error => { | ||
callback(error)(); | ||
}); | ||
}; | ||
}; | ||
} | ||
|
||
exports.onUnhandledRejection = function (callback) { | ||
return function () { | ||
process.on("unhandledRejection", function (error, promise) { | ||
export function onUnhandledRejection(callback) { | ||
return () => { | ||
process.on("unhandledRejection", (error, promise) => { | ||
callback(error)(promise)(); | ||
}); | ||
}; | ||
}; | ||
} | ||
|
||
exports.onSignalImpl = function (signal) { | ||
return function (callback) { | ||
return function () { | ||
process.on(signal, callback); | ||
}; | ||
export function onSignalImpl(signal) { | ||
return callback => () => { | ||
process.on(signal, callback); | ||
}; | ||
}; | ||
} | ||
|
||
exports.chdir = function (dir) { | ||
return function () { | ||
export function chdir(dir) { | ||
return () => { | ||
process.chdir(dir); | ||
}; | ||
}; | ||
} | ||
|
||
exports.setEnv = function (var_) { | ||
return function (val) { | ||
return function () { | ||
process.env[var_] = val; | ||
}; | ||
export function setEnv(var_) { | ||
return val => () => { | ||
process.env[var_] = val; | ||
}; | ||
}; | ||
} | ||
|
||
exports.unsetEnv = function (var_) { | ||
return function () { | ||
export function unsetEnv(var_) { | ||
return () => { | ||
delete process.env[var_]; | ||
}; | ||
}; | ||
} | ||
|
||
exports.exit = function (code) { | ||
return function () { | ||
export function exit(code) { | ||
return () => { | ||
process.exit(code); | ||
}; | ||
}; | ||
} | ||
|
||
exports.copyArray = function (xs) { | ||
return function () { | ||
return xs.slice(); | ||
}; | ||
}; | ||
export function copyArray(xs) { | ||
return () => xs.slice(); | ||
} | ||
|
||
exports.copyObject = function (o) { | ||
return function () { | ||
return Object.assign({}, o); | ||
}; | ||
}; | ||
export function copyObject(o) { | ||
return () => Object.assign({}, o); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.