Skip to content

Commit 88825f6

Browse files
authored
Ameba 1.7 (#802)
1 parent 83c4c94 commit 88825f6

File tree

87 files changed

+329
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+329
-337
lines changed

.ameba.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Documentation/DocumentationAdmonition:
2-
Enabled: false
3-
41
Metrics/CyclomaticComplexity:
52
Enabled: false
63

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Here are some bigger projects built and maintained by us that showcases the lang
5252
- [Mint Realworld](https://github.com/mint-lang/mint-realworld) - The frontend implementation of the Realworld app.
5353
- [Mint UI](https://github.com/mint-lang/mint-ui) - A UI library written in Mint.
5454
- [Mint UI Website](https://github.com/mint-lang/mint-ui-website) - The website for Mint UI.
55-
- _Your Project_ - let us know if you writter something amazing with Mint and would like to showcase here!
55+
- _Your Project_ - let us know if you've written something amazing with Mint and would like to showcase here!
5656

5757
## 👥  Community
5858

core/source/File.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ module File {
217217
*/
218218
fun fromUrl (url : String) : Promise(Maybe(File)) {
219219
let filename =
220-
Array.last(String.split(Url.parse(url).path, "/")) or "unkown"
220+
Array.last(String.split(Url.parse(url).path, "/")) or "unknown"
221221

222222
`
223223
(async () => {

core/source/Http.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ store Http {
164164
}
165165

166166
/*
167-
Checks the prescence of a header with the key.
167+
Checks the presence of a header with the key.
168168
169169
Http.empty()
170170
|> Http.header("Content-Type", "application/json")

core/source/MutationObserver.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* A data structure for the mutation obeservers entry. */
1+
/* A data structure for the mutation observers entry. */
22
type MutationObserver.Entry {
33
target : Dom.Element,
44
type : String

core/source/Provider/Shortcuts.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ component Main {
2727
shortcuts:
2828
[
2929
{
30-
action: () { Window.alert("Shotcut pressed!") },
30+
action: () { Window.alert("Shortcut pressed!") },
3131
shortcut: [Html.Event.CTRL, Html.Event.G],
3232
condition: () { true },
3333
bypassFocused: false

core/source/ResizeObserver.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* A data structure for the resize obeservers entry. */
1+
/* A data structure for the resize observers entry. */
22
type ResizeObserver.Entry {
33
dimensions : Dom.Dimensions,
44
target : Dom.Element

core/source/Storage/Common.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module Storage.Common {
8383
`
8484
}
8585

86-
/* Returns alll the keys in the storage. */
86+
/* Returns all the keys in the storage. */
8787
fun keys (storage : Storage) : Result(Storage.Error, Array(String)) {
8888
`
8989
(() => {

runtime/src/decoders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const format = (value) => {
1313
};
1414

1515
// A class to keep the errors when decoding. It keeps track of the path
16-
// to the nested objects for reporting purpuses.
16+
// to the nested objects for reporting purposes.
1717
export class Error {
1818
constructor(message, path = []) {
1919
this.message = message;
@@ -150,7 +150,7 @@ export const decodeString = (ok, err) => (input) => {
150150
};
151151

152152
// Decodes `Time` either a UNIX timestamp or any values that the
153-
// environment can parse with the `Date` construtor.
153+
// environment can parse with the `Date` constructor.
154154
export const decodeTime = (ok, err) => (input) => {
155155
let parsed = NaN;
156156

runtime/tests/debug.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test("inspecting array", () => {
6767
expect(inspect(["Hello", "World!"])).toBe(`["Hello", "World!"]`);
6868
});
6969

70-
test("inspecting unkown", () => {
70+
test("inspecting unknown", () => {
7171
expect(inspect(Symbol("WTF"))).toBe(`{ Symbol(WTF) }`);
7272
});
7373

0 commit comments

Comments
 (0)