motoko 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
package/contrib/hljs.js
CHANGED
package/contrib/monaco.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
|
1
|
+
'use strict'
|
2
2
|
|
3
|
+
/// Monaco editor configuration
|
3
4
|
exports.configure = (monaco) => {
|
4
5
|
monaco.languages.register({ id: "motoko" });
|
5
6
|
monaco.languages.setLanguageConfiguration("motoko", {
|
@@ -26,17 +27,17 @@ exports.configure = (monaco) => {
|
|
26
27
|
// prettier-ignore
|
27
28
|
keywords: [
|
28
29
|
'actor', 'and', 'async', 'assert', 'await', 'break', 'case', 'catch', 'class',
|
29
|
-
'continue', 'debug', 'else', 'false', 'for', 'from_candid', 'func', 'if', 'ignore', 'in', 'import',
|
30
|
-
'
|
31
|
-
'
|
32
|
-
'true', 'type', 'var', 'while', 'with',
|
30
|
+
'continue', 'debug', 'debug_show', 'do', 'else', 'false', 'for', 'from_candid', 'func', 'if', 'ignore', 'in', 'import',
|
31
|
+
'label', 'let', 'loop', 'module', 'not', 'null', 'object', 'or', 'return',
|
32
|
+
'switch', 'throw', 'to_candid', 'true', 'try', 'type', 'var', 'while', 'with',
|
33
33
|
],
|
34
34
|
accessmodifiers: [
|
35
35
|
"public",
|
36
36
|
"private",
|
37
|
+
"flexible",
|
38
|
+
"query",
|
37
39
|
"shared",
|
38
40
|
"stable",
|
39
|
-
"flexible",
|
40
41
|
"system",
|
41
42
|
],
|
42
43
|
// prettier-ignore
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "motoko",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.6",
|
4
4
|
"description": "Compile Motoko smart contracts in Node.js and the browser.",
|
5
5
|
"author": "Ryan Vandersmith (https://github.com/rvanasa)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -10,8 +10,10 @@
|
|
10
10
|
"url": "https://github.com/dfinity/node-motoko.git"
|
11
11
|
},
|
12
12
|
"scripts": {
|
13
|
+
"prepare": "husky install",
|
13
14
|
"generate": "node utils/generate",
|
14
|
-
"test": "jest"
|
15
|
+
"test": "jest",
|
16
|
+
"precommit": "lint-staged"
|
15
17
|
},
|
16
18
|
"dependencies": {
|
17
19
|
"cross-fetch": "3.1.5",
|
@@ -20,9 +22,17 @@
|
|
20
22
|
"devDependencies": {
|
21
23
|
"@wasmer/wasi": "^1.0.2",
|
22
24
|
"cross-env": "^7.0.3",
|
25
|
+
"eslint-config-prettier": "^8.5.0",
|
26
|
+
"husky": "^8.0.1",
|
23
27
|
"jest": "^28.1.3",
|
28
|
+
"lint-staged": "^13.0.3",
|
24
29
|
"prettier": "^2.7.1"
|
25
30
|
},
|
31
|
+
"lint-staged": {
|
32
|
+
"{lib,contrib,utils}/**/*.{js,ts,jsx,tsx}": [
|
33
|
+
"prettier --write"
|
34
|
+
]
|
35
|
+
},
|
26
36
|
"directories": {
|
27
37
|
"lib": "lib",
|
28
38
|
"example": "examples"
|