New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pdf2pic

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf2pic - npm Package Compare versions

Comparing version

to
3.1.2

1

dist/graphics.d.ts

@@ -1,2 +0,1 @@

/// <reference types="node" />
import gm from 'gm';

@@ -3,0 +2,0 @@ import fs from 'fs';

@@ -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[]>;

11

package.json
{
"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"
]
}
}

@@ -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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet