@pdftron/pdfnet-node 9.4.0 → 9.4.2

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 (593) hide show
  1. package/node_modules/underscore/LICENSE +23 -23
  2. package/node_modules/underscore/README.md +28 -28
  3. package/node_modules/underscore/amd/_apply.js +7 -7
  4. package/node_modules/underscore/amd/_applyProperty.js +14 -14
  5. package/node_modules/underscore/amd/_arrayAccessors.js +11 -11
  6. package/node_modules/underscore/amd/_arrayMutators.js +15 -15
  7. package/node_modules/underscore/amd/_baseCreate.js +21 -21
  8. package/node_modules/underscore/amd/_baseIteratee.js +15 -15
  9. package/node_modules/underscore/amd/_binarySearch.js +17 -17
  10. package/node_modules/underscore/amd/_bindCb.js +14 -14
  11. package/node_modules/underscore/amd/_bindCb4.js +17 -17
  12. package/node_modules/underscore/amd/_byValue.js +11 -11
  13. package/node_modules/underscore/amd/_cb.js +12 -12
  14. package/node_modules/underscore/amd/_chainResult.js +10 -10
  15. package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -42
  16. package/node_modules/underscore/amd/_createAssigner.js +24 -24
  17. package/node_modules/underscore/amd/_createEscaper.js +21 -21
  18. package/node_modules/underscore/amd/_createIndexFinder.js +30 -30
  19. package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -18
  20. package/node_modules/underscore/amd/_createReduce.js +30 -30
  21. package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -13
  22. package/node_modules/underscore/amd/_deepGet.js +15 -15
  23. package/node_modules/underscore/amd/_escapeMap.js +15 -15
  24. package/node_modules/underscore/amd/_executeBound.js +16 -16
  25. package/node_modules/underscore/amd/_extremum.js +35 -35
  26. package/node_modules/underscore/amd/_flatten.js +32 -32
  27. package/node_modules/underscore/amd/_forceNumericMinMax.js +16 -16
  28. package/node_modules/underscore/amd/_getByteLength.js +8 -8
  29. package/node_modules/underscore/amd/_getLength.js +8 -8
  30. package/node_modules/underscore/amd/_greater.js +10 -10
  31. package/node_modules/underscore/amd/_group.js +18 -18
  32. package/node_modules/underscore/amd/_has.js +10 -10
  33. package/node_modules/underscore/amd/_hasObjectTag.js +7 -7
  34. package/node_modules/underscore/amd/_isArrayLike.js +11 -11
  35. package/node_modules/underscore/amd/_isBufferLike.js +9 -9
  36. package/node_modules/underscore/amd/_keyInObj.js +11 -11
  37. package/node_modules/underscore/amd/_less.js +10 -10
  38. package/node_modules/underscore/amd/_lessEqual.js +10 -10
  39. package/node_modules/underscore/amd/_linearSearch.js +31 -31
  40. package/node_modules/underscore/amd/_mapReduce.js +5 -5
  41. package/node_modules/underscore/amd/_methodFingerprint.js +44 -44
  42. package/node_modules/underscore/amd/_optimizeCb.js +27 -27
  43. package/node_modules/underscore/amd/_push.js +7 -7
  44. package/node_modules/underscore/amd/_pusher.js +13 -13
  45. package/node_modules/underscore/amd/_sequence.js +18 -18
  46. package/node_modules/underscore/amd/_setup.js +70 -70
  47. package/node_modules/underscore/amd/_shallowProperty.js +12 -12
  48. package/node_modules/underscore/amd/_slice.js +7 -7
  49. package/node_modules/underscore/amd/_strictEqual.js +9 -9
  50. package/node_modules/underscore/amd/_stringTagBug.js +16 -16
  51. package/node_modules/underscore/amd/_tagTester.js +13 -13
  52. package/node_modules/underscore/amd/_toBufferView.js +15 -15
  53. package/node_modules/underscore/amd/_toPath.js +11 -11
  54. package/node_modules/underscore/amd/_unescapeMap.js +8 -8
  55. package/node_modules/underscore/amd/_unmethodize.js +9 -9
  56. package/node_modules/underscore/amd/_wrapArrayAccessor.js +15 -15
  57. package/node_modules/underscore/amd/_wrapArrayMutator.js +28 -28
  58. package/node_modules/underscore/amd/after.js +14 -14
  59. package/node_modules/underscore/amd/allKeys.js +15 -15
  60. package/node_modules/underscore/amd/before.js +18 -18
  61. package/node_modules/underscore/amd/bind.js +15 -15
  62. package/node_modules/underscore/amd/bindAll.js +19 -19
  63. package/node_modules/underscore/amd/chain.js +12 -12
  64. package/node_modules/underscore/amd/chunk.js +17 -17
  65. package/node_modules/underscore/amd/clone.js +11 -11
  66. package/node_modules/underscore/amd/compact.js +10 -10
  67. package/node_modules/underscore/amd/compose.js +18 -18
  68. package/node_modules/underscore/amd/concat.js +7 -7
  69. package/node_modules/underscore/amd/constant.js +12 -12
  70. package/node_modules/underscore/amd/contains.js +12 -12
  71. package/node_modules/underscore/amd/countBy.js +12 -12
  72. package/node_modules/underscore/amd/create.js +14 -14
  73. package/node_modules/underscore/amd/debounce.js +43 -43
  74. package/node_modules/underscore/amd/defaults.js +8 -8
  75. package/node_modules/underscore/amd/defer.js +9 -9
  76. package/node_modules/underscore/amd/delay.js +13 -13
  77. package/node_modules/underscore/amd/difference.js +14 -14
  78. package/node_modules/underscore/amd/each.js +25 -25
  79. package/node_modules/underscore/amd/escape.js +8 -8
  80. package/node_modules/underscore/amd/every.js +17 -17
  81. package/node_modules/underscore/amd/extend.js +8 -8
  82. package/node_modules/underscore/amd/extendOwn.js +10 -10
  83. package/node_modules/underscore/amd/filter.js +15 -15
  84. package/node_modules/underscore/amd/find.js +12 -12
  85. package/node_modules/underscore/amd/findIndex.js +8 -8
  86. package/node_modules/underscore/amd/findKey.js +15 -15
  87. package/node_modules/underscore/amd/findLastIndex.js +8 -8
  88. package/node_modules/underscore/amd/findWhere.js +11 -11
  89. package/node_modules/underscore/amd/first.js +13 -13
  90. package/node_modules/underscore/amd/flatten.js +11 -11
  91. package/node_modules/underscore/amd/functions.js +14 -14
  92. package/node_modules/underscore/amd/get.js +14 -14
  93. package/node_modules/underscore/amd/groupBy.js +11 -11
  94. package/node_modules/underscore/amd/has.js +19 -19
  95. package/node_modules/underscore/amd/identity.js +10 -10
  96. package/node_modules/underscore/amd/index-default.js +12 -12
  97. package/node_modules/underscore/amd/index.js +154 -154
  98. package/node_modules/underscore/amd/indexBy.js +11 -11
  99. package/node_modules/underscore/amd/indexOf.js +11 -11
  100. package/node_modules/underscore/amd/initial.js +12 -12
  101. package/node_modules/underscore/amd/intersection.js +22 -22
  102. package/node_modules/underscore/amd/invert.js +15 -15
  103. package/node_modules/underscore/amd/invoke.js +28 -28
  104. package/node_modules/underscore/amd/isArguments.js +19 -19
  105. package/node_modules/underscore/amd/isArray.js +9 -9
  106. package/node_modules/underscore/amd/isArrayBuffer.js +7 -7
  107. package/node_modules/underscore/amd/isBoolean.js +10 -10
  108. package/node_modules/underscore/amd/isDataView.js +15 -15
  109. package/node_modules/underscore/amd/isDate.js +7 -7
  110. package/node_modules/underscore/amd/isElement.js +10 -10
  111. package/node_modules/underscore/amd/isEmpty.js +18 -18
  112. package/node_modules/underscore/amd/isEqual.js +133 -133
  113. package/node_modules/underscore/amd/isError.js +7 -7
  114. package/node_modules/underscore/amd/isFinite.js +10 -10
  115. package/node_modules/underscore/amd/isFunction.js +18 -18
  116. package/node_modules/underscore/amd/isMap.js +7 -7
  117. package/node_modules/underscore/amd/isMatch.js +17 -17
  118. package/node_modules/underscore/amd/isNaN.js +10 -10
  119. package/node_modules/underscore/amd/isNull.js +10 -10
  120. package/node_modules/underscore/amd/isNumber.js +7 -7
  121. package/node_modules/underscore/amd/isObject.js +11 -11
  122. package/node_modules/underscore/amd/isRegExp.js +7 -7
  123. package/node_modules/underscore/amd/isSet.js +7 -7
  124. package/node_modules/underscore/amd/isString.js +7 -7
  125. package/node_modules/underscore/amd/isSymbol.js +7 -7
  126. package/node_modules/underscore/amd/isTypedArray.js +16 -16
  127. package/node_modules/underscore/amd/isUndefined.js +10 -10
  128. package/node_modules/underscore/amd/isWeakMap.js +7 -7
  129. package/node_modules/underscore/amd/isWeakSet.js +7 -7
  130. package/node_modules/underscore/amd/iteratee.js +13 -13
  131. package/node_modules/underscore/amd/join.js +7 -7
  132. package/node_modules/underscore/amd/keys.js +17 -17
  133. package/node_modules/underscore/amd/last.js +13 -13
  134. package/node_modules/underscore/amd/lastIndexOf.js +9 -9
  135. package/node_modules/underscore/amd/map.js +18 -18
  136. package/node_modules/underscore/amd/mapObject.js +19 -19
  137. package/node_modules/underscore/amd/matcher.js +14 -14
  138. package/node_modules/underscore/amd/max.js +30 -30
  139. package/node_modules/underscore/amd/memoize.js +17 -17
  140. package/node_modules/underscore/amd/min.js +30 -30
  141. package/node_modules/underscore/amd/mixin.js +18 -18
  142. package/node_modules/underscore/amd/negate.js +12 -12
  143. package/node_modules/underscore/amd/noop.js +8 -8
  144. package/node_modules/underscore/amd/now.js +10 -10
  145. package/node_modules/underscore/amd/object.js +20 -20
  146. package/node_modules/underscore/amd/omit.js +20 -20
  147. package/node_modules/underscore/amd/once.js +9 -9
  148. package/node_modules/underscore/amd/pairs.js +17 -17
  149. package/node_modules/underscore/amd/partial.js +25 -25
  150. package/node_modules/underscore/amd/partition.js +11 -11
  151. package/node_modules/underscore/amd/pick.js +25 -25
  152. package/node_modules/underscore/amd/pluck.js +10 -10
  153. package/node_modules/underscore/amd/pop.js +7 -7
  154. package/node_modules/underscore/amd/property.js +14 -14
  155. package/node_modules/underscore/amd/propertyOf.js +13 -13
  156. package/node_modules/underscore/amd/push.js +7 -7
  157. package/node_modules/underscore/amd/random.js +14 -14
  158. package/node_modules/underscore/amd/range.js +27 -27
  159. package/node_modules/underscore/amd/reduce.js +9 -9
  160. package/node_modules/underscore/amd/reduceRight.js +8 -8
  161. package/node_modules/underscore/amd/reject.js +10 -10
  162. package/node_modules/underscore/amd/rest.js +12 -12
  163. package/node_modules/underscore/amd/restArguments.js +33 -33
  164. package/node_modules/underscore/amd/result.js +25 -25
  165. package/node_modules/underscore/amd/reverse.js +7 -7
  166. package/node_modules/underscore/amd/sample.js +27 -27
  167. package/node_modules/underscore/amd/shift.js +7 -7
  168. package/node_modules/underscore/amd/shuffle.js +10 -10
  169. package/node_modules/underscore/amd/size.js +11 -11
  170. package/node_modules/underscore/amd/slice.js +7 -7
  171. package/node_modules/underscore/amd/some.js +17 -17
  172. package/node_modules/underscore/amd/sort.js +7 -7
  173. package/node_modules/underscore/amd/sortBy.js +26 -26
  174. package/node_modules/underscore/amd/sortedIndex.js +18 -18
  175. package/node_modules/underscore/amd/sortedLastIndex.js +11 -11
  176. package/node_modules/underscore/amd/splice.js +7 -7
  177. package/node_modules/underscore/amd/tap.js +13 -13
  178. package/node_modules/underscore/amd/template.js +95 -95
  179. package/node_modules/underscore/amd/templateSettings.js +13 -13
  180. package/node_modules/underscore/amd/throttle.js +51 -51
  181. package/node_modules/underscore/amd/times.js +13 -13
  182. package/node_modules/underscore/amd/toArray.js +18 -18
  183. package/node_modules/underscore/amd/toPath.js +12 -12
  184. package/node_modules/underscore/amd/toString.js +11 -11
  185. package/node_modules/underscore/amd/underscore-array-methods.js +30 -30
  186. package/node_modules/underscore/amd/underscore.js +29 -29
  187. package/node_modules/underscore/amd/unescape.js +8 -8
  188. package/node_modules/underscore/amd/union.js +11 -11
  189. package/node_modules/underscore/amd/uniq.js +37 -37
  190. package/node_modules/underscore/amd/uniqueId.js +13 -13
  191. package/node_modules/underscore/amd/unshift.js +7 -7
  192. package/node_modules/underscore/amd/unzip.js +17 -17
  193. package/node_modules/underscore/amd/value.js +13 -13
  194. package/node_modules/underscore/amd/values.js +16 -16
  195. package/node_modules/underscore/amd/where.js +11 -11
  196. package/node_modules/underscore/amd/without.js +10 -10
  197. package/node_modules/underscore/amd/wrap.js +12 -12
  198. package/node_modules/underscore/amd/zip.js +9 -9
  199. package/node_modules/underscore/cjs/_apply.js +6 -6
  200. package/node_modules/underscore/cjs/_applyProperty.js +10 -10
  201. package/node_modules/underscore/cjs/_arrayAccessors.js +11 -11
  202. package/node_modules/underscore/cjs/_arrayMutators.js +19 -19
  203. package/node_modules/underscore/cjs/_baseCreate.js +20 -20
  204. package/node_modules/underscore/cjs/_baseIteratee.js +19 -19
  205. package/node_modules/underscore/cjs/_binarySearch.js +15 -15
  206. package/node_modules/underscore/cjs/_bindCb.js +10 -10
  207. package/node_modules/underscore/cjs/_bindCb4.js +13 -13
  208. package/node_modules/underscore/cjs/_byValue.js +7 -7
  209. package/node_modules/underscore/cjs/_cb.js +12 -12
  210. package/node_modules/underscore/cjs/_chainResult.js +8 -8
  211. package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -42
  212. package/node_modules/underscore/cjs/_createAssigner.js +20 -20
  213. package/node_modules/underscore/cjs/_createEscaper.js +19 -19
  214. package/node_modules/underscore/cjs/_createIndexFinder.js +30 -30
  215. package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -17
  216. package/node_modules/underscore/cjs/_createReduce.js +30 -30
  217. package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -11
  218. package/node_modules/underscore/cjs/_deepGet.js +11 -11
  219. package/node_modules/underscore/cjs/_escapeMap.js +11 -11
  220. package/node_modules/underscore/cjs/_executeBound.js +15 -15
  221. package/node_modules/underscore/cjs/_extremum.js +35 -35
  222. package/node_modules/underscore/cjs/_flatten.js +33 -33
  223. package/node_modules/underscore/cjs/_forceNumericMinMax.js +14 -14
  224. package/node_modules/underscore/cjs/_getByteLength.js +6 -6
  225. package/node_modules/underscore/cjs/_getLength.js +6 -6
  226. package/node_modules/underscore/cjs/_greater.js +6 -6
  227. package/node_modules/underscore/cjs/_group.js +17 -17
  228. package/node_modules/underscore/cjs/_has.js +8 -8
  229. package/node_modules/underscore/cjs/_hasObjectTag.js +5 -5
  230. package/node_modules/underscore/cjs/_isArrayLike.js +10 -10
  231. package/node_modules/underscore/cjs/_isBufferLike.js +8 -8
  232. package/node_modules/underscore/cjs/_keyInObj.js +7 -7
  233. package/node_modules/underscore/cjs/_less.js +6 -6
  234. package/node_modules/underscore/cjs/_lessEqual.js +6 -6
  235. package/node_modules/underscore/cjs/_linearSearch.js +30 -30
  236. package/node_modules/underscore/cjs/_mapReduce.js +1 -1
  237. package/node_modules/underscore/cjs/_methodFingerprint.js +44 -44
  238. package/node_modules/underscore/cjs/_optimizeCb.js +23 -23
  239. package/node_modules/underscore/cjs/_push.js +6 -6
  240. package/node_modules/underscore/cjs/_pusher.js +9 -9
  241. package/node_modules/underscore/cjs/_sequence.js +14 -14
  242. package/node_modules/underscore/cjs/_setup.js +66 -66
  243. package/node_modules/underscore/cjs/_shallowProperty.js +8 -8
  244. package/node_modules/underscore/cjs/_slice.js +6 -6
  245. package/node_modules/underscore/cjs/_strictEqual.js +5 -5
  246. package/node_modules/underscore/cjs/_stringTagBug.js +15 -15
  247. package/node_modules/underscore/cjs/_tagTester.js +11 -11
  248. package/node_modules/underscore/cjs/_toBufferView.js +13 -13
  249. package/node_modules/underscore/cjs/_toPath.js +10 -10
  250. package/node_modules/underscore/cjs/_unescapeMap.js +7 -7
  251. package/node_modules/underscore/cjs/_unmethodize.js +8 -8
  252. package/node_modules/underscore/cjs/_wrapArrayAccessor.js +14 -14
  253. package/node_modules/underscore/cjs/_wrapArrayMutator.js +29 -29
  254. package/node_modules/underscore/cjs/after.js +10 -10
  255. package/node_modules/underscore/cjs/allKeys.js +15 -15
  256. package/node_modules/underscore/cjs/before.js +14 -14
  257. package/node_modules/underscore/cjs/bind.js +15 -15
  258. package/node_modules/underscore/cjs/bindAll.js +19 -19
  259. package/node_modules/underscore/cjs/chain.js +10 -10
  260. package/node_modules/underscore/cjs/chunk.js +15 -15
  261. package/node_modules/underscore/cjs/clone.js +11 -11
  262. package/node_modules/underscore/cjs/compact.js +8 -8
  263. package/node_modules/underscore/cjs/compose.js +14 -14
  264. package/node_modules/underscore/cjs/concat.js +6 -6
  265. package/node_modules/underscore/cjs/constant.js +8 -8
  266. package/node_modules/underscore/cjs/contains.js +12 -12
  267. package/node_modules/underscore/cjs/countBy.js +11 -11
  268. package/node_modules/underscore/cjs/create.js +13 -13
  269. package/node_modules/underscore/cjs/debounce.js +42 -42
  270. package/node_modules/underscore/cjs/defaults.js +7 -7
  271. package/node_modules/underscore/cjs/defer.js +9 -9
  272. package/node_modules/underscore/cjs/delay.js +11 -11
  273. package/node_modules/underscore/cjs/difference.js +15 -15
  274. package/node_modules/underscore/cjs/each.js +25 -25
  275. package/node_modules/underscore/cjs/escape.js +7 -7
  276. package/node_modules/underscore/cjs/every.js +17 -17
  277. package/node_modules/underscore/cjs/extend.js +7 -7
  278. package/node_modules/underscore/cjs/extendOwn.js +9 -9
  279. package/node_modules/underscore/cjs/filter.js +14 -14
  280. package/node_modules/underscore/cjs/find.js +12 -12
  281. package/node_modules/underscore/cjs/findIndex.js +6 -6
  282. package/node_modules/underscore/cjs/findKey.js +14 -14
  283. package/node_modules/underscore/cjs/findLastIndex.js +6 -6
  284. package/node_modules/underscore/cjs/findWhere.js +10 -10
  285. package/node_modules/underscore/cjs/first.js +11 -11
  286. package/node_modules/underscore/cjs/flatten.js +9 -9
  287. package/node_modules/underscore/cjs/functions.js +12 -12
  288. package/node_modules/underscore/cjs/get.js +14 -14
  289. package/node_modules/underscore/cjs/groupBy.js +10 -10
  290. package/node_modules/underscore/cjs/has.js +18 -18
  291. package/node_modules/underscore/cjs/identity.js +6 -6
  292. package/node_modules/underscore/cjs/index-default.js +11 -11
  293. package/node_modules/underscore/cjs/index.js +277 -277
  294. package/node_modules/underscore/cjs/indexBy.js +9 -9
  295. package/node_modules/underscore/cjs/indexOf.js +11 -11
  296. package/node_modules/underscore/cjs/initial.js +10 -10
  297. package/node_modules/underscore/cjs/intersection.js +21 -21
  298. package/node_modules/underscore/cjs/invert.js +13 -13
  299. package/node_modules/underscore/cjs/invoke.js +30 -30
  300. package/node_modules/underscore/cjs/isArguments.js +18 -18
  301. package/node_modules/underscore/cjs/isArray.js +8 -8
  302. package/node_modules/underscore/cjs/isArrayBuffer.js +5 -5
  303. package/node_modules/underscore/cjs/isBoolean.js +8 -8
  304. package/node_modules/underscore/cjs/isDataView.js +16 -16
  305. package/node_modules/underscore/cjs/isDate.js +5 -5
  306. package/node_modules/underscore/cjs/isElement.js +6 -6
  307. package/node_modules/underscore/cjs/isEmpty.js +20 -20
  308. package/node_modules/underscore/cjs/isEqual.js +140 -140
  309. package/node_modules/underscore/cjs/isError.js +5 -5
  310. package/node_modules/underscore/cjs/isFinite.js +9 -9
  311. package/node_modules/underscore/cjs/isFunction.js +17 -17
  312. package/node_modules/underscore/cjs/isMap.js +7 -7
  313. package/node_modules/underscore/cjs/isMatch.js +15 -15
  314. package/node_modules/underscore/cjs/isNaN.js +9 -9
  315. package/node_modules/underscore/cjs/isNull.js +6 -6
  316. package/node_modules/underscore/cjs/isNumber.js +5 -5
  317. package/node_modules/underscore/cjs/isObject.js +7 -7
  318. package/node_modules/underscore/cjs/isRegExp.js +5 -5
  319. package/node_modules/underscore/cjs/isSet.js +7 -7
  320. package/node_modules/underscore/cjs/isString.js +5 -5
  321. package/node_modules/underscore/cjs/isSymbol.js +5 -5
  322. package/node_modules/underscore/cjs/isTypedArray.js +17 -17
  323. package/node_modules/underscore/cjs/isUndefined.js +6 -6
  324. package/node_modules/underscore/cjs/isWeakMap.js +7 -7
  325. package/node_modules/underscore/cjs/isWeakSet.js +5 -5
  326. package/node_modules/underscore/cjs/iteratee.js +12 -12
  327. package/node_modules/underscore/cjs/join.js +6 -6
  328. package/node_modules/underscore/cjs/keys.js +18 -18
  329. package/node_modules/underscore/cjs/last.js +11 -11
  330. package/node_modules/underscore/cjs/lastIndexOf.js +8 -8
  331. package/node_modules/underscore/cjs/map.js +18 -18
  332. package/node_modules/underscore/cjs/mapObject.js +18 -18
  333. package/node_modules/underscore/cjs/matcher.js +13 -13
  334. package/node_modules/underscore/cjs/max.js +31 -31
  335. package/node_modules/underscore/cjs/memoize.js +15 -15
  336. package/node_modules/underscore/cjs/min.js +31 -31
  337. package/node_modules/underscore/cjs/mixin.js +20 -20
  338. package/node_modules/underscore/cjs/negate.js +8 -8
  339. package/node_modules/underscore/cjs/noop.js +4 -4
  340. package/node_modules/underscore/cjs/now.js +6 -6
  341. package/node_modules/underscore/cjs/object.js +18 -18
  342. package/node_modules/underscore/cjs/omit.js +24 -24
  343. package/node_modules/underscore/cjs/once.js +8 -8
  344. package/node_modules/underscore/cjs/pairs.js +15 -15
  345. package/node_modules/underscore/cjs/partial.js +25 -25
  346. package/node_modules/underscore/cjs/partition.js +9 -9
  347. package/node_modules/underscore/cjs/pick.js +28 -28
  348. package/node_modules/underscore/cjs/pluck.js +9 -9
  349. package/node_modules/underscore/cjs/pop.js +6 -6
  350. package/node_modules/underscore/cjs/property.js +13 -13
  351. package/node_modules/underscore/cjs/propertyOf.js +12 -12
  352. package/node_modules/underscore/cjs/push.js +6 -6
  353. package/node_modules/underscore/cjs/random.js +10 -10
  354. package/node_modules/underscore/cjs/range.js +23 -23
  355. package/node_modules/underscore/cjs/reduce.js +7 -7
  356. package/node_modules/underscore/cjs/reduceRight.js +6 -6
  357. package/node_modules/underscore/cjs/reject.js +10 -10
  358. package/node_modules/underscore/cjs/rest.js +10 -10
  359. package/node_modules/underscore/cjs/restArguments.js +29 -29
  360. package/node_modules/underscore/cjs/result.js +24 -24
  361. package/node_modules/underscore/cjs/reverse.js +6 -6
  362. package/node_modules/underscore/cjs/sample.js +29 -29
  363. package/node_modules/underscore/cjs/shift.js +6 -6
  364. package/node_modules/underscore/cjs/shuffle.js +8 -8
  365. package/node_modules/underscore/cjs/size.js +10 -10
  366. package/node_modules/underscore/cjs/slice.js +6 -6
  367. package/node_modules/underscore/cjs/some.js +17 -17
  368. package/node_modules/underscore/cjs/sort.js +6 -6
  369. package/node_modules/underscore/cjs/sortBy.js +26 -26
  370. package/node_modules/underscore/cjs/sortedIndex.js +17 -17
  371. package/node_modules/underscore/cjs/sortedLastIndex.js +11 -11
  372. package/node_modules/underscore/cjs/splice.js +6 -6
  373. package/node_modules/underscore/cjs/tap.js +9 -9
  374. package/node_modules/underscore/cjs/template.js +95 -95
  375. package/node_modules/underscore/cjs/templateSettings.js +11 -11
  376. package/node_modules/underscore/cjs/throttle.js +49 -49
  377. package/node_modules/underscore/cjs/times.js +11 -11
  378. package/node_modules/underscore/cjs/toArray.js +22 -22
  379. package/node_modules/underscore/cjs/toPath.js +11 -11
  380. package/node_modules/underscore/cjs/toString.js +9 -9
  381. package/node_modules/underscore/cjs/underscore-array-methods.js +31 -31
  382. package/node_modules/underscore/cjs/underscore.js +27 -27
  383. package/node_modules/underscore/cjs/unescape.js +7 -7
  384. package/node_modules/underscore/cjs/union.js +11 -11
  385. package/node_modules/underscore/cjs/uniq.js +38 -38
  386. package/node_modules/underscore/cjs/uniqueId.js +9 -9
  387. package/node_modules/underscore/cjs/unshift.js +6 -6
  388. package/node_modules/underscore/cjs/unzip.js +17 -17
  389. package/node_modules/underscore/cjs/value.js +9 -9
  390. package/node_modules/underscore/cjs/values.js +14 -14
  391. package/node_modules/underscore/cjs/where.js +10 -10
  392. package/node_modules/underscore/cjs/without.js +9 -9
  393. package/node_modules/underscore/cjs/wrap.js +10 -10
  394. package/node_modules/underscore/cjs/zip.js +8 -8
  395. package/node_modules/underscore/modules/.eslintrc +12 -12
  396. package/node_modules/underscore/modules/_baseCreate.js +18 -18
  397. package/node_modules/underscore/modules/_baseIteratee.js +17 -17
  398. package/node_modules/underscore/modules/_cb.js +10 -10
  399. package/node_modules/underscore/modules/_chainResult.js +6 -6
  400. package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -40
  401. package/node_modules/underscore/modules/_createAssigner.js +18 -18
  402. package/node_modules/underscore/modules/_createEscaper.js +17 -17
  403. package/node_modules/underscore/modules/_createIndexFinder.js +28 -28
  404. package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -15
  405. package/node_modules/underscore/modules/_createReduce.js +28 -28
  406. package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -9
  407. package/node_modules/underscore/modules/_deepGet.js +9 -9
  408. package/node_modules/underscore/modules/_escapeMap.js +9 -9
  409. package/node_modules/underscore/modules/_executeBound.js +13 -13
  410. package/node_modules/underscore/modules/_flatten.js +31 -31
  411. package/node_modules/underscore/modules/_getByteLength.js +4 -4
  412. package/node_modules/underscore/modules/_getLength.js +4 -4
  413. package/node_modules/underscore/modules/_group.js +15 -15
  414. package/node_modules/underscore/modules/_has.js +6 -6
  415. package/node_modules/underscore/modules/_hasObjectTag.js +3 -3
  416. package/node_modules/underscore/modules/_isArrayLike.js +8 -8
  417. package/node_modules/underscore/modules/_isBufferLike.js +6 -6
  418. package/node_modules/underscore/modules/_keyInObj.js +5 -5
  419. package/node_modules/underscore/modules/_methodFingerprint.js +37 -37
  420. package/node_modules/underscore/modules/_optimizeCb.js +21 -21
  421. package/node_modules/underscore/modules/_setup.js +43 -43
  422. package/node_modules/underscore/modules/_shallowProperty.js +6 -6
  423. package/node_modules/underscore/modules/_stringTagBug.js +10 -10
  424. package/node_modules/underscore/modules/_tagTester.js +9 -9
  425. package/node_modules/underscore/modules/_toBufferView.js +11 -11
  426. package/node_modules/underscore/modules/_toPath.js +8 -8
  427. package/node_modules/underscore/modules/_unescapeMap.js +5 -5
  428. package/node_modules/underscore/modules/after.js +8 -8
  429. package/node_modules/underscore/modules/allKeys.js +13 -13
  430. package/node_modules/underscore/modules/before.js +12 -12
  431. package/node_modules/underscore/modules/bind.js +13 -13
  432. package/node_modules/underscore/modules/bindAll.js +17 -17
  433. package/node_modules/underscore/modules/chain.js +8 -8
  434. package/node_modules/underscore/modules/chunk.js +13 -13
  435. package/node_modules/underscore/modules/clone.js +9 -9
  436. package/node_modules/underscore/modules/compact.js +6 -6
  437. package/node_modules/underscore/modules/compose.js +12 -12
  438. package/node_modules/underscore/modules/constant.js +6 -6
  439. package/node_modules/underscore/modules/contains.js +10 -10
  440. package/node_modules/underscore/modules/countBy.js +9 -9
  441. package/node_modules/underscore/modules/create.js +11 -11
  442. package/node_modules/underscore/modules/debounce.js +40 -40
  443. package/node_modules/underscore/modules/defaults.js +5 -5
  444. package/node_modules/underscore/modules/defer.js +7 -7
  445. package/node_modules/underscore/modules/delay.js +9 -9
  446. package/node_modules/underscore/modules/difference.js +13 -13
  447. package/node_modules/underscore/modules/each.js +23 -23
  448. package/node_modules/underscore/modules/escape.js +5 -5
  449. package/node_modules/underscore/modules/every.js +15 -15
  450. package/node_modules/underscore/modules/extend.js +5 -5
  451. package/node_modules/underscore/modules/extendOwn.js +7 -7
  452. package/node_modules/underscore/modules/filter.js +12 -12
  453. package/node_modules/underscore/modules/find.js +10 -10
  454. package/node_modules/underscore/modules/findIndex.js +4 -4
  455. package/node_modules/underscore/modules/findKey.js +12 -12
  456. package/node_modules/underscore/modules/findLastIndex.js +4 -4
  457. package/node_modules/underscore/modules/findWhere.js +8 -8
  458. package/node_modules/underscore/modules/first.js +9 -9
  459. package/node_modules/underscore/modules/flatten.js +7 -7
  460. package/node_modules/underscore/modules/functions.js +10 -10
  461. package/node_modules/underscore/modules/get.js +12 -12
  462. package/node_modules/underscore/modules/groupBy.js +8 -8
  463. package/node_modules/underscore/modules/has.js +16 -16
  464. package/node_modules/underscore/modules/identity.js +4 -4
  465. package/node_modules/underscore/modules/index-all.js +18 -18
  466. package/node_modules/underscore/modules/index-default.js +27 -27
  467. package/node_modules/underscore/modules/index.js +200 -200
  468. package/node_modules/underscore/modules/indexBy.js +7 -7
  469. package/node_modules/underscore/modules/indexOf.js +9 -9
  470. package/node_modules/underscore/modules/initial.js +8 -8
  471. package/node_modules/underscore/modules/intersection.js +19 -19
  472. package/node_modules/underscore/modules/invert.js +11 -11
  473. package/node_modules/underscore/modules/invoke.js +28 -28
  474. package/node_modules/underscore/modules/isArguments.js +16 -16
  475. package/node_modules/underscore/modules/isArray.js +6 -6
  476. package/node_modules/underscore/modules/isArrayBuffer.js +3 -3
  477. package/node_modules/underscore/modules/isBoolean.js +6 -6
  478. package/node_modules/underscore/modules/isDataView.js +14 -14
  479. package/node_modules/underscore/modules/isDate.js +3 -3
  480. package/node_modules/underscore/modules/isElement.js +4 -4
  481. package/node_modules/underscore/modules/isEmpty.js +18 -18
  482. package/node_modules/underscore/modules/isEqual.js +138 -138
  483. package/node_modules/underscore/modules/isError.js +3 -3
  484. package/node_modules/underscore/modules/isFinite.js +7 -7
  485. package/node_modules/underscore/modules/isFunction.js +15 -15
  486. package/node_modules/underscore/modules/isMap.js +5 -5
  487. package/node_modules/underscore/modules/isMatch.js +13 -13
  488. package/node_modules/underscore/modules/isNaN.js +7 -7
  489. package/node_modules/underscore/modules/isNull.js +4 -4
  490. package/node_modules/underscore/modules/isNumber.js +3 -3
  491. package/node_modules/underscore/modules/isObject.js +5 -5
  492. package/node_modules/underscore/modules/isRegExp.js +3 -3
  493. package/node_modules/underscore/modules/isSet.js +5 -5
  494. package/node_modules/underscore/modules/isString.js +3 -3
  495. package/node_modules/underscore/modules/isSymbol.js +3 -3
  496. package/node_modules/underscore/modules/isTypedArray.js +15 -15
  497. package/node_modules/underscore/modules/isUndefined.js +4 -4
  498. package/node_modules/underscore/modules/isWeakMap.js +5 -5
  499. package/node_modules/underscore/modules/isWeakSet.js +3 -3
  500. package/node_modules/underscore/modules/iteratee.js +10 -10
  501. package/node_modules/underscore/modules/keys.js +16 -16
  502. package/node_modules/underscore/modules/last.js +9 -9
  503. package/node_modules/underscore/modules/lastIndexOf.js +6 -6
  504. package/node_modules/underscore/modules/map.js +16 -16
  505. package/node_modules/underscore/modules/mapObject.js +16 -16
  506. package/node_modules/underscore/modules/matcher.js +11 -11
  507. package/node_modules/underscore/modules/max.js +29 -29
  508. package/node_modules/underscore/modules/memoize.js +13 -13
  509. package/node_modules/underscore/modules/min.js +29 -29
  510. package/node_modules/underscore/modules/mixin.js +18 -18
  511. package/node_modules/underscore/modules/negate.js +6 -6
  512. package/node_modules/underscore/modules/noop.js +2 -2
  513. package/node_modules/underscore/modules/now.js +4 -4
  514. package/node_modules/underscore/modules/object.js +16 -16
  515. package/node_modules/underscore/modules/omit.js +22 -22
  516. package/node_modules/underscore/modules/once.js +6 -6
  517. package/node_modules/underscore/modules/pairs.js +13 -13
  518. package/node_modules/underscore/modules/partial.js +24 -24
  519. package/node_modules/underscore/modules/partition.js +7 -7
  520. package/node_modules/underscore/modules/pick.js +26 -26
  521. package/node_modules/underscore/modules/pluck.js +7 -7
  522. package/node_modules/underscore/modules/property.js +11 -11
  523. package/node_modules/underscore/modules/propertyOf.js +10 -10
  524. package/node_modules/underscore/modules/random.js +8 -8
  525. package/node_modules/underscore/modules/range.js +21 -21
  526. package/node_modules/underscore/modules/reduce.js +5 -5
  527. package/node_modules/underscore/modules/reduceRight.js +4 -4
  528. package/node_modules/underscore/modules/reject.js +8 -8
  529. package/node_modules/underscore/modules/rest.js +8 -8
  530. package/node_modules/underscore/modules/restArguments.js +27 -27
  531. package/node_modules/underscore/modules/result.js +22 -22
  532. package/node_modules/underscore/modules/sample.js +27 -27
  533. package/node_modules/underscore/modules/shuffle.js +6 -6
  534. package/node_modules/underscore/modules/size.js +8 -8
  535. package/node_modules/underscore/modules/some.js +15 -15
  536. package/node_modules/underscore/modules/sortBy.js +24 -24
  537. package/node_modules/underscore/modules/sortedIndex.js +15 -15
  538. package/node_modules/underscore/modules/tap.js +7 -7
  539. package/node_modules/underscore/modules/template.js +93 -93
  540. package/node_modules/underscore/modules/templateSettings.js +9 -9
  541. package/node_modules/underscore/modules/throttle.js +47 -47
  542. package/node_modules/underscore/modules/times.js +9 -9
  543. package/node_modules/underscore/modules/toArray.js +20 -20
  544. package/node_modules/underscore/modules/toPath.js +9 -9
  545. package/node_modules/underscore/modules/underscore-array-methods.js +31 -31
  546. package/node_modules/underscore/modules/underscore.js +25 -25
  547. package/node_modules/underscore/modules/unescape.js +5 -5
  548. package/node_modules/underscore/modules/union.js +9 -9
  549. package/node_modules/underscore/modules/uniq.js +36 -36
  550. package/node_modules/underscore/modules/uniqueId.js +7 -7
  551. package/node_modules/underscore/modules/unzip.js +15 -15
  552. package/node_modules/underscore/modules/values.js +12 -12
  553. package/node_modules/underscore/modules/where.js +8 -8
  554. package/node_modules/underscore/modules/without.js +7 -7
  555. package/node_modules/underscore/modules/wrap.js +8 -8
  556. package/node_modules/underscore/modules/zip.js +6 -6
  557. package/node_modules/underscore/package.json +108 -108
  558. package/node_modules/underscore/underscore-esm-min.js +4 -4
  559. package/node_modules/underscore/underscore-esm.js +2026 -2026
  560. package/node_modules/underscore/underscore-min.js +5 -5
  561. package/node_modules/underscore/underscore.js +2034 -2034
  562. package/node_modules/xhr2/CONTRIBUTING.md +33 -33
  563. package/node_modules/xhr2/Cakefile +131 -131
  564. package/node_modules/xhr2/LICENSE.txt +19 -19
  565. package/node_modules/xhr2/lib/browser.js +1 -1
  566. package/node_modules/xhr2/lib/xhr2.js +1244 -1244
  567. package/node_modules/xhr2/package.json +93 -93
  568. package/node_modules/xhr2/src/001-xml_http_request.coffee +782 -782
  569. package/node_modules/xhr2/src/errors.coffee +31 -31
  570. package/node_modules/xhr2/src/progress_event.coffee +39 -39
  571. package/node_modules/xhr2/test/fixtures/hello.json +1 -1
  572. package/node_modules/xhr2/test/fixtures/hello.txt +1 -1
  573. package/node_modules/xhr2/test/html/browser_test.html +30 -30
  574. package/node_modules/xhr2/test/src/event_target_test.coffee +85 -85
  575. package/node_modules/xhr2/test/src/events_test.coffee +204 -204
  576. package/node_modules/xhr2/test/src/headers_test.coffee +165 -165
  577. package/node_modules/xhr2/test/src/helpers/browser_mocha_setup.coffee +1 -1
  578. package/node_modules/xhr2/test/src/helpers/setup.coffee +38 -38
  579. package/node_modules/xhr2/test/src/helpers/xhr_server.coffee +156 -156
  580. package/node_modules/xhr2/test/src/nodejs_set_test.coffee +162 -162
  581. package/node_modules/xhr2/test/src/redirect_test.coffee +57 -57
  582. package/node_modules/xhr2/test/src/response_type_test.coffee +88 -88
  583. package/node_modules/xhr2/test/src/send_test.coffee +89 -89
  584. package/node_modules/xhr2/test/src/status_test.coffee +47 -47
  585. package/node_modules/xhr2/test/src/xhr_test.coffee +102 -102
  586. package/package.json +1 -1
  587. package/readme.md +1 -1
  588. package/node_modules/underscore/underscore-min.js.map +0 -1
  589. package/node_modules/xhr2/README.md +0 -144
  590. package/node_modules/xhr2/src/000-xml_http_request_event_target.coffee +0 -89
  591. package/node_modules/xhr2/src/xml_http_request_upload.coffee +0 -95
  592. package/node_modules/xhr2/test/src/helpers/browser_mocha_runner.coffee +0 -10
  593. package/node_modules/xhr2/test/src/responseurl_test.coffee +0 -18
@@ -1,102 +1,102 @@
1
- describe 'XMLHttpRequest', ->
2
- beforeEach ->
3
- @xhr = new XMLHttpRequest
4
-
5
- describe 'constructor', ->
6
- it 'sets readyState to UNSENT', ->
7
- expect(@xhr.readyState).to.equal XMLHttpRequest.UNSENT
8
-
9
- it 'sets timeout to 0', ->
10
- expect(@xhr.timeout).to.equal 0
11
-
12
- it 'sets responseType to ""', ->
13
- expect(@xhr.responseType).to.equal ''
14
-
15
- it 'sets status to 0', ->
16
- expect(@xhr.status).to.equal 0
17
-
18
- it 'sets statusText to ""', ->
19
- expect(@xhr.statusText).to.equal ''
20
-
21
- describe '#open', ->
22
- it 'throws SecurityError on CONNECT', ->
23
- expect(=> @xhr.open 'CONNECT', 'http://localhost:8912/test').to.
24
- throw(SecurityError)
25
-
26
- describe 'with a GET for a local https request', ->
27
- beforeEach ->
28
- @xhr.open 'GET', 'https://localhost:8911/test/fixtures/hello.txt'
29
-
30
- it 'sets readyState to OPENED', ->
31
- expect(@xhr.readyState).to.equal XMLHttpRequest.OPENED
32
-
33
- it 'keeps status 0', ->
34
- expect(@xhr.status).to.equal 0
35
-
36
- it 'keeps statusText ""', ->
37
- expect(@xhr.statusText).to.equal ''
38
-
39
- describe '#send', ->
40
- describe 'on a local http GET', ->
41
- beforeEach ->
42
- @xhr.open 'GET', 'http://localhost:8912/test/fixtures/hello.txt'
43
-
44
- it 'kicks off the request', (done) ->
45
- @xhr.onload = (event) =>
46
- expect(@xhr.status).to.equal 200
47
- expect(@xhr.responseText).to.equal 'Hello world!\n'
48
- done()
49
- @xhr.send()
50
-
51
- describe 'on a local https GET', ->
52
- beforeEach ->
53
- @xhr.open 'GET', 'https://localhost:8911/test/fixtures/hello.txt'
54
-
55
- it 'kicks off the request', (done) ->
56
- @xhr.onload = (event) =>
57
- expect(@xhr.status).to.equal 200
58
- expect(@xhr.responseText).to.equal 'Hello world!\n'
59
- done()
60
- @xhr.send()
61
-
62
- describe 'on a local relative GET', ->
63
- beforeEach ->
64
- @xhr.open 'GET', '../fixtures/hello.txt'
65
-
66
- it 'kicks off the request', (done) ->
67
- @xhr.onload = (event) =>
68
- expect(@xhr.status).to.equal 200
69
- expect(@xhr.responseText).to.equal 'Hello world!\n'
70
- done()
71
- @xhr.send()
72
-
73
- describe 'on a local gopher GET', ->
74
- describe '#open + #send', ->
75
- it 'throw a NetworkError', ->
76
- expect(=>
77
- @xhr.open 'GET', 'gopher:localhost:8911'
78
- @xhr.send()
79
- ).to.throw(NetworkError)
80
-
81
- describe 'readyState constants', ->
82
- it 'UNSENT < OPENED', ->
83
- expect(XMLHttpRequest.UNSENT).to.be.below(XMLHttpRequest.OPENED)
84
-
85
- it 'OPENED < HEADERS_RECEIVED', ->
86
- expect(XMLHttpRequest.OPENED).to.be.
87
- below(XMLHttpRequest.HEADERS_RECEIVED)
88
-
89
- it 'HEADERS_RECEIVED < LOADING', ->
90
- expect(XMLHttpRequest.HEADERS_RECEIVED).to.be.
91
- below(XMLHttpRequest.LOADING)
92
-
93
- it 'LOADING < DONE', ->
94
- expect(XMLHttpRequest.LOADING).to.be.below(XMLHttpRequest.DONE)
95
-
96
- it 'XMLHttpRequest constants match the instance costants', ->
97
- expect(XMLHttpRequest.UNSENT).to.equal @xhr.UNSENT
98
- expect(XMLHttpRequest.OPENED).to.equal @xhr.OPENED
99
- expect(XMLHttpRequest.HEADERS_RECEIVED).to.equal @xhr.HEADERS_RECEIVED
100
- expect(XMLHttpRequest.LOADING).to.equal @xhr.LOADING
101
- expect(XMLHttpRequest.DONE).to.equal @xhr.DONE
102
-
1
+ describe 'XMLHttpRequest', ->
2
+ beforeEach ->
3
+ @xhr = new XMLHttpRequest
4
+
5
+ describe 'constructor', ->
6
+ it 'sets readyState to UNSENT', ->
7
+ expect(@xhr.readyState).to.equal XMLHttpRequest.UNSENT
8
+
9
+ it 'sets timeout to 0', ->
10
+ expect(@xhr.timeout).to.equal 0
11
+
12
+ it 'sets responseType to ""', ->
13
+ expect(@xhr.responseType).to.equal ''
14
+
15
+ it 'sets status to 0', ->
16
+ expect(@xhr.status).to.equal 0
17
+
18
+ it 'sets statusText to ""', ->
19
+ expect(@xhr.statusText).to.equal ''
20
+
21
+ describe '#open', ->
22
+ it 'throws SecurityError on CONNECT', ->
23
+ expect(=> @xhr.open 'CONNECT', 'http://localhost:8912/test').to.
24
+ throw(SecurityError)
25
+
26
+ describe 'with a GET for a local https request', ->
27
+ beforeEach ->
28
+ @xhr.open 'GET', 'https://localhost:8911/test/fixtures/hello.txt'
29
+
30
+ it 'sets readyState to OPENED', ->
31
+ expect(@xhr.readyState).to.equal XMLHttpRequest.OPENED
32
+
33
+ it 'keeps status 0', ->
34
+ expect(@xhr.status).to.equal 0
35
+
36
+ it 'keeps statusText ""', ->
37
+ expect(@xhr.statusText).to.equal ''
38
+
39
+ describe '#send', ->
40
+ describe 'on a local http GET', ->
41
+ beforeEach ->
42
+ @xhr.open 'GET', 'http://localhost:8912/test/fixtures/hello.txt'
43
+
44
+ it 'kicks off the request', (done) ->
45
+ @xhr.onload = (event) =>
46
+ expect(@xhr.status).to.equal 200
47
+ expect(@xhr.responseText).to.equal 'Hello world!\n'
48
+ done()
49
+ @xhr.send()
50
+
51
+ describe 'on a local https GET', ->
52
+ beforeEach ->
53
+ @xhr.open 'GET', 'https://localhost:8911/test/fixtures/hello.txt'
54
+
55
+ it 'kicks off the request', (done) ->
56
+ @xhr.onload = (event) =>
57
+ expect(@xhr.status).to.equal 200
58
+ expect(@xhr.responseText).to.equal 'Hello world!\n'
59
+ done()
60
+ @xhr.send()
61
+
62
+ describe 'on a local relative GET', ->
63
+ beforeEach ->
64
+ @xhr.open 'GET', '../fixtures/hello.txt'
65
+
66
+ it 'kicks off the request', (done) ->
67
+ @xhr.onload = (event) =>
68
+ expect(@xhr.status).to.equal 200
69
+ expect(@xhr.responseText).to.equal 'Hello world!\n'
70
+ done()
71
+ @xhr.send()
72
+
73
+ describe 'on a local gopher GET', ->
74
+ describe '#open + #send', ->
75
+ it 'throw a NetworkError', ->
76
+ expect(=>
77
+ @xhr.open 'GET', 'gopher:localhost:8911'
78
+ @xhr.send()
79
+ ).to.throw(NetworkError)
80
+
81
+ describe 'readyState constants', ->
82
+ it 'UNSENT < OPENED', ->
83
+ expect(XMLHttpRequest.UNSENT).to.be.below(XMLHttpRequest.OPENED)
84
+
85
+ it 'OPENED < HEADERS_RECEIVED', ->
86
+ expect(XMLHttpRequest.OPENED).to.be.
87
+ below(XMLHttpRequest.HEADERS_RECEIVED)
88
+
89
+ it 'HEADERS_RECEIVED < LOADING', ->
90
+ expect(XMLHttpRequest.HEADERS_RECEIVED).to.be.
91
+ below(XMLHttpRequest.LOADING)
92
+
93
+ it 'LOADING < DONE', ->
94
+ expect(XMLHttpRequest.LOADING).to.be.below(XMLHttpRequest.DONE)
95
+
96
+ it 'XMLHttpRequest constants match the instance costants', ->
97
+ expect(XMLHttpRequest.UNSENT).to.equal @xhr.UNSENT
98
+ expect(XMLHttpRequest.OPENED).to.equal @xhr.OPENED
99
+ expect(XMLHttpRequest.HEADERS_RECEIVED).to.equal @xhr.HEADERS_RECEIVED
100
+ expect(XMLHttpRequest.LOADING).to.equal @xhr.LOADING
101
+ expect(XMLHttpRequest.DONE).to.equal @xhr.DONE
102
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdftron/pdfnet-node",
3
- "version": "9.4.0",
3
+ "version": "9.4.2",
4
4
  "main": "./lib/pdfnet.js",
5
5
  "types": "./lib/types.d.ts",
6
6
  "binary": {
package/readme.md CHANGED
@@ -4,7 +4,7 @@ This package leverages the full power of PDFTron's native SDK for maximal perfor
4
4
 
5
5
  #### Supported platform, Node.js, and Electron versions
6
6
  This package depends on unmanaged add-on binaries, and the add-on binaries are not cross-platform. At the moment we have support for
7
- * **OS**: Linux excluding Alpine, Windows(x64), Mac
7
+ * **OS**: Linux (excluding Alpine), Windows(x64), Mac
8
8
  * **Node.js version**: 8 - 18
9
9
  * **Electron version**: 6 - 19
10
10
 
@@ -1 +0,0 @@
1
- {"version":3,"sources":["modules/_setup.js","modules/restArguments.js","modules/isObject.js","modules/isUndefined.js","modules/isBoolean.js","modules/_tagTester.js","modules/isString.js","modules/isNumber.js","modules/isDate.js","modules/isRegExp.js","modules/isError.js","modules/isSymbol.js","modules/isArrayBuffer.js","modules/isFunction.js","modules/_hasObjectTag.js","modules/_stringTagBug.js","modules/isDataView.js","modules/isArray.js","modules/_has.js","modules/isArguments.js","modules/isNaN.js","modules/constant.js","modules/_createSizePropertyCheck.js","modules/_shallowProperty.js","modules/_getByteLength.js","modules/_isBufferLike.js","modules/isTypedArray.js","modules/_getLength.js","modules/_collectNonEnumProps.js","modules/keys.js","modules/isMatch.js","modules/underscore.js","modules/_toBufferView.js","modules/isEqual.js","modules/allKeys.js","modules/_methodFingerprint.js","modules/isMap.js","modules/isWeakMap.js","modules/isSet.js","modules/isWeakSet.js","modules/values.js","modules/invert.js","modules/functions.js","modules/_createAssigner.js","modules/extend.js","modules/extendOwn.js","modules/defaults.js","modules/_baseCreate.js","modules/clone.js","modules/toPath.js","modules/_toPath.js","modules/_deepGet.js","modules/get.js","modules/identity.js","modules/matcher.js","modules/property.js","modules/_optimizeCb.js","modules/_baseIteratee.js","modules/iteratee.js","modules/_cb.js","modules/noop.js","modules/random.js","modules/now.js","modules/_createEscaper.js","modules/_escapeMap.js","modules/escape.js","modules/unescape.js","modules/_unescapeMap.js","modules/templateSettings.js","modules/template.js","modules/uniqueId.js","modules/_executeBound.js","modules/partial.js","modules/bind.js","modules/_isArrayLike.js","modules/_flatten.js","modules/bindAll.js","modules/delay.js","modules/defer.js","modules/negate.js","modules/before.js","modules/once.js","modules/findKey.js","modules/_createPredicateIndexFinder.js","modules/findIndex.js","modules/findLastIndex.js","modules/sortedIndex.js","modules/_createIndexFinder.js","modules/indexOf.js","modules/lastIndexOf.js","modules/find.js","modules/each.js","modules/map.js","modules/_createReduce.js","modules/reduce.js","modules/reduceRight.js","modules/filter.js","modules/every.js","modules/some.js","modules/contains.js","modules/invoke.js","modules/pluck.js","modules/max.js","modules/sample.js","modules/_group.js","modules/groupBy.js","modules/indexBy.js","modules/countBy.js","modules/partition.js","modules/toArray.js","modules/_keyInObj.js","modules/pick.js","modules/omit.js","modules/initial.js","modules/first.js","modules/rest.js","modules/difference.js","modules/without.js","modules/uniq.js","modules/union.js","modules/unzip.js","modules/zip.js","modules/_chainResult.js","modules/mixin.js","modules/underscore-array-methods.js","modules/index-default.js","modules/isNull.js","modules/isElement.js","modules/isFinite.js","modules/isEmpty.js","modules/pairs.js","modules/create.js","modules/tap.js","modules/has.js","modules/mapObject.js","modules/propertyOf.js","modules/times.js","modules/result.js","modules/chain.js","modules/memoize.js","modules/throttle.js","modules/debounce.js","modules/wrap.js","modules/compose.js","modules/after.js","modules/findWhere.js","modules/reject.js","modules/where.js","modules/min.js","modules/shuffle.js","modules/sortBy.js","modules/size.js","modules/last.js","modules/compact.js","modules/flatten.js","modules/intersection.js","modules/object.js","modules/range.js","modules/chunk.js"],"names":["VERSION","root","self","global","Function","ArrayProto","Array","prototype","ObjProto","Object","SymbolProto","Symbol","push","slice","toString","hasOwnProperty","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","isArray","nativeKeys","keys","nativeCreate","create","nativeIsView","isView","_isNaN","isNaN","_isFinite","isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","Math","pow","restArguments","func","startIndex","length","max","arguments","rest","index","call","this","args","apply","isObject","obj","type","isUndefined","isBoolean","tagTester","name","tag","isString","isNumber","isDate","isRegExp","isError","isSymbol","isArrayBuffer","isFunction","nodelist","document","childNodes","Int8Array","isFunction$1","hasObjectTag","hasStringTagBug","isIE11","Map","isDataView","isDataView$1","getInt8","buffer","has","key","isArguments","isArguments$1","constant","value","createSizePropertyCheck","getSizeProperty","collection","sizeProperty","shallowProperty","getByteLength","isBufferLike","typedArrayPattern","isTypedArray$1","test","getLength","collectNonEnumProps","hash","l","i","contains","emulatedSet","nonEnumIdx","constructor","proto","prop","isMatch","object","attrs","_keys","_","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","toJSON","String","tagDataView","eq","a","b","aStack","bStack","deepEq","className","areArrays","isTypedArray","aCtor","bCtor","pop","allKeys","ie11fingerprint","methods","weakMapMethods","forEachName","hasName","commonInit","mapTail","mapMethods","concat","setMethods","isMap","isWeakMap","isSet","isWeakSet","values","invert","result","functions","names","sort","createAssigner","keysFunc","defaults","source","extend","extendOwn","baseCreate","Ctor","clone","toPath","path","deepGet","get","defaultValue","identity","matcher","property","optimizeCb","context","argCount","accumulator","baseIteratee","iteratee","Infinity","cb","noop","random","min","floor","now","Date","getTime","createEscaper","map","escaper","match","join","testRegexp","RegExp","replaceRegexp","string","replace","escapeMap","&","<",">","\"","'","`","_escape","_unescape","templateSettings","evaluate","interpolate","escape","noMatch","escapes","\\","\r","\n","
","
","escapeRegExp","escapeChar","bareIdentifier","idCounter","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","position","bind","TypeError","callArgs","isArrayLike","flatten","input","depth","strict","output","idx","j","len","bindAll","Error","delay","wait","setTimeout","defer","negate","predicate","before","times","memo","once","findKey","createPredicateIndexFinder","dir","array","findIndex","findLastIndex","sortedIndex","low","high","mid","createIndexFinder","predicateFind","item","indexOf","lastIndexOf","find","each","results","currentKey","createReduce","reducer","initial","reduce","reduceRight","filter","list","every","some","fromIndex","guard","invoke","contextPath","method","pluck","computed","lastComputed","v","sample","n","last","rand","temp","group","behavior","partition","groupBy","indexBy","countBy","pass","reStrSymbol","keyInObj","pick","omit","first","difference","without","otherArrays","uniq","isSorted","seen","union","arrays","unzip","zip","chainResult","instance","_chain","chain","mixin","nodeType","parseFloat","pairs","props","interceptor","_has","accum","text","settings","oldSettings","offset","render","argument","variable","e","template","data","fallback","prefix","id","hasher","memoize","cache","address","options","timeout","previous","later","leading","throttled","_now","remaining","clearTimeout","trailing","cancel","immediate","passed","debounced","_args","wrapper","start","criteria","left","right","Boolean","_flatten","argsLength","stop","step","ceil","range","count"],"mappings":";;;;;AACO,IAAIA,EA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GAArB,CACA,IAAI1B,EACJ,IAAKA,EAAI,EAAGA,EAAIiI,GACT3Q,GAASzD,UAAUmM,GAAI0B,GADF1B,KAGxBA,IAAMiI,GAAY1N,EAAOzI,KAAK4P,IAEpC,OAAOnH,qDCZM,SAAgBgI,EAAMlI,GAEnC,IADA,IAAIE,EAAS,GACJlD,EAAI,EAAG1D,EAASsD,EAAUsL,GAAOlL,EAAI1D,EAAQ0D,IAChDgD,EACFE,EAAOgI,EAAKlL,IAAMgD,EAAOhD,GAEzBkD,EAAOgI,EAAKlL,GAAG,IAAMkL,EAAKlL,GAAG,GAGjC,OAAOkD,SCXM,SAAeoN,EAAOO,EAAMC,GAC7B,MAARD,IACFA,EAAOP,GAAS,EAChBA,EAAQ,GAELQ,IACHA,EAAOD,EAAOP,GAAS,EAAI,GAM7B,IAHA,IAAIhU,EAASL,KAAKM,IAAIN,KAAK8U,MAAMF,EAAOP,GAASQ,GAAO,GACpDE,EAAQ7W,MAAMmC,GAEToM,EAAM,EAAGA,EAAMpM,EAAQoM,IAAO4H,GAASQ,EAC9CE,EAAMtI,GAAO4H,EAGf,OAAOU,SCfM,SAAepH,EAAOqH,GACnC,GAAa,MAATA,GAAiBA,EAAQ,EAAG,MAAO,GAGvC,IAFA,IAAI/N,EAAS,GACTlD,EAAI,EAAG1D,EAASsN,EAAMtN,OACnB0D,EAAI1D,GACT4G,EAAOzI,KAAKC,EAAMiC,KAAKiN,EAAO5J,EAAGA,GAAKiR,IAExC,OAAO/N,gCjCaTvC,GAAEA,EAAIA"}
@@ -1,144 +0,0 @@
1
- # XMLHttpRequest Emulation for node.js
2
-
3
- This is an [npm](https://npmjs.org/) package that implements the
4
- [W3C XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/) specification on top
5
- of the [node.js](http://nodejs.org/) APIs.
6
-
7
-
8
- ## Supported Platforms
9
-
10
- This library is tested against the following platforms.
11
-
12
- * [node.js](http://nodejs.org/) 0.6
13
- * [node.js](http://nodejs.org/) 0.8
14
- * [node.js](http://nodejs.org/) 0.10
15
- * [node.js](http://nodejs.org/) 0.11
16
-
17
- Keep in mind that the versions above are not hard requirements.
18
-
19
-
20
- ## Installation and Usage
21
-
22
- The preferred installation method is to add the library to the `dependencies`
23
- section in your `package.json`.
24
-
25
- ```json
26
- {
27
- "dependencies": {
28
- "xhr2": "*"
29
- }
30
- }
31
- ```
32
-
33
- Alternatively, `npm` can be used to install the library directly.
34
-
35
- ```bash
36
- npm install xhr2
37
- ```
38
-
39
- Once the library is installed, `require`-ing it returns the `XMLHttpRequest`
40
- constructor.
41
-
42
- ```javascript
43
- var XMLHttpRequest = require('xhr2');
44
- ```
45
-
46
- The other objects that are usually defined in an XHR environment are hanging
47
- off of `XMLHttpRequest`.
48
-
49
- ```javascript
50
- var XMLHttpRequestUpload = XMLHttpRequest.XMLHttpRequestUpload;
51
- ```
52
-
53
- MDN (the Mozilla Developer Network) has a
54
- [great intro to XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest).
55
-
56
- This library's [CoffeeDocs](http://coffeedoc.info/github/pwnall/node-xhr2/) can
57
- be used as quick reference to the XMLHttpRequest specification parts that were
58
- implemented.
59
-
60
-
61
- ## Features
62
-
63
- The following standard features are implemented.
64
-
65
- * `http` and `https` URI protocols
66
- * Basic authentication according to the XMLHttpRequest specification
67
- * request and response header management
68
- * `send()` accepts the following data types: String, ArrayBufferView,
69
- ArrayBuffer (deprecated in the standard)
70
- * `responseType` values: `text`, `json`, `arraybuffer`
71
- * `readystatechange` and download progress events
72
- * `overrideMimeType()`
73
- * `abort()`
74
- * `timeout`
75
- * automated redirection following
76
-
77
- The following node.js extensions are implemented.
78
-
79
- * `send()` accepts a node.js Buffer
80
- * Setting `responseType` to `buffer` produces a node.js Buffer
81
- * `nodejsSet` does XHR network configuration that is not exposed in browsers,
82
- for security reasons
83
-
84
- The following standard features are not implemented.
85
-
86
- * FormData
87
- * Blob
88
- * `file://` URIs
89
- * `data:` URIs
90
- * upload progress events
91
- * synchronous operation
92
- * Same-origin policy checks and CORS
93
- * cookie processing
94
-
95
-
96
- ## Versioning
97
-
98
- The library aims to implement the
99
- [W3C XMLHttpRequest](http://www.w3.org/TR/XMLHttpRequest/) specification, so
100
- the library's API will always be a (hopefully growing) subset of the API in the
101
- specification.
102
-
103
-
104
- ## Development
105
-
106
- The following commands will get the source tree in a `node-xhr2/` directory and
107
- build the library.
108
-
109
- ```bash
110
- git clone git://github.com/pwnall/node-xhr2.git
111
- cd node-xhr2
112
- npm install
113
- npm pack
114
- ```
115
-
116
- Installing CoffeeScript globally will let you type `cake` instead of
117
- `node_modules/.bin/cake`
118
-
119
- ```bash
120
- npm install -g coffeescript
121
- ```
122
-
123
- The library comes with unit tests that exercise the XMLHttpRequest API.
124
-
125
- ```bash
126
- cake test
127
- ```
128
-
129
- The tests themselves can be tested by running them in a browser environment,
130
- where a different XMLHttpRequest implementation is available. Both Google
131
- Chrome and Firefox deviate from the specification in small ways, so it's best
132
- to run the tests in both browsers and mentally compute an intersection of the
133
- failing tests.
134
-
135
- ```bash
136
- cake webtest
137
- BROWSER=firefox cake webtest
138
- ```
139
-
140
-
141
- ## Copyright and License
142
-
143
- The library is Copyright (c) 2013 Victor Costan, and distributed under the MIT
144
- License.
@@ -1,89 +0,0 @@
1
- # This file's name is set up in such a way that it will always show up first in
2
- # the list of files given to coffee --join, so that the other files can assume
3
- # that XMLHttpRequestEventTarget was already defined.
4
-
5
-
6
- # The DOM EventTarget subclass used by XMLHttpRequest.
7
- #
8
- # @see http://xhr.spec.whatwg.org/#interface-xmlhttprequest
9
- class XMLHttpRequestEventTarget
10
- # @private
11
- # This is an abstract class and should not be instantiated directly.
12
- constructor: ->
13
- @onloadstart = null
14
- @onprogress = null
15
- @onabort = null
16
- @onerror = null
17
- @onload = null
18
- @ontimeout = null
19
- @onloadend = null
20
- @_listeners = {}
21
-
22
- # @property {function(ProgressEvent)} DOM level 0-style handler
23
- # for the 'loadstart' event
24
- onloadstart: null
25
-
26
- # @property {function(ProgressEvent)} DOM level 0-style handler
27
- # for the 'progress' event
28
- onprogress: null
29
-
30
- # @property {function(ProgressEvent)} DOM level 0-style handler
31
- # for the 'abort' event
32
- onabort: null
33
-
34
- # @property {function(ProgressEvent)} DOM level 0-style handler
35
- # for the 'error' event
36
- onerror: null
37
-
38
- # @property {function(ProgressEvent)} DOM level 0-style handler
39
- # for the 'load' event
40
- onload: null
41
-
42
- # @property {function(ProgressEvent)} DOM level 0-style handler
43
- # for the 'timeout' event
44
- ontimeout: null
45
-
46
- # @property {function(ProgressEvent)} DOM level 0-style handler
47
- # for the 'loadend' event
48
- onloadend: null
49
-
50
- # Adds a new-style listener for one of the XHR events.
51
- #
52
- # @see http://www.w3.org/TR/XMLHttpRequest/#events
53
- #
54
- # @param {String} eventType an XHR event type, such as 'readystatechange'
55
- # @param {function(ProgressEvent)} listener function that will be called when
56
- # the event fires
57
- # @return {undefined} undefined
58
- addEventListener: (eventType, listener) ->
59
- eventType = eventType.toLowerCase()
60
- @_listeners[eventType] ||= []
61
- @_listeners[eventType].push listener
62
- undefined
63
-
64
- # Removes an event listener added by calling addEventListener.
65
- #
66
- # @param {String} eventType an XHR event type, such as 'readystatechange'
67
- # @param {function(ProgressEvent)} listener the value passed in a previous
68
- # call to addEventListener.
69
- # @return {undefined} undefined
70
- removeEventListener: (eventType, listener) ->
71
- eventType = eventType.toLowerCase()
72
- if @_listeners[eventType]
73
- index = @_listeners[eventType].indexOf listener
74
- @_listeners[eventType].splice index, 1 if index isnt -1
75
- undefined
76
-
77
- # Calls all the listeners for an event.
78
- #
79
- # @param {ProgressEvent} event the event to be dispatched
80
- # @return {undefined} undefined
81
- dispatchEvent: (event) ->
82
- event.currentTarget = event.target = @
83
- eventType = event.type
84
- if listeners = @_listeners[eventType]
85
- for listener in listeners
86
- listener.call @, event
87
- if listener = @["on#{eventType}"]
88
- listener.call @, event
89
- undefined
@@ -1,95 +0,0 @@
1
- # @see http://xhr.spec.whatwg.org/#interface-xmlhttprequest
2
- class XMLHttpRequestUpload extends XMLHttpRequestEventTarget
3
- # @private
4
- # @param {XMLHttpRequest} the XMLHttpRequest that this upload object is
5
- # associated with
6
- constructor: (request) ->
7
- super()
8
- @_request = request
9
- @_reset()
10
-
11
- # Sets up this Upload to handle a new request.
12
- #
13
- # @private
14
- # @return {undefined} undefined
15
- _reset: ->
16
- @_contentType = null
17
- @_body = null
18
- undefined
19
-
20
- # Implements the upload-related part of the send() XHR specification.
21
- #
22
- # @private
23
- # @param {?String, ?Buffer, ?ArrayBufferView} data the argument passed to
24
- # XMLHttpRequest#send()
25
- # @return {undefined} undefined
26
- # @see step 4 of http://www.w3.org/TR/XMLHttpRequest/#the-send()-method
27
- _setData: (data) ->
28
- if typeof data is 'undefined' or data is null
29
- return
30
-
31
- if typeof data is 'string'
32
- # DOMString
33
- if data.length isnt 0
34
- @_contentType = 'text/plain;charset=UTF-8'
35
- @_body = Buffer.from data, 'utf8'
36
- else if Buffer.isBuffer data
37
- # node.js Buffer
38
- @_body = data
39
- else if data instanceof ArrayBuffer
40
- # ArrayBuffer arguments were supported in an old revision of the spec.
41
- body = Buffer.alloc data.byteLength
42
- view = new Uint8Array data
43
- body[i] = view[i] for i in [0...data.byteLength]
44
- @_body = body
45
- else if data.buffer and data.buffer instanceof ArrayBuffer
46
- # ArrayBufferView
47
- body = Buffer.alloc data.byteLength
48
- offset = data.byteOffset
49
- view = new Uint8Array data.buffer
50
- body[i] = view[i + offset] for i in [0...data.byteLength]
51
- @_body = body
52
- else
53
- # NOTE: diverging from the XHR specification of coercing everything else
54
- # to Strings via toString() because that behavior masks bugs and is
55
- # rarely useful
56
- throw new Error "Unsupported send() data #{data}"
57
-
58
- undefined
59
-
60
- # Updates the HTTP headers right before the request is sent.
61
- #
62
- # This is used to set data-dependent headers such as Content-Length and
63
- # Content-Type.
64
- #
65
- # @private
66
- # @param {Object<String, String>} headers the HTTP headers to be sent
67
- # @param {Object<String, String>} loweredHeaders maps lowercased HTTP header
68
- # names (e.g., 'content-type') to the actual names used in the headers
69
- # parameter (e.g., 'Content-Type')
70
- # @return {undefined} undefined
71
- _finalizeHeaders: (headers, loweredHeaders) ->
72
- if @_contentType
73
- unless 'content-type' of loweredHeaders
74
- headers['Content-Type'] = @_contentType
75
-
76
- if @_body
77
- # Restricted headers can't be set by the user, no need to check
78
- # loweredHeaders.
79
- headers['Content-Length'] = @_body.length.toString()
80
-
81
- undefined
82
-
83
- # Starts sending the HTTP request data.
84
- #
85
- # @private
86
- # @param {http.ClientRequest} request the HTTP request
87
- # @return {undefined} undefined
88
- _startUpload: (request) ->
89
- request.write @_body if @_body
90
- request.end()
91
-
92
- undefined
93
-
94
- # Export the XMLHttpRequestUpload constructor.
95
- XMLHttpRequest.XMLHttpRequestUpload = XMLHttpRequestUpload
@@ -1,10 +0,0 @@
1
- window.addEventListener 'load', ->
2
- runner = null
3
- runner = mocha.run ->
4
- return if runner is null # Synchronous tests may call this spuriously.
5
- failures = runner.failures || 0
6
- total = runner.total || 0
7
- image = new Image()
8
- image.src = "/diediedie?failed=#{failures}&total=#{total}";
9
- image.onload = ->
10
- null