Skip to content

Commit

Permalink
feat: upgrade to napi-rs 2.1.0 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl authored Feb 13, 2022
1 parent 379a9f8 commit 58a9b34
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 357 deletions.
6 changes: 0 additions & 6 deletions js-binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

/* auto-generated by NAPI-RS */

export class ExternalObject<T> {
readonly '': {
readonly '': unique symbol
[K: symbol]: T
}
}
/** Renders an SVG */
export function render(svg: string | Buffer, options?: string | undefined | null): Buffer
export function renderAsync(svg: string | Buffer, options?: string | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"devDependencies": {
"@napi-rs/canvas": "^0.1.19",
"@napi-rs/cli": "^2.4.2",
"@napi-rs/cli": "^2.4.4",
"@swc-node/register": "^1.4.2",
"@types/node": "^17.0.1",
"@types/sharp": "^0.29.5",
Expand All @@ -85,7 +85,7 @@
"copyfiles": "^2.4.1",
"dts-bundle-generator": "^6.5.0",
"esbuild": "^0.14.21",
"eslint": "^8.6.0",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^4.0.0",
Expand All @@ -94,12 +94,11 @@
"jimp": "^0.16.1",
"lint-staged": "^12.1.3",
"npm-run-all": "^4.1.5",
"oslllo-svg2": "^0.3.1",
"oslllo-svg2": "0.3.1",
"prettier": "^2.5.1",
"sharp": "^0.30.0",
"svg2img": "^0.9.4",
"typescript": "^4.5.4",
"wasm-pack": "^0.10.2"
"typescript": "^4.5.4"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
Expand Down
Loading

1 comment on commit 58a9b34

@vercel
Copy link

@vercel vercel bot commented on 58a9b34 Feb 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.