Restore older package names (#342)

* Restore older package names

* Fix headers

* Adjust imports & tupe exports
This commit is contained in:
Jaco
2022-05-11 09:01:12 +03:00
committed by GitHub
parent a601a8d034
commit e75ebd07a0
55 changed files with 175 additions and 156 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ source ../scripts/rust-version.sh
WSM=bytes/wasm_bg.wasm
OPT=bytes/wasm_opt.wasm
ASM=wasm-data-asmjs/build/cjs/data.js
ASM=wasm-crypto-asmjs/build/cjs/data.js
# build new via wasm-pack
echo "*** Building Rust sources"
@@ -42,5 +42,5 @@ sed -i -e '1,/var retasmFunc = /!d' $ASM
sed -i -e 's/var retasmFunc = .*/const asmJsInit = (wbg) => asmFunc(wbg);\n\nmodule.exports = { asmJsInit };/g' $ASM
# cleanups
rm -rf wasm-data-asmjs/build/cjs/*-e
rm -rf wasm-data-wasm/build/cjs/*-e
rm -rf wasm-crypto-asmjs/build/cjs/*-e
rm -rf wasm-crypto-wasm/build/cjs/*-e
+4 -4
View File
@@ -19,11 +19,11 @@ echo ""
echo "*** wasm-crypto"
ls -alR wasm-crypto/build
echo ""
echo "*** wasm-data-asmjs"
ls -alR wasm-data-asmjs/build
echo "*** wasm-crypto-asmjs"
ls -alR wasm-crypto-asmjs/build
echo ""
echo "*** wasm-data-wasm"
ls -alR wasm-data-wasm/build
echo "*** wasm-crypto-wasm"
ls -alR wasm-crypto-wasm/build
cd ..
+1 -1
View File
@@ -5,7 +5,7 @@ const fflate = require('fflate/node');
const fs = require('fs');
const { formatNumber } = require('@polkadot/util');
const W_NAME = 'wasm-data-wasm';
const W_NAME = 'wasm-crypto-wasm';
const data = fs.readFileSync('./bytes/wasm_opt.wasm');
const compressed = Buffer.from(fflate.zlibSync(data, { level: 9 }));