Update dependencies

This commit is contained in:
yumauri
2021-03-13 18:25:47 +03:00
parent 38a379afe7
commit ea81f28d44
4 changed files with 692 additions and 605 deletions
+7 -19
View File
@@ -4,7 +4,7 @@ on: ['push', 'pull_request']
jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
@@ -14,25 +14,13 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn
- name: Linting and check spelling
run: yarn lint
- name: Test and collect coverage
run: yarn test
- name: Build package
run: yarn build
- name: Push coverage to Coveralls
uses: coverallsapp/github-action@master
- run: yarn
- run: yarn lint
- run: yarn test
- run: yarn build
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
+7 -7
View File
@@ -63,29 +63,29 @@
},
"homepage": "https://github.com/yumauri/gotenberg-js-client#readme",
"dependencies": {
"form-data": "^3.0.0"
"form-data": "^4.0.0"
},
"devDependencies": {
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-ts-standard-pkg": "^0.9.2",
"@size-limit/preset-small-lib": "^4.9.2",
"@size-limit/preset-small-lib": "^4.10.1",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.25",
"@types/node": "^14.14.34",
"flowgen": "^1.13.0",
"jest": "^26.6.3",
"nock": "^13.0.7",
"nock": "^13.0.11",
"pika-plugin-package.json": "^1.0.2",
"pika-plugin-typedefs-to-flow": "^0.0.2",
"prettier": "^2.2.1",
"size-limit": "^4.9.2",
"ts-jest": "^26.5.0",
"size-limit": "^4.10.1",
"ts-jest": "^26.5.3",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-config-security": "^1.16.0",
"tslint-config-standard-plus": "^2.3.0",
"typescript": "^4.1.3",
"typescript": "^4.2.3",
"yaspeller": "^7.0.0"
},
"engines": {
+11
View File
@@ -0,0 +1,11 @@
import { createWriteStream } from 'fs'
import { convert, gotenberg, html, pipe, please } from '../../src'
// need to run Gotenberg like this
// docker run --rm -p 3500:3000 thecodingmachine/gotenberg:6
;(async () => {
const toPDF = pipe(gotenberg('http://localhost:3500'), convert, html, please)
const pdf = await toPDF('<html><header></header><body>Make my day</body></html>')
pdf.pipe(createWriteStream(`${__dirname}/test_issue_27.pdf`))
})()
+667 -579
View File
File diff suppressed because it is too large Load Diff