Fries
548ef52ab7
i changed the api to not have a global wasm instance anymore. now initWasm returns a WASM instance you have to pass down to the functions. i feel like this is the best as it means you wont deal with a race condition if you're messing with it more then once at the same time, like i'm doing with tests. i also accounted for the height given as that was the original calculation that the Blurhash C implmentation used, not width * width, width * height.
26 lines
698 B
JSON
26 lines
698 B
JSON
{
|
|
"type": "module",
|
|
"name": "@fries/blurhash-c-wasm",
|
|
"version": "0.2.0",
|
|
"description": "A WASM module using the Blurhash C library",
|
|
"main": "dist/blurhash-c-wasm.cjs",
|
|
"module": "dist/blurhash-c-wasm.js",
|
|
"types": "dist/blurhash-c-wasm.d.ts",
|
|
"scripts": {
|
|
"build": "make && rollup -c rollup.config.js",
|
|
"test": "jasmine",
|
|
"test:coverage": "c8 -r html pnpm run test",
|
|
"prepublishOnly": "pnpm build && pnpm test"
|
|
},
|
|
"author": "Fries",
|
|
"devDependencies": {
|
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
"@rollup/plugin-wasm": "^6.1.3",
|
|
"@types/jasmine": "^4.3.5",
|
|
"c8": "^8.0.1",
|
|
"jasmine": "^5.1.0",
|
|
"rollup": "^3.28.0",
|
|
"tslib": "^2.6.1",
|
|
"typescript": "^5.1.6"
|
|
}
|
|
}
|