-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Amarok24/relook
Relook
- Loading branch information
Showing
16 changed files
with
636 additions
and
266 deletions.
There are no files selected for viewing
This file contains 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 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 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,13 @@ | ||
export { generateUUID }; | ||
function generateUUID() { | ||
let cryptoRef = null; | ||
let r = ''; | ||
if (typeof self.crypto !== 'undefined') { | ||
cryptoRef = self.crypto; | ||
r = cryptoRef.randomUUID?.(); | ||
} | ||
if (!r) { | ||
r = 'Crypto API or randomUUID method not supported.'; | ||
} | ||
return r; | ||
} |
This file contains 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,7 @@ | ||
export { OxhrError }; | ||
class OxhrError extends Error { | ||
constructor(message) { | ||
super(message); | ||
this.name = 'OxhrError'; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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,26 @@ | ||
export var XhrReadyState; | ||
(function (XhrReadyState) { | ||
XhrReadyState[XhrReadyState["UNSENT"] = 0] = "UNSENT"; | ||
XhrReadyState[XhrReadyState["OPENED"] = 1] = "OPENED"; | ||
XhrReadyState[XhrReadyState["HEADERS_RECEIVED"] = 2] = "HEADERS_RECEIVED"; | ||
XhrReadyState[XhrReadyState["LOADING"] = 3] = "LOADING"; | ||
XhrReadyState[XhrReadyState["DONE"] = 4] = "DONE"; | ||
})(XhrReadyState || (XhrReadyState = {})); | ||
export var XhrStatus; | ||
(function (XhrStatus) { | ||
XhrStatus[XhrStatus["UNSENT"] = 0] = "UNSENT"; | ||
XhrStatus[XhrStatus["CONTINUE"] = 100] = "CONTINUE"; | ||
XhrStatus[XhrStatus["OK"] = 200] = "OK"; | ||
XhrStatus[XhrStatus["LOADING"] = 200] = "LOADING"; | ||
XhrStatus[XhrStatus["MULTIPLE_CHOICE"] = 300] = "MULTIPLE_CHOICE"; | ||
XhrStatus[XhrStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST"; | ||
XhrStatus[XhrStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED"; | ||
XhrStatus[XhrStatus["FORBIDDEN"] = 403] = "FORBIDDEN"; | ||
XhrStatus[XhrStatus["NOT_FOUND"] = 404] = "NOT_FOUND"; | ||
XhrStatus[XhrStatus["NOT_ALLOWED"] = 405] = "NOT_ALLOWED"; | ||
XhrStatus[XhrStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT"; | ||
XhrStatus[XhrStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS"; | ||
XhrStatus[XhrStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR"; | ||
XhrStatus[XhrStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY"; | ||
XhrStatus[XhrStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE"; | ||
})(XhrStatus || (XhrStatus = {})); |
Oops, something went wrong.