Comparing version 2.1.2 to 2.1.3
/// <reference types="node" /> | ||
import gm from "gm"; | ||
import fs from "fs-extra"; | ||
import { WriteImageResponse } from "@module/types/writeImageResponse"; | ||
import { Options } from "@module/types/options"; | ||
import { ToBase64Response } from "@module/types/toBase64Response"; | ||
import { WriteImageResponse } from "./types/writeImageResponse"; | ||
import { Options } from "./types/options"; | ||
import { ToBase64Response } from "./types/toBase64Response"; | ||
export declare class Graphics { | ||
@@ -8,0 +8,0 @@ private quality; |
/// <reference types="node" /> | ||
import { Convert } from "@module/types/convert"; | ||
import { Convert } from "./types/convert"; | ||
export declare function fromPath(filePath: string, options?: import("./types/options").Options): Convert; | ||
export declare function fromBuffer(buffer: Buffer, options?: import("./types/options").Options): Convert; | ||
export declare function fromBase64(b64string: string, options?: import("./types/options").Options): Convert; |
@@ -1,3 +0,3 @@ | ||
import { WriteImageResponse } from "@module/types/writeImageResponse"; | ||
import { ToBase64Response } from "@module/types/toBase64Response"; | ||
import { WriteImageResponse } from "./writeImageResponse"; | ||
import { ToBase64Response } from "./toBase64Response"; | ||
export declare type Convert = { | ||
@@ -4,0 +4,0 @@ bulk?: (pages?: number | number[], toBase64?: boolean) => Promise<WriteImageResponse[] | ToBase64Response[]>; |
/// <reference types="node" /> | ||
import { Graphics } from "@module/graphics"; | ||
import { WriteImageResponse } from "@module/types/writeImageResponse"; | ||
import { ToBase64Response } from "@module/types/toBase64Response"; | ||
import { Graphics } from "../../graphics"; | ||
import { WriteImageResponse } from "../../types/writeImageResponse"; | ||
import { ToBase64Response } from "../../types/toBase64Response"; | ||
export declare function bulkConvert(gm: Graphics, source: string, filePath: string | Buffer, pageNumber?: number | number[], toBase64?: boolean): Promise<WriteImageResponse[] | ToBase64Response[]>; |
/// <reference types="node" /> | ||
import { Graphics } from "@module/graphics"; | ||
import { Graphics } from "../../graphics"; | ||
import { ReadStream } from "fs-extra"; | ||
export declare function getPages(gm: Graphics, pdf_path: ReadStream): Promise<number[]>; |
@@ -1,2 +0,2 @@ | ||
import { Options } from "@module/types/options"; | ||
import { Options } from "../types/options"; | ||
export declare const defaultOptions: Options; |
/// <reference types="node" /> | ||
import { Options } from "@module/types/options"; | ||
import { Convert } from "@module/types/convert"; | ||
import { Options } from "../types/options"; | ||
import { Convert } from "../types/convert"; | ||
export declare function pdf2picCore(source: string, filePath: string | Buffer, options?: Options): Convert; |
{ | ||
"name": "pdf2pic", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A utility for converting pdf to image and base64 format.", | ||
@@ -16,22 +16,22 @@ "main": "dist/index.js", | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"@types/chai": "^4.2.12", | ||
"@types/fs-extra": "^9.0.1", | ||
"@types/chai": "^4.2.14", | ||
"@types/fs-extra": "^9.0.5", | ||
"@types/gm": "^1.18.9", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.6.4", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.14", | ||
"@types/rimraf": "^3.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
"@typescript-eslint/parser": "^4.1.0", | ||
"@typescript-eslint/eslint-plugin": "^4.10.0", | ||
"@typescript-eslint/parser": "^4.10.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^7.8.1", | ||
"mocha": "^8.1.3", | ||
"eslint": "^7.16.0", | ||
"mocha": "^8.2.1", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.26.11", | ||
"rollup": "^2.35.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"ts-node": "^9.0.0", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"ts-node": "^9.1.1", | ||
"tsconfig-paths": "^3.9.0", | ||
"tslib": "^2.0.1", | ||
"typescript": "^4.0.2" | ||
"tslib": "^2.0.3", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
18264