@onflow/cadence-parser 1.0.0-preview.50 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cadence-parser.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ import {CadenceParser} from "@onflow/cadence-parser"
|
|
|
11
11
|
const parser = await CadenceParser.create("cadence-parser.wasm")
|
|
12
12
|
|
|
13
13
|
const ast = parser.parse(`
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
access(all) contract HelloWorld {
|
|
15
|
+
access(all) fun hello() {
|
|
16
16
|
log("Hello, world!")
|
|
17
17
|
}
|
|
18
18
|
}
|
package/dist/cadence-parser.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onflow/cadence-parser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "The Cadence parser",
|
|
5
5
|
"homepage": "https://github.com/onflow/cadence",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "npm run build:types && npm run build:esm && npm run build:cjs && GOARCH=wasm GOOS=js go build -o ./dist/cadence-parser.wasm ../../
|
|
21
|
+
"build": "npm run build:types && npm run build:esm && npm run build:cjs && GOARCH=wasm GOOS=js go build -o ./dist/cadence-parser.wasm ../../cmd/parse",
|
|
22
22
|
"build:types": "tsc --emitDeclarationOnly --module system --outDir dist/types",
|
|
23
23
|
"build:esm": "esbuild src/index.ts --bundle --sourcemap --format=esm --outfile=dist/esm/index.mjs",
|
|
24
24
|
"build:cjs": "tsc --module commonjs --target es6 --outDir dist/cjs --declaration false",
|