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

pdfactory-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfactory-core - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35

8

dist/types.d.ts

@@ -13,4 +13,7 @@ /// <reference types="node" />

}
export type Pdfactory = (additionalConfig: Config, pdfOptions: PDFOptions) => Promise<({ document, data }: PdfRequest) => Promise<Buffer | PdfactoryError<ErrorType.DocumentNotFoundError | ErrorType.DocumentRenderingError>>> | PdfactoryError<ErrorType.UnsupportedFileTypeError>;
export interface Config {
export type Pdfactory = (config: PdfactoryConfig, additionalConfig: EjsConfig, pdfOptions: PDFOptions) => Promise<({ document, data }: PdfRequest) => Promise<Buffer | PdfactoryError<ErrorType.DocumentNotFoundError | ErrorType.DocumentRenderingError>>> | PdfactoryError<ErrorType.UnsupportedFileTypeError>;
export interface PdfactoryConfig {
useFileSystem: boolean;
}
export interface EjsConfig {
templatesDir: string[];

@@ -24,3 +27,4 @@ ejsOptions: ejs.Options;

data: object;
useLocalFiles?: boolean;
}
export type RenderingFunctions = Record<string, ejs.TemplateFunction>;
{
"author": "pdfactory-core",
"name": "pdfactory-core",
"version": "0.0.34",
"version": "0.0.35",
"type": "module",

@@ -22,9 +22,12 @@ "files": [

"dist": "rimraf ./dist && npx rollup --config ./config/rollup.config.js",
"dev": "DEV=true concurrently \"yarn dev:build\" \"wait-on ./build/bundle.js && nodemon --inspect --watch test --watch build ./test/dev.js\"",
"dev": "DEV=true concurrently \"yarn dev:build\" \"wait-on ./build/bundle.js && nodemon --inspect --watch test --watch build ./dev.js\"",
"dev:build": "rimraf ./build/**/* && npx rollup -w -c ./config/rollup.config.js",
"test:build": "node ./test/testBuild.js",
"lint:fix": "eslint --fix src"
"test:build": "node ./tests/testBuild.js",
"lint:fix": "eslint --fix src",
"test": "DEV=true ava --watch"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.2.1",

@@ -34,3 +37,5 @@ "@rollup/plugin-typescript": "^11.0.0",

"@types/node": "^18.7.18",
"@types/sinon": "^10.0.13",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"ava": "^5.1.0",
"concurrently": "^7.6.0",

@@ -49,2 +54,4 @@ "dotenv": "^16.0.3",

"rollup-plugin-delete": "^2.0.0",
"sinon": "^15.0.1",
"ts-node": "^10.9.1",
"typescript": "*",

@@ -51,0 +58,0 @@ "wait-on": "^7.0.1"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc