@crossbind/example-lib-source 2.0.0-beta.75 → 2.0.0-beta.76

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.
Files changed (2) hide show
  1. package/README.md +2 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,7 +30,8 @@ export default {
30
30
  ```
31
31
 
32
32
  ## Usage
33
- Below are the steps to use the library in your C++ or JavaScript code.
33
+ The package ships its sources, so its headers are for your app's C++: JavaScript reaches the library through the app's
34
+ own native code, as `Native.sample()` below.
34
35
 
35
36
  ### Usage in C++ Code
36
37
  ```diff
@@ -41,11 +42,3 @@ std::string Native::sample() {
41
42
  }
42
43
 
43
44
  ```
44
-
45
- ### Usage in JavaScript Code (web, with plugin)
46
- ```js
47
- import { initNative, SampleBasic } from '@crossbind/example-lib-source/crossbind-lib-samplebasic/samplebasic.h';
48
-
49
- await initNative();
50
- console.log(SampleBasic.sample());
51
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossbind/example-lib-source",
3
- "version": "2.0.0-beta.75",
3
+ "version": "2.0.0-beta.76",
4
4
  "description": "crossbind sample library: simple source library",
5
5
  "homepage": "https://github.com/crossbind/crossbind/tree/main/examples/lib-source#readme",
6
6
  "repository": {