@pdfme/common 5.3.8-dev.6 → 5.3.8-dev.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/__tests__/dynamicTemplate.test.js +9 -9
- package/dist/cjs/__tests__/dynamicTemplate.test.js.map +1 -1
- package/dist/cjs/__tests__/expression.test.js +45 -45
- package/dist/cjs/__tests__/expression.test.js.map +1 -1
- package/dist/cjs/__tests__/helper.test.js +46 -47
- package/dist/cjs/__tests__/helper.test.js.map +1 -1
- package/dist/cjs/src/dynamicTemplate.js +4 -4
- package/dist/cjs/src/dynamicTemplate.js.map +1 -1
- package/dist/cjs/src/expression.js.map +1 -1
- package/dist/cjs/src/index.js +34 -34
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/__tests__/dynamicTemplate.test.js +1 -1
- package/dist/esm/__tests__/dynamicTemplate.test.js.map +1 -1
- package/dist/esm/__tests__/expression.test.js +1 -1
- package/dist/esm/__tests__/expression.test.js.map +1 -1
- package/dist/esm/__tests__/helper.test.js +2 -3
- package/dist/esm/__tests__/helper.test.js.map +1 -1
- package/dist/esm/src/dynamicTemplate.js +1 -1
- package/dist/esm/src/dynamicTemplate.js.map +1 -1
- package/dist/esm/src/expression.js.map +1 -1
- package/dist/esm/src/index.js +5 -5
- package/dist/esm/src/index.js.map +1 -1
- package/dist/node/__tests__/dynamicTemplate.test.js +9 -9
- package/dist/node/__tests__/dynamicTemplate.test.js.map +1 -1
- package/dist/node/__tests__/expression.test.js +45 -45
- package/dist/node/__tests__/expression.test.js.map +1 -1
- package/dist/node/__tests__/helper.test.js +46 -47
- package/dist/node/__tests__/helper.test.js.map +1 -1
- package/dist/node/src/dynamicTemplate.js +4 -4
- package/dist/node/src/dynamicTemplate.js.map +1 -1
- package/dist/node/src/expression.js.map +1 -1
- package/dist/node/src/index.js +34 -34
- package/dist/node/src/index.js.map +1 -1
- package/dist/types/src/dynamicTemplate.d.ts +1 -1
- package/dist/types/src/expression.d.ts +1 -1
- package/dist/types/src/helper.d.ts +1 -1
- package/dist/types/src/index.d.ts +6 -6
- package/dist/types/src/types.d.ts +0 -2
- package/eslint.config.mjs +22 -0
- package/package.json +2 -2
- package/set-version.js +1 -1
- package/src/dynamicTemplate.ts +5 -5
- package/src/expression.ts +5 -6
- package/src/helper.ts +10 -10
- package/src/index.ts +6 -6
- package/src/schema.ts +1 -1
- package/src/types.ts +3 -5
- package/tsconfig.esm.json +2 -1
- package/.eslintrc.cjs +0 -3
@@ -1,26 +1,26 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const
|
3
|
+
const expression_js_1 = require("../src/expression.js");
|
4
4
|
describe('replacePlaceholders', () => {
|
5
5
|
it('should return content as is if there are no placeholders', () => {
|
6
6
|
const content = 'Hello, world!';
|
7
|
-
const result = (0,
|
7
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
8
8
|
expect(result).toBe(content);
|
9
9
|
});
|
10
10
|
it('should replace placeholders with variables', () => {
|
11
11
|
const content = 'Hello, {name}!';
|
12
12
|
const variables = { name: 'Alice' };
|
13
|
-
const result = (0,
|
13
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas: [] });
|
14
14
|
expect(result).toBe('Hello, Alice!');
|
15
15
|
});
|
16
16
|
it('should evaluate expressions within placeholders', () => {
|
17
17
|
const content = 'The sum is {1 + 2}.';
|
18
|
-
const result = (0,
|
18
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
19
19
|
expect(result).toBe('The sum is 3.');
|
20
20
|
});
|
21
21
|
it('should handle date and dateTime placeholders', () => {
|
22
22
|
const content = 'Today is {date} and now is {dateTime}.';
|
23
|
-
const result = (0,
|
23
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
24
24
|
const date = new Date();
|
25
25
|
const padZero = (num) => String(num).padStart(2, '0');
|
26
26
|
const formattedDate = `${date.getFullYear()}/${padZero(date.getMonth() + 1)}/${padZero(date.getDate())}`;
|
@@ -40,7 +40,7 @@ describe('replacePlaceholders', () => {
|
|
40
40
|
},
|
41
41
|
],
|
42
42
|
];
|
43
|
-
const result = (0,
|
43
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas });
|
44
44
|
expect(result).toBe('Schema content: SchemaName');
|
45
45
|
});
|
46
46
|
it('should prioritize variables over schemas', () => {
|
@@ -56,7 +56,7 @@ describe('replacePlaceholders', () => {
|
|
56
56
|
},
|
57
57
|
],
|
58
58
|
];
|
59
|
-
const result = (0,
|
59
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas });
|
60
60
|
expect(result).toBe('Name: VariableName');
|
61
61
|
});
|
62
62
|
it('should handle nested placeholders in variables', () => {
|
@@ -72,28 +72,28 @@ describe('replacePlaceholders', () => {
|
|
72
72
|
},
|
73
73
|
],
|
74
74
|
];
|
75
|
-
const result = (0,
|
75
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas });
|
76
76
|
expect(result).toBe('Nested variable: Hello, Bob!');
|
77
77
|
});
|
78
78
|
it('should return content unchanged when placeholders are invalid', () => {
|
79
79
|
const content = 'Invalid placeholder: {name';
|
80
|
-
const result = (0,
|
80
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
81
81
|
expect(result).toBe('Invalid placeholder: {name');
|
82
82
|
});
|
83
83
|
it('should evaluate expressions even if they result in Infinity', () => {
|
84
84
|
const content = 'Divide by zero: {1 / 0}';
|
85
|
-
const result = (0,
|
85
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
86
86
|
expect(result).toBe('Divide by zero: Infinity');
|
87
87
|
});
|
88
88
|
it('should handle complex expressions', () => {
|
89
89
|
const content = 'Result: {Math.max(1, 2, 3)}';
|
90
|
-
const result = (0,
|
90
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
91
91
|
expect(result).toBe('Result: 3');
|
92
92
|
});
|
93
93
|
it('should parse JSON strings in variables', () => {
|
94
94
|
const content = 'Data: {data.value}';
|
95
95
|
const variables = { data: '{"value": "42"}' };
|
96
|
-
const result = (0,
|
96
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas: [] });
|
97
97
|
expect(result).toBe('Data: 42');
|
98
98
|
});
|
99
99
|
it('should handle variables of different types', () => {
|
@@ -104,7 +104,7 @@ describe('replacePlaceholders', () => {
|
|
104
104
|
arr: ['first', 'second'],
|
105
105
|
obj: { key: 'value' },
|
106
106
|
};
|
107
|
-
const result = (0,
|
107
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas: [] });
|
108
108
|
expect(result).toBe('Number: 42, Boolean: true, Array: first, Object: value');
|
109
109
|
});
|
110
110
|
it('should use content from readOnly schemas', () => {
|
@@ -120,7 +120,7 @@ describe('replacePlaceholders', () => {
|
|
120
120
|
},
|
121
121
|
],
|
122
122
|
];
|
123
|
-
const result = (0,
|
123
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas });
|
124
124
|
expect(result).toBe('Content: ReadOnlyContent');
|
125
125
|
});
|
126
126
|
it('should use empty string for non-readOnly schema content', () => {
|
@@ -136,12 +136,12 @@ describe('replacePlaceholders', () => {
|
|
136
136
|
},
|
137
137
|
],
|
138
138
|
];
|
139
|
-
const result = (0,
|
139
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas });
|
140
140
|
expect(result).toBe('Content: ');
|
141
141
|
});
|
142
142
|
it('should allow method chaining on permitted global objects', () => {
|
143
143
|
const content = 'Chained: {Math.random().toString()}';
|
144
|
-
const result = (0,
|
144
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
145
145
|
// Math.random() generates a random number, which is then converted to a string using toString()
|
146
146
|
const regex = /^Chained: \d+\.\d+$/;
|
147
147
|
expect(regex.test(result)).toBe(true);
|
@@ -150,86 +150,86 @@ describe('replacePlaceholders', () => {
|
|
150
150
|
describe('replacePlaceholders - Security Tests', () => {
|
151
151
|
it('should prevent access to __proto__ property', () => {
|
152
152
|
const content = 'Proto: {__proto__}';
|
153
|
-
const result = (0,
|
153
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
154
154
|
// Since __proto__ access is prohibited, the placeholder should remain unchanged
|
155
155
|
expect(result).toBe('Proto: {__proto__}');
|
156
156
|
});
|
157
157
|
it('should prevent access to constructor property', () => {
|
158
158
|
const content = 'Constructor: {constructor}';
|
159
|
-
const result = (0,
|
159
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
160
160
|
// 'constructor' is allowed if defined in context or globals; assuming it's not, placeholder remains
|
161
161
|
expect(result).toBe('Constructor: {constructor}');
|
162
162
|
});
|
163
163
|
it('should prevent access to prototype property', () => {
|
164
164
|
const content = 'Prototype: {prototype}';
|
165
|
-
const result = (0,
|
165
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
166
166
|
// 'prototype' access is prohibited
|
167
167
|
expect(result).toBe('Prototype: {prototype}');
|
168
168
|
});
|
169
169
|
it('should prevent access to nested prohibited properties', () => {
|
170
170
|
const content = 'Nested: {user.__proto__.polluted}';
|
171
171
|
const variables = { user: {} };
|
172
|
-
const result = (0,
|
172
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas: [] });
|
173
173
|
// Access to '__proto__' is prohibited; placeholder remains unchanged
|
174
174
|
expect(result).toBe('Nested: {user.__proto__.polluted}');
|
175
175
|
});
|
176
176
|
it('should prevent use of Function constructor', () => {
|
177
177
|
const content = 'Function: {Function("return 42")()}';
|
178
|
-
const result = (0,
|
178
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
179
179
|
// Use of Function constructor is not allowed; placeholder remains unchanged
|
180
180
|
expect(result).toBe('Function: {Function("return 42")()}');
|
181
181
|
});
|
182
182
|
it('should prevent access to disallowed global variables', () => {
|
183
183
|
const content = 'Process: {process.env}';
|
184
|
-
const result = (0,
|
184
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
185
185
|
// 'process' is not in allowedGlobals; placeholder remains unchanged
|
186
186
|
expect(result).toBe('Process: {process.env}');
|
187
187
|
});
|
188
188
|
it('should prevent prototype pollution via JSON.parse', () => {
|
189
189
|
const content = 'Polluted: {JSON.parse(\'{"__proto__":{"polluted":true}}\').polluted}';
|
190
|
-
const result = (0,
|
190
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
191
191
|
// Even if 'polluted' is accessed, the prototype is not polluted, so undefined is returned.
|
192
192
|
expect(result).toBe('Polluted: undefined');
|
193
193
|
});
|
194
194
|
it('should prevent accessing nested prohibited properties in functions', () => {
|
195
195
|
const content = 'Access: {( () => { return this.constructor } )()}';
|
196
|
-
const result = (0,
|
196
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
197
197
|
// Attempting to access 'constructor' via 'this' should be prohibited; placeholder remains unchanged
|
198
198
|
expect(result).toBe('Access: {( () => { return this.constructor } )()}');
|
199
199
|
});
|
200
200
|
it('should prevent accessing global objects not in allowedGlobals', () => {
|
201
201
|
const content = 'Global: {global}';
|
202
|
-
const result = (0,
|
202
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
203
203
|
// 'global' is not in allowedGlobals; placeholder remains unchanged
|
204
204
|
expect(result).toBe('Global: {global}');
|
205
205
|
});
|
206
206
|
it('should prevent accessing Object constructor via allowed globals', () => {
|
207
207
|
const content = 'ObjectConstructor: {Object.constructor}';
|
208
|
-
const result = (0,
|
208
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
209
209
|
// Accessing 'constructor' of 'Object' is prohibited
|
210
210
|
expect(result).toBe('ObjectConstructor: {Object.constructor}');
|
211
211
|
});
|
212
212
|
it('should prevent accessing Function from allowed globals', () => {
|
213
213
|
const content = 'FunctionAccess: {Function("return 42")()}';
|
214
|
-
const result = (0,
|
214
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
215
215
|
// 'Function' is not in allowedGlobals, so this should fail
|
216
216
|
expect(result).toBe('FunctionAccess: {Function("return 42")()}');
|
217
217
|
});
|
218
218
|
it('should prevent accessing nested properties via allowed globals', () => {
|
219
219
|
const content = 'NestedAccess: {Math.__proto__.polluted}';
|
220
|
-
const result = (0,
|
220
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
221
221
|
// Accessing '__proto__' of allowed global 'Math' is prohibited
|
222
222
|
expect(result).toBe('NestedAccess: {Math.__proto__.polluted}');
|
223
223
|
});
|
224
224
|
it('should prevent execution of arbitrary code via ternary operator', () => {
|
225
225
|
const content = 'ArbitraryCode: {true ? (() => { return "Hacked" })() : "Safe"}';
|
226
|
-
const result = (0,
|
226
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
227
227
|
// Execution of arbitrary functions is not allowed; placeholder remains unchanged
|
228
228
|
expect(result).toBe('ArbitraryCode: {true ? (() => { return "Hacked" })() : "Safe"}');
|
229
229
|
});
|
230
230
|
it('should handle attempts to override context variables', () => {
|
231
231
|
const content = 'Override: {date = "Hacked"} {date}';
|
232
|
-
const result = (0,
|
232
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
233
233
|
// Assignment operations are not supported; placeholders remain unchanged
|
234
234
|
const date = new Date();
|
235
235
|
const padZero = (num) => String(num).padStart(2, '0');
|
@@ -238,32 +238,32 @@ describe('replacePlaceholders - Security Tests', () => {
|
|
238
238
|
});
|
239
239
|
it('should prevent using eval-like expressions', () => {
|
240
240
|
const content = 'Eval: {eval("2 + 2")';
|
241
|
-
const result = (0,
|
241
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
242
242
|
// 'eval' is not in allowedGlobals; placeholder remains unchanged
|
243
243
|
expect(result).toBe('Eval: {eval("2 + 2")');
|
244
244
|
});
|
245
245
|
it('should prevent accessing undefined variables', () => {
|
246
246
|
const content = 'Undefined: {undefinedVar}';
|
247
|
-
const result = (0,
|
247
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
248
248
|
// 'undefinedVar' is not defined; placeholder remains unchanged
|
249
249
|
expect(result).toBe('Undefined: {undefinedVar}');
|
250
250
|
});
|
251
251
|
it('should prevent accessing nested properties of undefined variables', () => {
|
252
252
|
const content = 'NestedUndefined: {user.name}';
|
253
|
-
const result = (0,
|
253
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
254
254
|
// 'user' is undefined; accessing 'name' should fail and placeholder remains unchanged
|
255
255
|
expect(result).toBe('NestedUndefined: {user.name}');
|
256
256
|
});
|
257
257
|
it('should prevent accessing nested prohibited properties in objects', () => {
|
258
258
|
const content = 'Nested: {user.__proto__.polluted}';
|
259
259
|
const variables = { user: {} };
|
260
|
-
const result = (0,
|
260
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables, schemas: [] });
|
261
261
|
// Since access to '__proto__' is prohibited, the placeholder remains unchanged.
|
262
262
|
expect(result).toBe('Nested: {user.__proto__.polluted}');
|
263
263
|
});
|
264
264
|
it('should prevent using Function constructor', () => {
|
265
265
|
const content = 'Function: {Function("return 42")()}';
|
266
|
-
const result = (0,
|
266
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
267
267
|
// Since 'Function' is not included in allowedGlobals, the placeholder remains unchanged.
|
268
268
|
expect(result).toBe('Function: {Function("return 42")()}');
|
269
269
|
});
|
@@ -271,52 +271,52 @@ describe('replacePlaceholders - Security Tests', () => {
|
|
271
271
|
describe('replacePlaceholders - Comparison Operators Tests', () => {
|
272
272
|
it('should evaluate expressions with == operator', () => {
|
273
273
|
const content = 'Equals: {1 == 1}';
|
274
|
-
const result = (0,
|
274
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
275
275
|
expect(result).toBe('Equals: true');
|
276
276
|
});
|
277
277
|
it('should evaluate expressions with != operator', () => {
|
278
278
|
const content = 'NotEquals: {1 != 2}';
|
279
|
-
const result = (0,
|
279
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
280
280
|
expect(result).toBe('NotEquals: true');
|
281
281
|
});
|
282
282
|
it('should evaluate expressions with === operator', () => {
|
283
283
|
const content = 'StrictEquals: {1 === 1}';
|
284
|
-
const result = (0,
|
284
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
285
285
|
expect(result).toBe('StrictEquals: true');
|
286
286
|
});
|
287
287
|
it('should evaluate expressions with !== operator', () => {
|
288
288
|
const content = 'StrictNotEquals: {1 !== "1"}';
|
289
|
-
const result = (0,
|
289
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
290
290
|
expect(result).toBe('StrictNotEquals: true');
|
291
291
|
});
|
292
292
|
it('should evaluate expressions with < operator', () => {
|
293
293
|
const content = 'LessThan: {1 < 2}';
|
294
|
-
const result = (0,
|
294
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
295
295
|
expect(result).toBe('LessThan: true');
|
296
296
|
});
|
297
297
|
it('should evaluate expressions with > operator', () => {
|
298
298
|
const content = 'GreaterThan: {2 > 1}';
|
299
|
-
const result = (0,
|
299
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
300
300
|
expect(result).toBe('GreaterThan: true');
|
301
301
|
});
|
302
302
|
it('should evaluate expressions with <= operator', () => {
|
303
303
|
const content = 'LessThanOrEquals: {1 <= 1}';
|
304
|
-
const result = (0,
|
304
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
305
305
|
expect(result).toBe('LessThanOrEquals: true');
|
306
306
|
});
|
307
307
|
it('should evaluate expressions with >= operator', () => {
|
308
308
|
const content = 'GreaterThanOrEquals: {2 >= 1}';
|
309
|
-
const result = (0,
|
309
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
310
310
|
expect(result).toBe('GreaterThanOrEquals: true');
|
311
311
|
});
|
312
312
|
it('should handle complex expressions with comparison operators', () => {
|
313
313
|
const content = 'Complex: {1 + 2 > 2 && 4 - 1 < 5}';
|
314
|
-
const result = (0,
|
314
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
315
315
|
expect(result).toBe('Complex: true');
|
316
316
|
});
|
317
317
|
it('should prevent execution of arbitrary code via comparison operators', () => {
|
318
318
|
const content = 'ArbitraryCode: {1 < (() => { return "Hacked" })()}';
|
319
|
-
const result = (0,
|
319
|
+
const result = (0, expression_js_1.replacePlaceholders)({ content, variables: {}, schemas: [] });
|
320
320
|
// Execution of arbitrary functions is not allowed; placeholder remains unchanged
|
321
321
|
expect(result).toBe('ArbitraryCode: {1 < (() => { return "Hacked" })()}');
|
322
322
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"expression.test.js","sourceRoot":"","sources":["../../../__tests__/expression.test.ts"],"names":[],"mappings":";;AAAA,kDAAwD;AAGxD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAClE,MAAM,OAAO,GAAG,eAAe,CAAC;QAChC,MAAM,MAAM,GAAG,IAAA,gCAAmB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAA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AC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,OAAO,GAAG,mCAAmC,CAAC;QACpD,MAAM,MAAM,GAAG,IAAA,mCAAmB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,GAAG,EAAE;QAC7E,MAAM,OAAO,GAAG,oDAAoD,CAAC;QACrE,MAAM,MAAM,GAAG,IAAA,mCAAmB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5E,iFAAiF;QACjF,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -25,9 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
const fs_1 = require("fs");
|
27
27
|
const path = __importStar(require("path"));
|
28
|
-
const
|
29
|
-
const
|
30
|
-
const src_2 = require("../src");
|
28
|
+
const helper_js_1 = require("../src/helper.js");
|
29
|
+
const index_js_1 = require("../src/index.js");
|
31
30
|
const sansData = (0, fs_1.readFileSync)(path.join(__dirname, `/assets/fonts/SauceHanSansJP.ttf`));
|
32
31
|
const serifData = (0, fs_1.readFileSync)(path.join(__dirname, `/assets/fonts/SauceHanSerifJP.ttf`));
|
33
32
|
const getSampleFont = () => ({
|
@@ -35,7 +34,7 @@ const getSampleFont = () => ({
|
|
35
34
|
SauceHanSerifJP: { data: serifData },
|
36
35
|
});
|
37
36
|
const getTemplate = () => ({
|
38
|
-
basePdf:
|
37
|
+
basePdf: index_js_1.BLANK_PDF,
|
39
38
|
schemas: [
|
40
39
|
[
|
41
40
|
{
|
@@ -60,49 +59,49 @@ const getTemplate = () => ({
|
|
60
59
|
});
|
61
60
|
describe('mm2pt test', () => {
|
62
61
|
it('converts millimeters to points', () => {
|
63
|
-
expect((0,
|
64
|
-
expect((0,
|
65
|
-
expect((0,
|
62
|
+
expect((0, helper_js_1.mm2pt)(1)).toEqual(2.8346);
|
63
|
+
expect((0, helper_js_1.mm2pt)(10)).toEqual(28.346);
|
64
|
+
expect((0, helper_js_1.mm2pt)(4395.12)).toEqual(12458.407152);
|
66
65
|
});
|
67
66
|
});
|
68
67
|
describe('pt2mm test', () => {
|
69
68
|
it('converts points to millimeters', () => {
|
70
|
-
expect((0,
|
71
|
-
expect((0,
|
72
|
-
expect((0,
|
73
|
-
expect((0,
|
69
|
+
expect((0, helper_js_1.pt2mm)(1)).toEqual(0.3528);
|
70
|
+
expect((0, helper_js_1.pt2mm)(2.8346)).toEqual(1.00004688); // close enough!
|
71
|
+
expect((0, helper_js_1.pt2mm)(10)).toEqual(3.528);
|
72
|
+
expect((0, helper_js_1.pt2mm)(5322.98)).toEqual(1877.947344);
|
74
73
|
});
|
75
74
|
});
|
76
75
|
describe('pt2px test', () => {
|
77
76
|
it('converts points to pixels', () => {
|
78
|
-
expect((0,
|
79
|
-
expect((0,
|
80
|
-
expect((0,
|
81
|
-
expect((0,
|
82
|
-
expect((0,
|
77
|
+
expect((0, helper_js_1.pt2px)(1)).toEqual(index_js_1.PT_TO_PX_RATIO);
|
78
|
+
expect((0, helper_js_1.pt2px)(1)).toEqual(1.333);
|
79
|
+
expect((0, helper_js_1.pt2px)(2.8346)).toEqual(3.7785218);
|
80
|
+
expect((0, helper_js_1.pt2px)(10)).toEqual(13.33);
|
81
|
+
expect((0, helper_js_1.pt2px)(5322.98)).toEqual(7095.532339999999);
|
83
82
|
});
|
84
83
|
});
|
85
84
|
describe('isHexValid test', () => {
|
86
85
|
test('valid hex', () => {
|
87
|
-
expect((0,
|
88
|
-
expect((0,
|
89
|
-
expect((0,
|
90
|
-
expect((0,
|
86
|
+
expect((0, helper_js_1.isHexValid)('#fff')).toEqual(true);
|
87
|
+
expect((0, helper_js_1.isHexValid)('#ffffff')).toEqual(true);
|
88
|
+
expect((0, helper_js_1.isHexValid)('#ffffff00')).toEqual(true);
|
89
|
+
expect((0, helper_js_1.isHexValid)('#ffffff00')).toEqual(true);
|
91
90
|
});
|
92
91
|
test('invalid hex', () => {
|
93
|
-
expect((0,
|
94
|
-
expect((0,
|
95
|
-
expect((0,
|
96
|
-
expect((0,
|
97
|
-
expect((0,
|
98
|
-
expect((0,
|
99
|
-
expect((0,
|
92
|
+
expect((0, helper_js_1.isHexValid)('#ff')).toEqual(false);
|
93
|
+
expect((0, helper_js_1.isHexValid)('#fffff')).toEqual(false);
|
94
|
+
expect((0, helper_js_1.isHexValid)('#ffffff000')).toEqual(false);
|
95
|
+
expect((0, helper_js_1.isHexValid)('#ffffff0000')).toEqual(false);
|
96
|
+
expect((0, helper_js_1.isHexValid)('#ffffff00000')).toEqual(false);
|
97
|
+
expect((0, helper_js_1.isHexValid)('#ffffff000000')).toEqual(false);
|
98
|
+
expect((0, helper_js_1.isHexValid)('#pdfme123')).toEqual(false);
|
100
99
|
});
|
101
100
|
});
|
102
101
|
describe('checkFont test', () => {
|
103
102
|
test('success test: no fontName in Schemas', () => {
|
104
103
|
const _getTemplate = () => ({
|
105
|
-
basePdf:
|
104
|
+
basePdf: index_js_1.BLANK_PDF,
|
106
105
|
schemas: [
|
107
106
|
[
|
108
107
|
{
|
@@ -125,7 +124,7 @@ describe('checkFont test', () => {
|
|
125
124
|
],
|
126
125
|
});
|
127
126
|
try {
|
128
|
-
(0,
|
127
|
+
(0, helper_js_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
129
128
|
expect.anything();
|
130
129
|
}
|
131
130
|
catch (e) {
|
@@ -134,7 +133,7 @@ describe('checkFont test', () => {
|
|
134
133
|
});
|
135
134
|
test('success test: fontName in Schemas(fallback font)', () => {
|
136
135
|
try {
|
137
|
-
(0,
|
136
|
+
(0, helper_js_1.checkFont)({ template: getTemplate(), font: getSampleFont() });
|
138
137
|
expect.anything();
|
139
138
|
}
|
140
139
|
catch (e) {
|
@@ -147,7 +146,7 @@ describe('checkFont test', () => {
|
|
147
146
|
SauceHanSerifJP: { fallback: true, data: serifData },
|
148
147
|
});
|
149
148
|
try {
|
150
|
-
(0,
|
149
|
+
(0, helper_js_1.checkFont)({ template: getTemplate(), font: getFont() });
|
151
150
|
expect.anything();
|
152
151
|
}
|
153
152
|
catch (e) {
|
@@ -160,7 +159,7 @@ describe('checkFont test', () => {
|
|
160
159
|
SauceHanSerifJP: { data: serifData },
|
161
160
|
});
|
162
161
|
try {
|
163
|
-
(0,
|
162
|
+
(0, helper_js_1.checkFont)({ template: getTemplate(), font: getFont() });
|
164
163
|
fail();
|
165
164
|
}
|
166
165
|
catch (e) {
|
@@ -174,7 +173,7 @@ Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);
|
|
174
173
|
SauceHanSerifJP: { data: serifData, fallback: true },
|
175
174
|
});
|
176
175
|
try {
|
177
|
-
(0,
|
176
|
+
(0, helper_js_1.checkFont)({ template: getTemplate(), font: getFont() });
|
178
177
|
fail();
|
179
178
|
}
|
180
179
|
catch (e) {
|
@@ -184,7 +183,7 @@ Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);
|
|
184
183
|
});
|
185
184
|
test('fail test: fontName in Schemas not found in font(single)', () => {
|
186
185
|
const _getTemplate = () => ({
|
187
|
-
basePdf:
|
186
|
+
basePdf: index_js_1.BLANK_PDF,
|
188
187
|
schemas: [
|
189
188
|
[
|
190
189
|
{
|
@@ -208,7 +207,7 @@ Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);
|
|
208
207
|
],
|
209
208
|
});
|
210
209
|
try {
|
211
|
-
(0,
|
210
|
+
(0, helper_js_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
212
211
|
fail();
|
213
212
|
}
|
214
213
|
catch (e) {
|
@@ -218,7 +217,7 @@ Check this document: https://pdfme.com/docs/custom-fonts`);
|
|
218
217
|
});
|
219
218
|
test('fail test: fontName in Schemas not found in font(single)', () => {
|
220
219
|
const _getTemplate = () => ({
|
221
|
-
basePdf:
|
220
|
+
basePdf: index_js_1.BLANK_PDF,
|
222
221
|
schemas: [
|
223
222
|
[
|
224
223
|
{
|
@@ -243,7 +242,7 @@ Check this document: https://pdfme.com/docs/custom-fonts`);
|
|
243
242
|
],
|
244
243
|
});
|
245
244
|
try {
|
246
|
-
(0,
|
245
|
+
(0, helper_js_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
247
246
|
fail();
|
248
247
|
}
|
249
248
|
catch (e) {
|
@@ -287,7 +286,7 @@ describe('checkPlugins test', () => {
|
|
287
286
|
try {
|
288
287
|
const template = getTemplate();
|
289
288
|
template.schemas = [];
|
290
|
-
(0,
|
289
|
+
(0, helper_js_1.checkPlugins)({ template, plugins: {} });
|
291
290
|
expect.anything();
|
292
291
|
}
|
293
292
|
catch (e) {
|
@@ -298,7 +297,7 @@ describe('checkPlugins test', () => {
|
|
298
297
|
try {
|
299
298
|
const template = getTemplate();
|
300
299
|
template.schemas = [];
|
301
|
-
(0,
|
300
|
+
(0, helper_js_1.checkPlugins)({ template, plugins });
|
302
301
|
expect.anything();
|
303
302
|
}
|
304
303
|
catch (e) {
|
@@ -310,7 +309,7 @@ describe('checkPlugins test', () => {
|
|
310
309
|
const template = getTemplate();
|
311
310
|
template.schemas[0][0].type = 'myText';
|
312
311
|
template.schemas[0][1].type = 'myText';
|
313
|
-
(0,
|
312
|
+
(0, helper_js_1.checkPlugins)({ template, plugins });
|
314
313
|
expect.anything();
|
315
314
|
}
|
316
315
|
catch (e) {
|
@@ -322,7 +321,7 @@ describe('checkPlugins test', () => {
|
|
322
321
|
const template = getTemplate();
|
323
322
|
template.schemas[0][0].type = 'myText';
|
324
323
|
template.schemas[0][1].type = 'myImage';
|
325
|
-
(0,
|
324
|
+
(0, helper_js_1.checkPlugins)({ template, plugins });
|
326
325
|
expect.anything();
|
327
326
|
}
|
328
327
|
catch (e) {
|
@@ -334,7 +333,7 @@ describe('checkPlugins test', () => {
|
|
334
333
|
const template = getTemplate();
|
335
334
|
template.schemas[0][0].type = 'fail';
|
336
335
|
template.schemas[0][1].type = 'myImage';
|
337
|
-
(0,
|
336
|
+
(0, helper_js_1.checkPlugins)({ template, plugins });
|
338
337
|
fail();
|
339
338
|
}
|
340
339
|
catch (e) {
|
@@ -346,7 +345,7 @@ describe('checkPlugins test', () => {
|
|
346
345
|
const template = getTemplate();
|
347
346
|
template.schemas[0][0].type = 'fail';
|
348
347
|
template.schemas[0][1].type = 'fail2';
|
349
|
-
(0,
|
348
|
+
(0, helper_js_1.checkPlugins)({ template, plugins });
|
350
349
|
fail();
|
351
350
|
}
|
352
351
|
catch (e) {
|
@@ -394,7 +393,7 @@ describe('migrateTemplate', () => {
|
|
394
393
|
},
|
395
394
|
],
|
396
395
|
};
|
397
|
-
(0,
|
396
|
+
(0, helper_js_1.migrateTemplate)(legacyTemplate);
|
398
397
|
const expectedSchemaPageArray = [
|
399
398
|
[
|
400
399
|
{
|
@@ -479,17 +478,17 @@ describe('migrateTemplate', () => {
|
|
479
478
|
],
|
480
479
|
};
|
481
480
|
const before = JSON.parse(JSON.stringify(pagedTemplate));
|
482
|
-
(0,
|
481
|
+
(0, helper_js_1.migrateTemplate)(pagedTemplate);
|
483
482
|
expect(pagedTemplate.schemas).toEqual(before.schemas);
|
484
483
|
});
|
485
484
|
});
|
486
485
|
describe('getB64BasePdf', () => {
|
487
486
|
test('base64 string', async () => {
|
488
|
-
const result = await (0,
|
487
|
+
const result = await (0, index_js_1.getB64BasePdf)(index_js_1.BLANK_PDF);
|
489
488
|
expect(typeof result).toBe('string');
|
490
489
|
});
|
491
490
|
test('Uint8Array', async () => {
|
492
|
-
const result = await (0,
|
491
|
+
const result = await (0, index_js_1.getB64BasePdf)(new Uint8Array([10, 20, 30, 40, 50]));
|
493
492
|
expect(typeof result).toBe('string');
|
494
493
|
});
|
495
494
|
});
|