]> zoso.dev Git - libnemo.git/commitdiff
Install nano-pow from npm.
authorChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 00:37:44 +0000 (16:37 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 00:37:44 +0000 (16:37 -0800)
package-lock.json
package.json
src/lib/workers/nano-pow.ts

index ff4d3520c6b5e0a3d6ece5f3f8bee1309905e0ae..7ce0489b3805423da14727639c176068934c4113 100644 (file)
@@ -9,7 +9,7 @@
                        "version": "0.0.21",
                        "license": "(GPL-3.0-or-later AND MIT)",
                        "dependencies": {
-                               "nano-pow": "^1.2.0"
+                               "nano-pow": "^1.2.2"
                        },
                        "devDependencies": {
                                "@types/node": "^22.10.1",
                        }
                },
                "node_modules/nano-pow": {
-                       "version": "1.2.0",
-                       "resolved": "https://registry.npmjs.org/nano-pow/-/nano-pow-1.2.0.tgz",
-                       "integrity": "sha512-xgEWvLmFkWi/MMj40EyYRZQBec+U3zkKSQW2namD0790AdMlGOn4oZvYrdDBeq4g891JT8a07aIzvNadPdwmqw==",
+                       "version": "1.2.2",
+                       "resolved": "https://registry.npmjs.org/nano-pow/-/nano-pow-1.2.2.tgz",
+                       "integrity": "sha512-hOHzDTN9Vanl5GZZDA+bU+a8Iz8SdU1vWAgUL7sQq3TzLK8f+hsg2N65aXchCuBYWzmadEdQlZkox4nwx/U+cQ==",
                        "license": "(GPL-3.0-or-later AND MIT)",
                        "funding": {
                                "type": "nano",
index 5e9e8370e5e1b8a05c769741e2010bb649d2c904..69db714c58be882e8c0efe3e09051d39fa46d44d 100644 (file)
@@ -78,6 +78,6 @@
        "types": "dist/main.d.ts",
        "unpkg": "dist/main.min.js",
        "dependencies": {
-               "nano-pow": "^1.2.0"
+               "nano-pow": "^1.2.2"
        }
 }
index 14e0b29a8b994bab8548533f2909b853e7e7b551..24b8116287729ffbb605c0a44edc9cbabe107b2c 100644 (file)
@@ -3,13 +3,14 @@
 import { WorkerInterface } from '#~/pool.js'
 import { NanoPowGpuComputeShader, NanoPowGlFragmentShader, NanoPowGlVertexShader } from '#nano-pow/shaders/index.js'
 import { NanoPowGl, NanoPowGpu } from '#nano-pow/classes/index.js'
+import { NanoPow } from 'nano-pow'
 
 /**
 * Nano proof-of-work using WebGPU and Web Workers.
 */
-export class NanoPow extends WorkerInterface {
+export class NanoPowWorker extends WorkerInterface {
        static {
-               NanoPow.listen()
+               NanoPowWorker.listen()
        }
 
        /**