@lat-murmeldjur/weeb_3 0.0.295001 → 0.0.296001

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 CHANGED
@@ -32,25 +32,15 @@ The wasm-pack build now prepares the generated `static/package.json` for publish
32
32
  After publishing, the package can be used with the same API shape as `static/example.html`:
33
33
 
34
34
  ```js
35
- import init, { SekireiNo103, BootstrapNode } from "@lat-murmeldjur/weeb_3";
35
+ import init, { Weeb3No103, BootstrapNode } from "@lat-murmeldjur/weeb_3";
36
36
 
37
37
  await init();
38
38
 
39
- const weeb3node = new SekireiNo103();
39
+ const weeb3node = new Weeb3No103();
40
40
  ```
41
41
 
42
42
  The workflow defaults to publishing under the GitHub repository owner scope. If you need a different npm scope, set the `NPM_SCOPE` repository variable in GitHub Actions before pushing to `main`.
43
43
 
44
- ## Automated publishing
45
-
46
- The GitHub Actions workflow rebuilds the wasm package from `static`, rewrites the generated `static/package.json` into the publishable npm shape, checks the tarball with `npm pack --dry-run`, and publishes it on every push to `main`.
47
-
48
- Published versions are rewritten to unique stable semver numbers derived from the Cargo version plus the GitHub Actions run number and retry attempt, so each `main` publish gets a new release version without hand-editing `package.json`.
49
-
50
- To make the publish step fully automatic, configure npm trusted publishing for this repository and the `plain.yml` workflow.
51
-
52
- If you prefer a token fallback instead, add a repository secret named `NPM_TOKEN`.
53
-
54
44
  ## [Notes]
55
45
 
56
46
  ### Compatibility - Supported Browsers
@@ -95,7 +85,7 @@ This design would have enabled having one swarm client serving multiple open tab
95
85
  The high level architecture of the client resides in src/lib.rs, which (in order of appearing in the code) implements the following functions:
96
86
 
97
87
  - Defining and importing the swarm protocols generated by the protoc compiler
98
- - Defining the client (as the class Sekirei), it's in-memory registry of peers and their accounting (as the struct Wings)
88
+ - Defining the client (as the class Weeb3), it's in-memory registry of peers and their accounting (as the struct Wings)
99
89
  - Defining the 6 main functions of the client, namely
100
90
  1) Changing the bootnode address and network id
101
91
  2) Uploading a file or a tar based collection, optionally to a feed as well
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lat-murmeldjur/weeb_3",
3
3
  "type": "module",
4
4
  "description": "A Swarm client for browsers",
5
- "version": "0.0.295001",
5
+ "version": "0.0.296001",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/weeb_3.d.ts CHANGED
@@ -17,7 +17,7 @@ export class RequestArguments {
17
17
  readonly params: Array<any>;
18
18
  }
19
19
 
20
- export class Sekirei {
20
+ export class Weeb3 {
21
21
  private constructor();
22
22
  free(): void;
23
23
  [Symbol.dispose](): void;
@@ -27,14 +27,14 @@ export class Sekirei {
27
27
  get_current_logs(): Promise<string[]>;
28
28
  get_ongoing_connections(): Promise<bigint>;
29
29
  interface_log(log0: string): void;
30
- static new(_st: string): Sekirei;
30
+ static new(_st: string): Weeb3;
31
31
  post_push_chunk(d: Uint8Array, soc: boolean, chunk_address: Uint8Array, stamp: Uint8Array): Promise<Uint8Array>;
32
32
  post_upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<Uint8Array>;
33
33
  reset_stamp(): Promise<Uint8Array>;
34
34
  run(_st: string): Promise<void>;
35
35
  }
36
36
 
37
- export class SekireiNo103 {
37
+ export class Weeb3No103 {
38
38
  free(): void;
39
39
  [Symbol.dispose](): void;
40
40
  constructor();
@@ -58,44 +58,44 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
58
58
  export interface InitOutput {
59
59
  readonly memory: WebAssembly.Memory;
60
60
  readonly __wbg_bootstrapnode_free: (a: number, b: number) => void;
61
- readonly __wbg_sekireino103_free: (a: number, b: number) => void;
61
+ readonly __wbg_weeb3no103_free: (a: number, b: number) => void;
62
62
  readonly bootstrapnode_multiaddr: (a: number) => [number, number];
63
63
  readonly bootstrapnode_new: (a: number, b: number, c: number) => number;
64
64
  readonly bootstrapnode_usable: (a: number) => number;
65
- readonly sekireino103_new: () => number;
66
- readonly sekireino103_postPushChunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
67
- readonly sekireino103_resetStamp: (a: number) => any;
68
- readonly sekireino103_retrieve: (a: number, b: number, c: number) => any;
69
- readonly sekireino103_start: (a: number, b: number, c: number, d: number, e: number) => void;
70
- readonly sekireino103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
65
+ readonly weeb3no103_new: () => number;
66
+ readonly weeb3no103_postPushChunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
67
+ readonly weeb3no103_resetStamp: (a: number) => any;
68
+ readonly weeb3no103_retrieve: (a: number, b: number, c: number) => any;
69
+ readonly weeb3no103_start: (a: number, b: number, c: number, d: number, e: number) => void;
70
+ readonly weeb3no103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
71
71
  readonly interweeb: (a: number, b: number) => any;
72
- readonly __wbg_sekirei_free: (a: number, b: number) => void;
72
+ readonly __wbg_weeb3_free: (a: number, b: number) => void;
73
73
  readonly __wbg_wings_free: (a: number, b: number) => void;
74
- readonly sekirei_acquire: (a: number, b: number, c: number) => any;
75
- readonly sekirei_change_bootnode_address: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
76
- readonly sekirei_get_connections: (a: number) => any;
77
- readonly sekirei_get_current_logs: (a: number) => any;
78
- readonly sekirei_get_ongoing_connections: (a: number) => any;
79
- readonly sekirei_interface_log: (a: number, b: number, c: number) => void;
80
- readonly sekirei_new: (a: number, b: number) => number;
81
- readonly sekirei_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
82
- readonly sekirei_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
83
- readonly sekirei_reset_stamp: (a: number) => any;
84
- readonly sekirei_run: (a: number, b: number, c: number) => any;
74
+ readonly weeb3_acquire: (a: number, b: number, c: number) => any;
75
+ readonly weeb3_change_bootnode_address: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
76
+ readonly weeb3_get_connections: (a: number) => any;
77
+ readonly weeb3_get_current_logs: (a: number) => any;
78
+ readonly weeb3_get_ongoing_connections: (a: number) => any;
79
+ readonly weeb3_interface_log: (a: number, b: number, c: number) => void;
80
+ readonly weeb3_new: (a: number, b: number) => number;
81
+ readonly weeb3_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
82
+ readonly weeb3_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
83
+ readonly weeb3_reset_stamp: (a: number) => any;
84
+ readonly weeb3_run: (a: number, b: number, c: number) => any;
85
85
  readonly __wbg_requestarguments_free: (a: number, b: number) => void;
86
86
  readonly requestarguments_method: (a: number) => [number, number];
87
87
  readonly requestarguments_params: (a: number) => any;
88
- readonly wasm_bindgen__convert__closures_____invoke__h06a7e7b2a563bd9a: (a: number, b: number, c: any) => [number, number];
89
- readonly wasm_bindgen__convert__closures_____invoke__h2b3586c1e5138808: (a: number, b: number, c: any) => [number, number];
90
- readonly wasm_bindgen__convert__closures_____invoke__h88996e8058e7b4cf: (a: number, b: number, c: any, d: any) => void;
91
- readonly wasm_bindgen__convert__closures_____invoke__h2c2b25660306fe52: (a: number, b: number, c: any) => void;
92
- readonly wasm_bindgen__convert__closures_____invoke__h592ace81aa415f10: (a: number, b: number, c: any) => void;
93
- readonly wasm_bindgen__convert__closures_____invoke__h592ace81aa415f10_3: (a: number, b: number, c: any) => void;
94
- readonly wasm_bindgen__convert__closures_____invoke__hb7695be2fdd72d20: (a: number, b: number, c: any) => void;
95
- readonly wasm_bindgen__convert__closures_____invoke__h592ace81aa415f10_6: (a: number, b: number, c: any) => void;
96
- readonly wasm_bindgen__convert__closures_____invoke__hb28937c0609bdd79: (a: number, b: number) => void;
97
- readonly wasm_bindgen__convert__closures_____invoke__h294687bdb60910fc: (a: number, b: number) => void;
98
- readonly wasm_bindgen__convert__closures_____invoke__h41947166d8d508a5: (a: number, b: number) => void;
88
+ readonly wasm_bindgen__convert__closures_____invoke__h4a796665d205b7ec: (a: number, b: number, c: any) => [number, number];
89
+ readonly wasm_bindgen__convert__closures_____invoke__h5f671ba999059930: (a: number, b: number, c: any) => [number, number];
90
+ readonly wasm_bindgen__convert__closures_____invoke__h35e3afe4ed30c65a: (a: number, b: number, c: any, d: any) => void;
91
+ readonly wasm_bindgen__convert__closures_____invoke__ha7de707e286774da: (a: number, b: number, c: any) => void;
92
+ readonly wasm_bindgen__convert__closures_____invoke__h6b903f28a9a72ac8: (a: number, b: number, c: any) => void;
93
+ readonly wasm_bindgen__convert__closures_____invoke__h6b903f28a9a72ac8_3: (a: number, b: number, c: any) => void;
94
+ readonly wasm_bindgen__convert__closures_____invoke__hd7573197aeaedbac: (a: number, b: number, c: any) => void;
95
+ readonly wasm_bindgen__convert__closures_____invoke__h6b903f28a9a72ac8_6: (a: number, b: number, c: any) => void;
96
+ readonly wasm_bindgen__convert__closures_____invoke__hb17d8ec43d395b52: (a: number, b: number) => void;
97
+ readonly wasm_bindgen__convert__closures_____invoke__hf6eed03d6eb32d6f: (a: number, b: number) => void;
98
+ readonly wasm_bindgen__convert__closures_____invoke__h1033f07d6e5db530: (a: number, b: number) => void;
99
99
  readonly __wbindgen_malloc: (a: number, b: number) => number;
100
100
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
101
101
  readonly __wbindgen_exn_store: (a: number) => void;