@pdftron/pdfnet-node 10.6.0-1 → 10.6.0-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.
- package/package.json +29 -29
- package/readme.md +37 -37
- package/node_modules/underscore/LICENSE +0 -23
- package/node_modules/underscore/README.md +0 -28
- package/node_modules/underscore/amd/_apply.js +0 -7
- package/node_modules/underscore/amd/_applyProperty.js +0 -14
- package/node_modules/underscore/amd/_arrayAccessors.js +0 -11
- package/node_modules/underscore/amd/_arrayMutators.js +0 -15
- package/node_modules/underscore/amd/_baseCreate.js +0 -21
- package/node_modules/underscore/amd/_baseIteratee.js +0 -15
- package/node_modules/underscore/amd/_binarySearch.js +0 -17
- package/node_modules/underscore/amd/_bindCb.js +0 -14
- package/node_modules/underscore/amd/_bindCb4.js +0 -17
- package/node_modules/underscore/amd/_byValue.js +0 -11
- package/node_modules/underscore/amd/_cb.js +0 -12
- package/node_modules/underscore/amd/_chainResult.js +0 -10
- package/node_modules/underscore/amd/_collectNonEnumProps.js +0 -42
- package/node_modules/underscore/amd/_createAssigner.js +0 -24
- package/node_modules/underscore/amd/_createEscaper.js +0 -21
- package/node_modules/underscore/amd/_createIndexFinder.js +0 -30
- package/node_modules/underscore/amd/_createPredicateIndexFinder.js +0 -18
- package/node_modules/underscore/amd/_createReduce.js +0 -30
- package/node_modules/underscore/amd/_createSizePropertyCheck.js +0 -13
- package/node_modules/underscore/amd/_deepGet.js +0 -15
- package/node_modules/underscore/amd/_escapeMap.js +0 -15
- package/node_modules/underscore/amd/_executeBound.js +0 -16
- package/node_modules/underscore/amd/_extremum.js +0 -35
- package/node_modules/underscore/amd/_flatten.js +0 -32
- package/node_modules/underscore/amd/_forceNumericMinMax.js +0 -16
- package/node_modules/underscore/amd/_getByteLength.js +0 -8
- package/node_modules/underscore/amd/_getLength.js +0 -8
- package/node_modules/underscore/amd/_greater.js +0 -10
- package/node_modules/underscore/amd/_group.js +0 -18
- package/node_modules/underscore/amd/_has.js +0 -10
- package/node_modules/underscore/amd/_hasObjectTag.js +0 -7
- package/node_modules/underscore/amd/_isArrayLike.js +0 -11
- package/node_modules/underscore/amd/_isBufferLike.js +0 -9
- package/node_modules/underscore/amd/_keyInObj.js +0 -11
- package/node_modules/underscore/amd/_less.js +0 -10
- package/node_modules/underscore/amd/_lessEqual.js +0 -10
- package/node_modules/underscore/amd/_linearSearch.js +0 -31
- package/node_modules/underscore/amd/_mapReduce.js +0 -5
- package/node_modules/underscore/amd/_methodFingerprint.js +0 -44
- package/node_modules/underscore/amd/_optimizeCb.js +0 -27
- package/node_modules/underscore/amd/_push.js +0 -7
- package/node_modules/underscore/amd/_pusher.js +0 -13
- package/node_modules/underscore/amd/_sequence.js +0 -18
- package/node_modules/underscore/amd/_setup.js +0 -70
- package/node_modules/underscore/amd/_shallowProperty.js +0 -12
- package/node_modules/underscore/amd/_slice.js +0 -7
- package/node_modules/underscore/amd/_strictEqual.js +0 -9
- package/node_modules/underscore/amd/_stringTagBug.js +0 -16
- package/node_modules/underscore/amd/_tagTester.js +0 -13
- package/node_modules/underscore/amd/_toBufferView.js +0 -15
- package/node_modules/underscore/amd/_toPath.js +0 -11
- package/node_modules/underscore/amd/_unescapeMap.js +0 -8
- package/node_modules/underscore/amd/_unmethodize.js +0 -9
- package/node_modules/underscore/amd/_wrapArrayAccessor.js +0 -15
- package/node_modules/underscore/amd/_wrapArrayMutator.js +0 -28
- package/node_modules/underscore/amd/after.js +0 -14
- package/node_modules/underscore/amd/allKeys.js +0 -15
- package/node_modules/underscore/amd/before.js +0 -18
- package/node_modules/underscore/amd/bind.js +0 -15
- package/node_modules/underscore/amd/bindAll.js +0 -19
- package/node_modules/underscore/amd/chain.js +0 -12
- package/node_modules/underscore/amd/chunk.js +0 -17
- package/node_modules/underscore/amd/clone.js +0 -11
- package/node_modules/underscore/amd/compact.js +0 -10
- package/node_modules/underscore/amd/compose.js +0 -18
- package/node_modules/underscore/amd/concat.js +0 -7
- package/node_modules/underscore/amd/constant.js +0 -12
- package/node_modules/underscore/amd/contains.js +0 -12
- package/node_modules/underscore/amd/countBy.js +0 -12
- package/node_modules/underscore/amd/create.js +0 -14
- package/node_modules/underscore/amd/debounce.js +0 -43
- package/node_modules/underscore/amd/defaults.js +0 -8
- package/node_modules/underscore/amd/defer.js +0 -9
- package/node_modules/underscore/amd/delay.js +0 -13
- package/node_modules/underscore/amd/difference.js +0 -14
- package/node_modules/underscore/amd/each.js +0 -25
- package/node_modules/underscore/amd/escape.js +0 -8
- package/node_modules/underscore/amd/every.js +0 -17
- package/node_modules/underscore/amd/extend.js +0 -8
- package/node_modules/underscore/amd/extendOwn.js +0 -10
- package/node_modules/underscore/amd/filter.js +0 -15
- package/node_modules/underscore/amd/find.js +0 -12
- package/node_modules/underscore/amd/findIndex.js +0 -8
- package/node_modules/underscore/amd/findKey.js +0 -15
- package/node_modules/underscore/amd/findLastIndex.js +0 -8
- package/node_modules/underscore/amd/findWhere.js +0 -11
- package/node_modules/underscore/amd/first.js +0 -13
- package/node_modules/underscore/amd/flatten.js +0 -11
- package/node_modules/underscore/amd/functions.js +0 -14
- package/node_modules/underscore/amd/get.js +0 -14
- package/node_modules/underscore/amd/groupBy.js +0 -11
- package/node_modules/underscore/amd/has.js +0 -19
- package/node_modules/underscore/amd/identity.js +0 -10
- package/node_modules/underscore/amd/index-default.js +0 -12
- package/node_modules/underscore/amd/index.js +0 -154
- package/node_modules/underscore/amd/indexBy.js +0 -11
- package/node_modules/underscore/amd/indexOf.js +0 -11
- package/node_modules/underscore/amd/initial.js +0 -12
- package/node_modules/underscore/amd/intersection.js +0 -22
- package/node_modules/underscore/amd/invert.js +0 -15
- package/node_modules/underscore/amd/invoke.js +0 -28
- package/node_modules/underscore/amd/isArguments.js +0 -19
- package/node_modules/underscore/amd/isArray.js +0 -9
- package/node_modules/underscore/amd/isArrayBuffer.js +0 -7
- package/node_modules/underscore/amd/isBoolean.js +0 -10
- package/node_modules/underscore/amd/isDataView.js +0 -15
- package/node_modules/underscore/amd/isDate.js +0 -7
- package/node_modules/underscore/amd/isElement.js +0 -10
- package/node_modules/underscore/amd/isEmpty.js +0 -18
- package/node_modules/underscore/amd/isEqual.js +0 -133
- package/node_modules/underscore/amd/isError.js +0 -7
- package/node_modules/underscore/amd/isFinite.js +0 -10
- package/node_modules/underscore/amd/isFunction.js +0 -18
- package/node_modules/underscore/amd/isMap.js +0 -7
- package/node_modules/underscore/amd/isMatch.js +0 -17
- package/node_modules/underscore/amd/isNaN.js +0 -10
- package/node_modules/underscore/amd/isNull.js +0 -10
- package/node_modules/underscore/amd/isNumber.js +0 -7
- package/node_modules/underscore/amd/isObject.js +0 -11
- package/node_modules/underscore/amd/isRegExp.js +0 -7
- package/node_modules/underscore/amd/isSet.js +0 -7
- package/node_modules/underscore/amd/isString.js +0 -7
- package/node_modules/underscore/amd/isSymbol.js +0 -7
- package/node_modules/underscore/amd/isTypedArray.js +0 -16
- package/node_modules/underscore/amd/isUndefined.js +0 -10
- package/node_modules/underscore/amd/isWeakMap.js +0 -7
- package/node_modules/underscore/amd/isWeakSet.js +0 -7
- package/node_modules/underscore/amd/iteratee.js +0 -13
- package/node_modules/underscore/amd/join.js +0 -7
- package/node_modules/underscore/amd/keys.js +0 -17
- package/node_modules/underscore/amd/last.js +0 -13
- package/node_modules/underscore/amd/lastIndexOf.js +0 -9
- package/node_modules/underscore/amd/map.js +0 -18
- package/node_modules/underscore/amd/mapObject.js +0 -19
- package/node_modules/underscore/amd/matcher.js +0 -14
- package/node_modules/underscore/amd/max.js +0 -30
- package/node_modules/underscore/amd/memoize.js +0 -17
- package/node_modules/underscore/amd/min.js +0 -30
- package/node_modules/underscore/amd/mixin.js +0 -18
- package/node_modules/underscore/amd/negate.js +0 -12
- package/node_modules/underscore/amd/noop.js +0 -8
- package/node_modules/underscore/amd/now.js +0 -10
- package/node_modules/underscore/amd/object.js +0 -20
- package/node_modules/underscore/amd/omit.js +0 -20
- package/node_modules/underscore/amd/once.js +0 -9
- package/node_modules/underscore/amd/pairs.js +0 -17
- package/node_modules/underscore/amd/partial.js +0 -25
- package/node_modules/underscore/amd/partition.js +0 -11
- package/node_modules/underscore/amd/pick.js +0 -25
- package/node_modules/underscore/amd/pluck.js +0 -10
- package/node_modules/underscore/amd/pop.js +0 -7
- package/node_modules/underscore/amd/property.js +0 -14
- package/node_modules/underscore/amd/propertyOf.js +0 -13
- package/node_modules/underscore/amd/push.js +0 -7
- package/node_modules/underscore/amd/random.js +0 -14
- package/node_modules/underscore/amd/range.js +0 -27
- package/node_modules/underscore/amd/reduce.js +0 -9
- package/node_modules/underscore/amd/reduceRight.js +0 -8
- package/node_modules/underscore/amd/reject.js +0 -10
- package/node_modules/underscore/amd/rest.js +0 -12
- package/node_modules/underscore/amd/restArguments.js +0 -33
- package/node_modules/underscore/amd/result.js +0 -25
- package/node_modules/underscore/amd/reverse.js +0 -7
- package/node_modules/underscore/amd/sample.js +0 -27
- package/node_modules/underscore/amd/shift.js +0 -7
- package/node_modules/underscore/amd/shuffle.js +0 -10
- package/node_modules/underscore/amd/size.js +0 -11
- package/node_modules/underscore/amd/slice.js +0 -7
- package/node_modules/underscore/amd/some.js +0 -17
- package/node_modules/underscore/amd/sort.js +0 -7
- package/node_modules/underscore/amd/sortBy.js +0 -26
- package/node_modules/underscore/amd/sortedIndex.js +0 -18
- package/node_modules/underscore/amd/sortedLastIndex.js +0 -11
- package/node_modules/underscore/amd/splice.js +0 -7
- package/node_modules/underscore/amd/tap.js +0 -13
- package/node_modules/underscore/amd/template.js +0 -95
- package/node_modules/underscore/amd/templateSettings.js +0 -13
- package/node_modules/underscore/amd/throttle.js +0 -51
- package/node_modules/underscore/amd/times.js +0 -13
- package/node_modules/underscore/amd/toArray.js +0 -18
- package/node_modules/underscore/amd/toPath.js +0 -12
- package/node_modules/underscore/amd/toString.js +0 -11
- package/node_modules/underscore/amd/underscore-array-methods.js +0 -30
- package/node_modules/underscore/amd/underscore.js +0 -29
- package/node_modules/underscore/amd/unescape.js +0 -8
- package/node_modules/underscore/amd/union.js +0 -11
- package/node_modules/underscore/amd/uniq.js +0 -37
- package/node_modules/underscore/amd/uniqueId.js +0 -13
- package/node_modules/underscore/amd/unshift.js +0 -7
- package/node_modules/underscore/amd/unzip.js +0 -17
- package/node_modules/underscore/amd/value.js +0 -13
- package/node_modules/underscore/amd/values.js +0 -16
- package/node_modules/underscore/amd/where.js +0 -11
- package/node_modules/underscore/amd/without.js +0 -10
- package/node_modules/underscore/amd/wrap.js +0 -12
- package/node_modules/underscore/amd/zip.js +0 -9
- package/node_modules/underscore/cjs/_apply.js +0 -6
- package/node_modules/underscore/cjs/_applyProperty.js +0 -10
- package/node_modules/underscore/cjs/_arrayAccessors.js +0 -11
- package/node_modules/underscore/cjs/_arrayMutators.js +0 -19
- package/node_modules/underscore/cjs/_baseCreate.js +0 -20
- package/node_modules/underscore/cjs/_baseIteratee.js +0 -19
- package/node_modules/underscore/cjs/_binarySearch.js +0 -15
- package/node_modules/underscore/cjs/_bindCb.js +0 -10
- package/node_modules/underscore/cjs/_bindCb4.js +0 -13
- package/node_modules/underscore/cjs/_byValue.js +0 -7
- package/node_modules/underscore/cjs/_cb.js +0 -12
- package/node_modules/underscore/cjs/_chainResult.js +0 -8
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +0 -42
- package/node_modules/underscore/cjs/_createAssigner.js +0 -20
- package/node_modules/underscore/cjs/_createEscaper.js +0 -19
- package/node_modules/underscore/cjs/_createIndexFinder.js +0 -30
- package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +0 -17
- package/node_modules/underscore/cjs/_createReduce.js +0 -30
- package/node_modules/underscore/cjs/_createSizePropertyCheck.js +0 -11
- package/node_modules/underscore/cjs/_deepGet.js +0 -11
- package/node_modules/underscore/cjs/_escapeMap.js +0 -11
- package/node_modules/underscore/cjs/_executeBound.js +0 -15
- package/node_modules/underscore/cjs/_extremum.js +0 -35
- package/node_modules/underscore/cjs/_flatten.js +0 -33
- package/node_modules/underscore/cjs/_forceNumericMinMax.js +0 -14
- package/node_modules/underscore/cjs/_getByteLength.js +0 -6
- package/node_modules/underscore/cjs/_getLength.js +0 -6
- package/node_modules/underscore/cjs/_greater.js +0 -6
- package/node_modules/underscore/cjs/_group.js +0 -17
- package/node_modules/underscore/cjs/_has.js +0 -8
- package/node_modules/underscore/cjs/_hasObjectTag.js +0 -5
- package/node_modules/underscore/cjs/_isArrayLike.js +0 -10
- package/node_modules/underscore/cjs/_isBufferLike.js +0 -8
- package/node_modules/underscore/cjs/_keyInObj.js +0 -7
- package/node_modules/underscore/cjs/_less.js +0 -6
- package/node_modules/underscore/cjs/_lessEqual.js +0 -6
- package/node_modules/underscore/cjs/_linearSearch.js +0 -30
- package/node_modules/underscore/cjs/_mapReduce.js +0 -1
- package/node_modules/underscore/cjs/_methodFingerprint.js +0 -44
- package/node_modules/underscore/cjs/_optimizeCb.js +0 -23
- package/node_modules/underscore/cjs/_push.js +0 -6
- package/node_modules/underscore/cjs/_pusher.js +0 -9
- package/node_modules/underscore/cjs/_sequence.js +0 -14
- package/node_modules/underscore/cjs/_setup.js +0 -66
- package/node_modules/underscore/cjs/_shallowProperty.js +0 -8
- package/node_modules/underscore/cjs/_slice.js +0 -6
- package/node_modules/underscore/cjs/_strictEqual.js +0 -5
- package/node_modules/underscore/cjs/_stringTagBug.js +0 -15
- package/node_modules/underscore/cjs/_tagTester.js +0 -11
- package/node_modules/underscore/cjs/_toBufferView.js +0 -13
- package/node_modules/underscore/cjs/_toPath.js +0 -10
- package/node_modules/underscore/cjs/_unescapeMap.js +0 -7
- package/node_modules/underscore/cjs/_unmethodize.js +0 -8
- package/node_modules/underscore/cjs/_wrapArrayAccessor.js +0 -14
- package/node_modules/underscore/cjs/_wrapArrayMutator.js +0 -29
- package/node_modules/underscore/cjs/after.js +0 -10
- package/node_modules/underscore/cjs/allKeys.js +0 -15
- package/node_modules/underscore/cjs/before.js +0 -14
- package/node_modules/underscore/cjs/bind.js +0 -15
- package/node_modules/underscore/cjs/bindAll.js +0 -19
- package/node_modules/underscore/cjs/chain.js +0 -10
- package/node_modules/underscore/cjs/chunk.js +0 -15
- package/node_modules/underscore/cjs/clone.js +0 -11
- package/node_modules/underscore/cjs/compact.js +0 -8
- package/node_modules/underscore/cjs/compose.js +0 -14
- package/node_modules/underscore/cjs/concat.js +0 -6
- package/node_modules/underscore/cjs/constant.js +0 -8
- package/node_modules/underscore/cjs/contains.js +0 -12
- package/node_modules/underscore/cjs/countBy.js +0 -11
- package/node_modules/underscore/cjs/create.js +0 -13
- package/node_modules/underscore/cjs/debounce.js +0 -42
- package/node_modules/underscore/cjs/defaults.js +0 -7
- package/node_modules/underscore/cjs/defer.js +0 -9
- package/node_modules/underscore/cjs/delay.js +0 -11
- package/node_modules/underscore/cjs/difference.js +0 -15
- package/node_modules/underscore/cjs/each.js +0 -25
- package/node_modules/underscore/cjs/escape.js +0 -7
- package/node_modules/underscore/cjs/every.js +0 -17
- package/node_modules/underscore/cjs/extend.js +0 -7
- package/node_modules/underscore/cjs/extendOwn.js +0 -9
- package/node_modules/underscore/cjs/filter.js +0 -14
- package/node_modules/underscore/cjs/find.js +0 -12
- package/node_modules/underscore/cjs/findIndex.js +0 -6
- package/node_modules/underscore/cjs/findKey.js +0 -14
- package/node_modules/underscore/cjs/findLastIndex.js +0 -6
- package/node_modules/underscore/cjs/findWhere.js +0 -10
- package/node_modules/underscore/cjs/first.js +0 -11
- package/node_modules/underscore/cjs/flatten.js +0 -9
- package/node_modules/underscore/cjs/functions.js +0 -12
- package/node_modules/underscore/cjs/get.js +0 -14
- package/node_modules/underscore/cjs/groupBy.js +0 -10
- package/node_modules/underscore/cjs/has.js +0 -18
- package/node_modules/underscore/cjs/identity.js +0 -6
- package/node_modules/underscore/cjs/index-default.js +0 -11
- package/node_modules/underscore/cjs/index.js +0 -277
- package/node_modules/underscore/cjs/indexBy.js +0 -9
- package/node_modules/underscore/cjs/indexOf.js +0 -11
- package/node_modules/underscore/cjs/initial.js +0 -10
- package/node_modules/underscore/cjs/intersection.js +0 -21
- package/node_modules/underscore/cjs/invert.js +0 -13
- package/node_modules/underscore/cjs/invoke.js +0 -30
- package/node_modules/underscore/cjs/isArguments.js +0 -18
- package/node_modules/underscore/cjs/isArray.js +0 -8
- package/node_modules/underscore/cjs/isArrayBuffer.js +0 -5
- package/node_modules/underscore/cjs/isBoolean.js +0 -8
- package/node_modules/underscore/cjs/isDataView.js +0 -16
- package/node_modules/underscore/cjs/isDate.js +0 -5
- package/node_modules/underscore/cjs/isElement.js +0 -6
- package/node_modules/underscore/cjs/isEmpty.js +0 -20
- package/node_modules/underscore/cjs/isEqual.js +0 -140
- package/node_modules/underscore/cjs/isError.js +0 -5
- package/node_modules/underscore/cjs/isFinite.js +0 -9
- package/node_modules/underscore/cjs/isFunction.js +0 -17
- package/node_modules/underscore/cjs/isMap.js +0 -7
- package/node_modules/underscore/cjs/isMatch.js +0 -15
- package/node_modules/underscore/cjs/isNaN.js +0 -9
- package/node_modules/underscore/cjs/isNull.js +0 -6
- package/node_modules/underscore/cjs/isNumber.js +0 -5
- package/node_modules/underscore/cjs/isObject.js +0 -7
- package/node_modules/underscore/cjs/isRegExp.js +0 -5
- package/node_modules/underscore/cjs/isSet.js +0 -7
- package/node_modules/underscore/cjs/isString.js +0 -5
- package/node_modules/underscore/cjs/isSymbol.js +0 -5
- package/node_modules/underscore/cjs/isTypedArray.js +0 -17
- package/node_modules/underscore/cjs/isUndefined.js +0 -6
- package/node_modules/underscore/cjs/isWeakMap.js +0 -7
- package/node_modules/underscore/cjs/isWeakSet.js +0 -5
- package/node_modules/underscore/cjs/iteratee.js +0 -12
- package/node_modules/underscore/cjs/join.js +0 -6
- package/node_modules/underscore/cjs/keys.js +0 -18
- package/node_modules/underscore/cjs/last.js +0 -11
- package/node_modules/underscore/cjs/lastIndexOf.js +0 -8
- package/node_modules/underscore/cjs/map.js +0 -18
- package/node_modules/underscore/cjs/mapObject.js +0 -18
- package/node_modules/underscore/cjs/matcher.js +0 -13
- package/node_modules/underscore/cjs/max.js +0 -31
- package/node_modules/underscore/cjs/memoize.js +0 -15
- package/node_modules/underscore/cjs/min.js +0 -31
- package/node_modules/underscore/cjs/mixin.js +0 -20
- package/node_modules/underscore/cjs/negate.js +0 -8
- package/node_modules/underscore/cjs/noop.js +0 -4
- package/node_modules/underscore/cjs/now.js +0 -6
- package/node_modules/underscore/cjs/object.js +0 -18
- package/node_modules/underscore/cjs/omit.js +0 -24
- package/node_modules/underscore/cjs/once.js +0 -8
- package/node_modules/underscore/cjs/pairs.js +0 -15
- package/node_modules/underscore/cjs/partial.js +0 -25
- package/node_modules/underscore/cjs/partition.js +0 -9
- package/node_modules/underscore/cjs/pick.js +0 -28
- package/node_modules/underscore/cjs/pluck.js +0 -9
- package/node_modules/underscore/cjs/pop.js +0 -6
- package/node_modules/underscore/cjs/property.js +0 -13
- package/node_modules/underscore/cjs/propertyOf.js +0 -12
- package/node_modules/underscore/cjs/push.js +0 -6
- package/node_modules/underscore/cjs/random.js +0 -10
- package/node_modules/underscore/cjs/range.js +0 -23
- package/node_modules/underscore/cjs/reduce.js +0 -7
- package/node_modules/underscore/cjs/reduceRight.js +0 -6
- package/node_modules/underscore/cjs/reject.js +0 -10
- package/node_modules/underscore/cjs/rest.js +0 -10
- package/node_modules/underscore/cjs/restArguments.js +0 -29
- package/node_modules/underscore/cjs/result.js +0 -24
- package/node_modules/underscore/cjs/reverse.js +0 -6
- package/node_modules/underscore/cjs/sample.js +0 -29
- package/node_modules/underscore/cjs/shift.js +0 -6
- package/node_modules/underscore/cjs/shuffle.js +0 -8
- package/node_modules/underscore/cjs/size.js +0 -10
- package/node_modules/underscore/cjs/slice.js +0 -6
- package/node_modules/underscore/cjs/some.js +0 -17
- package/node_modules/underscore/cjs/sort.js +0 -6
- package/node_modules/underscore/cjs/sortBy.js +0 -26
- package/node_modules/underscore/cjs/sortedIndex.js +0 -17
- package/node_modules/underscore/cjs/sortedLastIndex.js +0 -11
- package/node_modules/underscore/cjs/splice.js +0 -6
- package/node_modules/underscore/cjs/tap.js +0 -9
- package/node_modules/underscore/cjs/template.js +0 -95
- package/node_modules/underscore/cjs/templateSettings.js +0 -11
- package/node_modules/underscore/cjs/throttle.js +0 -49
- package/node_modules/underscore/cjs/times.js +0 -11
- package/node_modules/underscore/cjs/toArray.js +0 -22
- package/node_modules/underscore/cjs/toPath.js +0 -11
- package/node_modules/underscore/cjs/toString.js +0 -9
- package/node_modules/underscore/cjs/underscore-array-methods.js +0 -31
- package/node_modules/underscore/cjs/underscore.js +0 -27
- package/node_modules/underscore/cjs/unescape.js +0 -7
- package/node_modules/underscore/cjs/union.js +0 -11
- package/node_modules/underscore/cjs/uniq.js +0 -38
- package/node_modules/underscore/cjs/uniqueId.js +0 -9
- package/node_modules/underscore/cjs/unshift.js +0 -6
- package/node_modules/underscore/cjs/unzip.js +0 -17
- package/node_modules/underscore/cjs/value.js +0 -9
- package/node_modules/underscore/cjs/values.js +0 -14
- package/node_modules/underscore/cjs/where.js +0 -10
- package/node_modules/underscore/cjs/without.js +0 -9
- package/node_modules/underscore/cjs/wrap.js +0 -10
- package/node_modules/underscore/cjs/zip.js +0 -8
- package/node_modules/underscore/modules/.eslintrc +0 -12
- package/node_modules/underscore/modules/_baseCreate.js +0 -18
- package/node_modules/underscore/modules/_baseIteratee.js +0 -17
- package/node_modules/underscore/modules/_cb.js +0 -10
- package/node_modules/underscore/modules/_chainResult.js +0 -6
- package/node_modules/underscore/modules/_collectNonEnumProps.js +0 -40
- package/node_modules/underscore/modules/_createAssigner.js +0 -18
- package/node_modules/underscore/modules/_createEscaper.js +0 -17
- package/node_modules/underscore/modules/_createIndexFinder.js +0 -28
- package/node_modules/underscore/modules/_createPredicateIndexFinder.js +0 -15
- package/node_modules/underscore/modules/_createReduce.js +0 -28
- package/node_modules/underscore/modules/_createSizePropertyCheck.js +0 -9
- package/node_modules/underscore/modules/_deepGet.js +0 -9
- package/node_modules/underscore/modules/_escapeMap.js +0 -9
- package/node_modules/underscore/modules/_executeBound.js +0 -13
- package/node_modules/underscore/modules/_flatten.js +0 -31
- package/node_modules/underscore/modules/_getByteLength.js +0 -4
- package/node_modules/underscore/modules/_getLength.js +0 -4
- package/node_modules/underscore/modules/_group.js +0 -15
- package/node_modules/underscore/modules/_has.js +0 -6
- package/node_modules/underscore/modules/_hasObjectTag.js +0 -3
- package/node_modules/underscore/modules/_isArrayLike.js +0 -8
- package/node_modules/underscore/modules/_isBufferLike.js +0 -6
- package/node_modules/underscore/modules/_keyInObj.js +0 -5
- package/node_modules/underscore/modules/_methodFingerprint.js +0 -37
- package/node_modules/underscore/modules/_optimizeCb.js +0 -21
- package/node_modules/underscore/modules/_setup.js +0 -43
- package/node_modules/underscore/modules/_shallowProperty.js +0 -6
- package/node_modules/underscore/modules/_stringTagBug.js +0 -10
- package/node_modules/underscore/modules/_tagTester.js +0 -9
- package/node_modules/underscore/modules/_toBufferView.js +0 -11
- package/node_modules/underscore/modules/_toPath.js +0 -8
- package/node_modules/underscore/modules/_unescapeMap.js +0 -5
- package/node_modules/underscore/modules/after.js +0 -8
- package/node_modules/underscore/modules/allKeys.js +0 -13
- package/node_modules/underscore/modules/before.js +0 -12
- package/node_modules/underscore/modules/bind.js +0 -13
- package/node_modules/underscore/modules/bindAll.js +0 -17
- package/node_modules/underscore/modules/chain.js +0 -8
- package/node_modules/underscore/modules/chunk.js +0 -13
- package/node_modules/underscore/modules/clone.js +0 -9
- package/node_modules/underscore/modules/compact.js +0 -6
- package/node_modules/underscore/modules/compose.js +0 -12
- package/node_modules/underscore/modules/constant.js +0 -6
- package/node_modules/underscore/modules/contains.js +0 -10
- package/node_modules/underscore/modules/countBy.js +0 -9
- package/node_modules/underscore/modules/create.js +0 -11
- package/node_modules/underscore/modules/debounce.js +0 -40
- package/node_modules/underscore/modules/defaults.js +0 -5
- package/node_modules/underscore/modules/defer.js +0 -7
- package/node_modules/underscore/modules/delay.js +0 -9
- package/node_modules/underscore/modules/difference.js +0 -13
- package/node_modules/underscore/modules/each.js +0 -23
- package/node_modules/underscore/modules/escape.js +0 -5
- package/node_modules/underscore/modules/every.js +0 -15
- package/node_modules/underscore/modules/extend.js +0 -5
- package/node_modules/underscore/modules/extendOwn.js +0 -7
- package/node_modules/underscore/modules/filter.js +0 -12
- package/node_modules/underscore/modules/find.js +0 -10
- package/node_modules/underscore/modules/findIndex.js +0 -4
- package/node_modules/underscore/modules/findKey.js +0 -12
- package/node_modules/underscore/modules/findLastIndex.js +0 -4
- package/node_modules/underscore/modules/findWhere.js +0 -8
- package/node_modules/underscore/modules/first.js +0 -9
- package/node_modules/underscore/modules/flatten.js +0 -7
- package/node_modules/underscore/modules/functions.js +0 -10
- package/node_modules/underscore/modules/get.js +0 -12
- package/node_modules/underscore/modules/groupBy.js +0 -8
- package/node_modules/underscore/modules/has.js +0 -16
- package/node_modules/underscore/modules/identity.js +0 -4
- package/node_modules/underscore/modules/index-all.js +0 -18
- package/node_modules/underscore/modules/index-default.js +0 -27
- package/node_modules/underscore/modules/index.js +0 -200
- package/node_modules/underscore/modules/indexBy.js +0 -7
- package/node_modules/underscore/modules/indexOf.js +0 -9
- package/node_modules/underscore/modules/initial.js +0 -8
- package/node_modules/underscore/modules/intersection.js +0 -19
- package/node_modules/underscore/modules/invert.js +0 -11
- package/node_modules/underscore/modules/invoke.js +0 -28
- package/node_modules/underscore/modules/isArguments.js +0 -16
- package/node_modules/underscore/modules/isArray.js +0 -6
- package/node_modules/underscore/modules/isArrayBuffer.js +0 -3
- package/node_modules/underscore/modules/isBoolean.js +0 -6
- package/node_modules/underscore/modules/isDataView.js +0 -14
- package/node_modules/underscore/modules/isDate.js +0 -3
- package/node_modules/underscore/modules/isElement.js +0 -4
- package/node_modules/underscore/modules/isEmpty.js +0 -18
- package/node_modules/underscore/modules/isEqual.js +0 -138
- package/node_modules/underscore/modules/isError.js +0 -3
- package/node_modules/underscore/modules/isFinite.js +0 -7
- package/node_modules/underscore/modules/isFunction.js +0 -15
- package/node_modules/underscore/modules/isMap.js +0 -5
- package/node_modules/underscore/modules/isMatch.js +0 -13
- package/node_modules/underscore/modules/isNaN.js +0 -7
- package/node_modules/underscore/modules/isNull.js +0 -4
- package/node_modules/underscore/modules/isNumber.js +0 -3
- package/node_modules/underscore/modules/isObject.js +0 -5
- package/node_modules/underscore/modules/isRegExp.js +0 -3
- package/node_modules/underscore/modules/isSet.js +0 -5
- package/node_modules/underscore/modules/isString.js +0 -3
- package/node_modules/underscore/modules/isSymbol.js +0 -3
- package/node_modules/underscore/modules/isTypedArray.js +0 -15
- package/node_modules/underscore/modules/isUndefined.js +0 -4
- package/node_modules/underscore/modules/isWeakMap.js +0 -5
- package/node_modules/underscore/modules/isWeakSet.js +0 -3
- package/node_modules/underscore/modules/iteratee.js +0 -10
- package/node_modules/underscore/modules/keys.js +0 -16
- package/node_modules/underscore/modules/last.js +0 -9
- package/node_modules/underscore/modules/lastIndexOf.js +0 -6
- package/node_modules/underscore/modules/map.js +0 -16
- package/node_modules/underscore/modules/mapObject.js +0 -16
- package/node_modules/underscore/modules/matcher.js +0 -11
- package/node_modules/underscore/modules/max.js +0 -29
- package/node_modules/underscore/modules/memoize.js +0 -13
- package/node_modules/underscore/modules/min.js +0 -29
- package/node_modules/underscore/modules/mixin.js +0 -18
- package/node_modules/underscore/modules/negate.js +0 -6
- package/node_modules/underscore/modules/noop.js +0 -2
- package/node_modules/underscore/modules/now.js +0 -4
- package/node_modules/underscore/modules/object.js +0 -16
- package/node_modules/underscore/modules/omit.js +0 -22
- package/node_modules/underscore/modules/once.js +0 -6
- package/node_modules/underscore/modules/pairs.js +0 -13
- package/node_modules/underscore/modules/partial.js +0 -24
- package/node_modules/underscore/modules/partition.js +0 -7
- package/node_modules/underscore/modules/pick.js +0 -26
- package/node_modules/underscore/modules/pluck.js +0 -7
- package/node_modules/underscore/modules/property.js +0 -11
- package/node_modules/underscore/modules/propertyOf.js +0 -10
- package/node_modules/underscore/modules/random.js +0 -8
- package/node_modules/underscore/modules/range.js +0 -21
- package/node_modules/underscore/modules/reduce.js +0 -5
- package/node_modules/underscore/modules/reduceRight.js +0 -4
- package/node_modules/underscore/modules/reject.js +0 -8
- package/node_modules/underscore/modules/rest.js +0 -8
- package/node_modules/underscore/modules/restArguments.js +0 -27
- package/node_modules/underscore/modules/result.js +0 -22
- package/node_modules/underscore/modules/sample.js +0 -27
- package/node_modules/underscore/modules/shuffle.js +0 -6
- package/node_modules/underscore/modules/size.js +0 -8
- package/node_modules/underscore/modules/some.js +0 -15
- package/node_modules/underscore/modules/sortBy.js +0 -24
- package/node_modules/underscore/modules/sortedIndex.js +0 -15
- package/node_modules/underscore/modules/tap.js +0 -7
- package/node_modules/underscore/modules/template.js +0 -93
- package/node_modules/underscore/modules/templateSettings.js +0 -9
- package/node_modules/underscore/modules/throttle.js +0 -47
- package/node_modules/underscore/modules/times.js +0 -9
- package/node_modules/underscore/modules/toArray.js +0 -20
- package/node_modules/underscore/modules/toPath.js +0 -9
- package/node_modules/underscore/modules/underscore-array-methods.js +0 -31
- package/node_modules/underscore/modules/underscore.js +0 -25
- package/node_modules/underscore/modules/unescape.js +0 -5
- package/node_modules/underscore/modules/union.js +0 -9
- package/node_modules/underscore/modules/uniq.js +0 -36
- package/node_modules/underscore/modules/uniqueId.js +0 -7
- package/node_modules/underscore/modules/unzip.js +0 -15
- package/node_modules/underscore/modules/values.js +0 -12
- package/node_modules/underscore/modules/where.js +0 -8
- package/node_modules/underscore/modules/without.js +0 -7
- package/node_modules/underscore/modules/wrap.js +0 -8
- package/node_modules/underscore/modules/zip.js +0 -6
- package/node_modules/underscore/package.json +0 -108
- package/node_modules/underscore/underscore-esm-min.js +0 -5
- package/node_modules/underscore/underscore-esm-min.js.map +0 -1
- package/node_modules/underscore/underscore-esm.js +0 -2026
- package/node_modules/underscore/underscore-esm.js.map +0 -1
- package/node_modules/underscore/underscore-min.js +0 -6
- package/node_modules/underscore/underscore.js +0 -2034
- package/node_modules/underscore/underscore.js.map +0 -1
- package/node_modules/xhr2/CONTRIBUTING.md +0 -33
- package/node_modules/xhr2/Cakefile +0 -131
- package/node_modules/xhr2/LICENSE.txt +0 -19
- package/node_modules/xhr2/lib/browser.js +0 -1
- package/node_modules/xhr2/lib/xhr2.js +0 -1244
- package/node_modules/xhr2/package.json +0 -93
- package/node_modules/xhr2/src/001-xml_http_request.coffee +0 -782
- package/node_modules/xhr2/src/errors.coffee +0 -31
- package/node_modules/xhr2/src/progress_event.coffee +0 -39
- package/node_modules/xhr2/test/fixtures/hello.json +0 -1
- package/node_modules/xhr2/test/fixtures/hello.txt +0 -1
- package/node_modules/xhr2/test/fixtures/xhr2.png +0 -0
- package/node_modules/xhr2/test/html/browser_test.html +0 -30
- package/node_modules/xhr2/test/src/event_target_test.coffee +0 -85
- package/node_modules/xhr2/test/src/events_test.coffee +0 -204
- package/node_modules/xhr2/test/src/headers_test.coffee +0 -165
- package/node_modules/xhr2/test/src/helpers/browser_mocha_setup.coffee +0 -1
- package/node_modules/xhr2/test/src/helpers/setup.coffee +0 -38
- package/node_modules/xhr2/test/src/helpers/xhr_server.coffee +0 -156
- package/node_modules/xhr2/test/src/nodejs_set_test.coffee +0 -162
- package/node_modules/xhr2/test/src/redirect_test.coffee +0 -57
- package/node_modules/xhr2/test/src/response_type_test.coffee +0 -88
- package/node_modules/xhr2/test/src/send_test.coffee +0 -89
- package/node_modules/xhr2/test/src/status_test.coffee +0 -47
- package/node_modules/xhr2/test/src/xhr_test.coffee +0 -102
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pdftron/pdfnet-node",
|
|
3
|
-
"version": "10.6.0-
|
|
4
|
-
"main": "./lib/pdfnet.js",
|
|
5
|
-
"types": "./lib/types.d.ts",
|
|
6
|
-
"binary": {
|
|
7
|
-
"module_name": "pdfnet-addon",
|
|
8
|
-
"module_path": "./",
|
|
9
|
-
"remote_path": "./downloads/PDFNetNode/{version}",
|
|
10
|
-
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
|
|
11
|
-
"host": "https://www.pdftron.com"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"install": "node-pre-gyp install --fallback-to-build=false"
|
|
15
|
-
},
|
|
16
|
-
"engines" : { "node" : ">=8 <
|
|
17
|
-
"description": "This is the Apryse SDK packaged as a Node.js module.",
|
|
18
|
-
"author": "Apryse Software Inc.",
|
|
19
|
-
"license": "Commercial",
|
|
20
|
-
"homepage": "https://www.pdftron.com",
|
|
21
|
-
"bundledDependencies": [
|
|
22
|
-
"underscore",
|
|
23
|
-
"xhr2"
|
|
24
|
-
],
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@mapbox/node-pre-gyp": "^1.0.10"
|
|
27
|
-
},
|
|
28
|
-
"keywords": ["PDF", "Office", "SDK"]
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pdftron/pdfnet-node",
|
|
3
|
+
"version": "10.6.0-2",
|
|
4
|
+
"main": "./lib/pdfnet.js",
|
|
5
|
+
"types": "./lib/types.d.ts",
|
|
6
|
+
"binary": {
|
|
7
|
+
"module_name": "pdfnet-addon",
|
|
8
|
+
"module_path": "./",
|
|
9
|
+
"remote_path": "./downloads/PDFNetNode/{version}",
|
|
10
|
+
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
|
|
11
|
+
"host": "https://www.pdftron.com"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"install": "node-pre-gyp install --fallback-to-build=false"
|
|
15
|
+
},
|
|
16
|
+
"engines" : { "node" : ">=8 <20" },
|
|
17
|
+
"description": "This is the Apryse SDK packaged as a Node.js module.",
|
|
18
|
+
"author": "Apryse Software Inc.",
|
|
19
|
+
"license": "Commercial",
|
|
20
|
+
"homepage": "https://www.pdftron.com",
|
|
21
|
+
"bundledDependencies": [
|
|
22
|
+
"underscore",
|
|
23
|
+
"xhr2"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@mapbox/node-pre-gyp": "^1.0.10"
|
|
27
|
+
},
|
|
28
|
+
"keywords": ["PDF", "Office", "SDK"]
|
|
29
|
+
}
|
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,23 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2009-2020 Jeremy Ashkenas, DocumentCloud and Investigative
|
|
2
|
-
Reporters & Editors
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person
|
|
5
|
-
obtaining a copy of this software and associated documentation
|
|
6
|
-
files (the "Software"), to deal in the Software without
|
|
7
|
-
restriction, including without limitation the rights to use,
|
|
8
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the
|
|
10
|
-
Software is furnished to do so, subject to the following
|
|
11
|
-
conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
18
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
20
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
21
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
22
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
23
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
__
|
|
2
|
-
/\ \ __
|
|
3
|
-
__ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____
|
|
4
|
-
/\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\
|
|
5
|
-
\ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\
|
|
6
|
-
\ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
|
|
7
|
-
\/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/
|
|
8
|
-
\ \____/
|
|
9
|
-
\/___/
|
|
10
|
-
|
|
11
|
-
Underscore.js is a utility-belt library for JavaScript that provides
|
|
12
|
-
support for the usual functional suspects (each, map, reduce, filter...)
|
|
13
|
-
without extending any core JavaScript objects.
|
|
14
|
-
|
|
15
|
-
For Docs, License, Tests, and pre-packed downloads, see:
|
|
16
|
-
https://underscorejs.org
|
|
17
|
-
|
|
18
|
-
For support and questions, please use
|
|
19
|
-
[the gitter channel](https://gitter.im/jashkenas/underscore)
|
|
20
|
-
or [stackoverflow](https://stackoverflow.com/search?q=underscore.js)
|
|
21
|
-
|
|
22
|
-
Underscore is an open-sourced component of DocumentCloud:
|
|
23
|
-
https://github.com/documentcloud
|
|
24
|
-
|
|
25
|
-
Many thanks to our contributors:
|
|
26
|
-
https://github.com/jashkenas/underscore/contributors
|
|
27
|
-
|
|
28
|
-
This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
define(function () {
|
|
2
|
-
|
|
3
|
-
// Internal helper that wraps an `iteratee` to call it with the
|
|
4
|
-
// property of a closed-over `object`. Useful when iterating over
|
|
5
|
-
// an array of keys of `object`.
|
|
6
|
-
function applyProperty(iteratee, object) {
|
|
7
|
-
return function(key) {
|
|
8
|
-
return iteratee(object[key], key, object);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return applyProperty;
|
|
13
|
-
|
|
14
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
define(['exports', './pop', './push', './reverse', './shift', './sort', './splice', './unshift'], function (exports, pop, push, reverse, shift, sort, splice, unshift) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.pop = pop;
|
|
6
|
-
exports.push = push;
|
|
7
|
-
exports.reverse = reverse;
|
|
8
|
-
exports.shift = shift;
|
|
9
|
-
exports.sort = sort;
|
|
10
|
-
exports.splice = splice;
|
|
11
|
-
exports.unshift = unshift;
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
|
-
|
|
15
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
define(['./isObject', './_setup'], function (isObject, _setup) {
|
|
2
|
-
|
|
3
|
-
// Create a naked function reference for surrogate-prototype-swapping.
|
|
4
|
-
function ctor() {
|
|
5
|
-
return function(){};
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// An internal function for creating a new object that inherits from another.
|
|
9
|
-
function baseCreate(prototype) {
|
|
10
|
-
if (!isObject(prototype)) return {};
|
|
11
|
-
if (_setup.nativeCreate) return _setup.nativeCreate(prototype);
|
|
12
|
-
var Ctor = ctor();
|
|
13
|
-
Ctor.prototype = prototype;
|
|
14
|
-
var result = new Ctor;
|
|
15
|
-
Ctor.prototype = null;
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return baseCreate;
|
|
20
|
-
|
|
21
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
define(['./isObject', './identity', './isFunction', './isArray', './matcher', './property', './_optimizeCb'], function (isObject, identity, isFunction, isArray, matcher, property, _optimizeCb) {
|
|
2
|
-
|
|
3
|
-
// An internal function to generate callbacks that can be applied to each
|
|
4
|
-
// element in a collection, returning the desired result — either `_.identity`,
|
|
5
|
-
// an arbitrary callback, a property matcher, or a property accessor.
|
|
6
|
-
function baseIteratee(value, context, argCount) {
|
|
7
|
-
if (value == null) return identity;
|
|
8
|
-
if (isFunction(value)) return _optimizeCb(value, context, argCount);
|
|
9
|
-
if (isObject(value) && !isArray(value)) return matcher(value);
|
|
10
|
-
return property(value);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return baseIteratee;
|
|
14
|
-
|
|
15
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(['./_getLength'], function (_getLength) {
|
|
2
|
-
|
|
3
|
-
// Iteratively cut `array` in half to figure out the index at which `obj` should
|
|
4
|
-
// be inserted so as to maintain the order defined by `compare`.
|
|
5
|
-
function binarySearch(array, obj, iteratee, compare) {
|
|
6
|
-
var value = iteratee(obj);
|
|
7
|
-
var low = 0, high = _getLength(array);
|
|
8
|
-
while (low < high) {
|
|
9
|
-
var mid = Math.floor((low + high) / 2);
|
|
10
|
-
if (compare(iteratee(array[mid]), value)) low = mid + 1; else high = mid;
|
|
11
|
-
}
|
|
12
|
-
return low;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return binarySearch;
|
|
16
|
-
|
|
17
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
define(function () {
|
|
2
|
-
|
|
3
|
-
// Internal function that returns a bound version of the passed-in callback, to
|
|
4
|
-
// be repeatedly applied in other Underscore functions.
|
|
5
|
-
function bindCb(func, context) {
|
|
6
|
-
if (context === void 0) return func;
|
|
7
|
-
return function() {
|
|
8
|
-
return func.apply(context, arguments);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return bindCb;
|
|
13
|
-
|
|
14
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(function () {
|
|
2
|
-
|
|
3
|
-
// In Firefox, `Function.prototype.call` is faster than
|
|
4
|
-
// `Function.prototype.apply`. In the optimized variant of
|
|
5
|
-
// `bindCb` below, we exploit the fact that no Underscore
|
|
6
|
-
// function passes more than four arguments to a callback.
|
|
7
|
-
// **NOT general enough for use outside of Underscore.**
|
|
8
|
-
function bindCb4(func, context) {
|
|
9
|
-
if (context === void 0) return func;
|
|
10
|
-
return function(a1, a2, a3, a4) {
|
|
11
|
-
return func.call(context, a1, a2, a3, a4);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return bindCb4;
|
|
16
|
-
|
|
17
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
define(['./underscore', './_baseIteratee', './iteratee'], function (underscore, _baseIteratee, iteratee) {
|
|
2
|
-
|
|
3
|
-
// The function we call internally to generate a callback. It invokes
|
|
4
|
-
// `_.iteratee` if overridden, otherwise `baseIteratee`.
|
|
5
|
-
function cb(value, context, argCount) {
|
|
6
|
-
if (underscore.iteratee !== iteratee) return underscore.iteratee(value, context);
|
|
7
|
-
return _baseIteratee(value, context, argCount);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return cb;
|
|
11
|
-
|
|
12
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
define(['./_setup', './isFunction', './_has'], function (_setup, isFunction, _has) {
|
|
2
|
-
|
|
3
|
-
// Internal helper to create a simple lookup structure.
|
|
4
|
-
// `collectNonEnumProps` used to depend on `_.contains`, but this led to
|
|
5
|
-
// circular imports. `emulatedSet` is a one-off solution that only works for
|
|
6
|
-
// arrays of strings.
|
|
7
|
-
function emulatedSet(keys) {
|
|
8
|
-
var hash = {};
|
|
9
|
-
for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
|
|
10
|
-
return {
|
|
11
|
-
contains: function(key) { return hash[key]; },
|
|
12
|
-
push: function(key) {
|
|
13
|
-
hash[key] = true;
|
|
14
|
-
return keys.push(key);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't
|
|
20
|
-
// be iterated by `for key in ...` and thus missed. Extends `keys` in place if
|
|
21
|
-
// needed.
|
|
22
|
-
function collectNonEnumProps(obj, keys) {
|
|
23
|
-
keys = emulatedSet(keys);
|
|
24
|
-
var nonEnumIdx = _setup.nonEnumerableProps.length;
|
|
25
|
-
var constructor = obj.constructor;
|
|
26
|
-
var proto = isFunction(constructor) && constructor.prototype || _setup.ObjProto;
|
|
27
|
-
|
|
28
|
-
// Constructor is a special case.
|
|
29
|
-
var prop = 'constructor';
|
|
30
|
-
if (_has(obj, prop) && !keys.contains(prop)) keys.push(prop);
|
|
31
|
-
|
|
32
|
-
while (nonEnumIdx--) {
|
|
33
|
-
prop = _setup.nonEnumerableProps[nonEnumIdx];
|
|
34
|
-
if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {
|
|
35
|
-
keys.push(prop);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return collectNonEnumProps;
|
|
41
|
-
|
|
42
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
define(function () {
|
|
2
|
-
|
|
3
|
-
// An internal function for creating assigner functions.
|
|
4
|
-
function createAssigner(keysFunc, defaults) {
|
|
5
|
-
return function(obj) {
|
|
6
|
-
var length = arguments.length;
|
|
7
|
-
if (defaults) obj = Object(obj);
|
|
8
|
-
if (length < 2 || obj == null) return obj;
|
|
9
|
-
for (var index = 1; index < length; index++) {
|
|
10
|
-
var source = arguments[index],
|
|
11
|
-
keys = keysFunc(source),
|
|
12
|
-
l = keys.length;
|
|
13
|
-
for (var i = 0; i < l; i++) {
|
|
14
|
-
var key = keys[i];
|
|
15
|
-
if (!defaults || obj[key] === void 0) obj[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return obj;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return createAssigner;
|
|
23
|
-
|
|
24
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
define(['./keys'], function (keys) {
|
|
2
|
-
|
|
3
|
-
// Internal helper to generate functions for escaping and unescaping strings
|
|
4
|
-
// to/from HTML interpolation.
|
|
5
|
-
function createEscaper(map) {
|
|
6
|
-
var escaper = function(match) {
|
|
7
|
-
return map[match];
|
|
8
|
-
};
|
|
9
|
-
// Regexes for identifying a key that needs to be escaped.
|
|
10
|
-
var source = '(?:' + keys(map).join('|') + ')';
|
|
11
|
-
var testRegexp = RegExp(source);
|
|
12
|
-
var replaceRegexp = RegExp(source, 'g');
|
|
13
|
-
return function(string) {
|
|
14
|
-
string = string == null ? '' : '' + string;
|
|
15
|
-
return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return createEscaper;
|
|
20
|
-
|
|
21
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
define(['./_setup', './_getLength', './isNaN'], function (_setup, _getLength, _isNaN) {
|
|
2
|
-
|
|
3
|
-
// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.
|
|
4
|
-
function createIndexFinder(dir, predicateFind, sortedIndex) {
|
|
5
|
-
return function(array, item, idx) {
|
|
6
|
-
var i = 0, length = _getLength(array);
|
|
7
|
-
if (typeof idx == 'number') {
|
|
8
|
-
if (dir > 0) {
|
|
9
|
-
i = idx >= 0 ? idx : Math.max(idx + length, i);
|
|
10
|
-
} else {
|
|
11
|
-
length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
|
|
12
|
-
}
|
|
13
|
-
} else if (sortedIndex && idx && length) {
|
|
14
|
-
idx = sortedIndex(array, item);
|
|
15
|
-
return array[idx] === item ? idx : -1;
|
|
16
|
-
}
|
|
17
|
-
if (item !== item) {
|
|
18
|
-
idx = predicateFind(_setup.slice.call(array, i, length), _isNaN);
|
|
19
|
-
return idx >= 0 ? idx + i : -1;
|
|
20
|
-
}
|
|
21
|
-
for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
|
|
22
|
-
if (array[idx] === item) return idx;
|
|
23
|
-
}
|
|
24
|
-
return -1;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return createIndexFinder;
|
|
29
|
-
|
|
30
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
define(['./_cb', './_getLength'], function (_cb, _getLength) {
|
|
2
|
-
|
|
3
|
-
// Internal function to generate `_.findIndex` and `_.findLastIndex`.
|
|
4
|
-
function createPredicateIndexFinder(dir) {
|
|
5
|
-
return function(array, predicate, context) {
|
|
6
|
-
predicate = _cb(predicate, context);
|
|
7
|
-
var length = _getLength(array);
|
|
8
|
-
var index = dir > 0 ? 0 : length - 1;
|
|
9
|
-
for (; index >= 0 && index < length; index += dir) {
|
|
10
|
-
if (predicate(array[index], index, array)) return index;
|
|
11
|
-
}
|
|
12
|
-
return -1;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return createPredicateIndexFinder;
|
|
17
|
-
|
|
18
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
define(['./keys', './_optimizeCb', './_isArrayLike'], function (keys, _optimizeCb, _isArrayLike) {
|
|
2
|
-
|
|
3
|
-
// Internal helper to create a reducing function, iterating left or right.
|
|
4
|
-
function createReduce(dir) {
|
|
5
|
-
// Wrap code that reassigns argument variables in a separate function than
|
|
6
|
-
// the one that accesses `arguments.length` to avoid a perf hit. (#1991)
|
|
7
|
-
var reducer = function(obj, iteratee, memo, initial) {
|
|
8
|
-
var _keys = !_isArrayLike(obj) && keys(obj),
|
|
9
|
-
length = (_keys || obj).length,
|
|
10
|
-
index = dir > 0 ? 0 : length - 1;
|
|
11
|
-
if (!initial) {
|
|
12
|
-
memo = obj[_keys ? _keys[index] : index];
|
|
13
|
-
index += dir;
|
|
14
|
-
}
|
|
15
|
-
for (; index >= 0 && index < length; index += dir) {
|
|
16
|
-
var currentKey = _keys ? _keys[index] : index;
|
|
17
|
-
memo = iteratee(memo, obj[currentKey], currentKey, obj);
|
|
18
|
-
}
|
|
19
|
-
return memo;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return function(obj, iteratee, memo, context) {
|
|
23
|
-
var initial = arguments.length >= 3;
|
|
24
|
-
return reducer(obj, _optimizeCb(iteratee, context, 4), memo, initial);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return createReduce;
|
|
29
|
-
|
|
30
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
define(['./_setup'], function (_setup) {
|
|
2
|
-
|
|
3
|
-
// Common internal logic for `isArrayLike` and `isBufferLike`.
|
|
4
|
-
function createSizePropertyCheck(getSizeProperty) {
|
|
5
|
-
return function(collection) {
|
|
6
|
-
var sizeProperty = getSizeProperty(collection);
|
|
7
|
-
return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= _setup.MAX_ARRAY_INDEX;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return createSizePropertyCheck;
|
|
12
|
-
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
define(function () {
|
|
2
|
-
|
|
3
|
-
// Internal function to obtain a nested property in `obj` along `path`.
|
|
4
|
-
function deepGet(obj, path) {
|
|
5
|
-
var length = path.length;
|
|
6
|
-
for (var i = 0; i < length; i++) {
|
|
7
|
-
if (obj == null) return void 0;
|
|
8
|
-
obj = obj[path[i]];
|
|
9
|
-
}
|
|
10
|
-
return length ? obj : void 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return deepGet;
|
|
14
|
-
|
|
15
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
define(['./isObject', './_baseCreate'], function (isObject, _baseCreate) {
|
|
2
|
-
|
|
3
|
-
// Internal function to execute `sourceFunc` bound to `context` with optional
|
|
4
|
-
// `args`. Determines whether to execute a function as a constructor or as a
|
|
5
|
-
// normal function.
|
|
6
|
-
function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
|
|
7
|
-
if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
|
|
8
|
-
var self = _baseCreate(sourceFunc.prototype);
|
|
9
|
-
var result = sourceFunc.apply(self, args);
|
|
10
|
-
if (isObject(result)) return result;
|
|
11
|
-
return self;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return executeBound;
|
|
15
|
-
|
|
16
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
define(['./identity', './_cb', './find'], function (identity, _cb, find) {
|
|
2
|
-
|
|
3
|
-
// The general algorithm behind `_.min` and `_.max`. `compare` should return
|
|
4
|
-
// `true` if its first argument is more extreme than (i.e., should be preferred
|
|
5
|
-
// over) its second argument, `false` otherwise. `iteratee` and `context`, like
|
|
6
|
-
// in other collection functions, let you map the actual values in `collection`
|
|
7
|
-
// to the values to `compare`. `decide` is an optional customization point
|
|
8
|
-
// which is only present for historical reasons; please don't use it, as it will
|
|
9
|
-
// likely be removed in the future.
|
|
10
|
-
function extremum(collection, compare, iteratee, context, decide) {
|
|
11
|
-
decide || (decide = identity);
|
|
12
|
-
// `extremum` is essentially a combined map+reduce with **two** accumulators:
|
|
13
|
-
// `result` and `iterResult`, respectively the unmapped and the mapped version
|
|
14
|
-
// corresponding to the same element.
|
|
15
|
-
var result, iterResult;
|
|
16
|
-
iteratee = _cb(iteratee, context);
|
|
17
|
-
var first = true;
|
|
18
|
-
find(collection, function(value, key) {
|
|
19
|
-
var iterValue = iteratee(value, key, collection);
|
|
20
|
-
if (first || compare(iterValue, iterResult)) {
|
|
21
|
-
result = value;
|
|
22
|
-
iterResult = iterValue;
|
|
23
|
-
first = false;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
// `extremum` normally returns an unmapped element from `collection`. However,
|
|
27
|
-
// `_.min` and `_.max` forcibly return a number even if there is no element
|
|
28
|
-
// that maps to a numeric value. Passing both accumulators through `decide`
|
|
29
|
-
// before returning enables this behavior.
|
|
30
|
-
return decide(result, iterResult);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return extremum;
|
|
34
|
-
|
|
35
|
-
});
|