Skip to content

Commit 0fccd63

Browse files
committed
Update docs
1 parent 7e693e2 commit 0fccd63

File tree

9 files changed

+39
-1031
lines changed

9 files changed

+39
-1031
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Node.js / WASM bindings for Yespower
22

3+
[![NPM Version](https://img.shields.io/npm/v/yespower)](https://www.npmjs.com/package/yespower)
4+
[![NPM Version](https://img.shields.io/npm/v/yespower-wasm)](https://www.npmjs.com/package/yespower-wasm)
5+
36
For node.js bindings refer to `./node` directory,
47

5-
For WebAssembly bindings refer to `./wasm` directory
8+
For WebAssembly bindings refer to `./wasm` directory

node/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Yespower for Node.js
22
============================
33

4+
[![NPM Version](https://img.shields.io/npm/v/yespower)](https://www.npmjs.com/package/yespower)
5+
46
## Prerequisites
57

68
* Node.js LTS

wasm/LICENSE

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
MIT License
1+
BSD 2-Clause License
22

3-
Copyright (c) 2025 CPUchain
3+
Copyright (c) 2009, Colin Percival
4+
Copyright (c) 2012-2019, Alexander Peslyak
45

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
118

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
1411

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

wasm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Yespower WebAssembly Module
22

3+
[![NPM Version](https://img.shields.io/npm/v/yespower-wasm)](https://www.npmjs.com/package/yespower-wasm)
4+
35
Yespower WebAssembly Module for Browsers / Node.js
46

57
## Prerequisites

wasm/lib/yespower.umd.js

Lines changed: 0 additions & 192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/lib/yespower.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yespower-wasm",
33
"version": "1.0.2",
44
"description": "WebAssembly module for Yespower",
5-
"license": "MIT",
5+
"license": "BSD 2-Clause",
66
"author": "CPUchain",
77
"main": "lib/index.js",
88
"browser": "lib/yespower.umd.js",
@@ -27,7 +27,6 @@
2727
"@types/node": "^22.13.5",
2828
"esbuild-loader": "^4.3.0",
2929
"js-beautify": "^1.15.3",
30-
"node-polyfill-webpack-plugin": "^4.1.0",
3130
"ts-node": "^10.9.2",
3231
"tsc": "^2.0.4",
3332
"typescript": "^5.7.3",

wasm/webpack.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
const { BannerPlugin, ProvidePlugin } = require('webpack');
1+
const { BannerPlugin } = require('webpack');
22
const path = require('path');
3-
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
43

54
const rules = [
65
{
@@ -24,11 +23,6 @@ const umdConfig = {
2423
libraryTarget: 'umd'
2524
},
2625
plugins: [
27-
new NodePolyfillPlugin(),
28-
new ProvidePlugin({
29-
process: 'process/browser',
30-
Buffer: ['buffer', 'Buffer']
31-
}),
3226
new BannerPlugin({
3327
banner: 'globalThis.process = { browser: true, env: {}, };',
3428
raw: true,
@@ -40,9 +34,6 @@ const umdConfig = {
4034
fs: false,
4135
path: false,
4236
},
43-
fallback: {
44-
'process/browser': require.resolve('process/browser'),
45-
}
4637
},
4738
optimization: {
4839
minimize: false,

0 commit comments

Comments
 (0)