@pdftron/pdfnet-node 9.4.2-beta.0 → 9.5.0-beta
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/node_modules/underscore/LICENSE +23 -23
- package/node_modules/underscore/README.md +28 -28
- package/node_modules/underscore/amd/_apply.js +7 -7
- package/node_modules/underscore/amd/_applyProperty.js +14 -14
- package/node_modules/underscore/amd/_arrayAccessors.js +11 -11
- package/node_modules/underscore/amd/_arrayMutators.js +15 -15
- package/node_modules/underscore/amd/_baseCreate.js +21 -21
- package/node_modules/underscore/amd/_baseIteratee.js +15 -15
- package/node_modules/underscore/amd/_binarySearch.js +17 -17
- package/node_modules/underscore/amd/_bindCb.js +14 -14
- package/node_modules/underscore/amd/_bindCb4.js +17 -17
- package/node_modules/underscore/amd/_byValue.js +11 -11
- package/node_modules/underscore/amd/_cb.js +12 -12
- package/node_modules/underscore/amd/_chainResult.js +10 -10
- package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -42
- package/node_modules/underscore/amd/_createAssigner.js +24 -24
- package/node_modules/underscore/amd/_createEscaper.js +21 -21
- package/node_modules/underscore/amd/_createIndexFinder.js +30 -30
- package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -18
- package/node_modules/underscore/amd/_createReduce.js +30 -30
- package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -13
- package/node_modules/underscore/amd/_deepGet.js +15 -15
- package/node_modules/underscore/amd/_escapeMap.js +15 -15
- package/node_modules/underscore/amd/_executeBound.js +16 -16
- package/node_modules/underscore/amd/_extremum.js +35 -35
- package/node_modules/underscore/amd/_flatten.js +32 -32
- package/node_modules/underscore/amd/_forceNumericMinMax.js +16 -16
- package/node_modules/underscore/amd/_getByteLength.js +8 -8
- package/node_modules/underscore/amd/_getLength.js +8 -8
- package/node_modules/underscore/amd/_greater.js +10 -10
- package/node_modules/underscore/amd/_group.js +18 -18
- package/node_modules/underscore/amd/_has.js +10 -10
- package/node_modules/underscore/amd/_hasObjectTag.js +7 -7
- package/node_modules/underscore/amd/_isArrayLike.js +11 -11
- package/node_modules/underscore/amd/_isBufferLike.js +9 -9
- package/node_modules/underscore/amd/_keyInObj.js +11 -11
- package/node_modules/underscore/amd/_less.js +10 -10
- package/node_modules/underscore/amd/_lessEqual.js +10 -10
- package/node_modules/underscore/amd/_linearSearch.js +31 -31
- package/node_modules/underscore/amd/_mapReduce.js +5 -5
- package/node_modules/underscore/amd/_methodFingerprint.js +44 -44
- package/node_modules/underscore/amd/_optimizeCb.js +27 -27
- package/node_modules/underscore/amd/_push.js +7 -7
- package/node_modules/underscore/amd/_pusher.js +13 -13
- package/node_modules/underscore/amd/_sequence.js +18 -18
- package/node_modules/underscore/amd/_setup.js +70 -70
- package/node_modules/underscore/amd/_shallowProperty.js +12 -12
- package/node_modules/underscore/amd/_slice.js +7 -7
- package/node_modules/underscore/amd/_strictEqual.js +9 -9
- package/node_modules/underscore/amd/_stringTagBug.js +16 -16
- package/node_modules/underscore/amd/_tagTester.js +13 -13
- package/node_modules/underscore/amd/_toBufferView.js +15 -15
- package/node_modules/underscore/amd/_toPath.js +11 -11
- package/node_modules/underscore/amd/_unescapeMap.js +8 -8
- package/node_modules/underscore/amd/_unmethodize.js +9 -9
- package/node_modules/underscore/amd/_wrapArrayAccessor.js +15 -15
- package/node_modules/underscore/amd/_wrapArrayMutator.js +28 -28
- package/node_modules/underscore/amd/after.js +14 -14
- package/node_modules/underscore/amd/allKeys.js +15 -15
- package/node_modules/underscore/amd/before.js +18 -18
- package/node_modules/underscore/amd/bind.js +15 -15
- package/node_modules/underscore/amd/bindAll.js +19 -19
- package/node_modules/underscore/amd/chain.js +12 -12
- package/node_modules/underscore/amd/chunk.js +17 -17
- package/node_modules/underscore/amd/clone.js +11 -11
- package/node_modules/underscore/amd/compact.js +10 -10
- package/node_modules/underscore/amd/compose.js +18 -18
- package/node_modules/underscore/amd/concat.js +7 -7
- package/node_modules/underscore/amd/constant.js +12 -12
- package/node_modules/underscore/amd/contains.js +12 -12
- package/node_modules/underscore/amd/countBy.js +12 -12
- package/node_modules/underscore/amd/create.js +14 -14
- package/node_modules/underscore/amd/debounce.js +43 -43
- package/node_modules/underscore/amd/defaults.js +8 -8
- package/node_modules/underscore/amd/defer.js +9 -9
- package/node_modules/underscore/amd/delay.js +13 -13
- package/node_modules/underscore/amd/difference.js +14 -14
- package/node_modules/underscore/amd/each.js +25 -25
- package/node_modules/underscore/amd/escape.js +8 -8
- package/node_modules/underscore/amd/every.js +17 -17
- package/node_modules/underscore/amd/extend.js +8 -8
- package/node_modules/underscore/amd/extendOwn.js +10 -10
- package/node_modules/underscore/amd/filter.js +15 -15
- package/node_modules/underscore/amd/find.js +12 -12
- package/node_modules/underscore/amd/findIndex.js +8 -8
- package/node_modules/underscore/amd/findKey.js +15 -15
- package/node_modules/underscore/amd/findLastIndex.js +8 -8
- package/node_modules/underscore/amd/findWhere.js +11 -11
- package/node_modules/underscore/amd/first.js +13 -13
- package/node_modules/underscore/amd/flatten.js +11 -11
- package/node_modules/underscore/amd/functions.js +14 -14
- package/node_modules/underscore/amd/get.js +14 -14
- package/node_modules/underscore/amd/groupBy.js +11 -11
- package/node_modules/underscore/amd/has.js +19 -19
- package/node_modules/underscore/amd/identity.js +10 -10
- package/node_modules/underscore/amd/index-default.js +12 -12
- package/node_modules/underscore/amd/index.js +154 -154
- package/node_modules/underscore/amd/indexBy.js +11 -11
- package/node_modules/underscore/amd/indexOf.js +11 -11
- package/node_modules/underscore/amd/initial.js +12 -12
- package/node_modules/underscore/amd/intersection.js +22 -22
- package/node_modules/underscore/amd/invert.js +15 -15
- package/node_modules/underscore/amd/invoke.js +28 -28
- package/node_modules/underscore/amd/isArguments.js +19 -19
- package/node_modules/underscore/amd/isArray.js +9 -9
- package/node_modules/underscore/amd/isArrayBuffer.js +7 -7
- package/node_modules/underscore/amd/isBoolean.js +10 -10
- package/node_modules/underscore/amd/isDataView.js +15 -15
- package/node_modules/underscore/amd/isDate.js +7 -7
- package/node_modules/underscore/amd/isElement.js +10 -10
- package/node_modules/underscore/amd/isEmpty.js +18 -18
- package/node_modules/underscore/amd/isEqual.js +133 -133
- package/node_modules/underscore/amd/isError.js +7 -7
- package/node_modules/underscore/amd/isFinite.js +10 -10
- package/node_modules/underscore/amd/isFunction.js +18 -18
- package/node_modules/underscore/amd/isMap.js +7 -7
- package/node_modules/underscore/amd/isMatch.js +17 -17
- package/node_modules/underscore/amd/isNaN.js +10 -10
- package/node_modules/underscore/amd/isNull.js +10 -10
- package/node_modules/underscore/amd/isNumber.js +7 -7
- package/node_modules/underscore/amd/isObject.js +11 -11
- package/node_modules/underscore/amd/isRegExp.js +7 -7
- package/node_modules/underscore/amd/isSet.js +7 -7
- package/node_modules/underscore/amd/isString.js +7 -7
- package/node_modules/underscore/amd/isSymbol.js +7 -7
- package/node_modules/underscore/amd/isTypedArray.js +16 -16
- package/node_modules/underscore/amd/isUndefined.js +10 -10
- package/node_modules/underscore/amd/isWeakMap.js +7 -7
- package/node_modules/underscore/amd/isWeakSet.js +7 -7
- package/node_modules/underscore/amd/iteratee.js +13 -13
- package/node_modules/underscore/amd/join.js +7 -7
- package/node_modules/underscore/amd/keys.js +17 -17
- package/node_modules/underscore/amd/last.js +13 -13
- package/node_modules/underscore/amd/lastIndexOf.js +9 -9
- package/node_modules/underscore/amd/map.js +18 -18
- package/node_modules/underscore/amd/mapObject.js +19 -19
- package/node_modules/underscore/amd/matcher.js +14 -14
- package/node_modules/underscore/amd/max.js +30 -30
- package/node_modules/underscore/amd/memoize.js +17 -17
- package/node_modules/underscore/amd/min.js +30 -30
- package/node_modules/underscore/amd/mixin.js +18 -18
- package/node_modules/underscore/amd/negate.js +12 -12
- package/node_modules/underscore/amd/noop.js +8 -8
- package/node_modules/underscore/amd/now.js +10 -10
- package/node_modules/underscore/amd/object.js +20 -20
- package/node_modules/underscore/amd/omit.js +20 -20
- package/node_modules/underscore/amd/once.js +9 -9
- package/node_modules/underscore/amd/pairs.js +17 -17
- package/node_modules/underscore/amd/partial.js +25 -25
- package/node_modules/underscore/amd/partition.js +11 -11
- package/node_modules/underscore/amd/pick.js +25 -25
- package/node_modules/underscore/amd/pluck.js +10 -10
- package/node_modules/underscore/amd/pop.js +7 -7
- package/node_modules/underscore/amd/property.js +14 -14
- package/node_modules/underscore/amd/propertyOf.js +13 -13
- package/node_modules/underscore/amd/push.js +7 -7
- package/node_modules/underscore/amd/random.js +14 -14
- package/node_modules/underscore/amd/range.js +27 -27
- package/node_modules/underscore/amd/reduce.js +9 -9
- package/node_modules/underscore/amd/reduceRight.js +8 -8
- package/node_modules/underscore/amd/reject.js +10 -10
- package/node_modules/underscore/amd/rest.js +12 -12
- package/node_modules/underscore/amd/restArguments.js +33 -33
- package/node_modules/underscore/amd/result.js +25 -25
- package/node_modules/underscore/amd/reverse.js +7 -7
- package/node_modules/underscore/amd/sample.js +27 -27
- package/node_modules/underscore/amd/shift.js +7 -7
- package/node_modules/underscore/amd/shuffle.js +10 -10
- package/node_modules/underscore/amd/size.js +11 -11
- package/node_modules/underscore/amd/slice.js +7 -7
- package/node_modules/underscore/amd/some.js +17 -17
- package/node_modules/underscore/amd/sort.js +7 -7
- package/node_modules/underscore/amd/sortBy.js +26 -26
- package/node_modules/underscore/amd/sortedIndex.js +18 -18
- package/node_modules/underscore/amd/sortedLastIndex.js +11 -11
- package/node_modules/underscore/amd/splice.js +7 -7
- package/node_modules/underscore/amd/tap.js +13 -13
- package/node_modules/underscore/amd/template.js +95 -95
- package/node_modules/underscore/amd/templateSettings.js +13 -13
- package/node_modules/underscore/amd/throttle.js +51 -51
- package/node_modules/underscore/amd/times.js +13 -13
- package/node_modules/underscore/amd/toArray.js +18 -18
- package/node_modules/underscore/amd/toPath.js +12 -12
- package/node_modules/underscore/amd/toString.js +11 -11
- package/node_modules/underscore/amd/underscore-array-methods.js +30 -30
- package/node_modules/underscore/amd/underscore.js +29 -29
- package/node_modules/underscore/amd/unescape.js +8 -8
- package/node_modules/underscore/amd/union.js +11 -11
- package/node_modules/underscore/amd/uniq.js +37 -37
- package/node_modules/underscore/amd/uniqueId.js +13 -13
- package/node_modules/underscore/amd/unshift.js +7 -7
- package/node_modules/underscore/amd/unzip.js +17 -17
- package/node_modules/underscore/amd/value.js +13 -13
- package/node_modules/underscore/amd/values.js +16 -16
- package/node_modules/underscore/amd/where.js +11 -11
- package/node_modules/underscore/amd/without.js +10 -10
- package/node_modules/underscore/amd/wrap.js +12 -12
- package/node_modules/underscore/amd/zip.js +9 -9
- package/node_modules/underscore/cjs/_apply.js +6 -6
- package/node_modules/underscore/cjs/_applyProperty.js +10 -10
- package/node_modules/underscore/cjs/_arrayAccessors.js +11 -11
- package/node_modules/underscore/cjs/_arrayMutators.js +19 -19
- package/node_modules/underscore/cjs/_baseCreate.js +20 -20
- package/node_modules/underscore/cjs/_baseIteratee.js +19 -19
- package/node_modules/underscore/cjs/_binarySearch.js +15 -15
- package/node_modules/underscore/cjs/_bindCb.js +10 -10
- package/node_modules/underscore/cjs/_bindCb4.js +13 -13
- package/node_modules/underscore/cjs/_byValue.js +7 -7
- package/node_modules/underscore/cjs/_cb.js +12 -12
- package/node_modules/underscore/cjs/_chainResult.js +8 -8
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -42
- package/node_modules/underscore/cjs/_createAssigner.js +20 -20
- package/node_modules/underscore/cjs/_createEscaper.js +19 -19
- package/node_modules/underscore/cjs/_createIndexFinder.js +30 -30
- package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -17
- package/node_modules/underscore/cjs/_createReduce.js +30 -30
- package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -11
- package/node_modules/underscore/cjs/_deepGet.js +11 -11
- package/node_modules/underscore/cjs/_escapeMap.js +11 -11
- package/node_modules/underscore/cjs/_executeBound.js +15 -15
- package/node_modules/underscore/cjs/_extremum.js +35 -35
- package/node_modules/underscore/cjs/_flatten.js +33 -33
- package/node_modules/underscore/cjs/_forceNumericMinMax.js +14 -14
- package/node_modules/underscore/cjs/_getByteLength.js +6 -6
- package/node_modules/underscore/cjs/_getLength.js +6 -6
- package/node_modules/underscore/cjs/_greater.js +6 -6
- package/node_modules/underscore/cjs/_group.js +17 -17
- package/node_modules/underscore/cjs/_has.js +8 -8
- package/node_modules/underscore/cjs/_hasObjectTag.js +5 -5
- package/node_modules/underscore/cjs/_isArrayLike.js +10 -10
- package/node_modules/underscore/cjs/_isBufferLike.js +8 -8
- package/node_modules/underscore/cjs/_keyInObj.js +7 -7
- package/node_modules/underscore/cjs/_less.js +6 -6
- package/node_modules/underscore/cjs/_lessEqual.js +6 -6
- package/node_modules/underscore/cjs/_linearSearch.js +30 -30
- package/node_modules/underscore/cjs/_mapReduce.js +1 -1
- package/node_modules/underscore/cjs/_methodFingerprint.js +44 -44
- package/node_modules/underscore/cjs/_optimizeCb.js +23 -23
- package/node_modules/underscore/cjs/_push.js +6 -6
- package/node_modules/underscore/cjs/_pusher.js +9 -9
- package/node_modules/underscore/cjs/_sequence.js +14 -14
- package/node_modules/underscore/cjs/_setup.js +66 -66
- package/node_modules/underscore/cjs/_shallowProperty.js +8 -8
- package/node_modules/underscore/cjs/_slice.js +6 -6
- package/node_modules/underscore/cjs/_strictEqual.js +5 -5
- package/node_modules/underscore/cjs/_stringTagBug.js +15 -15
- package/node_modules/underscore/cjs/_tagTester.js +11 -11
- package/node_modules/underscore/cjs/_toBufferView.js +13 -13
- package/node_modules/underscore/cjs/_toPath.js +10 -10
- package/node_modules/underscore/cjs/_unescapeMap.js +7 -7
- package/node_modules/underscore/cjs/_unmethodize.js +8 -8
- package/node_modules/underscore/cjs/_wrapArrayAccessor.js +14 -14
- package/node_modules/underscore/cjs/_wrapArrayMutator.js +29 -29
- package/node_modules/underscore/cjs/after.js +10 -10
- package/node_modules/underscore/cjs/allKeys.js +15 -15
- package/node_modules/underscore/cjs/before.js +14 -14
- package/node_modules/underscore/cjs/bind.js +15 -15
- package/node_modules/underscore/cjs/bindAll.js +19 -19
- package/node_modules/underscore/cjs/chain.js +10 -10
- package/node_modules/underscore/cjs/chunk.js +15 -15
- package/node_modules/underscore/cjs/clone.js +11 -11
- package/node_modules/underscore/cjs/compact.js +8 -8
- package/node_modules/underscore/cjs/compose.js +14 -14
- package/node_modules/underscore/cjs/concat.js +6 -6
- package/node_modules/underscore/cjs/constant.js +8 -8
- package/node_modules/underscore/cjs/contains.js +12 -12
- package/node_modules/underscore/cjs/countBy.js +11 -11
- package/node_modules/underscore/cjs/create.js +13 -13
- package/node_modules/underscore/cjs/debounce.js +42 -42
- package/node_modules/underscore/cjs/defaults.js +7 -7
- package/node_modules/underscore/cjs/defer.js +9 -9
- package/node_modules/underscore/cjs/delay.js +11 -11
- package/node_modules/underscore/cjs/difference.js +15 -15
- package/node_modules/underscore/cjs/each.js +25 -25
- package/node_modules/underscore/cjs/escape.js +7 -7
- package/node_modules/underscore/cjs/every.js +17 -17
- package/node_modules/underscore/cjs/extend.js +7 -7
- package/node_modules/underscore/cjs/extendOwn.js +9 -9
- package/node_modules/underscore/cjs/filter.js +14 -14
- package/node_modules/underscore/cjs/find.js +12 -12
- package/node_modules/underscore/cjs/findIndex.js +6 -6
- package/node_modules/underscore/cjs/findKey.js +14 -14
- package/node_modules/underscore/cjs/findLastIndex.js +6 -6
- package/node_modules/underscore/cjs/findWhere.js +10 -10
- package/node_modules/underscore/cjs/first.js +11 -11
- package/node_modules/underscore/cjs/flatten.js +9 -9
- package/node_modules/underscore/cjs/functions.js +12 -12
- package/node_modules/underscore/cjs/get.js +14 -14
- package/node_modules/underscore/cjs/groupBy.js +10 -10
- package/node_modules/underscore/cjs/has.js +18 -18
- package/node_modules/underscore/cjs/identity.js +6 -6
- package/node_modules/underscore/cjs/index-default.js +11 -11
- package/node_modules/underscore/cjs/index.js +277 -277
- package/node_modules/underscore/cjs/indexBy.js +9 -9
- package/node_modules/underscore/cjs/indexOf.js +11 -11
- package/node_modules/underscore/cjs/initial.js +10 -10
- package/node_modules/underscore/cjs/intersection.js +21 -21
- package/node_modules/underscore/cjs/invert.js +13 -13
- package/node_modules/underscore/cjs/invoke.js +30 -30
- package/node_modules/underscore/cjs/isArguments.js +18 -18
- package/node_modules/underscore/cjs/isArray.js +8 -8
- package/node_modules/underscore/cjs/isArrayBuffer.js +5 -5
- package/node_modules/underscore/cjs/isBoolean.js +8 -8
- package/node_modules/underscore/cjs/isDataView.js +16 -16
- package/node_modules/underscore/cjs/isDate.js +5 -5
- package/node_modules/underscore/cjs/isElement.js +6 -6
- package/node_modules/underscore/cjs/isEmpty.js +20 -20
- package/node_modules/underscore/cjs/isEqual.js +140 -140
- package/node_modules/underscore/cjs/isError.js +5 -5
- package/node_modules/underscore/cjs/isFinite.js +9 -9
- package/node_modules/underscore/cjs/isFunction.js +17 -17
- package/node_modules/underscore/cjs/isMap.js +7 -7
- package/node_modules/underscore/cjs/isMatch.js +15 -15
- package/node_modules/underscore/cjs/isNaN.js +9 -9
- package/node_modules/underscore/cjs/isNull.js +6 -6
- package/node_modules/underscore/cjs/isNumber.js +5 -5
- package/node_modules/underscore/cjs/isObject.js +7 -7
- package/node_modules/underscore/cjs/isRegExp.js +5 -5
- package/node_modules/underscore/cjs/isSet.js +7 -7
- package/node_modules/underscore/cjs/isString.js +5 -5
- package/node_modules/underscore/cjs/isSymbol.js +5 -5
- package/node_modules/underscore/cjs/isTypedArray.js +17 -17
- package/node_modules/underscore/cjs/isUndefined.js +6 -6
- package/node_modules/underscore/cjs/isWeakMap.js +7 -7
- package/node_modules/underscore/cjs/isWeakSet.js +5 -5
- package/node_modules/underscore/cjs/iteratee.js +12 -12
- package/node_modules/underscore/cjs/join.js +6 -6
- package/node_modules/underscore/cjs/keys.js +18 -18
- package/node_modules/underscore/cjs/last.js +11 -11
- package/node_modules/underscore/cjs/lastIndexOf.js +8 -8
- package/node_modules/underscore/cjs/map.js +18 -18
- package/node_modules/underscore/cjs/mapObject.js +18 -18
- package/node_modules/underscore/cjs/matcher.js +13 -13
- package/node_modules/underscore/cjs/max.js +31 -31
- package/node_modules/underscore/cjs/memoize.js +15 -15
- package/node_modules/underscore/cjs/min.js +31 -31
- package/node_modules/underscore/cjs/mixin.js +20 -20
- package/node_modules/underscore/cjs/negate.js +8 -8
- package/node_modules/underscore/cjs/noop.js +4 -4
- package/node_modules/underscore/cjs/now.js +6 -6
- package/node_modules/underscore/cjs/object.js +18 -18
- package/node_modules/underscore/cjs/omit.js +24 -24
- package/node_modules/underscore/cjs/once.js +8 -8
- package/node_modules/underscore/cjs/pairs.js +15 -15
- package/node_modules/underscore/cjs/partial.js +25 -25
- package/node_modules/underscore/cjs/partition.js +9 -9
- package/node_modules/underscore/cjs/pick.js +28 -28
- package/node_modules/underscore/cjs/pluck.js +9 -9
- package/node_modules/underscore/cjs/pop.js +6 -6
- package/node_modules/underscore/cjs/property.js +13 -13
- package/node_modules/underscore/cjs/propertyOf.js +12 -12
- package/node_modules/underscore/cjs/push.js +6 -6
- package/node_modules/underscore/cjs/random.js +10 -10
- package/node_modules/underscore/cjs/range.js +23 -23
- package/node_modules/underscore/cjs/reduce.js +7 -7
- package/node_modules/underscore/cjs/reduceRight.js +6 -6
- package/node_modules/underscore/cjs/reject.js +10 -10
- package/node_modules/underscore/cjs/rest.js +10 -10
- package/node_modules/underscore/cjs/restArguments.js +29 -29
- package/node_modules/underscore/cjs/result.js +24 -24
- package/node_modules/underscore/cjs/reverse.js +6 -6
- package/node_modules/underscore/cjs/sample.js +29 -29
- package/node_modules/underscore/cjs/shift.js +6 -6
- package/node_modules/underscore/cjs/shuffle.js +8 -8
- package/node_modules/underscore/cjs/size.js +10 -10
- package/node_modules/underscore/cjs/slice.js +6 -6
- package/node_modules/underscore/cjs/some.js +17 -17
- package/node_modules/underscore/cjs/sort.js +6 -6
- package/node_modules/underscore/cjs/sortBy.js +26 -26
- package/node_modules/underscore/cjs/sortedIndex.js +17 -17
- package/node_modules/underscore/cjs/sortedLastIndex.js +11 -11
- package/node_modules/underscore/cjs/splice.js +6 -6
- package/node_modules/underscore/cjs/tap.js +9 -9
- package/node_modules/underscore/cjs/template.js +95 -95
- package/node_modules/underscore/cjs/templateSettings.js +11 -11
- package/node_modules/underscore/cjs/throttle.js +49 -49
- package/node_modules/underscore/cjs/times.js +11 -11
- package/node_modules/underscore/cjs/toArray.js +22 -22
- package/node_modules/underscore/cjs/toPath.js +11 -11
- package/node_modules/underscore/cjs/toString.js +9 -9
- package/node_modules/underscore/cjs/underscore-array-methods.js +31 -31
- package/node_modules/underscore/cjs/underscore.js +27 -27
- package/node_modules/underscore/cjs/unescape.js +7 -7
- package/node_modules/underscore/cjs/union.js +11 -11
- package/node_modules/underscore/cjs/uniq.js +38 -38
- package/node_modules/underscore/cjs/uniqueId.js +9 -9
- package/node_modules/underscore/cjs/unshift.js +6 -6
- package/node_modules/underscore/cjs/unzip.js +17 -17
- package/node_modules/underscore/cjs/value.js +9 -9
- package/node_modules/underscore/cjs/values.js +14 -14
- package/node_modules/underscore/cjs/where.js +10 -10
- package/node_modules/underscore/cjs/without.js +9 -9
- package/node_modules/underscore/cjs/wrap.js +10 -10
- package/node_modules/underscore/cjs/zip.js +8 -8
- package/node_modules/underscore/modules/.eslintrc +12 -12
- package/node_modules/underscore/modules/_baseCreate.js +18 -18
- package/node_modules/underscore/modules/_baseIteratee.js +17 -17
- package/node_modules/underscore/modules/_cb.js +10 -10
- package/node_modules/underscore/modules/_chainResult.js +6 -6
- package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -40
- package/node_modules/underscore/modules/_createAssigner.js +18 -18
- package/node_modules/underscore/modules/_createEscaper.js +17 -17
- package/node_modules/underscore/modules/_createIndexFinder.js +28 -28
- package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -15
- package/node_modules/underscore/modules/_createReduce.js +28 -28
- package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -9
- package/node_modules/underscore/modules/_deepGet.js +9 -9
- package/node_modules/underscore/modules/_escapeMap.js +9 -9
- package/node_modules/underscore/modules/_executeBound.js +13 -13
- package/node_modules/underscore/modules/_flatten.js +31 -31
- package/node_modules/underscore/modules/_getByteLength.js +4 -4
- package/node_modules/underscore/modules/_getLength.js +4 -4
- package/node_modules/underscore/modules/_group.js +15 -15
- package/node_modules/underscore/modules/_has.js +6 -6
- package/node_modules/underscore/modules/_hasObjectTag.js +3 -3
- package/node_modules/underscore/modules/_isArrayLike.js +8 -8
- package/node_modules/underscore/modules/_isBufferLike.js +6 -6
- package/node_modules/underscore/modules/_keyInObj.js +5 -5
- package/node_modules/underscore/modules/_methodFingerprint.js +37 -37
- package/node_modules/underscore/modules/_optimizeCb.js +21 -21
- package/node_modules/underscore/modules/_setup.js +43 -43
- package/node_modules/underscore/modules/_shallowProperty.js +6 -6
- package/node_modules/underscore/modules/_stringTagBug.js +10 -10
- package/node_modules/underscore/modules/_tagTester.js +9 -9
- package/node_modules/underscore/modules/_toBufferView.js +11 -11
- package/node_modules/underscore/modules/_toPath.js +8 -8
- package/node_modules/underscore/modules/_unescapeMap.js +5 -5
- package/node_modules/underscore/modules/after.js +8 -8
- package/node_modules/underscore/modules/allKeys.js +13 -13
- package/node_modules/underscore/modules/before.js +12 -12
- package/node_modules/underscore/modules/bind.js +13 -13
- package/node_modules/underscore/modules/bindAll.js +17 -17
- package/node_modules/underscore/modules/chain.js +8 -8
- package/node_modules/underscore/modules/chunk.js +13 -13
- package/node_modules/underscore/modules/clone.js +9 -9
- package/node_modules/underscore/modules/compact.js +6 -6
- package/node_modules/underscore/modules/compose.js +12 -12
- package/node_modules/underscore/modules/constant.js +6 -6
- package/node_modules/underscore/modules/contains.js +10 -10
- package/node_modules/underscore/modules/countBy.js +9 -9
- package/node_modules/underscore/modules/create.js +11 -11
- package/node_modules/underscore/modules/debounce.js +40 -40
- package/node_modules/underscore/modules/defaults.js +5 -5
- package/node_modules/underscore/modules/defer.js +7 -7
- package/node_modules/underscore/modules/delay.js +9 -9
- package/node_modules/underscore/modules/difference.js +13 -13
- package/node_modules/underscore/modules/each.js +23 -23
- package/node_modules/underscore/modules/escape.js +5 -5
- package/node_modules/underscore/modules/every.js +15 -15
- package/node_modules/underscore/modules/extend.js +5 -5
- package/node_modules/underscore/modules/extendOwn.js +7 -7
- package/node_modules/underscore/modules/filter.js +12 -12
- package/node_modules/underscore/modules/find.js +10 -10
- package/node_modules/underscore/modules/findIndex.js +4 -4
- package/node_modules/underscore/modules/findKey.js +12 -12
- package/node_modules/underscore/modules/findLastIndex.js +4 -4
- package/node_modules/underscore/modules/findWhere.js +8 -8
- package/node_modules/underscore/modules/first.js +9 -9
- package/node_modules/underscore/modules/flatten.js +7 -7
- package/node_modules/underscore/modules/functions.js +10 -10
- package/node_modules/underscore/modules/get.js +12 -12
- package/node_modules/underscore/modules/groupBy.js +8 -8
- package/node_modules/underscore/modules/has.js +16 -16
- package/node_modules/underscore/modules/identity.js +4 -4
- package/node_modules/underscore/modules/index-all.js +18 -18
- package/node_modules/underscore/modules/index-default.js +27 -27
- package/node_modules/underscore/modules/index.js +200 -200
- package/node_modules/underscore/modules/indexBy.js +7 -7
- package/node_modules/underscore/modules/indexOf.js +9 -9
- package/node_modules/underscore/modules/initial.js +8 -8
- package/node_modules/underscore/modules/intersection.js +19 -19
- package/node_modules/underscore/modules/invert.js +11 -11
- package/node_modules/underscore/modules/invoke.js +28 -28
- package/node_modules/underscore/modules/isArguments.js +16 -16
- package/node_modules/underscore/modules/isArray.js +6 -6
- package/node_modules/underscore/modules/isArrayBuffer.js +3 -3
- package/node_modules/underscore/modules/isBoolean.js +6 -6
- package/node_modules/underscore/modules/isDataView.js +14 -14
- package/node_modules/underscore/modules/isDate.js +3 -3
- package/node_modules/underscore/modules/isElement.js +4 -4
- package/node_modules/underscore/modules/isEmpty.js +18 -18
- package/node_modules/underscore/modules/isEqual.js +138 -138
- package/node_modules/underscore/modules/isError.js +3 -3
- package/node_modules/underscore/modules/isFinite.js +7 -7
- package/node_modules/underscore/modules/isFunction.js +15 -15
- package/node_modules/underscore/modules/isMap.js +5 -5
- package/node_modules/underscore/modules/isMatch.js +13 -13
- package/node_modules/underscore/modules/isNaN.js +7 -7
- package/node_modules/underscore/modules/isNull.js +4 -4
- package/node_modules/underscore/modules/isNumber.js +3 -3
- package/node_modules/underscore/modules/isObject.js +5 -5
- package/node_modules/underscore/modules/isRegExp.js +3 -3
- package/node_modules/underscore/modules/isSet.js +5 -5
- package/node_modules/underscore/modules/isString.js +3 -3
- package/node_modules/underscore/modules/isSymbol.js +3 -3
- package/node_modules/underscore/modules/isTypedArray.js +15 -15
- package/node_modules/underscore/modules/isUndefined.js +4 -4
- package/node_modules/underscore/modules/isWeakMap.js +5 -5
- package/node_modules/underscore/modules/isWeakSet.js +3 -3
- package/node_modules/underscore/modules/iteratee.js +10 -10
- package/node_modules/underscore/modules/keys.js +16 -16
- package/node_modules/underscore/modules/last.js +9 -9
- package/node_modules/underscore/modules/lastIndexOf.js +6 -6
- package/node_modules/underscore/modules/map.js +16 -16
- package/node_modules/underscore/modules/mapObject.js +16 -16
- package/node_modules/underscore/modules/matcher.js +11 -11
- package/node_modules/underscore/modules/max.js +29 -29
- package/node_modules/underscore/modules/memoize.js +13 -13
- package/node_modules/underscore/modules/min.js +29 -29
- package/node_modules/underscore/modules/mixin.js +18 -18
- package/node_modules/underscore/modules/negate.js +6 -6
- package/node_modules/underscore/modules/noop.js +2 -2
- package/node_modules/underscore/modules/now.js +4 -4
- package/node_modules/underscore/modules/object.js +16 -16
- package/node_modules/underscore/modules/omit.js +22 -22
- package/node_modules/underscore/modules/once.js +6 -6
- package/node_modules/underscore/modules/pairs.js +13 -13
- package/node_modules/underscore/modules/partial.js +24 -24
- package/node_modules/underscore/modules/partition.js +7 -7
- package/node_modules/underscore/modules/pick.js +26 -26
- package/node_modules/underscore/modules/pluck.js +7 -7
- package/node_modules/underscore/modules/property.js +11 -11
- package/node_modules/underscore/modules/propertyOf.js +10 -10
- package/node_modules/underscore/modules/random.js +8 -8
- package/node_modules/underscore/modules/range.js +21 -21
- package/node_modules/underscore/modules/reduce.js +5 -5
- package/node_modules/underscore/modules/reduceRight.js +4 -4
- package/node_modules/underscore/modules/reject.js +8 -8
- package/node_modules/underscore/modules/rest.js +8 -8
- package/node_modules/underscore/modules/restArguments.js +27 -27
- package/node_modules/underscore/modules/result.js +22 -22
- package/node_modules/underscore/modules/sample.js +27 -27
- package/node_modules/underscore/modules/shuffle.js +6 -6
- package/node_modules/underscore/modules/size.js +8 -8
- package/node_modules/underscore/modules/some.js +15 -15
- package/node_modules/underscore/modules/sortBy.js +24 -24
- package/node_modules/underscore/modules/sortedIndex.js +15 -15
- package/node_modules/underscore/modules/tap.js +7 -7
- package/node_modules/underscore/modules/template.js +93 -93
- package/node_modules/underscore/modules/templateSettings.js +9 -9
- package/node_modules/underscore/modules/throttle.js +47 -47
- package/node_modules/underscore/modules/times.js +9 -9
- package/node_modules/underscore/modules/toArray.js +20 -20
- package/node_modules/underscore/modules/toPath.js +9 -9
- package/node_modules/underscore/modules/underscore-array-methods.js +31 -31
- package/node_modules/underscore/modules/underscore.js +25 -25
- package/node_modules/underscore/modules/unescape.js +5 -5
- package/node_modules/underscore/modules/union.js +9 -9
- package/node_modules/underscore/modules/uniq.js +36 -36
- package/node_modules/underscore/modules/uniqueId.js +7 -7
- package/node_modules/underscore/modules/unzip.js +15 -15
- package/node_modules/underscore/modules/values.js +12 -12
- package/node_modules/underscore/modules/where.js +8 -8
- package/node_modules/underscore/modules/without.js +7 -7
- package/node_modules/underscore/modules/wrap.js +8 -8
- package/node_modules/underscore/modules/zip.js +6 -6
- package/node_modules/underscore/package.json +108 -108
- package/node_modules/underscore/underscore-esm-min.js +4 -4
- package/node_modules/underscore/underscore-esm.js +2026 -2026
- package/node_modules/underscore/underscore-min.js +5 -5
- package/node_modules/underscore/underscore.js +2034 -2034
- package/node_modules/xhr2/CONTRIBUTING.md +33 -33
- package/node_modules/xhr2/Cakefile +131 -131
- package/node_modules/xhr2/LICENSE.txt +19 -19
- package/node_modules/xhr2/lib/browser.js +1 -1
- package/node_modules/xhr2/lib/xhr2.js +1244 -1244
- package/node_modules/xhr2/package.json +93 -93
- package/node_modules/xhr2/src/001-xml_http_request.coffee +782 -782
- package/node_modules/xhr2/src/errors.coffee +31 -31
- package/node_modules/xhr2/src/progress_event.coffee +39 -39
- package/node_modules/xhr2/test/fixtures/hello.json +1 -1
- package/node_modules/xhr2/test/fixtures/hello.txt +1 -1
- package/node_modules/xhr2/test/html/browser_test.html +30 -30
- package/node_modules/xhr2/test/src/event_target_test.coffee +85 -85
- package/node_modules/xhr2/test/src/events_test.coffee +204 -204
- package/node_modules/xhr2/test/src/headers_test.coffee +165 -165
- package/node_modules/xhr2/test/src/helpers/browser_mocha_setup.coffee +1 -1
- package/node_modules/xhr2/test/src/helpers/setup.coffee +38 -38
- package/node_modules/xhr2/test/src/helpers/xhr_server.coffee +156 -156
- package/node_modules/xhr2/test/src/nodejs_set_test.coffee +162 -162
- package/node_modules/xhr2/test/src/redirect_test.coffee +57 -57
- package/node_modules/xhr2/test/src/response_type_test.coffee +88 -88
- package/node_modules/xhr2/test/src/send_test.coffee +89 -89
- package/node_modules/xhr2/test/src/status_test.coffee +47 -47
- package/node_modules/xhr2/test/src/xhr_test.coffee +102 -102
- package/package.json +3 -3
- package/readme.md +37 -37
- package/node_modules/underscore/underscore-min.js.map +0 -1
- package/node_modules/xhr2/README.md +0 -144
- package/node_modules/xhr2/src/000-xml_http_request_event_target.coffee +0 -89
- package/node_modules/xhr2/src/xml_http_request_upload.coffee +0 -95
- package/node_modules/xhr2/test/src/helpers/browser_mocha_runner.coffee +0 -10
- 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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdftron/pdfnet-node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0-beta",
|
|
4
4
|
"main": "./lib/pdfnet.js",
|
|
5
5
|
"types": "./lib/types.d.ts",
|
|
6
6
|
"binary": {
|
|
7
7
|
"module_name": "pdfnet-addon",
|
|
8
8
|
"module_path": "./",
|
|
9
|
-
"remote_path": "./downloads/PDFNetNode/
|
|
10
|
-
"package_name": "{module_name}-
|
|
9
|
+
"remote_path": "./downloads/PDFNetNode/{version}",
|
|
10
|
+
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
|
|
11
11
|
"host": "https://www.pdftron.com"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
package/readme.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
## @pdftron/pdfnet-node
|
|
2
|
-
|
|
3
|
-
This package leverages the full power of PDFTron's native SDK for maximal performance and accuracy. In order to maintain consistency across platforms the Javascript API is used in the same manner as the PDFNet API available in PDFTron's Web platform. Since access to the filesystem is included in Node.js/Electron some additional APIs requiring filesystem access have also been included.
|
|
4
|
-
|
|
5
|
-
#### Supported platform, Node.js, and Electron versions
|
|
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
|
|
8
|
-
* **Node.js version**: 8 - 18
|
|
9
|
-
* **Electron version**: 6 - 19
|
|
10
|
-
|
|
11
|
-
Installation will fail if your OS, Node.js or Electron version is not supported.
|
|
12
|
-
|
|
13
|
-
To install for Electron, *runtime* and *target* options are needed. For example, For Electron 6, we need to run *npm i @pdftron/pdfnet-node --runtime=electron --target=6.0.0*. Note that we need to use *6.0.0* for all Electron 6 versions.
|
|
14
|
-
|
|
15
|
-
#### Usage
|
|
16
|
-
Here is a code snippet to demonstrate how to use this package.
|
|
17
|
-
```javascript
|
|
18
|
-
const { PDFNet } = require('@pdftron/pdfnet-node'); // you may need to set up NODE_PATH environment variable to make this work.
|
|
19
|
-
|
|
20
|
-
const main = async() => {
|
|
21
|
-
const doc = await PDFNet.PDFDoc.create();
|
|
22
|
-
const page = await doc.pageCreate();
|
|
23
|
-
doc.pagePushBack(page);
|
|
24
|
-
doc.save('blank.pdf', PDFNet.SDFDoc.SaveOptions.e_linearized);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// add your own license key as the second parameter, e.g. in place of 'YOUR_LICENSE_KEY'.
|
|
28
|
-
PDFNet.runWithCleanup(main, 'YOUR_LICENSE_KEY').catch(function(error) {
|
|
29
|
-
console.log('Error: ' + JSON.stringify(error));
|
|
30
|
-
}).then(function(){ return PDFNet.shutdown(); });
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
There are some code samples in the [@pdftron/pdfnet-node-samples](https://www.npmjs.com/package/@pdftron/pdfnet-node-samples) package.
|
|
34
|
-
|
|
35
|
-
To get started please see the documentation at https://www.pdftron.com/documentation/nodejs/get-started/integration.
|
|
36
|
-
|
|
37
|
-
#### Licensing
|
|
1
|
+
## @pdftron/pdfnet-node
|
|
2
|
+
|
|
3
|
+
This package leverages the full power of PDFTron's native SDK for maximal performance and accuracy. In order to maintain consistency across platforms the Javascript API is used in the same manner as the PDFNet API available in PDFTron's Web platform. Since access to the filesystem is included in Node.js/Electron some additional APIs requiring filesystem access have also been included.
|
|
4
|
+
|
|
5
|
+
#### Supported platform, Node.js, and Electron versions
|
|
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
|
|
8
|
+
* **Node.js version**: 8 - 18
|
|
9
|
+
* **Electron version**: 6 - 19
|
|
10
|
+
|
|
11
|
+
Installation will fail if your OS, Node.js or Electron version is not supported.
|
|
12
|
+
|
|
13
|
+
To install for Electron, *runtime* and *target* options are needed. For example, For Electron 6, we need to run *npm i @pdftron/pdfnet-node --runtime=electron --target=6.0.0*. Note that we need to use *6.0.0* for all Electron 6 versions.
|
|
14
|
+
|
|
15
|
+
#### Usage
|
|
16
|
+
Here is a code snippet to demonstrate how to use this package.
|
|
17
|
+
```javascript
|
|
18
|
+
const { PDFNet } = require('@pdftron/pdfnet-node'); // you may need to set up NODE_PATH environment variable to make this work.
|
|
19
|
+
|
|
20
|
+
const main = async() => {
|
|
21
|
+
const doc = await PDFNet.PDFDoc.create();
|
|
22
|
+
const page = await doc.pageCreate();
|
|
23
|
+
doc.pagePushBack(page);
|
|
24
|
+
doc.save('blank.pdf', PDFNet.SDFDoc.SaveOptions.e_linearized);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// add your own license key as the second parameter, e.g. in place of 'YOUR_LICENSE_KEY'.
|
|
28
|
+
PDFNet.runWithCleanup(main, 'YOUR_LICENSE_KEY').catch(function(error) {
|
|
29
|
+
console.log('Error: ' + JSON.stringify(error));
|
|
30
|
+
}).then(function(){ return PDFNet.shutdown(); });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
There are some code samples in the [@pdftron/pdfnet-node-samples](https://www.npmjs.com/package/@pdftron/pdfnet-node-samples) package.
|
|
34
|
+
|
|
35
|
+
To get started please see the documentation at https://www.pdftron.com/documentation/nodejs/get-started/integration.
|
|
36
|
+
|
|
37
|
+
#### Licensing
|
|
38
38
|
Please go to https://www.pdftron.com/pws/get-key to obtain a demo license or https://www.pdftron.com/form/contact-sales to obtain a production key. For further information, please visit https://www.pdftron.com/licensing.
|
|
@@ -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,EAAU,SAKVC,EAAsB,iBAARC,MAAoBA,KAAKA,OAASA,MAAQA,MACxC,iBAAVC,QAAsBA,OAAOA,SAAWA,QAAUA,QACzDC,SAAS,cAATA,IACA,GAGCC,EAAaC,MAAMC,UAAWC,EAAWC,OAAOF,UAChDG,EAAgC,oBAAXC,OAAyBA,OAAOJ,UAAY,KAGjEK,EAAOP,EAAWO,KACzBC,EAAQR,EAAWQ,MACnBC,EAAWN,EAASM,SACpBC,EAAiBP,EAASO,eAGnBC,EAA6C,oBAAhBC,YACpCC,EAAuC,oBAAbC,SAInBC,EAAgBd,MAAMe,QAC7BC,EAAab,OAAOc,KACpBC,EAAef,OAAOgB,OACtBC,EAAeV,GAAuBC,YAAYU,OAG3CC,EAASC,MAChBC,EAAYC,SAGLC,GAAc,CAAClB,SAAU,MAAMmB,qBAAqB,YACpDC,EAAqB,CAAC,UAAW,gBAAiB,WAC3D,uBA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OP,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
|