@@ -14,8 +14,8 @@ name: Lint code | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Use Node.js 16.x | ||
| uses: actions/setup-node@v3 | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js 18.x | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 16.x | ||
| node-version: 18 | ||
| - run: npm install | ||
| - run: npm run lint |
@@ -11,6 +11,6 @@ name: NPM publish | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-node@v3 | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 16.x | ||
| node-version: 18 | ||
| registry-url: https://registry.npmjs.org | ||
@@ -17,0 +17,0 @@ - run: | |
@@ -15,3 +15,3 @@ name: Run tests | ||
| matrix: | ||
| node-version: [14.x, 16.x, 18.x, 20.x] | ||
| node-version: [18, 20, 22] | ||
@@ -21,5 +21,5 @@ name: Node.js ${{ matrix.node-version }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v3 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
@@ -32,3 +32,3 @@ node-version: ${{ matrix.node-version }} | ||
| - run: npm install | ||
| - uses: paambaati/codeclimate-action@v5 | ||
| - uses: paambaati/codeclimate-action@v9 | ||
| env: | ||
@@ -35,0 +35,0 @@ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import gm from 'gm'; | ||
@@ -3,0 +2,0 @@ import fs from 'fs'; |
+0
-1
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { Convert } from './types/convert'; | ||
@@ -3,0 +2,0 @@ export declare function fromPath(filePath: string, options?: import("./types/options").Options): Convert; |
@@ -1,4 +0,3 @@ | ||
| /// <reference types="node" /> | ||
| import type { Convert } from './types/convert'; | ||
| import type { Options } from './types/options'; | ||
| export declare function pdf2picCore(source: string, data: string | Buffer, options?: Options): Convert; |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| export interface BaseResponse { | ||
@@ -3,0 +2,0 @@ size?: string; |
@@ -1,3 +0,2 @@ | ||
| /// <reference types="node" /> | ||
| import { ReadStream } from 'fs'; | ||
| export declare function base64ToStream(base64: string): ReadStream; |
@@ -1,4 +0,2 @@ | ||
| /// <reference types="node" /> | ||
| /// <reference types="node" /> | ||
| import { ReadStream } from 'fs'; | ||
| export declare function bufferToStream(buffer: Buffer): ReadStream; |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| export declare function convertToBuffer(source: string, data: string | Buffer): Promise<Buffer>; |
@@ -1,4 +0,2 @@ | ||
| /// <reference types="node" /> | ||
| /// <reference types="node" /> | ||
| import { ReadStream } from 'fs'; | ||
| export declare function convertToStream(source: string, file: string | Buffer): ReadStream; |
@@ -1,4 +0,3 @@ | ||
| /// <reference types="node" /> | ||
| import { ReadStream } from 'fs'; | ||
| import { Graphics } from '../graphics'; | ||
| export declare function getPages(gm: Graphics, pdf_path: ReadStream): Promise<number[]>; |
+7
-4
| { | ||
| "name": "pdf2pic", | ||
| "version": "3.1.1", | ||
| "version": "3.1.2", | ||
| "description": "A utility for converting pdf to image formats. Supports different outputs: directly to file, base64 or buffer.", | ||
@@ -17,3 +17,3 @@ "main": "dist/index.js", | ||
| "@types/mocha": "^10.0.1", | ||
| "@types/node": "^16.18.39", | ||
| "@types/node": "^18.19.50", | ||
| "@types/rimraf": "^4.0.5", | ||
@@ -48,3 +48,3 @@ "@typescript-eslint/eslint-plugin": "^6.2.1", | ||
| "engines": { | ||
| "node": ">=14" | ||
| "node": ">=18" | ||
| }, | ||
@@ -83,4 +83,7 @@ "repository": { | ||
| "lint-staged": { | ||
| "*.{js,ts}": ["prettier --write", "eslint --fix"] | ||
| "*.{js,ts}": [ | ||
| "prettier --write", | ||
| "eslint --fix" | ||
| ] | ||
| } | ||
| } |
+10
-1
@@ -20,3 +20,3 @@ # pdf2pic | ||
| * node >= 14.x | ||
| * node >= 18.x | ||
| * graphicsmagick | ||
@@ -198,2 +198,11 @@ * ghostscript | ||
| This is deprecated and will be removed in the next major version. | ||
| ## Version Compatibility | ||
| | pdf2pic version | node version | | ||
| |-----------------|------------------| | ||
| | 1.4.0 | < 10.x | | ||
| | 2.1.4, 2.2.4 | >= 10.x | | ||
| | 3.1.1 | >= 14.x | | ||
| | >= 3.1.2 | >= 18.x | | ||
@@ -200,0 +209,0 @@ ## Contributing |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
223
4.21%26905
-0.27%199
-5.24%