muhammara 2.2.0 → 2.5.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +2 -2
  3. package/muhammara.d.ts +258 -241
  4. package/muhammara.js +1 -1
  5. package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +4 -0
  6. package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +1 -1
  7. package/node_modules/@mapbox/node-pre-gyp/package.json +10 -10
  8. package/node_modules/concat-map/package.json +1 -1
  9. package/node_modules/console-control-strings/package.json +1 -1
  10. package/node_modules/debug/README.md +3 -0
  11. package/node_modules/debug/package.json +5 -5
  12. package/node_modules/debug/src/common.js +1 -1
  13. package/node_modules/delegates/package.json +1 -1
  14. package/node_modules/detect-libc/README.md +124 -42
  15. package/node_modules/detect-libc/index.d.ts +11 -0
  16. package/node_modules/detect-libc/lib/detect-libc.js +166 -80
  17. package/node_modules/detect-libc/lib/process.js +16 -0
  18. package/node_modules/detect-libc/package.json +20 -19
  19. package/node_modules/fs.realpath/package.json +1 -1
  20. package/node_modules/glob/common.js +2 -0
  21. package/node_modules/glob/glob.js +4 -1
  22. package/node_modules/glob/package.json +9 -6
  23. package/node_modules/glob/sync.js +6 -3
  24. package/node_modules/has-unicode/package.json +1 -1
  25. package/node_modules/https-proxy-agent/dist/agent.js +2 -5
  26. package/node_modules/https-proxy-agent/dist/agent.js.map +1 -1
  27. package/node_modules/https-proxy-agent/package.json +5 -5
  28. package/node_modules/inflight/package.json +1 -1
  29. package/node_modules/minimatch/package.json +5 -5
  30. package/node_modules/minipass/LICENSE +1 -1
  31. package/node_modules/minipass/README.md +122 -7
  32. package/node_modules/minipass/index.d.ts +149 -0
  33. package/node_modules/minipass/index.js +191 -102
  34. package/node_modules/minipass/package.json +23 -7
  35. package/node_modules/node-fetch/package.json +5 -5
  36. package/node_modules/object-assign/package.json +1 -1
  37. package/node_modules/once/package.json +1 -1
  38. package/node_modules/path-is-absolute/package.json +1 -1
  39. package/node_modules/semver/README.md +3 -1
  40. package/node_modules/semver/bin/semver.js +19 -9
  41. package/node_modules/semver/classes/comparator.js +3 -2
  42. package/node_modules/semver/classes/index.js +1 -1
  43. package/node_modules/semver/classes/range.js +31 -22
  44. package/node_modules/semver/classes/semver.js +1 -1
  45. package/node_modules/semver/functions/cmp.js +8 -4
  46. package/node_modules/semver/functions/coerce.js +3 -2
  47. package/node_modules/semver/functions/inc.js +4 -1
  48. package/node_modules/semver/functions/parse.js +1 -1
  49. package/node_modules/semver/internal/constants.js +2 -2
  50. package/node_modules/semver/internal/identifiers.js +1 -1
  51. package/node_modules/semver/internal/parse-options.js +3 -3
  52. package/node_modules/semver/internal/re.js +3 -3
  53. package/node_modules/semver/package.json +46 -13
  54. package/node_modules/semver/ranges/min-version.js +2 -1
  55. package/node_modules/semver/ranges/outside.js +1 -1
  56. package/node_modules/semver/ranges/simplify.js +15 -12
  57. package/node_modules/semver/ranges/subset.js +53 -31
  58. package/node_modules/set-blocking/package.json +1 -1
  59. package/node_modules/tr46/package.json +1 -1
  60. package/node_modules/util-deprecate/package.json +1 -1
  61. package/node_modules/webidl-conversions/package.json +1 -1
  62. package/node_modules/whatwg-url/package.json +1 -1
  63. package/node_modules/wrappy/package.json +1 -1
  64. package/package.json +2 -1
  65. package/src/DocumentCopyingContextDriver.cpp +15 -15
  66. package/src/ObjectsContextDriver.cpp +1 -1
  67. package/node_modules/detect-libc/.npmignore +0 -7
  68. package/node_modules/detect-libc/bin/detect-libc.js +0 -18
  69. package/node_modules/semver/CHANGELOG.md +0 -111
@@ -2,7 +2,7 @@
2
2
  "_from": "util-deprecate@^1.0.1",
3
3
  "_id": "util-deprecate@1.0.2",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
5
+ "_integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
6
6
  "_location": "/util-deprecate",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -2,7 +2,7 @@
2
2
  "_from": "webidl-conversions@^3.0.0",
3
3
  "_id": "webidl-conversions@3.0.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=",
5
+ "_integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
6
6
  "_location": "/webidl-conversions",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -2,7 +2,7 @@
2
2
  "_from": "whatwg-url@^5.0.0",
3
3
  "_id": "whatwg-url@5.0.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
5
+ "_integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
6
6
  "_location": "/whatwg-url",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -2,7 +2,7 @@
2
2
  "_from": "wrappy@1",
3
3
  "_id": "wrappy@1.0.2",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
5
+ "_integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
6
6
  "_location": "/wrappy",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muhammara",
3
- "version": "2.2.0",
3
+ "version": "2.5.0",
4
4
  "description": "Create, read and modify PDF files and streams. A drop in replacement for hummujs PDF library",
5
5
  "homepage": "https://github.com/julianhille/Muhammarajs",
6
6
  "license": "Apache-2.0",
@@ -45,6 +45,7 @@
45
45
  "@mapbox/node-pre-gyp"
46
46
  ],
47
47
  "devDependencies": {
48
+ "@types/node": "^18.0.0",
48
49
  "chai": "^4.2.0",
49
50
  "mocha": "^6.2.3",
50
51
  "npm": "^6.14.5"
@@ -103,7 +103,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CreateFormXObjectFromPDFPage(co
103
103
  (!args[1]->IsNumber() && !args[1]->IsArray()) ||
104
104
  (args.Length() == 3 && !args[2]->IsArray()))
105
105
  {
106
- THROW_EXCEPTION("Wrong arguments. provide 2 or 3 arugments, where the first is a 0 based page index, and the second is a EPDFPageBox enumeration value or a 4 numbers array defining an box. a 3rd parameter may be provided to deisgnate the result form matrix");
106
+ THROW_EXCEPTION("Wrong arguments. provide 2 or 3 arguments, where the first is a 0 based page index, and the second is a EPDFPageBox enumeration value or a 4 numbers array defining an box. a 3rd parameter may be provided to deisgnate the result form matrix");
107
107
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
108
108
  }
109
109
 
@@ -156,7 +156,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CreateFormXObjectFromPDFPage(co
156
156
 
157
157
  if(result.first != eSuccess)
158
158
  {
159
- THROW_EXCEPTION("Unable to create form xobject from PDF page, parhaps the page index does not fit the total pages count");
159
+ THROW_EXCEPTION("Unable to create form xobject from PDF page, perhaps the page index does not fit the total pages count");
160
160
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
161
161
  }
162
162
 
@@ -182,7 +182,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::MergePDFPageToPage(const ARGS_T
182
182
  !copyingContextDriver->holder->IsPDFPageInstance(args[0]) ||
183
183
  !args[1]->IsNumber())
184
184
  {
185
- THROW_EXCEPTION("Wrong arguments. provide 2 arugments, where the first is a page, and the second is a page index to merge");
185
+ THROW_EXCEPTION("Wrong arguments. provide 2 arguments, where the first is a page, and the second is a page index to merge");
186
186
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
187
187
  }
188
188
 
@@ -191,7 +191,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::MergePDFPageToPage(const ARGS_T
191
191
  TO_UINT32(args[1])->Value());
192
192
 
193
193
  if(status != eSuccess)
194
- THROW_EXCEPTION("Unable to merge page index to page. parhaps the page index is wrong");
194
+ THROW_EXCEPTION("Unable to merge page index to page. Perhaps the page index is wrong");
195
195
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
196
196
 
197
197
  }
@@ -220,7 +220,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::AppendPDFPageFromPDF(const ARGS
220
220
 
221
221
  if(result.first != eSuccess)
222
222
  {
223
- THROW_EXCEPTION("Unable to append page. parhaps the page index is wrong");
223
+ THROW_EXCEPTION("Unable to append page. Perhaps the page index is wrong");
224
224
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
225
225
  }
226
226
 
@@ -246,7 +246,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::MergePDFPageToFormXObject(const
246
246
  !copyingContextDriver->holder->IsFormXObjectInstance(args[0]) ||
247
247
  !args[1]->IsNumber())
248
248
  {
249
- THROW_EXCEPTION("Wrong arguments. provide 2 arugments, where the first is a form, and the second is a page index to merge");
249
+ THROW_EXCEPTION("Wrong arguments. provide 2 arguments, where the first is a form, and the second is a page index to merge");
250
250
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
251
251
  }
252
252
 
@@ -255,7 +255,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::MergePDFPageToFormXObject(const
255
255
  TO_UINT32(args[1])->Value());
256
256
 
257
257
  if(status != eSuccess)
258
- THROW_EXCEPTION("Unable to merge page index to form. parhaps the page index is wrong");
258
+ THROW_EXCEPTION("Unable to merge page index to form. Perhaps the page index is wrong");
259
259
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
260
260
 
261
261
  }
@@ -287,13 +287,13 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CopyDirectObjectAsIs(const ARGS
287
287
 
288
288
  if(args.Length() != 1) // need to sometimes check that this is a PDFObject
289
289
  {
290
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, which is PDFObject to copy");
290
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, which is PDFObject to copy");
291
291
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
292
292
  }
293
293
 
294
294
  EStatusCode status = copyingContextDriver->CopyingContext->CopyDirectObjectAsIs(ObjectWrap::Unwrap<PDFObjectDriver>(args[0]->TO_OBJECT())->GetObject());
295
295
  if(status != eSuccess)
296
- THROW_EXCEPTION("Unable to merge page index to form. parhaps the page index is wrong");
296
+ THROW_EXCEPTION("Unable to merge page index to form. Perhaps the page index is wrong");
297
297
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
298
298
 
299
299
  }
@@ -314,7 +314,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CopyObject(const ARGS_TYPE& arg
314
314
  if(args.Length() != 1 ||
315
315
  !args[0]->IsNumber())
316
316
  {
317
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, which is object ID of the object to copy");
317
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, which is object ID of the object to copy");
318
318
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
319
319
  }
320
320
 
@@ -341,13 +341,13 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CopyDirectObjectWithDeepCopy(co
341
341
 
342
342
  if(args.Length() != 1) // need to sometimes check that this is a PDFObject
343
343
  {
344
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, which is PDFObject to copy");
344
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, which is PDFObject to copy");
345
345
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
346
346
  }
347
347
 
348
348
  EStatusCodeAndObjectIDTypeList result = copyingContextDriver->CopyingContext->CopyDirectObjectWithDeepCopy(ObjectWrap::Unwrap<PDFObjectDriver>(args[0]->TO_OBJECT())->GetObject());
349
349
  if(result.first != eSuccess)
350
- THROW_EXCEPTION("Unable to copy object, parhaps the object id is wrong");
350
+ THROW_EXCEPTION("Unable to copy object, perhaps the object id is wrong");
351
351
 
352
352
  Local<Array> resultObjectIDs = NEW_ARRAY((unsigned int)result.second.size());
353
353
  unsigned int index = 0;
@@ -376,7 +376,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::CopyNewObjectsForDirectObject(c
376
376
  if(args.Length() != 1 ||
377
377
  !args[0]->IsArray())
378
378
  {
379
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, which is an array of object IDs");
379
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, which is an array of object IDs");
380
380
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
381
381
  }
382
382
 
@@ -413,7 +413,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::GetCopiedObjectID(const ARGS_TY
413
413
  if(args.Length() != 1 ||
414
414
  !args[0]->IsNumber())
415
415
  {
416
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, an object ID to check");
416
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, an object ID to check");
417
417
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
418
418
  }
419
419
 
@@ -468,7 +468,7 @@ METHOD_RETURN_TYPE DocumentCopyingContextDriver::ReplaceSourceObjects(const ARGS
468
468
  if(args.Length() != 1 ||
469
469
  !args[0]->IsObject())
470
470
  {
471
- THROW_EXCEPTION("Wrong arguments. provide 1 arugment, which is an object mapping source object ids to map to target object IDs");
471
+ THROW_EXCEPTION("Wrong arguments. provide 1 argument, which is an object mapping source object ids to map to target object IDs");
472
472
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
473
473
  }
474
474
 
@@ -179,7 +179,7 @@ METHOD_RETURN_TYPE ObjectsContextDriver::EndArray(const ARGS_TYPE& args)
179
179
  if((args.Length() != 0 && args.Length() != 1) ||
180
180
  (args.Length() == 1 && !args[0]->IsNumber()))
181
181
  {
182
- THROW_EXCEPTION("wrong arguments, pass 1 optional argument that defiened the array ending");
182
+ THROW_EXCEPTION("wrong arguments, pass 1 optional argument that defined the array ending");
183
183
  SET_FUNCTION_RETURN_VALUE(UNDEFINED)
184
184
 
185
185
  }
@@ -1,7 +0,0 @@
1
- .nyc_output
2
- .travis.yml
3
- coverage
4
- test.js
5
- node_modules
6
- /.circleci
7
- /tests/integration
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- var spawnSync = require('child_process').spawnSync;
6
- var libc = require('../');
7
-
8
- var spawnOptions = {
9
- env: process.env,
10
- shell: true,
11
- stdio: 'inherit'
12
- };
13
-
14
- if (libc.isNonGlibcLinux) {
15
- spawnOptions.env.LIBC = process.env.LIBC || libc.family;
16
- }
17
-
18
- process.exit(spawnSync(process.argv[2], process.argv.slice(3), spawnOptions).status);
@@ -1,111 +0,0 @@
1
- # changes log
2
-
3
- ## 7.3.0
4
-
5
- * Add `subset(r1, r2)` method to determine if `r1` range is entirely
6
- contained by `r2` range.
7
-
8
- ## 7.2.3
9
-
10
- * Fix handling of `includePrelease` mode where version ranges like `1.0.0 -
11
- 2.0.0` would include `3.0.0-pre` and not `1.0.0-pre`.
12
-
13
- ## 7.2.2
14
-
15
- * Fix bug where `2.0.0-pre` would be included in `^1.0.0` if
16
- `includePrerelease` was set to true.
17
-
18
- ## 7.2.0
19
-
20
- * Add `simplifyRange` method to attempt to generate a more human-readable
21
- range expression that is equivalent to a supplied range, for a given set
22
- of versions.
23
-
24
- ## 7.1.2
25
-
26
- * Remove fancy lazy-loading logic, as it was causing problems for webpack
27
- users.
28
-
29
- ## 7.1.0
30
-
31
- * Add `require('semver/preload')` to load the entire module without using
32
- lazy getter methods.
33
-
34
- ## 7.0.0
35
-
36
- * Refactor module into separate files for better tree-shaking
37
- * Drop support for very old node versions, use const/let, `=>` functions,
38
- and classes.
39
-
40
- ## 6.3.0
41
-
42
- * Expose the token enum on the exports
43
-
44
- ## 6.2.0
45
-
46
- * Coerce numbers to strings when passed to semver.coerce()
47
- * Add `rtl` option to coerce from right to left
48
-
49
- ## 6.1.3
50
-
51
- * Handle X-ranges properly in includePrerelease mode
52
-
53
- ## 6.1.2
54
-
55
- * Do not throw when testing invalid version strings
56
-
57
- ## 6.1.1
58
-
59
- * Add options support for semver.coerce()
60
- * Handle undefined version passed to Range.test
61
-
62
- ## 6.1.0
63
-
64
- * Add semver.compareBuild function
65
- * Support `*` in semver.intersects
66
-
67
- ## 6.0
68
-
69
- * Fix `intersects` logic.
70
-
71
- This is technically a bug fix, but since it is also a change to behavior
72
- that may require users updating their code, it is marked as a major
73
- version increment.
74
-
75
- ## 5.7
76
-
77
- * Add `minVersion` method
78
-
79
- ## 5.6
80
-
81
- * Move boolean `loose` param to an options object, with
82
- backwards-compatibility protection.
83
- * Add ability to opt out of special prerelease version handling with
84
- the `includePrerelease` option flag.
85
-
86
- ## 5.5
87
-
88
- * Add version coercion capabilities
89
-
90
- ## 5.4
91
-
92
- * Add intersection checking
93
-
94
- ## 5.3
95
-
96
- * Add `minSatisfying` method
97
-
98
- ## 5.2
99
-
100
- * Add `prerelease(v)` that returns prerelease components
101
-
102
- ## 5.1
103
-
104
- * Add Backus-Naur for ranges
105
- * Remove excessively cute inspection methods
106
-
107
- ## 5.0
108
-
109
- * Remove AMD/Browserified build artifacts
110
- * Fix ltr and gtr when using the `*` range
111
- * Fix for range `*` with a prerelease identifier