Skip to content

Commit da611dc

Browse files
Update to v0.14.0-rc3 (#10)
Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
1 parent 7ba1d7b commit da611dc

File tree

7 files changed

+33
-30
lines changed

7 files changed

+33
-30
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/checkout@v2
1414

1515
- uses: purescript-contrib/setup-purescript@main
16+
with:
17+
purescript: "0.14.0-rc3"
1618

1719
- uses: actions/setup-node@v1
1820
with:

bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"output"
1717
],
1818
"dependencies": {
19-
"purescript-arraybuffer-types": "2",
20-
"purescript-datetime": "4",
21-
"purescript-http-methods": "4",
22-
"purescript-web-dom": "2 - 4",
23-
"purescript-web-file": "2"
19+
"purescript-arraybuffer-types": "main",
20+
"purescript-datetime": "master",
21+
"purescript-http-methods": "main",
22+
"purescript-web-dom": "master",
23+
"purescript-web-file": "master"
2424
}
2525
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"build": "eslint src && pulp build -- --censor-lib --strict"
66
},
77
"devDependencies": {
8-
"eslint": "^4.19.1",
9-
"pulp": "^12.2.0",
10-
"purescript-psa": "^0.6.0",
11-
"rimraf": "^2.6.2"
8+
"eslint": "^7.15.0",
9+
"pulp": "^15.0.0",
10+
"purescript-psa": "^0.8.0",
11+
"rimraf": "^3.0.2"
1212
}
1313
}

src/Web/XHR/FormData.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
"use strict";
22

3-
exports["new"] = function() {
3+
exports["new"] = function () {
44
return new FormData();
55
};
66

7-
exports._append = function(name, value, fd) {
7+
exports._append = function (name, value, fd) {
88
fd.append(name, value);
99
};
1010

11-
exports._appendBlob = function(name, value, filename, fd) {
11+
exports._appendBlob = function (name, value, filename, fd) {
1212
fd.append(name, value, filename);
1313
};
1414

15-
exports._delete = function(name, fd) {
15+
exports._delete = function (name, fd) {
1616
fd.delete(name);
1717
};
1818

19-
exports._has = function(name, fd) {
19+
exports._has = function (name, fd) {
2020
return fd.has(name);
2121
};
2222

23-
exports._set = function(name, value, fd) {
23+
exports._set = function (name, value, fd) {
2424
fd.set(name, value);
2525
};
2626

27-
exports._setBlob = function(name, value, filename, fd) {
27+
exports._setBlob = function (name, value, filename, fd) {
2828
fd.set(name, value, filename);
2929
};

src/Web/XHR/ProgressEvent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"use strict";
22

3-
exports.lengthComputable = function(ev) {
3+
exports.lengthComputable = function (ev) {
44
return ev.lengthComputable;
55
};
66

7-
exports.lengthComputable = function(ev) {
7+
exports.lengthComputable = function (ev) {
88
return ev.lengthComputable;
99
};
1010

11-
exports.loaded = function(ev) {
11+
exports.loaded = function (ev) {
1212
return ev.loaded;
1313
};
1414

15-
exports.total = function(ev) {
15+
exports.total = function (ev) {
1616
return ev.total;
1717
};

src/Web/XHR/ResponseType.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Web.File.Blob (Blob)
1010
import Web.DOM.Document (Document)
1111
import Data.ArrayBuffer.Types (ArrayBuffer)
1212

13+
newtype ResponseType :: Type -> Type
1314
newtype ResponseType res = ResponseType String
1415

1516
arrayBuffer :: ResponseType ArrayBuffer

src/Web/XHR/XMLHttpRequest.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
"use strict";
22

3-
exports._xmlHttpRequest = function(respType) {
3+
exports._xmlHttpRequest = function (respType) {
44
var xhr = new XMLHttpRequest();
55
xhr.responseType = respType;
66
return xhr;
77
};
88

9-
exports._abort = function(xhr) {
9+
exports._abort = function (xhr) {
1010
xhr.abort();
1111
};
1212

13-
exports._getAllResponseHeaders = function(xhr) {
13+
exports._getAllResponseHeaders = function (xhr) {
1414
return xhr.getAllResponseHeaders();
1515
};
1616

17-
exports._getResponseHeader = function(header, xhr) {
17+
exports._getResponseHeader = function (header, xhr) {
1818
return xhr.getResponseHeader(header);
1919
};
2020

21-
exports._open = function(method, url, username, password, xhr) {
21+
exports._open = function (method, url, username, password, xhr) {
2222
xhr.open(method, url, true, username, password);
2323
};
2424

25-
exports._overrideMimeType = function(mimeType, xhr) {
25+
exports._overrideMimeType = function (mimeType, xhr) {
2626
xhr.overrideMimeType(mimeType);
2727
};
2828

29-
exports._send = function(payload, xhr) {
29+
exports._send = function (payload, xhr) {
3030
xhr.send(payload);
3131
};
3232

33-
exports._setRequestHeader = function(header, value, xhr) {
33+
exports._setRequestHeader = function (header, value, xhr) {
3434
xhr.setRequestHeader(header, value);
3535
};
3636

37-
exports._setProperty = function(prop, value, xhr) {
37+
exports._setProperty = function (prop, value, xhr) {
3838
xhr[prop] = value;
3939
};
4040

41-
exports._getProperty = function(prop, xhr) {
41+
exports._getProperty = function (prop, xhr) {
4242
return xhr[prop];
4343
};

0 commit comments

Comments
 (0)