Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb1c20c

Browse files
committedNov 15, 2020
Bump version to 1.12.0
1 parent 30d2aa2 commit cb1c20c

21 files changed

+78
-24
lines changed
 

‎apps/deno/dummy.d.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
declare const ParseSpeeds: any;
2+
declare const PDFPage: any;
3+
declare const clip: any;
4+
declare const clipEvenOdd: any;
5+
declare const closePath: any;
6+
declare const cmyk: any;
7+
declare const degrees: any;
8+
declare const drawRectangle: any;
9+
declare const endPath: any;
10+
declare const grayscale: any;
11+
declare const LineCapStyle: any;
12+
declare const LineJoinStyle: any;
13+
declare const typedArrayFor: any;
14+
declare const lineTo: any;
15+
declare const PDFDocument: any;
16+
declare const popGraphicsState: any;
17+
declare const pushGraphicsState: any;
18+
declare const rgb: any;
19+
declare const setLineJoin: any;
20+
declare const StandardFonts: any;

‎apps/deno/index.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
import { dirname } from 'https://deno.land/std@0.50.0/path/mod.ts';
2-
import { readLines } from 'https://deno.land/std@v0.50.0/io/bufio.ts';
3-
import { sep } from 'https://deno.land/std@v0.50.0/path/mod.ts';
4-
5-
import test1 from './tests/test1.ts';
6-
import test2 from './tests/test2.ts';
7-
import test3 from './tests/test3.ts';
8-
import test4 from './tests/test4.ts';
9-
import test5 from './tests/test5.ts';
10-
import test6 from './tests/test6.ts';
11-
import test7 from './tests/test7.ts';
12-
import test8 from './tests/test8.ts';
13-
import test9 from './tests/test9.ts';
14-
import test10 from './tests/test10.ts';
15-
import test11 from './tests/test11.ts';
16-
import test12 from './tests/test12.ts';
17-
import test13 from './tests/test13.ts';
18-
import test14 from './tests/test14.ts';
19-
import test15 from './tests/test15.ts';
20-
import test16 from './tests/test16.ts';
21-
import test17 from './tests/test17.ts';
1+
import { readLines } from 'https://deno.land/std@0.67.0/io/bufio.ts';
2+
import { SEP, dirname } from 'https://deno.land/std@0.67.0/path/mod.ts';
3+
4+
import { default as test1 } from './tests/test1.ts';
5+
import { default as test2 } from './tests/test2.ts';
6+
import { default as test3 } from './tests/test3.ts';
7+
import { default as test4 } from './tests/test4.ts';
8+
import { default as test5 } from './tests/test5.ts';
9+
import { default as test6 } from './tests/test6.ts';
10+
import { default as test7 } from './tests/test7.ts';
11+
import { default as test8 } from './tests/test8.ts';
12+
import { default as test9 } from './tests/test9.ts';
13+
import { default as test10 } from './tests/test10.ts';
14+
import { default as test11 } from './tests/test11.ts';
15+
import { default as test12 } from './tests/test12.ts';
16+
import { default as test13 } from './tests/test13.ts';
17+
import { default as test14 } from './tests/test14.ts';
18+
import { default as test15 } from './tests/test15.ts';
19+
import { default as test16 } from './tests/test16.ts';
20+
import { default as test17 } from './tests/test17.ts';
2221

2322
const promptToContinue = () => {
2423
const prompt = 'Press <enter> to run the next test...';
@@ -49,7 +48,7 @@ const openPdf = (path: string, reader: string = '') => {
4948
const tempDir = () => dirname(Deno.makeTempDirSync());
5049

5150
const writePdfToTmp = (pdf: Uint8Array) => {
52-
const path = `${tempDir()}${sep}${Date.now()}.pdf`;
51+
const path = `${tempDir()}${SEP}${Date.now()}.pdf`;
5352
Deno.writeFileSync(path, pdf);
5453
return path;
5554
};
@@ -136,6 +135,7 @@ const assets = {
136135
};
137136

138137
export type Assets = typeof assets;
138+
// export type Assets = any;
139139

140140
// This script can be executed with 0, 1, or 2 CLI arguments:
141141
// $ deno index.ts

‎apps/deno/tests/test1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22
import { Assets } from '../index.ts';
3+
4+
// @deno-types="../dummy.d.ts"
35
import {
46
clip,
57
clipEvenOdd,

‎apps/deno/tests/test10.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
PDFDocument,
46
StandardFonts,

‎apps/deno/tests/test11.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22
import { Assets } from '../index.ts';
3+
4+
// @deno-types="../dummy.d.ts"
35
import {
46
last,
57
PDFDocument,

‎apps/deno/tests/test12.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
PageSizes,
46
PDFDocument,

‎apps/deno/tests/test13.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import { PDFDocument, rgb } from '../../../dist/pdf-lib.esm.js';
35

46
// prettier-ignore

‎apps/deno/tests/test14.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
PDFDocument,
46
values,

‎apps/deno/tests/test15.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
PDFDocument,
46
StandardFonts,

‎apps/deno/tests/test16.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import { PDFDocument } from '../../../dist/pdf-lib.esm.js';
35

46
const fieldNames = {

‎apps/deno/tests/test17.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22

33
import { Assets } from '../index.ts';
4+
5+
// @deno-types="../dummy.d.ts"
46
import {
57
PDFDocument,
68
StandardFonts,

‎apps/deno/tests/test2.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22
import { Assets } from '../index.ts';
3+
4+
// @deno-types="../dummy.d.ts"
35
import {
46
ParseSpeeds,
57
PDFPage,

‎apps/deno/tests/test3.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
degrees,
46
ParseSpeeds,

‎apps/deno/tests/test4.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
ParseSpeeds,
46
PDFDocument,

‎apps/deno/tests/test5.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
ParseSpeeds,
46
PDFPage,

‎apps/deno/tests/test6.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22
import { Assets } from '../index.ts';
3+
4+
// @deno-types="../dummy.d.ts"
35
import {
46
degrees,
57
ParseSpeeds,

‎apps/deno/tests/test7.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
degrees,
46
ParseSpeeds,

‎apps/deno/tests/test8.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Assets } from '../index.ts';
2+
3+
// @deno-types="../dummy.d.ts"
24
import {
35
ParseSpeeds,
46
PDFDocument,

‎apps/deno/tests/test9.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import fontkit from 'https://cdn.skypack.dev/@pdf-lib/fontkit@^1.0.0?dts';
22
import { Assets } from '../index.ts';
3+
4+
// @deno-types="../dummy.d.ts"
35
import {
46
ParseSpeeds,
57
PDFDocument,

‎apps/rn/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4885,7 +4885,7 @@ path-type@^3.0.0:
48854885
pify "^3.0.0"
48864886

48874887
pdf-lib@./../..:
4888-
version "1.11.1"
4888+
version "1.12.0"
48894889
dependencies:
48904890
"@pdf-lib/standard-fonts" "^1.0.0"
48914891
"@pdf-lib/upng" "^1.0.1"

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdf-lib",
3-
"version": "1.11.2",
3+
"version": "1.12.0",
44
"description": "Create and modify PDF files with JavaScript",
55
"author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
66
"contributors": [

0 commit comments

Comments
 (0)
Please sign in to comment.