diff --git a/Makefile b/Makefile index db51d65..a03ad49 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,13 @@ endif clean: @$(CLEAN_CMD) +# cross platform pwsh +clean-cp: + @pwsh -Command 'if(Test-Path $(OUTPUT_DIR)){Remove-Item -Force -Recurse $(OUTPUT_DIR)}' + @pwsh -Command 'if(Test-Path $(NODE_MODULES)){Remove-Item -Force -Recurse $(NODE_MODULES)}' + @pwsh -Command 'if(Test-Path $(DOCKER_DIST)){Remove-Item -Force -Recurse $(DOCKER_DIST)}' + @pwsh -Command 'if(Test-Path $(ROLLUP_CACHE)){Remove-Item -Force -Recurse $(ROLLUP_CACHE)}' + ################ # Host Targets # ################ diff --git a/src/main.ts b/src/main.ts index 0c0b47b..20ae4fa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,4 +5,4 @@ export type { Secp256k1 } from './api/secp256k1'; import { Secp256k1, WasmSecp256k1 } from './api/secp256k1'; import SB64_SECP256K1_WASM from './gen/secp256k1.wasm'; -export const initWasmSecp256k1 = (): Promise => WasmSecp256k1(Buffer.from(SB64_SECP256K1_WASM, 'base64url')); +export const initWasmSecp256k1 = (): Promise => WasmSecp256k1(Buffer.from(SB64_SECP256K1_WASM, 'base64'));