-
Notifications
You must be signed in to change notification settings - Fork 5
Update to PureScript v0.15.0 #16
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 14 commits into
purescript-node:master
from
sigma-andex:es-modules-libraries
Mar 22, 2022
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b4b5344
Add a test
nwolverson 46f047f
ESM conversion
nwolverson 57e873d
Update .eslintrc.json to ES6
sigma-andex b31c0cf
Update Bower dependencies to master or main
sigma-andex e1f11ca
Update pulp to 16.0.0-0 and psa to 0.8.2
sigma-andex 04c84b3
Removed '"use strict";' in FFI files
sigma-andex 16e3c92
Update to CI to use 'unstable' purescript
sigma-andex 5018ae5
Update Bower dependencies to master or main
sigma-andex 0b81109
Update test/Main.purs
sigma-andex 55c43bb
Update ci.yml to node 14
sigma-andex 2cb619b
Add test script
sigma-andex 8438f78
Fix linting issue
sigma-andex 88f6f86
Add changelog entry
sigma-andex a9a00bd
Update bower.json
thomashoneyman 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
"use strict"; | ||
import url from "url"; | ||
import queryString from "querystring"; | ||
export { parse, format } from 'url'; | ||
|
||
var url = require("url"); | ||
var queryString = require("querystring"); | ||
export function resolve(from) { | ||
return to => url.resolve(from, to); | ||
} | ||
|
||
exports.parse = url.parse; | ||
|
||
exports.format = url.format; | ||
|
||
exports.resolve = function (from) { | ||
return function (to) { | ||
return url.resolve(from, to); | ||
}; | ||
}; | ||
|
||
exports.parseQueryString = queryString.parse; | ||
|
||
exports.toQueryString = queryString.stringify; | ||
export const parseQueryString = queryString.parse; | ||
export const toQueryString = queryString.stringify; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Test.Main where | ||
|
||
import Prelude | ||
|
||
import Effect (Effect) | ||
import Node.URL (format, parse, parseQueryString, toQueryString) | ||
import Test.Assert (assertEqual) | ||
|
||
main ∷ Effect Unit | ||
main = do | ||
assertEqual { expected: "http://example.com/", actual: format $ parse "http://example.com/" } | ||
assertEqual { expected: "foo=42", actual: toQueryString $ parseQueryString "foo=42" } | ||
sigma-andex marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a devDependency?