Adjust cjs -> deno path rewrites (#372)

This commit is contained in:
Jaco
2022-06-21 20:33:07 +03:00
committed by GitHub
parent b29f959dda
commit e0a9e33623
7 changed files with 9 additions and 35 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
},
"devDependencies": {
"@babel/core": "^7.18.5",
"@polkadot/dev": "^0.67.20",
"@polkadot/dev": "^0.67.21",
"fflate": "^0.7.3",
"override-require": "^1.1.1"
},
@@ -1,4 +0,0 @@
// Copyright 2019-2022 @polkadot/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from '../data.js';
+1 -2
View File
@@ -1,5 +1,4 @@
// Copyright 2019-2022 @polkadot/wasm-crypto-asmjs authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { asmJsInit } from './deno/data.js';
export { packageInfo } from './packageInfo';
export * from './index';
+1 -1
View File
@@ -3,7 +3,7 @@
import { base64Decode, unzlibSync } from '@polkadot/wasm-util';
import { bytes, sizeUncompressed } from './cjs/bytes';
import { bytes, sizeUncompressed } from './cjs/bytes.js';
export { packageInfo } from './packageInfo';
@@ -1,4 +0,0 @@
// Copyright 2019-2022 @polkadot/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from '../bytes.js';
+1 -18
View File
@@ -1,21 +1,4 @@
// Copyright 2019-2022 @polkadot/wasm-crypto-wasm authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import { base64Decode, unzlibSync } from '@polkadot/wasm-util';
import { bytes, sizeUncompressed } from './deno/bytes.js';
export { packageInfo } from './packageInfo';
/**
* @name wasmBytes
* @description
* The decoded WASM interface as exposed by this package.
*
* The build process will output into cjs/* into a compressed base64 format.
* Upon loading the exposed bytes will be decoded and decompressed form this
* specific format and returned.
*/
export const wasmBytes = unzlibSync(base64Decode(bytes), new Uint8Array(sizeUncompressed));
export * from './index';
+5 -5
View File
@@ -1937,9 +1937,9 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.67.20":
version: 0.67.20
resolution: "@polkadot/dev@npm:0.67.20"
"@polkadot/dev@npm:^0.67.21":
version: 0.67.21
resolution: "@polkadot/dev@npm:0.67.21"
dependencies:
"@babel/cli": ^7.17.10
"@babel/core": ^7.18.5
@@ -2026,7 +2026,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 011e97c40c486dfff43e9d7630ec38094b090bb438bed01c8027fb05408a39d42bd969b5cf00c7a23cd2a40c6db020f57b58355aedb4bbec95e0637c6ae2a3a1
checksum: 6226b698c19263e4c145d7a784b29bf877271706bb577f79f1f92a5e15e1c88ec6dda8c4d1878c8cf0343ea532a49683d343a0d5176c5a93e32f99718db10b5c
languageName: node
linkType: hard
@@ -8587,7 +8587,7 @@ resolve@^2.0.0-next.3:
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@babel/core": ^7.18.5
"@polkadot/dev": ^0.67.20
"@polkadot/dev": ^0.67.21
fflate: ^0.7.3
override-require: ^1.1.1
languageName: unknown