Skip to content

Commit

Permalink
fix: update deps & fix composable
Browse files Browse the repository at this point in the history
  • Loading branch information
BayBreezy committed Sep 26, 2023
1 parent 8bd68a4 commit 609c15a
Show file tree
Hide file tree
Showing 3 changed files with 489 additions and 389 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@
"test:watch": "vitest watch"
},
"dependencies": {
"@nuxt/kit": "^3.7.1",
"@nuxt/kit": "^3.7.4",
"pdfmake": "^0.2.7"
},
"devDependencies": {
"@nuxt/devtools": "^0.8.3",
"@nuxt/devtools": "^0.8.5",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.1",
"@nuxt/schema": "^3.7.1",
"@nuxt/test-utils": "^3.7.1",
"@nuxt/schema": "^3.7.4",
"@nuxt/test-utils": "^3.7.4",
"@nuxthq/ui": "^2.7.0",
"@types/node": "^20.6.0",
"@types/pdfmake": "^0.2.2",
"@types/node": "^20.7.0",
"@types/pdfmake": "^0.2.4",
"changelogen": "^0.5.5",
"eslint": "^8.49.0",
"nuxt": "^3.7.1",
"vitest": "^0.34.4"
"eslint": "^8.50.0",
"nuxt": "^3.7.4",
"vitest": "^0.34.5"
}
}
}
5 changes: 0 additions & 5 deletions src/runtime/composables/usePDFMake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@ import { TFontDictionary } from "pdfmake/interfaces";
* @see https://pdfmake.github.io/docs/0.1/getting-started/client-side/methods/
*/
export const usePDFMake = () => {
const pdfFonts: TFontDictionary = {
Roboto: useFontPresets().Roboto,
};
(<any>pdfMake).vfs = pdfFonts;

return pdfMake;
};
Loading

0 comments on commit 609c15a

Please sign in to comment.