@hazae41/stdbob 0.0.14 → 0.0.15

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.
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [hazae41]
4
+ patreon: hazae41
@@ -0,0 +1,19 @@
1
+ on:
2
+ push:
3
+ tags:
4
+ - "*"
5
+
6
+ name: release
7
+
8
+ jobs:
9
+ compare:
10
+ name: compare
11
+ runs-on: ubuntu-24.04
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v6
15
+ with:
16
+ node-version: latest
17
+ - run: "npm ci && npm run prepack"
18
+ - run: "npm diff --diff=$(jq -r '.name' package.json)@$(jq -r '.version' package.json)"
19
+ - run: "[[ -z $(npm diff --diff=$(jq -r '.name' package.json)@$(jq -r '.version' package.json)) ]]"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/stdbob",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "description": "Standard libraries for Bobine WebAssembly VM",
6
6
  "repository": "github:hazae41/stdbob",
7
7
  "author": "hazae41",
@@ -64,4 +64,12 @@ export namespace blobs {
64
64
  @external("blobs", "to_base64")
65
65
  export declare function toBase64(blob: blobref): textref
66
66
 
67
+ // @ts-ignore: decorator
68
+ @external("blobs", "encode")
69
+ export declare function encode<T>(value: T): blobref
70
+
71
+ // @ts-ignore: decorator
72
+ @external("blobs", "decode")
73
+ export declare function decode<T>(blob: blobref): T
74
+
67
75
  }