@peerbit/riblt 1.0.4 → 1.0.5-e5392af

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.
Binary file
@@ -1,4 +1,4 @@
1
1
  // nothing to do since 'fetch' works as expected in the browsere
2
2
  import init from "./rateless_iblt.js";
3
3
 
4
- init(new URL("/peerbit/rateless_iblt_bg.wasm", import.meta.url));
4
+ await init(new URL("/peerbit/rateless_iblt_bg.wasm", import.meta.url));
package/package.json CHANGED
@@ -1,62 +1,66 @@
1
1
  {
2
- "name": "@peerbit/riblt",
3
- "version": "1.0.4",
4
- "description": "Riblt",
5
- "sideEffects": false,
6
- "type": "module",
7
- "types": "./dist/index.d.ts",
8
- "typesVersions": {
9
- "*": {
10
- "*": [
11
- "*",
12
- "dist/*",
13
- "dist/*/index"
14
- ],
15
- "src/*": [
16
- "*",
17
- "dist/*",
18
- "dist/*/index"
19
- ]
20
- }
21
- },
22
- "files": [
23
- "src",
24
- "dist",
25
- "!dist/test",
26
- "!**/*.tsbuildinfo"
27
- ],
28
- "exports": {
29
- ".": {
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/index.js"
32
- }
33
- },
34
- "browser": {
35
- "./dist/wasm-init.js": "./dist/wasm-init.browser.js"
36
- },
37
- "eslintConfig": {
38
- "extends": "peerbit",
39
- "parserOptions": {
40
- "project": true,
41
- "sourceType": "module"
42
- },
43
- "ignorePatterns": [
44
- "!.aegir.js",
45
- "test/ts-use",
46
- "*.d.ts"
47
- ]
48
- },
49
- "publishConfig": {
50
- "access": "public"
51
- },
52
- "scripts": {
53
- "benchmark": "cargo bench",
54
- "clean": "cargo clear",
55
- "cp-src-js": "shx cp -r ./src_js/* ./dist",
56
- "build": "wasm-pack build --target web --out-dir dist --out-name rateless_iblt && shx rm -rf ./dist/.gitignore && shx rm -rf ./dist/package.json && npm run cp-src-js",
57
- "test": "cargo test && aegir test",
58
- "lint": "cargo fmt"
59
- },
60
- "author": "dao.xyz",
61
- "license": "MIT"
2
+ "name": "@peerbit/riblt",
3
+ "version": "1.0.5-e5392af",
4
+ "description": "Riblt",
5
+ "sideEffects": [
6
+ "./dist/wasm-init.js",
7
+ "./dist/wasm-init.browser.js",
8
+ "./dist/index.js"
9
+ ],
10
+ "type": "module",
11
+ "types": "./dist/index.d.ts",
12
+ "typesVersions": {
13
+ "*": {
14
+ "*": [
15
+ "*",
16
+ "dist/*",
17
+ "dist/*/index"
18
+ ],
19
+ "src/*": [
20
+ "*",
21
+ "dist/*",
22
+ "dist/*/index"
23
+ ]
24
+ }
25
+ },
26
+ "files": [
27
+ "src",
28
+ "dist",
29
+ "!dist/test",
30
+ "!**/*.tsbuildinfo"
31
+ ],
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js"
36
+ }
37
+ },
38
+ "browser": {
39
+ "./dist/wasm-init.js": "./dist/wasm-init.browser.js"
40
+ },
41
+ "eslintConfig": {
42
+ "extends": "peerbit",
43
+ "parserOptions": {
44
+ "project": true,
45
+ "sourceType": "module"
46
+ },
47
+ "ignorePatterns": [
48
+ "!.aegir.js",
49
+ "test/ts-use",
50
+ "*.d.ts"
51
+ ]
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "scripts": {
57
+ "benchmark": "cargo bench",
58
+ "clean": "cargo clear",
59
+ "cp-src-js": "shx cp -r ./src_js/* ./dist",
60
+ "build": "wasm-pack build --target web --out-dir dist --out-name rateless_iblt && shx rm -rf ./dist/.gitignore && shx rm -rf ./dist/package.json && npm run cp-src-js",
61
+ "test": "cargo test && aegir test",
62
+ "lint": "cargo fmt"
63
+ },
64
+ "author": "dao.xyz",
65
+ "license": "MIT"
62
66
  }