schnee effeckt und fehler Korektur
This commit is contained in:
16
node_modules/es5-ext/.editorconfig
generated
vendored
16
node_modules/es5-ext/.editorconfig
generated
vendored
@@ -1,16 +0,0 @@
|
||||
# EditorConfig is awesome: http://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = tab
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
trim_trailing_whitespace = false
|
||||
1
node_modules/es5-ext/.github/FUNDING.yml
generated
vendored
1
node_modules/es5-ext/.github/FUNDING.yml
generated
vendored
@@ -1 +0,0 @@
|
||||
tidelift: "npm/es5-ext"
|
||||
64
node_modules/es5-ext/CHANGELOG.md
generated
vendored
64
node_modules/es5-ext/CHANGELOG.md
generated
vendored
@@ -2,8 +2,72 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
### [0.10.62](https://github.com/medikoo/es5-ext/compare/v0.10.61...v0.10.62) (2022-08-02)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- **Manifest improvements:**
|
||||
- ([#190](https://github.com/medikoo/es5-ext/issues/190)) ([b8dc53f](https://github.com/medikoo/es5-ext/commit/b8dc53fa439b98541644c64c1275f25d9f2e2235))
|
||||
- ([c51d552](https://github.com/medikoo/es5-ext/commit/c51d552c03967858b8f14a4afa305338ba648cce))
|
||||
|
||||
### [0.10.61](https://github.com/medikoo/es5-ext/compare/v0.10.60...v0.10.61) (2022-04-20)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Ensure postinstall script does not error ([a0be4fd](https://github.com/medikoo/es5-ext/commit/a0be4fdacdbc3aefd6f2952b7b9215827d362bbb))
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Bump dependencies ([d7e0a61](https://github.com/medikoo/es5-ext/commit/d7e0a612b7d895c1c7238c779feae1e39d4634c4))
|
||||
|
||||
### [0.10.60](https://github.com/medikoo/es5-ext/compare/v0.10.59...v0.10.60) (2022-04-07)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Improve `postinstall` script configuration ([ab6b121](https://github.com/medikoo/es5-ext/commit/ab6b121f0ca4f033bba9b6f400b24d07869bd716))
|
||||
|
||||
### [0.10.59](https://github.com/medikoo/es5-ext/compare/v0.10.58...v0.10.59) (2022-03-17)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Improve manifest wording ([#122](https://github.com/medikoo/es5-ext/issues/122)) ([eb7ae59](https://github.com/medikoo/es5-ext/commit/eb7ae59966774a8c26f1717415c627d90bb3d954))
|
||||
- Update data in manifest ([3d2935a](https://github.com/medikoo/es5-ext/commit/3d2935ac6f1a0969c7569840d5b3bdeed6940e56))
|
||||
|
||||
### [0.10.58](https://github.com/medikoo/es5-ext/compare/v0.10.57...v0.10.58) (2022-03-11)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Improve "call for peace" manifest ([3beace4](https://github.com/medikoo/es5-ext/commit/3beace4b3d00f02da61b72dd328f90cf069d46de))
|
||||
|
||||
### [0.10.57](https://github.com/medikoo/es5-ext/compare/v0.10.56...v0.10.57) (2022-03-08)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Workaround `postinstall` script prevent npx error ([#110](https://github.com/medikoo/es5-ext/issues/110)) ([e212d5a](https://github.com/medikoo/es5-ext/commit/e212d5a0adf186f1fadf85fdc07aab25085ee097)) ([martindrq](https://github.com/martindrq))
|
||||
|
||||
### [0.10.56](https://github.com/medikoo/es5-ext/compare/v0.10.55...v0.10.56) (2022-03-07)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Add missing shebang to postinstall script ([e423fd7](https://github.com/medikoo/es5-ext/commit/e423fd7264c4f145921e461037d571b35b6a9833))
|
||||
|
||||
### [0.10.55](https://github.com/medikoo/es5-ext/compare/v0.10.54...v0.10.55) (2022-03-07)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Configure `.npmignore` file (exclude tests from publication) ([d3ed4b6](https://github.com/medikoo/es5-ext/commit/d3ed4b6a873900a2abf3957bbebdcf18c4e564e0))
|
||||
|
||||
### [0.10.54](https://github.com/medikoo/es5-ext/compare/v0.10.53...v0.10.54) (2022-03-07)
|
||||
|
||||
### Maintenance Improvements
|
||||
|
||||
- Convert dependency ranges ([765eb8e](https://github.com/medikoo/es5-ext/commit/765eb8e897cabc76f0351443d84b4843a1187b27))
|
||||
- Give Peace a Chance ([28de285](https://github.com/medikoo/es5-ext/commit/28de285ed433b45113f01e4ce7c74e9a356b2af2))
|
||||
|
||||
### [0.10.53](https://github.com/medikoo/es5-ext/compare/v0.10.52...v0.10.53) (2019-11-21)
|
||||
|
||||
_Maintenance improvements_
|
||||
|
||||
### [0.10.52](https://github.com/medikoo/es5-ext/compare/v0.10.51...v0.10.52) (2019-10-29)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
650
node_modules/es5-ext/CHANGES
generated
vendored
650
node_modules/es5-ext/CHANGES
generated
vendored
@@ -1,650 +0,0 @@
|
||||
For recent changelog see CHANGELOG.md
|
||||
|
||||
-----
|
||||
|
||||
v0.10.15 -- 2017.03.20
|
||||
* Fix Object.isValue (it was actually isNotValue)
|
||||
|
||||
v0.10.14 -- 2017.03.15
|
||||
* Object.isValue util
|
||||
|
||||
v0.10.13 -- 2017.03.13
|
||||
* Introduce JSON.safeStringify
|
||||
* Improve message handling in error/custom
|
||||
* Fix Array#concat shim
|
||||
* Improve Array#flatten algorithm so it's stack trace friendly
|
||||
* Make Object.isObject ES3 compatible
|
||||
|
||||
v0.10.12 -- 2016.07.01
|
||||
* Ensure symbols are copied in Object.mixin
|
||||
* Prevent RangeError errors in array#flatten
|
||||
* Do not validate invalidate dates in validDate
|
||||
|
||||
v0.10.11 -- 2015.12.18
|
||||
* Ensure that check for implementation of RegExp flags doesn't crash in V8 (thanks @mathiasbynens)
|
||||
|
||||
v0.10.10 -- 2015.12.11
|
||||
* Add Object.isNumberValue util
|
||||
|
||||
v0.10.9 -- 2015.12.01
|
||||
* Add Object.ensureNaturalNumber and Object.ensureNaturalNumberValue
|
||||
|
||||
v0.10.8 -- 2015.10.02
|
||||
* Add Number.isNatural
|
||||
* Add Object.find and Object.findKey
|
||||
* Support arrays in Object.copyDeep
|
||||
* Fix iteration issue in forEachRight and someRight
|
||||
* Fix detection of native sinh
|
||||
* Depend on es6-symbol v3
|
||||
|
||||
v0.10.7 -- 2015.04.22
|
||||
* New utlitities. They're convention differs from v0.10, as they were supposed to land in v1.
|
||||
Still they're non breaking and start the conventions to be used in v1
|
||||
* Object.validateArrayLike
|
||||
* Object.validateArrayLikeObject
|
||||
* Object.validateStringifiable
|
||||
* Object.validateStringifiableValue
|
||||
* Universal utilities for array-like/iterable objects
|
||||
* Iterable.is
|
||||
* Iterable.validate
|
||||
* Iterable.validateObject
|
||||
* Iterable.forEach
|
||||
* Fix camelToHyphen resolution, it must be absolutely reversable by hyphenToCamel
|
||||
* Fix calculations of large numbers in Math.tanh
|
||||
* Fix algorithm of Math.sinh
|
||||
* Fix indexes to not use real symbols
|
||||
* Fix length of String.fromCodePoint
|
||||
* Fix tests of Array#copyWithin
|
||||
* Update Travis CI configuration
|
||||
|
||||
v0.10.6 -- 2015.02.02
|
||||
* Fix handling of infinite values in Math.trunc
|
||||
* Fix handling of getters in Object.normalizeOptions
|
||||
|
||||
v0.10.5 -- 2015.01.20
|
||||
* Add Function#toStringTokens
|
||||
* Add Object.serialize and Object.unserialize
|
||||
* Add String.randomUniq
|
||||
* Fix Strin#camelToHyphen issue with tokens that end with digit
|
||||
* Optimise Number.isInteger logic
|
||||
* Improve documentation
|
||||
* Configure lint scripts
|
||||
* Fix spelling of LICENSE
|
||||
|
||||
v0.10.4 -- 2014.04.30
|
||||
* Assure maximum spec compliance of Array.of and Array.from (thanks @mathiasbynens)
|
||||
* Improve documentations
|
||||
|
||||
v0.10.3 -- 2014.04.29
|
||||
Provide accurate iterators handling:
|
||||
* Array.from improvements:
|
||||
* Assure right unicode symbols resolution when processing strings in Array.from
|
||||
* Rely on ES6 symbol shim and use native @@iterator Symbol if provided by environment
|
||||
* Add methods:
|
||||
* Array.prototype.entries
|
||||
* Array.prototype.keys
|
||||
* Array.prototype.values
|
||||
* Array.prototype[@@iterator]
|
||||
* String.prototype[@@iterator]
|
||||
|
||||
Improve documentation
|
||||
|
||||
v0.10.2 -- 2014.04.24
|
||||
- Simplify and deprecate `isCallable`. It seems in ES5 based engines there are
|
||||
no callable objects which are `typeof obj !== 'function'`
|
||||
- Update Array.from map callback signature (up to latest resolution of TC39)
|
||||
- Improve documentation
|
||||
|
||||
v0.10.1 -- 2014.04.14
|
||||
Bump version for npm
|
||||
(Workaround for accidental premature publish & unpublish of v0.10.0 a while ago)
|
||||
|
||||
v0.10.0 -- 2014.04.13
|
||||
Major update:
|
||||
- All methods and function specified for ECMAScript 6 are now introduced as
|
||||
shims accompanied with functions through which (optionally) they can be
|
||||
implementend on native objects
|
||||
- Filename convention was changed to shorter and strictly lower case names. e.g.
|
||||
`lib/String/prototype/starts-with` became `string/#/starts-with`
|
||||
- Generated functions are guaranteed to have expected length
|
||||
- Objects with null prototype (created via `Object.create(null)`) are widely
|
||||
supported (older version have crashed due to implied `obj.hasOwnProperty` and
|
||||
related invocations)
|
||||
- Support array subclasses
|
||||
- When handling lists do not limit its length to Uint32 range
|
||||
- Use newly introduced `Object.eq` for strict equality in place of `Object.is`
|
||||
- Iteration of Object have been improved so properties that were hidden or
|
||||
removed after iteration started are not iterated.
|
||||
|
||||
Additions:
|
||||
- `Array.isPlainArray`
|
||||
- `Array.validArray`
|
||||
- `Array.prototype.concat` (as updated with ES6)
|
||||
- `Array.prototype.copyWithin` (as introduced with ES6)
|
||||
- `Array.prototype.fill` (as introduced with ES6)
|
||||
- `Array.prototype.filter` (as updated with ES6)
|
||||
- `Array.prototype.findIndex` (as introduced with ES6)
|
||||
- `Array.prototype.map` (as updated with ES6)
|
||||
- `Array.prototype.separate`
|
||||
- `Array.prototype.slice` (as updated with ES6)
|
||||
- `Array.prototype.splice` (as updated with ES6)
|
||||
- `Function.prototype.copy`
|
||||
- `Math.acosh` (as introduced with ES6)
|
||||
- `Math.atanh` (as introduced with ES6)
|
||||
- `Math.cbrt` (as introduced with ES6)
|
||||
- `Math.clz32` (as introduced with ES6)
|
||||
- `Math.cosh` (as introduced with ES6)
|
||||
- `Math.expm1` (as introduced with ES6)
|
||||
- `Math.fround` (as introduced with ES6)
|
||||
- `Math.hypot` (as introduced with ES6)
|
||||
- `Math.imul` (as introduced with ES6)
|
||||
- `Math.log2` (as introduced with ES6)
|
||||
- `Math.log10` (as introduced with ES6)
|
||||
- `Math.log1p` (as introduced with ES6)
|
||||
- `Math.sinh` (as introduced with ES6)
|
||||
- `Math.tanh` (as introduced with ES6)
|
||||
- `Math.trunc` (as introduced with ES6)
|
||||
- `Number.EPSILON` (as introduced with ES6)
|
||||
- `Number.MIN_SAFE_INTEGER` (as introduced with ES6)
|
||||
- `Number.MAX_SAFE_INTEGER` (as introduced with ES6)
|
||||
- `Number.isFinite` (as introduced with ES6)
|
||||
- `Number.isInteger` (as introduced with ES6)
|
||||
- `Number.isSafeInteger` (as introduced with ES6)
|
||||
- `Object.create` (with fix for V8 issue which disallows prototype turn of
|
||||
objects derived from null
|
||||
- `Object.eq` - Less restrictive version of `Object.is` based on SameValueZero
|
||||
algorithm
|
||||
- `Object.firstKey`
|
||||
- `Object.keys` (as updated with ES6)
|
||||
- `Object.mixinPrototypes`
|
||||
- `Object.primitiveSet`
|
||||
- `Object.setPrototypeOf` (as introduced with ES6)
|
||||
- `Object.validObject`
|
||||
- `RegExp.escape`
|
||||
- `RegExp.prototype.match` (as introduced with ES6)
|
||||
- `RegExp.prototype.replace` (as introduced with ES6)
|
||||
- `RegExp.prototype.search` (as introduced with ES6)
|
||||
- `RegExp.prototype.split` (as introduced with ES6)
|
||||
- `RegExp.prototype.sticky` (as introduced with ES6)
|
||||
- `RegExp.prototype.unicode` (as introduced with ES6)
|
||||
- `String.fromCodePoint` (as introduced with ES6)
|
||||
- `String.raw` (as introduced with ES6)
|
||||
- `String.prototype.at`
|
||||
- `String.prototype.codePointAt` (as introduced with ES6)
|
||||
- `String.prototype.normalize` (as introduced with ES6)
|
||||
- `String.prototype.plainReplaceAll`
|
||||
|
||||
Removals:
|
||||
- `reserved` set
|
||||
- `Array.prototype.commonLeft`
|
||||
- `Function.insert`
|
||||
- `Function.remove`
|
||||
- `Function.prototype.silent`
|
||||
- `Function.prototype.wrap`
|
||||
- `Object.descriptor` Move to external `d` project.
|
||||
See: https://github.com/medikoo/d
|
||||
- `Object.diff`
|
||||
- `Object.extendDeep`
|
||||
- `Object.reduce`
|
||||
- `Object.values`
|
||||
- `String.prototype.trimCommonLeft`
|
||||
|
||||
Renames:
|
||||
- `Function.i` into `Function.identity`
|
||||
- `Function.k` into `Function.constant`
|
||||
- `Number.toInt` into `Number.toInteger`
|
||||
- `Number.toUint` into `Number.toPosInteger`
|
||||
- `Object.extend` into `Object.assign` (as introduced in ES 6)
|
||||
- `Object.extendProperties` into `Object.mixin`, with improved internal
|
||||
handling, so it matches temporarily specified `Object.mixin` for ECMAScript 6
|
||||
- `Object.isList` into `Object.isArrayLike`
|
||||
- `Object.mapToArray` into `Object.toArray` (with fixed function length)
|
||||
- `Object.toPlainObject` into `Object.normalizeOptions` (as this is the real
|
||||
use case where we use this function)
|
||||
- `Function.prototype.chain` into `Function.prototype.compose`
|
||||
- `Function.prototype.match` into `Function.prototype.spread`
|
||||
- `String.prototype.format` into `String.formatMethod`
|
||||
|
||||
Improvements & Fixes:
|
||||
- Remove workaround for primitive values handling in object iterators
|
||||
- `Array.from`: Update so it follows ES 6 spec
|
||||
- `Array.prototype.compact`: filters just null and undefined values
|
||||
(not all falsies)
|
||||
- `Array.prototype.eIndexOf` and `Array.prototype.eLastIndexOf`: fix position
|
||||
handling, improve internals
|
||||
- `Array.prototype.find`: return undefined not null, in case of not found
|
||||
(follow ES 6)
|
||||
- `Array.prototype.remove` fix function length
|
||||
- `Error.custom`: simplify, Custom class case is addressed by outer
|
||||
`error-create` project -> https://github.com/medikoo/error-create
|
||||
- `Error.isError` true only for Error instances (remove detection of host
|
||||
Exception objects)
|
||||
- `Number.prototype.pad`: Normalize negative pad
|
||||
- `Object.clear`: Handle errors same way as in `Object.assign`
|
||||
- `Object.compact`: filters just null and undefined values (not all falsies)
|
||||
- `Object.compare`: Take into account NaN values
|
||||
- `Object.copy`: Split into `Object.copy` and `Object.copyDeep`
|
||||
- `Object.isCopy`: Separate into `Object.isCopy` and `Object.isCopyDeep`, where
|
||||
`isCopyDeep` handles nested plain objects and plain arrays only
|
||||
- `String.prototype.endsWith`: Adjust up to ES6 specification
|
||||
- `String.prototype.repeat`: Adjust up to ES6 specification and improve algorithm
|
||||
- `String.prototype.simpleReplace`: Rename into `String.prototype.plainReplace`
|
||||
- `String.prototype.startsWith`: Adjust up to ES6 specification
|
||||
- Update lint rules, and adjust code to that
|
||||
- Update Travis CI configuration
|
||||
- Remove Makefile (it's cross-env utility)
|
||||
|
||||
v0.9.2 -- 2013.03.11
|
||||
Added:
|
||||
* Array.prototype.isCopy
|
||||
* Array.prototype.isUniq
|
||||
* Error.CustomError
|
||||
* Function.validFunction
|
||||
* Object.extendDeep
|
||||
* Object.descriptor.binder
|
||||
* Object.safeTraverse
|
||||
* RegExp.validRegExp
|
||||
* String.prototype.capitalize
|
||||
* String.prototype.simpleReplace
|
||||
|
||||
Fixed:
|
||||
* Fix Array.prototype.diff for sparse arrays
|
||||
* Accept primitive objects as input values in Object iteration methods and
|
||||
Object.clear, Object.count, Object.diff, Object.extend,
|
||||
Object.getPropertyNames, Object.values
|
||||
* Pass expected arguments to callbacks of Object.filter, Object.mapKeys,
|
||||
Object.mapToArray, Object.map
|
||||
* Improve callable callback support in Object.mapToArray
|
||||
|
||||
v0.9.1 -- 2012.09.17
|
||||
* Object.reduce - reduce for hash-like collections
|
||||
* Accapt any callable object as callback in Object.filter, mapKeys and map
|
||||
* Convention cleanup
|
||||
|
||||
v0.9.0 -- 2012.09.13
|
||||
We're getting to real solid API
|
||||
|
||||
Removed:
|
||||
* Function#memoize - it's grown up to be external package, to be soon published
|
||||
as 'memoizee'
|
||||
* String.guid - it doesn't fit es5-ext (extensions) concept, will be provided as
|
||||
external package
|
||||
# Function.arguments - obsolete
|
||||
# Function.context - obsolete
|
||||
# Function#flip - not readable when used, so it was never used
|
||||
# Object.clone - obsolete and confusing
|
||||
|
||||
Added:
|
||||
* String#camelToHyphen - String format convertion
|
||||
|
||||
Renamed:
|
||||
* String#dashToCamelCase -> String#hyphenToCamel
|
||||
|
||||
Fixes:
|
||||
* Object.isObject - Quote names in literals that match reserved keywords
|
||||
(older implementations crashed on that)
|
||||
* String#repeat - Do not accept negative values (coerce them to 1)
|
||||
|
||||
Improvements:
|
||||
* Array#remove - Accepts many arguments, we can now remove many values at once
|
||||
* Object iterators (forEach, map, some) - Compare function invoked with scope
|
||||
object bound to this
|
||||
* Function#curry - Algorithm cleanup
|
||||
* Object.isCopy - Support for all types, not just plain objects
|
||||
* Object.isPlainObject - Support for cross-frame objects
|
||||
* Do not memoize any of the functions, it shouldn't be decided internally
|
||||
* Remove Object.freeze calls in reserved, it's not up to convention
|
||||
* Improved documentation
|
||||
* Better linting (hard-core approach using both JSLint mod and JSHint)
|
||||
* Optional arguments are now documented in funtions signature
|
||||
|
||||
v0.8.2 -- 2012.06.22
|
||||
Fix errors in Array's intersection and exclusion methods, related to improper
|
||||
usage of contains method
|
||||
|
||||
v0.8.1 -- 2012.06.13
|
||||
Reorganized internal logic of Function.prototype.memoize. So it's more safe now
|
||||
and clears cache properly. Additionally preventCache option was provided.
|
||||
|
||||
v0.8.0 -- 2012.05.28
|
||||
Again, major overhaul. Probably last experimental stuff was trashed, all API
|
||||
looks more like standard extensions now.
|
||||
|
||||
Changes:
|
||||
* Turn all Object.prototype extensions into functions and move them to Object
|
||||
namespace. We learned that extending Object.prototype is bad idea in any case.
|
||||
* Rename Function.prototype.curry into Function.prototype.partial. This function
|
||||
is really doing partial application while currying is slightly different
|
||||
concept.
|
||||
* Convert Function.prototype.ncurry to new implementation of
|
||||
Function.prototype.curry, it now serves real curry concept additionaly it
|
||||
covers use cases for aritize and hold, which were removed.
|
||||
* Rename Array's peek to last, and provide support for sparse arrays in it
|
||||
* Rename Date's monthDaysCount into daysInMonth
|
||||
* Simplify object iterators, now order of iteration can be configured with just
|
||||
compareFn argument (no extra byKeys option)
|
||||
* Rename Object.isDuplicate to Object.isCopy
|
||||
* Rename Object.isEqual to Object.is which is compatible with future 'is'
|
||||
keyword
|
||||
* Function.memoize is now Function.prototype.memoize. Additionally clear cache
|
||||
functionality is added, and access to original arguments object.
|
||||
* Rename validation functions: assertNotNull to validValue, assertCallable to
|
||||
validCallable. validValue was moved to Object namespace. On success they now
|
||||
return validated value instead of true, it supports better composition.
|
||||
Additionally created Date.validDate and Error.validError
|
||||
* All documentation is now held in README.md not in code files.
|
||||
* Move guid to String namespace. All guids now start with numbers.
|
||||
* Array.generate: fill argument is now optional
|
||||
* Object.toArray is now Array.from (as new ES6 specification draft suggests)
|
||||
* All methods that rely on indexOf or lastIndexOf, now rely on egal (Object.is)
|
||||
versions of them (eIndexOf, eLastIndexOf)
|
||||
* Turn all get* functions that returned methods into actuall methods (get*
|
||||
functionality can still be achieved with help of Function.prototype.partial).
|
||||
So: Date.getFormat is now Date.prototype.format,
|
||||
Number.getPad is now Number.prototype.pad,
|
||||
String.getFormat is now String.prototype.format,
|
||||
String.getIndent is now String.prototype.indent,
|
||||
String.getPad is now String.prototype.pad
|
||||
* Refactored Object.descriptor, it is now just two functions, main one and
|
||||
main.gs, main is for describing values, and gs for describing getters and
|
||||
setters. Configuration is passed with first argument as string e.g. 'ce' for
|
||||
configurable and enumerable. If no configuration string is provided then by
|
||||
default it returns configurable and writable but not enumerable for value or
|
||||
configurable but not enumerable for getter/setter
|
||||
* Function.prototype.silent now returns prepared function (it was
|
||||
expected to be fixed for 0.7)
|
||||
* Reserved keywords map (reserved) is now array not hash.
|
||||
* Object.merge is now Object.extend (while former Object.extend was completely
|
||||
removed) - 'extend' implies that we change object, not creating new one (as
|
||||
'merge' may imply). Similarily Object.mergeProperties was renamed to
|
||||
Object.extendProperties
|
||||
* Position argument support in Array.prototype.contains and
|
||||
String.prototype.contains (so it follows ES6 specification draft)
|
||||
* endPosition argument support in String.prototype.endsWith and fromPosition
|
||||
argument support in String.prototype.startsWith (so it follows ES6
|
||||
specification draft)
|
||||
* Better and cleaner String.prototype.indent implementation. No default value
|
||||
for indent string argument, optional nest value (defaults to 1), remove
|
||||
nostart argument
|
||||
* Correct length values for most methods (so they reflect length of similar
|
||||
methods in standard)
|
||||
* Length argument is now optional in number and string pad methods.
|
||||
* Improve arguments validation in general, so it adheres to standard conventions
|
||||
* Fixed format of package.json
|
||||
|
||||
Removed methods and functions:
|
||||
* Object.prototype.slice - Object is not ordered collection, so slice doesn't
|
||||
make sense.
|
||||
* Function's rcurry, rncurry, s - too cumbersome for JS, not many use cases for
|
||||
that
|
||||
* Function.prototype.aritize and Function.prototype.hold - same functionality
|
||||
can be achieved with new Function.prototype.curry
|
||||
* Function.prototype.log - provided more generic Function.prototype.wrap for
|
||||
same use case
|
||||
* getNextIdGenerator - no use case for that (String.guid should be used if
|
||||
needed)
|
||||
* Object.toObject - Can be now acheived with Object(validValue(x))
|
||||
* Array.prototype.someValue - no real use case (personally used once and
|
||||
case was already controversial)
|
||||
* Date.prototype.duration - moved to external package
|
||||
* Number.getAutoincrement - No real use case
|
||||
* Object.prototype.extend, Object.prototype.override,
|
||||
Object.prototype.plainCreate, Object.prototype.plainExtend - It was probably
|
||||
too complex, same should be achieved just with Object.create,
|
||||
Object.descriptor and by saving references to super methods in local scope.
|
||||
* Object.getCompareBy - Functions should be created individually for each use
|
||||
case
|
||||
* Object.get, Object.getSet, Object.set, Object.unset - Not many use cases and
|
||||
same can be easily achieved with simple inline function
|
||||
* String.getPrefixWith - Not real use case for something that can be easily
|
||||
achieved with '+' operator
|
||||
* Object.isPrimitive - It's just negation of Object.isObject
|
||||
* Number.prototype.isLess, Number.prototype.isLessOrEqual - they shouldn't be in
|
||||
Number namespace and should rather be addressed with simple inline functions.
|
||||
* Number.prototype.subtract - Should rather be addressed with simple inline
|
||||
function
|
||||
|
||||
New methods and functions:
|
||||
* Array.prototype.lastIndex - Returns last declared index in array
|
||||
* String.prototype.last - last for strings
|
||||
* Function.prototype.wrap - Wrap function with other, it allows to specify
|
||||
before and after behavior transform return value or prevent original function
|
||||
from being called.
|
||||
* Math.sign - Returns sign of a number (already in ES6 specification draft)
|
||||
* Number.toInt - Converts value to integer (already in ES6 specification draft)
|
||||
* Number.isNaN - Returns true if value is NaN (already in ES6 specification
|
||||
draft)
|
||||
* Number.toUint - Converts value to unsigned integer
|
||||
* Number.toUint32 - Converts value to 32bit unsigned integer
|
||||
* Array.prototype.eIndexOf, eLastIndexOf - Egal version (that uses Object.is) of
|
||||
standard methods (all methods that were using native indexOf or lastIndexOf
|
||||
now uses eIndexOf and elastIndexOf respectively)
|
||||
* Array.of - as it's specified for ES6
|
||||
|
||||
Fixes:
|
||||
* Fixed binarySearch so it always returns valid list index
|
||||
* Object.isList - it failed on lists that are callable (e.g. NodeList in Nitro
|
||||
engine)
|
||||
* Object.map now supports third argument for callback
|
||||
|
||||
v0.7.1 -- 2012.01.05
|
||||
New methods:
|
||||
* Array.prototype.firstIndex - returns first valid index of array (for
|
||||
sparse arrays it may not be '0'
|
||||
|
||||
Improvements:
|
||||
* Array.prototype.first - now returns value for index returned by firstIndex
|
||||
* Object.prototype.mapToArray - can be called without callback, then array of
|
||||
key-value pairs is returned
|
||||
|
||||
Fixes
|
||||
* Array.prototype.forEachRight, object's length read through UInt32 conversion
|
||||
|
||||
v0.7.0 -- 2011.12.27
|
||||
Major update.
|
||||
Stepped back from experimental ideas and introduced more standard approach
|
||||
taking example from how ES5 methods and functions are designed. One exceptions
|
||||
is that, we don’t refrain from declaring methods for Object.prototype - it’s up
|
||||
to developer whether how he decides to use it in his context (as function or as
|
||||
method).
|
||||
|
||||
In general:
|
||||
* Removed any method 'functionalization' and functionalize method itself.
|
||||
es5-ext declares plain methods, which can be configured to work as functions
|
||||
with call.bind(method) - see documentation.
|
||||
* Removed separation of Object methods for ES5 (with descriptors) and
|
||||
ES3 (plain) - we're following ES5 idea on that, some methods are intended just
|
||||
for enumerable properties and some are for all properties, all are declared
|
||||
for Object.prototype
|
||||
* Removed separation of Array generic (collected in List folder) and not generic
|
||||
methods (collected in Array folder). Now all methods are generic and are in
|
||||
Array/prototype folder. This separation also meant, that methods in Array are
|
||||
usually destructive. We don’t do that separation now, there’s generally no use
|
||||
case for destructive iterators, we should be fine with one version of each
|
||||
method, (same as ES5 is fine with e.g. one, non destructive 'filter' method)
|
||||
* Folder structure resembles tree of native ES5 Objects
|
||||
* All methods are written with ES5 conventions in mind, it means that most
|
||||
methods are generic and can be run on any object. In more detail:
|
||||
** Array.prototype and Object.prototype methods can be run on any object (any
|
||||
not null or undefined value),
|
||||
** Date.prototype methods should be called only on Date instances.
|
||||
** Function.prototype methods can be called on any callable objects (not
|
||||
necessarily functions)
|
||||
** Number.prototype & String.prototype methods can be called on any value, in
|
||||
case of Number it it’ll be degraded to number, in case of string it’ll be
|
||||
degraded to string.
|
||||
* Travis CI support (only for Node v0.6 branch, as v0.4 has buggy V8 version)
|
||||
|
||||
Improvements for existing functions and methods:
|
||||
* Function.memoize (was Function.cache) is now fully generic, can operate on any
|
||||
type of arguments and it’s NaN safe (all NaN objects are considered equal)
|
||||
* Method properties passed to Object.prototype.extend or
|
||||
Object.prototype.override can aside of _super optionally take prototype object
|
||||
via _proto argument
|
||||
* Object iterators: forEach, mapToArray and every can now iterate in specified
|
||||
order
|
||||
* pluck, invoke and other functions that return reusable functions or methods
|
||||
have now their results memoized.
|
||||
|
||||
New methods:
|
||||
* Global: assertNotNull, getNextIdGenerator, guid, isEqual, isPrimitive,
|
||||
toObject
|
||||
* Array: generate
|
||||
* Array.prototype: binarySearch, clear, contains, diff, exclusion, find, first,
|
||||
forEachRight, group, indexesOf, intersection, remove, someRight, someValue
|
||||
* Boolean: isBoolean
|
||||
* Date: isDate
|
||||
* Function: arguments, context, insert, isArguments, remove
|
||||
* Function.prototype: not, silent
|
||||
* Number: getAutoincrement, isNumber
|
||||
* Number.prototype: isLessOrEqual, isLess, subtract
|
||||
* Object: assertCallable, descriptor (functions for clean descriptors),
|
||||
getCompareBy, isCallable, isObject
|
||||
* Object.prototype: clone (real clone), compact, count, diff, empty,
|
||||
getPropertyNames, get, keyOf, mapKeys, override, plainCreate, plainExtend,
|
||||
slice, some, unset
|
||||
* RegExp: isRegExp
|
||||
* String: getPrefixWith, isString
|
||||
* String.prototype: caseInsensitiveCompare, contains, isNumeric
|
||||
|
||||
Renamed methods:
|
||||
* Date.clone -> Date.prototype.copy
|
||||
* Date.format -> Date.getFormat
|
||||
* Date/day/floor -> Date.prototype.floorDay
|
||||
* Date/month/floor -> Date.prototype.floorMonth
|
||||
* Date/month/year -> Date.prototype.floorYear
|
||||
* Function.cache -> Function.memoize
|
||||
* Function.getApplyArg -> Function.prototype.match
|
||||
* Function.sequence -> Function.prototype.chain
|
||||
* List.findSameStartLength -> Array.prototype.commonLeft
|
||||
* Number.pad -> Number.getPad
|
||||
* Object/plain/clone -> Object.prototype.copy
|
||||
* Object/plain/elevate -> Object.prototype.flatten
|
||||
* Object/plain/same -> Object.prototype.isDuplicate
|
||||
* Object/plain/setValue -> Object.getSet
|
||||
* String.format -> String.getFormat
|
||||
* String.indent -> String.getIndent
|
||||
* String.pad -> String.getPad
|
||||
* String.trimLeftStr -> String.prototype.trimCommonLeft
|
||||
* Object.merge -> Object.prototype.mergeProperties
|
||||
* Object/plain/pluck -> Object.prototype.get
|
||||
* Array.clone is now Array.prototype.copy and can be used also on any array-like
|
||||
objects
|
||||
* List.isList -> Object.isList
|
||||
* List.toArray -> Object.prototype.toArray
|
||||
* String/convert/dashToCamelCase -> String.prototype.dashToCamelCase
|
||||
|
||||
Removed methods:
|
||||
* Array.compact - removed destructive version (that operated on same array), we
|
||||
have now non destructive version as Array.prototype.compact.
|
||||
* Function.applyBind -> use apply.bind directly
|
||||
* Function.bindBind -> use bind.bind directly
|
||||
* Function.callBind -> use call.bind directly
|
||||
* Fuction.clone -> no valid use case
|
||||
* Function.dscope -> controversial approach, shouldn’t be considered seriously
|
||||
* Function.functionalize -> It was experimental but standards are standards
|
||||
* List/sort/length -> It can be easy obtained by Object.getCompareBy(‘length’)
|
||||
* List.concat -> Concat’s for array-like’s makes no sense, just convert to array
|
||||
first
|
||||
* List.every -> Use Array.prototype.every directly
|
||||
* List.filter -> Use Array.prototype.filter directly
|
||||
* List.forEach -> User Array.prototype.forEach directly
|
||||
* List.isListObject -> No valid use case, do: isList(list) && (typeof list ===
|
||||
'object’)
|
||||
* List.map -> Use Array.prototype.map directly
|
||||
* List.reduce -> Use Array.prototype.reduce directly
|
||||
* List.shiftSame -> Use Array.prototype.commonLeft and do slice
|
||||
* List.slice -> Use Array.prototype.slice directly
|
||||
* List.some -> Use Array.prototype.some directly
|
||||
* Object.bindMethods -> it was version that considered descriptors, we have now
|
||||
Object.prototype.bindMethods which operates only on enumerable properties
|
||||
* Object.every -> version that considered all properties, we have now
|
||||
Object.prototype.every which iterates only enumerables
|
||||
* Object.invoke -> no use case
|
||||
* Object.mergeDeep -> no use case
|
||||
* Object.pluck -> no use case
|
||||
* Object.same -> it considered descriptors, now there’s only Object.isDuplicate
|
||||
which compares only enumerable properties
|
||||
* Object.sameType -> no use case
|
||||
* Object.toDescriptor and Object.toDescriptors -> replaced by much nicer
|
||||
Object.descriptor functions
|
||||
* Object/plain/link -> no use case (it was used internally only by
|
||||
Object/plain/merge)
|
||||
* Object/plain/setTrue -> now easily configurable by more universal
|
||||
Object.getSet(true)
|
||||
* String.trimRightStr -> Eventually String.prototype.trimCommonRight will be
|
||||
added
|
||||
|
||||
v0.6.3 -- 2011.12.12
|
||||
* Cleared npm warning for misnamed property in package.json
|
||||
|
||||
v0.6.2 -- 2011.08.12
|
||||
* Calling String.indent without scope (global scope then) now treated as calling
|
||||
it with null scope, it allows more direct invocations when using default nest
|
||||
string: indent().call(str, nest)
|
||||
|
||||
v0.6.1 -- 2011.08.08
|
||||
* Added TAD test suite to devDependencies, configured test commands.
|
||||
Tests can be run with 'make test' or 'npm test'
|
||||
|
||||
v0.6.0 -- 2011.08.07
|
||||
New methods:
|
||||
* Array: clone, compact (in place)
|
||||
* Date: format, duration, clone, monthDaysCount, day.floor, month.floor,
|
||||
year.floor
|
||||
* Function: getApplyArg, , ncurry, rncurry, hold, cache, log
|
||||
* List: findSameStartLength, shiftSame, peek, isListObject
|
||||
* Number: pad
|
||||
* Object: sameType, toString, mapToArray, mergeDeep, toDescriptor,
|
||||
toDescriptors, invoke
|
||||
* String: startsWith, endsWith, indent, trimLeftStr, trimRightStr, pad, format
|
||||
|
||||
Fixed:
|
||||
* Object.extend does now prototypal extend as exptected
|
||||
* Object.merge now tries to overwrite only configurable properties
|
||||
* Function.flip
|
||||
|
||||
Improved:
|
||||
* Faster List.toArray
|
||||
* Better global retrieval
|
||||
* Functionalized all Function methods
|
||||
* Renamed bindApply and bindCall to applyBind and callBind
|
||||
* Removed Function.inherit (as it's unintuitive curry clone)
|
||||
* Straightforward logic in Function.k
|
||||
* Fixed naming of some tests files (letter case issue)
|
||||
* Renamed Function.saturate into Function.lock
|
||||
* String.dashToCamelCase digits support
|
||||
* Strings now considered as List objects
|
||||
* Improved List.compact
|
||||
* Concise logic for List.concat
|
||||
* Test wit TAD in clean ES5 context
|
||||
|
||||
v0.5.1 -- 2011.07.11
|
||||
* Function's bindBind, bindCall and bindApply now more versatile
|
||||
|
||||
v0.5.0 -- 2011.07.07
|
||||
* Removed Object.is and List.apply
|
||||
* Renamed Object.plain.is to Object.plain.isPlainObject (keep naming convention
|
||||
consistent)
|
||||
* Improved documentation
|
||||
|
||||
v0.4.0 -- 2011.07.05
|
||||
* Take most functions on Object to Object.plain to keep them away from object
|
||||
descriptors
|
||||
* Object functions with ES5 standard in mind (object descriptors)
|
||||
|
||||
v0.3.0 -- 2011.06.24
|
||||
* New functions
|
||||
* Consistent file naming (dash instead of camelCase)
|
||||
|
||||
v0.2.1 -- 2011.05.28
|
||||
* Renamed Functions.K and Function.S to to lowercase versions (use consistent
|
||||
naming)
|
||||
|
||||
v0.2.0 -- 2011.05.28
|
||||
* Renamed Array folder to List (as its generic functions for array-like objects)
|
||||
* Added Makefile
|
||||
* Added various functions
|
||||
|
||||
v0.1.0 -- 2011.05.24
|
||||
* Initial version
|
||||
2
node_modules/es5-ext/LICENSE
generated
vendored
2
node_modules/es5-ext/LICENSE
generated
vendored
@@ -1,6 +1,6 @@
|
||||
ISC License
|
||||
|
||||
Copyright (c) 2011-2019, Mariusz Nowak, @medikoo, medikoo.com
|
||||
Copyright (c) 2011-2022, Mariusz Nowak, @medikoo, medikoo.com
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
|
||||
18
node_modules/es5-ext/README.md
generated
vendored
18
node_modules/es5-ext/README.md
generated
vendored
@@ -1,6 +1,5 @@
|
||||
[![Build status][nix-build-image]][nix-build-url]
|
||||
[![Windows status][win-build-image]][win-build-url]
|
||||
![Transpilation status][transpilation-image]
|
||||
[![Build status][build-image]][build-url]
|
||||
[![Tests coverage][cov-image]][cov-url]
|
||||
[![npm version][npm-image]][npm-url]
|
||||
|
||||
# es5-ext
|
||||
@@ -17,7 +16,9 @@ When used in ECMAScript 6 environment, native implementation (if valid) takes pr
|
||||
|
||||
### Installation
|
||||
|
||||
$ npm install es5-ext
|
||||
```bash
|
||||
npm install es5-ext
|
||||
```
|
||||
|
||||
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
|
||||
|
||||
@@ -1030,10 +1031,9 @@ Available as part of the Tidelift Subscription
|
||||
|
||||
The maintainers of es5-ext and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-es5-ext?utm_source=npm-es5-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
|
||||
[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/es5-ext/branches/master/shields_badge.svg
|
||||
[nix-build-url]: https://semaphoreci.com/medikoo-org/es5-ext
|
||||
[win-build-image]: https://ci.appveyor.com/api/projects/status/3jox67ksw3p8hkwh/branch/master?svg=true
|
||||
[win-build-url]: https://ci.appveyor.com/project/medikoo/es5-ext
|
||||
[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg
|
||||
[build-image]: https://github.com/medikoo/es5-ext/workflows/Integrate/badge.svg
|
||||
[build-url]: https://github.com/medikoo/es5-ext/actions?query=workflow%3AIntegrate
|
||||
[cov-image]: https://img.shields.io/codecov/c/github/medikoo/es5-ext.svg
|
||||
[cov-url]: https://codecov.io/gh/medikoo/es5-ext
|
||||
[npm-image]: https://img.shields.io/npm/v/es5-ext.svg
|
||||
[npm-url]: https://www.npmjs.com/package/es5-ext
|
||||
|
||||
73
node_modules/es5-ext/_postinstall.js
generated
vendored
Executable file
73
node_modules/es5-ext/_postinstall.js
generated
vendored
Executable file
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Broadcasts "Call for peace" message when package is installed in Russia, otherwise no-op
|
||||
|
||||
"use strict";
|
||||
|
||||
try {
|
||||
if (
|
||||
[
|
||||
"Asia/Anadyr", "Asia/Barnaul", "Asia/Chita", "Asia/Irkutsk", "Asia/Kamchatka",
|
||||
"Asia/Khandyga", "Asia/Krasnoyarsk", "Asia/Magadan", "Asia/Novokuznetsk",
|
||||
"Asia/Novosibirsk", "Asia/Omsk", "Asia/Sakhalin", "Asia/Srednekolymsk", "Asia/Tomsk",
|
||||
"Asia/Ust-Nera", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yekaterinburg",
|
||||
"Europe/Astrakhan", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Moscow",
|
||||
"Europe/Samara", "Europe/Saratov", "Europe/Simferopol", "Europe/Ulyanovsk",
|
||||
"Europe/Volgograd", "W-SU"
|
||||
].indexOf(new Intl.DateTimeFormat().resolvedOptions().timeZone) === -1
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
var bold = function (msg) { return "\x1b[97m\x1b[1m" + msg + "\x1b[22m\x1b[37m"; };
|
||||
|
||||
var flags = function () {
|
||||
return (
|
||||
"🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦" +
|
||||
" 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦"
|
||||
);
|
||||
};
|
||||
|
||||
process._rawDebug(
|
||||
[
|
||||
"", flags(), "",
|
||||
"\x1b[37m24 февраля " +
|
||||
bold("Россия напала на Украину") +
|
||||
", что уже стало причиной " +
|
||||
bold("15000+ жертв среди российских военных") +
|
||||
" и примерно " +
|
||||
bold("10000+ - среди украинских") +
|
||||
", а также " +
|
||||
bold("5000+ убитых граждан, в том числе 300+ детей") +
|
||||
".",
|
||||
"",
|
||||
"Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского" +
|
||||
" вторжения. " +
|
||||
bold(
|
||||
"91% украинцев полностью поддерживает своего президента Владимира Зеленского"
|
||||
) +
|
||||
" и его ответные действия на нападение России.",
|
||||
"",
|
||||
"Весь мир осудил необоснованное вторжение и решил ввести " +
|
||||
bold("невиданные ранее санкции против России") +
|
||||
". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных" +
|
||||
" граждан.",
|
||||
"",
|
||||
"В то же время, " +
|
||||
bold("российское правительство ограничивает доступ граждан к внешней информации") +
|
||||
", насаждая однобокие формулировки и версии происходящего.",
|
||||
"", "В качестве надежного источника информации загрузите безопасный браузер Tor:", "",
|
||||
bold(
|
||||
"https://forum.torproject.net/t/tor-blocked-in-russia-how-to-circumvent-censorship/982"
|
||||
),
|
||||
"", "И посетите:", "",
|
||||
bold(
|
||||
"https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"
|
||||
),
|
||||
bold("https://www.dwnewsgngmhlplxy6o2twtfgjnrnjxbegbwqx6wnotdhkzt562tszfid.onion/ru/"),
|
||||
"", flags(), ""
|
||||
].join("\n")
|
||||
);
|
||||
} catch (error) {
|
||||
// ignore
|
||||
}
|
||||
2
node_modules/es5-ext/array/#/concat/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/concat/shim.js
generated
vendored
@@ -19,7 +19,7 @@ isSpreadable = function (value) {
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (item/*, …items*/) {
|
||||
module.exports = function (item /*, …items*/) {
|
||||
var result;
|
||||
if (!this || !isArray(this) || isPlainArray(this)) {
|
||||
return concat.apply(this, arguments);
|
||||
|
||||
2
node_modules/es5-ext/array/#/contains.js
generated
vendored
2
node_modules/es5-ext/array/#/contains.js
generated
vendored
@@ -2,6 +2,6 @@
|
||||
|
||||
var indexOf = require("./e-index-of");
|
||||
|
||||
module.exports = function (searchElement/*, position*/) {
|
||||
module.exports = function (searchElement /*, position*/) {
|
||||
return indexOf.call(this, searchElement, arguments[1]) > -1;
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/array/#/copy-within/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/copy-within/shim.js
generated
vendored
@@ -9,7 +9,7 @@ var toInteger = require("../../../number/to-integer")
|
||||
, max = Math.max
|
||||
, min = Math.min;
|
||||
|
||||
module.exports = function (target, start/*, end*/) {
|
||||
module.exports = function (target, start /*, end*/) {
|
||||
var arr = validValue(this)
|
||||
, end = arguments[2]
|
||||
, length = toPosInt(arr.length)
|
||||
|
||||
2
node_modules/es5-ext/array/#/e-index-of.js
generated
vendored
2
node_modules/es5-ext/array/#/e-index-of.js
generated
vendored
@@ -8,7 +8,7 @@ var numberIsNaN = require("../../number/is-nan")
|
||||
, abs = Math.abs
|
||||
, floor = Math.floor;
|
||||
|
||||
module.exports = function (searchElement/*, fromIndex*/) {
|
||||
module.exports = function (searchElement /*, fromIndex*/) {
|
||||
var i, length, fromIndex, val;
|
||||
if (!numberIsNaN(searchElement)) return indexOf.apply(this, arguments);
|
||||
|
||||
|
||||
2
node_modules/es5-ext/array/#/e-last-index-of.js
generated
vendored
2
node_modules/es5-ext/array/#/e-last-index-of.js
generated
vendored
@@ -8,7 +8,7 @@ var numberIsNaN = require("../../number/is-nan")
|
||||
, abs = Math.abs
|
||||
, floor = Math.floor;
|
||||
|
||||
module.exports = function (searchElement/*, fromIndex*/) {
|
||||
module.exports = function (searchElement /*, fromIndex*/) {
|
||||
var i, fromIndex, val;
|
||||
if (!numberIsNaN(searchElement)) {
|
||||
// Jslint: ignore
|
||||
|
||||
2
node_modules/es5-ext/array/#/fill/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/fill/shim.js
generated
vendored
@@ -8,7 +8,7 @@ var toInteger = require("../../../number/to-integer")
|
||||
, max = Math.max
|
||||
, min = Math.min;
|
||||
|
||||
module.exports = function (value/*, start, end*/) {
|
||||
module.exports = function (value /*, start, end*/) {
|
||||
var arr = validValue(this)
|
||||
, start = arguments[1]
|
||||
, end = arguments[2]
|
||||
|
||||
2
node_modules/es5-ext/array/#/filter/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/filter/shim.js
generated
vendored
@@ -7,7 +7,7 @@ var isPlainArray = require("../../is-plain-array")
|
||||
, forEach = Array.prototype.forEach
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (callbackFn/*, thisArg*/) {
|
||||
module.exports = function (callbackFn /*, thisArg*/) {
|
||||
var result, thisArg, i;
|
||||
if (!this || !isArray(this) || isPlainArray(this)) {
|
||||
return filter.apply(this, arguments);
|
||||
|
||||
2
node_modules/es5-ext/array/#/find-index/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/find-index/shim.js
generated
vendored
@@ -5,7 +5,7 @@ var callable = require("../../../object/valid-callable")
|
||||
, some = Array.prototype.some
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (predicate/*, thisArg*/) {
|
||||
module.exports = function (predicate /*, thisArg*/) {
|
||||
var k, self;
|
||||
self = Object(ensureValue(this));
|
||||
callable(predicate);
|
||||
|
||||
2
node_modules/es5-ext/array/#/find/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/find/shim.js
generated
vendored
@@ -3,7 +3,7 @@
|
||||
var findIndex = require("../find-index/shim");
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (predicate/*, thisArg*/) {
|
||||
module.exports = function (predicate /*, thisArg*/) {
|
||||
var index = findIndex.apply(this, arguments);
|
||||
return index === -1 ? undefined : this[index];
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/array/#/for-each-right.js
generated
vendored
2
node_modules/es5-ext/array/#/for-each-right.js
generated
vendored
@@ -6,7 +6,7 @@ var toPosInt = require("../../number/to-pos-integer")
|
||||
, objHasOwnProperty = Object.prototype.hasOwnProperty
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (cb/*, thisArg*/) {
|
||||
module.exports = function (cb /*, thisArg*/) {
|
||||
var i, self, thisArg;
|
||||
|
||||
self = Object(value(this));
|
||||
|
||||
2
node_modules/es5-ext/array/#/group.js
generated
vendored
2
node_modules/es5-ext/array/#/group.js
generated
vendored
@@ -8,7 +8,7 @@ var callable = require("../../object/valid-callable")
|
||||
, forEach = Array.prototype.forEach
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (cb/*, thisArg*/) {
|
||||
module.exports = function (cb /*, thisArg*/) {
|
||||
var result;
|
||||
|
||||
value(this);
|
||||
|
||||
2
node_modules/es5-ext/array/#/indexes-of.js
generated
vendored
2
node_modules/es5-ext/array/#/indexes-of.js
generated
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
var indexOf = require("./e-index-of");
|
||||
|
||||
module.exports = function (value/*, fromIndex*/) {
|
||||
module.exports = function (value /*, fromIndex*/) {
|
||||
var result = [], i, fromIndex = arguments[1];
|
||||
while ((i = indexOf.call(this, value, fromIndex)) !== -1) {
|
||||
result.push(i);
|
||||
|
||||
2
node_modules/es5-ext/array/#/map/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/map/shim.js
generated
vendored
@@ -7,7 +7,7 @@ var isPlainArray = require("../../is-plain-array")
|
||||
, forEach = Array.prototype.forEach
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (callbackFn/*, thisArg*/) {
|
||||
module.exports = function (callbackFn /*, thisArg*/) {
|
||||
var result, thisArg;
|
||||
if (!this || !isArray(this) || isPlainArray(this)) {
|
||||
return map.apply(this, arguments);
|
||||
|
||||
2
node_modules/es5-ext/array/#/remove.js
generated
vendored
2
node_modules/es5-ext/array/#/remove.js
generated
vendored
@@ -5,7 +5,7 @@ var indexOf = require("./e-index-of")
|
||||
, splice = Array.prototype.splice;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (itemToRemove/*, …item*/) {
|
||||
module.exports = function (itemToRemove /*, …item*/) {
|
||||
forEach.call(
|
||||
arguments,
|
||||
function (item) {
|
||||
|
||||
2
node_modules/es5-ext/array/#/some-right.js
generated
vendored
2
node_modules/es5-ext/array/#/some-right.js
generated
vendored
@@ -6,7 +6,7 @@ var toPosInt = require("../../number/to-pos-integer")
|
||||
, objHasOwnProperty = Object.prototype.hasOwnProperty
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (cb/*, thisArg*/) {
|
||||
module.exports = function (cb /*, thisArg*/) {
|
||||
var i, self, thisArg;
|
||||
self = Object(value(this));
|
||||
callable(cb);
|
||||
|
||||
2
node_modules/es5-ext/array/#/splice/shim.js
generated
vendored
2
node_modules/es5-ext/array/#/splice/shim.js
generated
vendored
@@ -6,7 +6,7 @@ var isPlainArray = require("../../is-plain-array")
|
||||
, forEach = Array.prototype.forEach;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (start, deleteCount/*, …items*/) {
|
||||
module.exports = function (start, deleteCount /*, …items*/) {
|
||||
var arr = splice.apply(this, arguments), result;
|
||||
if (!this || !isArray(this) || isPlainArray(this)) return arr;
|
||||
result = new this.constructor(arr.length);
|
||||
|
||||
2
node_modules/es5-ext/array/from/shim.js
generated
vendored
2
node_modules/es5-ext/array/from/shim.js
generated
vendored
@@ -14,7 +14,7 @@ var iteratorSymbol = require("es6-symbol").iterator
|
||||
, defineProperty = Object.defineProperty;
|
||||
|
||||
// eslint-disable-next-line complexity, max-lines-per-function
|
||||
module.exports = function (arrayLike/*, mapFn, thisArg*/) {
|
||||
module.exports = function (arrayLike /*, mapFn, thisArg*/) {
|
||||
var mapFn = arguments[1]
|
||||
, thisArg = arguments[2]
|
||||
, Context
|
||||
|
||||
2
node_modules/es5-ext/array/generate.js
generated
vendored
2
node_modules/es5-ext/array/generate.js
generated
vendored
@@ -4,7 +4,7 @@ var toPosInt = require("../number/to-pos-integer")
|
||||
, value = require("../object/valid-value")
|
||||
, slice = Array.prototype.slice;
|
||||
|
||||
module.exports = function (length/*, …fill*/) {
|
||||
module.exports = function (length /*, …fill*/) {
|
||||
var arr, currentLength;
|
||||
length = toPosInt(value(length));
|
||||
if (length === 0) return [];
|
||||
|
||||
2
node_modules/es5-ext/error/custom.js
generated
vendored
2
node_modules/es5-ext/error/custom.js
generated
vendored
@@ -5,7 +5,7 @@ var assign = require("../object/assign")
|
||||
, isValue = require("../object/is-value")
|
||||
, captureStackTrace = Error.captureStackTrace;
|
||||
|
||||
module.exports = function (message/*, code, ext*/) {
|
||||
module.exports = function (message /*, code, ext*/) {
|
||||
var err = new Error(message), code = arguments[1], ext = arguments[2];
|
||||
if (!isValue(ext)) {
|
||||
if (isObject(code)) {
|
||||
|
||||
2
node_modules/es5-ext/function/#/compose.js
generated
vendored
2
node_modules/es5-ext/function/#/compose.js
generated
vendored
@@ -8,7 +8,7 @@ var apply = Function.prototype.apply
|
||||
, call = Function.prototype.call
|
||||
, callFn = function (arg, fn) { return call.call(fn, this, arg); };
|
||||
|
||||
module.exports = function (fnIgnored/*, …fnn*/) {
|
||||
module.exports = function (fnIgnored /*, …fnn*/) {
|
||||
var fns, first;
|
||||
var args = aFrom(arguments);
|
||||
fns = isValue(this) ? [this].concat(args) : args;
|
||||
|
||||
2
node_modules/es5-ext/function/invoke.js
generated
vendored
2
node_modules/es5-ext/function/invoke.js
generated
vendored
@@ -5,7 +5,7 @@ var isCallable = require("../object/is-callable")
|
||||
, slice = Array.prototype.slice
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (name/*, …args*/) {
|
||||
module.exports = function (name /*, …args*/) {
|
||||
var args = slice.call(arguments, 1), isFn = isCallable(name);
|
||||
return function (obj) {
|
||||
value(obj);
|
||||
|
||||
2
node_modules/es5-ext/iterable/for-each.js
generated
vendored
2
node_modules/es5-ext/iterable/for-each.js
generated
vendored
@@ -5,7 +5,7 @@ var forOf = require("es6-iterator/for-of")
|
||||
, iterable = require("./validate")
|
||||
, forEach = Array.prototype.forEach;
|
||||
|
||||
module.exports = function (target, cb/*, thisArg*/) {
|
||||
module.exports = function (target, cb /*, thisArg*/) {
|
||||
if (isIterable(iterable(target))) forOf(target, cb, arguments[2]);
|
||||
else forEach.call(target, cb, arguments[2]);
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/json/safe-stringify.js
generated
vendored
2
node_modules/es5-ext/json/safe-stringify.js
generated
vendored
@@ -6,7 +6,7 @@ var compact = require("../array/#/compact")
|
||||
, isArray = Array.isArray
|
||||
, stringify = JSON.stringify;
|
||||
|
||||
module.exports = function self(value/*, replacer, space*/) {
|
||||
module.exports = function self(value /*, replacer, space*/) {
|
||||
var replacer = arguments[1], space = arguments[2];
|
||||
try {
|
||||
return stringify(value, replacer, space);
|
||||
|
||||
2
node_modules/es5-ext/math/_decimal-adjust.js
generated
vendored
2
node_modules/es5-ext/math/_decimal-adjust.js
generated
vendored
@@ -10,7 +10,7 @@ var isValue = require("../object/is-value")
|
||||
var split = String.prototype.split;
|
||||
|
||||
module.exports = function (type) {
|
||||
return function (value/*, exp*/) {
|
||||
return function (value /*, exp*/) {
|
||||
value = Number(value);
|
||||
var exp = arguments[1];
|
||||
if (isValue(exp)) exp = ensureInteger(exp);
|
||||
|
||||
2
node_modules/es5-ext/math/hypot/shim.js
generated
vendored
2
node_modules/es5-ext/math/hypot/shim.js
generated
vendored
@@ -10,7 +10,7 @@ var some = Array.prototype.some
|
||||
, add = function (sum, number) { return sum + number * number; };
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (val1, val2/*, …valn*/) {
|
||||
module.exports = function (val1, val2 /*, …valn*/) {
|
||||
var result, numbers;
|
||||
if (!arguments.length) return 0;
|
||||
some.call(arguments, function (val) {
|
||||
|
||||
2
node_modules/es5-ext/number/#/pad.js
generated
vendored
2
node_modules/es5-ext/number/#/pad.js
generated
vendored
@@ -4,7 +4,7 @@ var pad = require("../../string/#/pad")
|
||||
, toPosInt = require("../to-pos-integer")
|
||||
, toFixed = Number.prototype.toFixed;
|
||||
|
||||
module.exports = function (length/*, precision*/) {
|
||||
module.exports = function (length /*, precision*/) {
|
||||
var precision;
|
||||
length = toPosInt(length);
|
||||
precision = toPosInt(arguments[1]);
|
||||
|
||||
3
node_modules/es5-ext/number/is-number.js
generated
vendored
3
node_modules/es5-ext/number/is-number.js
generated
vendored
@@ -5,6 +5,7 @@ var objToString = Object.prototype.toString, id = objToString.call(1);
|
||||
module.exports = function (value) {
|
||||
return (
|
||||
typeof value === "number" ||
|
||||
(value instanceof Number || (typeof value === "object" && objToString.call(value) === id))
|
||||
value instanceof Number ||
|
||||
(typeof value === "object" && objToString.call(value) === id)
|
||||
);
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/object/_iterate.js
generated
vendored
2
node_modules/es5-ext/object/_iterate.js
generated
vendored
@@ -12,7 +12,7 @@ var callable = require("./valid-callable")
|
||||
, objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
|
||||
module.exports = function (method, defVal) {
|
||||
return function (obj, cb/*, thisArg, compareFn*/) {
|
||||
return function (obj, cb /*, thisArg, compareFn*/) {
|
||||
var list, thisArg = arguments[2], compareFn = arguments[3];
|
||||
obj = Object(value(obj));
|
||||
callable(cb);
|
||||
|
||||
2
node_modules/es5-ext/object/assign-deep.js
generated
vendored
2
node_modules/es5-ext/object/assign-deep.js
generated
vendored
@@ -27,7 +27,7 @@ var deepAssign = function (target, source) {
|
||||
return source;
|
||||
};
|
||||
|
||||
module.exports = function (target/*, ...objects*/) {
|
||||
module.exports = function (target /*, ...objects*/) {
|
||||
return uniq
|
||||
.call([ensureValue(target)].concat(slice.call(arguments, 1).map(ensureValue)))
|
||||
.reduce(deepAssign);
|
||||
|
||||
2
node_modules/es5-ext/object/assign/shim.js
generated
vendored
2
node_modules/es5-ext/object/assign/shim.js
generated
vendored
@@ -4,7 +4,7 @@ var keys = require("../keys")
|
||||
, value = require("../valid-value")
|
||||
, max = Math.max;
|
||||
|
||||
module.exports = function (dest, src/*, …srcn*/) {
|
||||
module.exports = function (dest, src /*, …srcn*/) {
|
||||
var error, i, length = max(arguments.length, 2), assign;
|
||||
dest = Object(value(dest));
|
||||
assign = function (key) {
|
||||
|
||||
2
node_modules/es5-ext/object/copy.js
generated
vendored
2
node_modules/es5-ext/object/copy.js
generated
vendored
@@ -4,7 +4,7 @@ var aFrom = require("../array/from")
|
||||
, assign = require("./assign")
|
||||
, value = require("./valid-value");
|
||||
|
||||
module.exports = function (obj/*, propertyNames, options*/) {
|
||||
module.exports = function (obj /*, propertyNames, options*/) {
|
||||
var copy = Object(value(obj)), propertyNames = arguments[1], options = Object(arguments[2]);
|
||||
if (copy !== obj && !propertyNames) return copy;
|
||||
var result = {};
|
||||
|
||||
2
node_modules/es5-ext/object/filter.js
generated
vendored
2
node_modules/es5-ext/object/filter.js
generated
vendored
@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
|
||||
, forEach = require("./for-each")
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (obj, cb/*, thisArg*/) {
|
||||
module.exports = function (obj, cb /*, thisArg*/) {
|
||||
var result = {}, thisArg = arguments[2];
|
||||
callable(cb);
|
||||
forEach(obj, function (value, key, targetObj, index) {
|
||||
|
||||
2
node_modules/es5-ext/object/find.js
generated
vendored
2
node_modules/es5-ext/object/find.js
generated
vendored
@@ -4,7 +4,7 @@ var findKey = require("./find-key")
|
||||
, isValue = require("./is-value");
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (obj, cb/*, thisArg, compareFn*/) {
|
||||
module.exports = function (obj, cb /*, thisArg, compareFn*/) {
|
||||
var key = findKey.apply(this, arguments);
|
||||
return isValue(key) ? obj[key] : key;
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/object/map-keys.js
generated
vendored
2
node_modules/es5-ext/object/map-keys.js
generated
vendored
@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
|
||||
, forEach = require("./for-each")
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (obj, cb/*, thisArg*/) {
|
||||
module.exports = function (obj, cb /*, thisArg*/) {
|
||||
var result = {}, thisArg = arguments[2];
|
||||
callable(cb);
|
||||
forEach(
|
||||
|
||||
2
node_modules/es5-ext/object/map.js
generated
vendored
2
node_modules/es5-ext/object/map.js
generated
vendored
@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
|
||||
, forEach = require("./for-each")
|
||||
, call = Function.prototype.call;
|
||||
|
||||
module.exports = function (obj, cb/*, thisArg*/) {
|
||||
module.exports = function (obj, cb /*, thisArg*/) {
|
||||
var result = {}, thisArg = arguments[2];
|
||||
callable(cb);
|
||||
forEach(obj, function (value, key, targetObj, index) {
|
||||
|
||||
2
node_modules/es5-ext/object/normalize-options.js
generated
vendored
2
node_modules/es5-ext/object/normalize-options.js
generated
vendored
@@ -10,7 +10,7 @@ var process = function (src, obj) {
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (opts1/*, …options*/) {
|
||||
module.exports = function (opts1 /*, …options*/) {
|
||||
var result = create(null);
|
||||
forEach.call(arguments, function (options) {
|
||||
if (!isValue(options)) return;
|
||||
|
||||
2
node_modules/es5-ext/object/primitive-set.js
generated
vendored
2
node_modules/es5-ext/object/primitive-set.js
generated
vendored
@@ -3,7 +3,7 @@
|
||||
var forEach = Array.prototype.forEach, create = Object.create;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (arg/*, …args*/) {
|
||||
module.exports = function (arg /*, …args*/) {
|
||||
var set = create(null);
|
||||
forEach.call(arguments, function (name) { set[name] = true; });
|
||||
return set;
|
||||
|
||||
2
node_modules/es5-ext/object/safe-traverse.js
generated
vendored
2
node_modules/es5-ext/object/safe-traverse.js
generated
vendored
@@ -3,7 +3,7 @@
|
||||
var value = require("./valid-value")
|
||||
, isValue = require("./is-value");
|
||||
|
||||
module.exports = function (obj/*, …names*/) {
|
||||
module.exports = function (obj /*, …names*/) {
|
||||
var length, current = 1;
|
||||
value(obj);
|
||||
length = arguments.length - 1;
|
||||
|
||||
2
node_modules/es5-ext/object/to-array.js
generated
vendored
2
node_modules/es5-ext/object/to-array.js
generated
vendored
@@ -6,7 +6,7 @@ var callable = require("./valid-callable")
|
||||
, call = Function.prototype.call
|
||||
, defaultCb = function (value, key) { return [key, value]; };
|
||||
|
||||
module.exports = function (obj/*, cb, thisArg, compareFn*/) {
|
||||
module.exports = function (obj /*, cb, thisArg, compareFn*/) {
|
||||
var a = [], cb = arguments[1], thisArg = arguments[2];
|
||||
cb = isValue(cb) ? callable(cb) : defaultCb;
|
||||
|
||||
|
||||
2
node_modules/es5-ext/optional-chaining.js
generated
vendored
2
node_modules/es5-ext/optional-chaining.js
generated
vendored
@@ -5,7 +5,7 @@ var isValue = require("./object/is-value");
|
||||
var slice = Array.prototype.slice;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (value, propertyName1/*, …propertyNamen*/) {
|
||||
module.exports = function (value, propertyName1 /*, …propertyNamen*/) {
|
||||
var propertyNames = slice.call(arguments, 1), index = 0, length = propertyNames.length;
|
||||
while (isValue(value) && index < length) value = value[propertyNames[index++]];
|
||||
return index === length ? value : undefined;
|
||||
|
||||
254
node_modules/es5-ext/package.json
generated
vendored
254
node_modules/es5-ext/package.json
generated
vendored
@@ -1,132 +1,126 @@
|
||||
{
|
||||
"_from": "es5-ext@^0.10.35",
|
||||
"_id": "es5-ext@0.10.53",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==",
|
||||
"_location": "/es5-ext",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "es5-ext@^0.10.35",
|
||||
"name": "es5-ext",
|
||||
"escapedName": "es5-ext",
|
||||
"rawSpec": "^0.10.35",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.10.35"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/d",
|
||||
"/es6-iterator",
|
||||
"/es6-weak-map"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz",
|
||||
"_shasum": "93c5a3acfdbef275220ad72644ad02ee18368de1",
|
||||
"_spec": "es5-ext@^0.10.35",
|
||||
"_where": "/var/www/html/jason/WeihnachtenMelly/node_modules/es6-iterator",
|
||||
"author": {
|
||||
"name": "Mariusz Nowak",
|
||||
"email": "medyk@medikoo.com",
|
||||
"url": "http://www.medikoo.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/medikoo/es5-ext/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"es6-iterator": "~2.0.3",
|
||||
"es6-symbol": "~3.1.3",
|
||||
"next-tick": "~1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "ECMAScript extensions and shims",
|
||||
"devDependencies": {
|
||||
"eslint": "^6.6.0",
|
||||
"eslint-config-medikoo": "^2.7.0",
|
||||
"git-list-updated": "^1.2.1",
|
||||
"husky": "^3.1.0",
|
||||
"lint-staged": "^9.4.3",
|
||||
"plain-promise": "^0.1.1",
|
||||
"prettier-elastic": "^1.18.2",
|
||||
"tad": "^3.0.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "medikoo/es5",
|
||||
"root": true,
|
||||
"rules": {
|
||||
"no-extend-native": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": "global.js",
|
||||
"globals": {
|
||||
"__global__": true,
|
||||
"globalThis": true,
|
||||
"self": true,
|
||||
"window": true
|
||||
},
|
||||
"rules": {
|
||||
"strict": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"homepage": "https://github.com/medikoo/es5-ext#readme",
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"ecmascript",
|
||||
"ecmascript5",
|
||||
"ecmascript6",
|
||||
"es5",
|
||||
"es6",
|
||||
"extensions",
|
||||
"ext",
|
||||
"addons",
|
||||
"extras",
|
||||
"harmony",
|
||||
"javascript",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"util",
|
||||
"utils",
|
||||
"utilities"
|
||||
],
|
||||
"license": "ISC",
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint"
|
||||
],
|
||||
"*.{css,html,js,json,md,yaml,yml}": [
|
||||
"prettier -c"
|
||||
]
|
||||
},
|
||||
"name": "es5-ext",
|
||||
"prettier": {
|
||||
"printWidth": 100,
|
||||
"tabWidth": 4,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.md",
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/medikoo/es5-ext.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --ignore-path=.gitignore .",
|
||||
"lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
|
||||
"prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
|
||||
"prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
|
||||
"test": "node ./node_modules/tad/bin/tad"
|
||||
},
|
||||
"version": "0.10.53"
|
||||
"name": "es5-ext",
|
||||
"version": "0.10.62",
|
||||
"description": "ECMAScript extensions and shims",
|
||||
"author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",
|
||||
"keywords": [
|
||||
"ecmascript",
|
||||
"ecmascript5",
|
||||
"ecmascript6",
|
||||
"es5",
|
||||
"es6",
|
||||
"extensions",
|
||||
"ext",
|
||||
"addons",
|
||||
"extras",
|
||||
"harmony",
|
||||
"javascript",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"util",
|
||||
"utils",
|
||||
"utilities"
|
||||
],
|
||||
"repository": "medikoo/es5-ext",
|
||||
"dependencies": {
|
||||
"es6-iterator": "^2.0.3",
|
||||
"es6-symbol": "^3.1.3",
|
||||
"next-tick": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.13.0",
|
||||
"eslint-config-medikoo": "^4.1.2",
|
||||
"git-list-updated": "^1.2.1",
|
||||
"github-release-from-cc-changelog": "^2.3.0",
|
||||
"husky": "^4.3.8",
|
||||
"lint-staged": "^12.3.8",
|
||||
"nyc": "^15.1.0",
|
||||
"plain-promise": "^0.1.1",
|
||||
"prettier-elastic": "^2.2.1",
|
||||
"tad": "^3.1.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint"
|
||||
],
|
||||
"*.{css,html,js,json,md,yaml,yml}": [
|
||||
"prettier -c"
|
||||
]
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "medikoo/es5",
|
||||
"root": true,
|
||||
"rules": {
|
||||
"no-extend-native": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": "global.js",
|
||||
"globals": {
|
||||
"__global__": true,
|
||||
"globalThis": true,
|
||||
"self": true,
|
||||
"window": true
|
||||
},
|
||||
"rules": {
|
||||
"strict": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "_postinstall.js",
|
||||
"env": {
|
||||
"node": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"prettier": {
|
||||
"printWidth": 100,
|
||||
"tabWidth": 4,
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.md",
|
||||
"*.yml"
|
||||
],
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"nyc": {
|
||||
"all": true,
|
||||
"exclude": [
|
||||
".github",
|
||||
"coverage/**",
|
||||
"test/**",
|
||||
"*.config.js"
|
||||
],
|
||||
"reporter": [
|
||||
"lcov",
|
||||
"html",
|
||||
"text-summary"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"coverage": "nyc npm test",
|
||||
"lint": "eslint --ignore-path=.gitignore .",
|
||||
"lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
|
||||
"postinstall": " node -e \"try{require('./_postinstall')}catch(e){}\" || exit 0",
|
||||
"prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
|
||||
"prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
|
||||
"prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
|
||||
"prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
|
||||
"test": "node ./node_modules/tad/bin/tad"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10"
|
||||
},
|
||||
"license": "ISC"
|
||||
}
|
||||
|
||||
2
node_modules/es5-ext/string/#/contains/shim.js
generated
vendored
2
node_modules/es5-ext/string/#/contains/shim.js
generated
vendored
@@ -2,6 +2,6 @@
|
||||
|
||||
var indexOf = String.prototype.indexOf;
|
||||
|
||||
module.exports = function (searchString/*, position*/) {
|
||||
module.exports = function (searchString /*, position*/) {
|
||||
return indexOf.call(this, searchString, arguments[1]) > -1;
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/string/#/ends-with/shim.js
generated
vendored
2
node_modules/es5-ext/string/#/ends-with/shim.js
generated
vendored
@@ -6,7 +6,7 @@ var toInteger = require("../../../number/to-integer")
|
||||
, min = Math.min
|
||||
, max = Math.max;
|
||||
|
||||
module.exports = function (searchString/*, endPosition*/) {
|
||||
module.exports = function (searchString /*, endPosition*/) {
|
||||
var self, start, endPos;
|
||||
self = String(value(this));
|
||||
searchString = String(searchString);
|
||||
|
||||
2
node_modules/es5-ext/string/#/indent.js
generated
vendored
2
node_modules/es5-ext/string/#/indent.js
generated
vendored
@@ -5,7 +5,7 @@ var isValue = require("../../object/is-value")
|
||||
, replace = String.prototype.replace
|
||||
, re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g;
|
||||
|
||||
module.exports = function (indent/*, count*/) {
|
||||
module.exports = function (indent /*, count*/) {
|
||||
var count = arguments[1];
|
||||
indent = repeat.call(String(indent), isValue(count) ? count : 1);
|
||||
return indent + replace.call(this, re, "$1" + indent + "$2");
|
||||
|
||||
2
node_modules/es5-ext/string/#/pad.js
generated
vendored
2
node_modules/es5-ext/string/#/pad.js
generated
vendored
@@ -6,7 +6,7 @@ var toInteger = require("../../number/to-integer")
|
||||
, abs = Math.abs
|
||||
, max = Math.max;
|
||||
|
||||
module.exports = function (fill/*, length*/) {
|
||||
module.exports = function (fill /*, length*/) {
|
||||
var self = String(value(this)), sLength = self.length, length = arguments[1];
|
||||
|
||||
length = isNaN(length) ? 1 : toInteger(length);
|
||||
|
||||
2
node_modules/es5-ext/string/#/starts-with/shim.js
generated
vendored
2
node_modules/es5-ext/string/#/starts-with/shim.js
generated
vendored
@@ -5,7 +5,7 @@ var value = require("../../../object/valid-value")
|
||||
, max = Math.max
|
||||
, min = Math.min;
|
||||
|
||||
module.exports = function (searchString/*, position*/) {
|
||||
module.exports = function (searchString /*, position*/) {
|
||||
var start, self = String(value(this));
|
||||
start = min(max(toInteger(arguments[1]), 0), self.length);
|
||||
return self.indexOf(searchString, start) === start;
|
||||
|
||||
25
node_modules/es5-ext/string/format-method.js
generated
vendored
25
node_modules/es5-ext/string/format-method.js
generated
vendored
@@ -10,18 +10,17 @@ module.exports = function (fmap) {
|
||||
var context = this;
|
||||
value(context);
|
||||
pattern = String(pattern);
|
||||
return pattern.replace(/%([a-zA-Z]+)|\\([\u0000-\uffff])/g, function (
|
||||
match,
|
||||
token,
|
||||
escapeChar
|
||||
) {
|
||||
var t, result;
|
||||
if (escapeChar) return escapeChar;
|
||||
t = token;
|
||||
while (t && !(result = fmap[t])) t = t.slice(0, -1);
|
||||
if (!result) return match;
|
||||
if (isCallable(result)) result = call.call(result, context);
|
||||
return result + token.slice(t.length);
|
||||
});
|
||||
return pattern.replace(
|
||||
/%([a-zA-Z]+)|\\([\u0000-\uffff])/g,
|
||||
function (match, token, escapeChar) {
|
||||
var t, result;
|
||||
if (escapeChar) return escapeChar;
|
||||
t = token;
|
||||
while (t && !(result = fmap[t])) t = t.slice(0, -1);
|
||||
if (!result) return match;
|
||||
if (isCallable(result)) result = call.call(result, context);
|
||||
return result + token.slice(t.length);
|
||||
}
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
2
node_modules/es5-ext/string/from-code-point/shim.js
generated
vendored
2
node_modules/es5-ext/string/from-code-point/shim.js
generated
vendored
@@ -9,7 +9,7 @@
|
||||
var floor = Math.floor, fromCharCode = String.fromCharCode;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = function (codePoint1/*, …codePoints*/) {
|
||||
module.exports = function (codePoint1 /*, …codePoints*/) {
|
||||
var chars = [], length = arguments.length, i, codePoint, result = "";
|
||||
for (i = 0; i < length; ++i) {
|
||||
codePoint = Number(arguments[i]);
|
||||
|
||||
2
node_modules/es5-ext/string/raw/shim.js
generated
vendored
2
node_modules/es5-ext/string/raw/shim.js
generated
vendored
@@ -4,7 +4,7 @@ var toPosInt = require("../../number/to-pos-integer")
|
||||
, validValue = require("../../object/valid-value")
|
||||
, reduce = Array.prototype.reduce;
|
||||
|
||||
module.exports = function (callSite/*, …substitutions*/) {
|
||||
module.exports = function (callSite /*, …substitutions*/) {
|
||||
var args, rawValue = Object(validValue(Object(validValue(callSite)).raw));
|
||||
if (!toPosInt(rawValue.length)) return "";
|
||||
args = arguments;
|
||||
|
||||
12
node_modules/es5-ext/test/.eslintrc.json
generated
vendored
12
node_modules/es5-ext/test/.eslintrc.json
generated
vendored
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"globals": { "Symbol": true },
|
||||
"rules": {
|
||||
"consistent-this": "off",
|
||||
"id-length": "off",
|
||||
"no-empty-function": "off",
|
||||
"no-eval": "off",
|
||||
"no-new-wrappers": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-shadow": "off"
|
||||
}
|
||||
}
|
||||
3
node_modules/es5-ext/test/__tad.js
generated
vendored
3
node_modules/es5-ext/test/__tad.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.context = null;
|
||||
5
node_modules/es5-ext/test/array/#/@@iterator/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/@@iterator/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/@@iterator/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/@@iterator/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/@@iterator/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
9
node_modules/es5-ext/test/array/#/@@iterator/shim.js
generated
vendored
9
node_modules/es5-ext/test/array/#/@@iterator/shim.js
generated
vendored
@@ -1,9 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__generic = function (t, a) {
|
||||
var iterator = t.call(this);
|
||||
a.deep(iterator.next(), { value: "1", done: false });
|
||||
a.deep(iterator.next(), { value: "2", done: false });
|
||||
a.deep(iterator.next(), { value: "3", done: false });
|
||||
a.deep(iterator.next(), { value: undefined, done: true });
|
||||
};
|
||||
7
node_modules/es5-ext/test/array/#/_compare-by-length.js
generated
vendored
7
node_modules/es5-ext/test/array/#/_compare-by-length.js
generated
vendored
@@ -1,7 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var arr = [4, 5, 6], obj1 = { length: 8 }, obj2 = {}, obj3 = { length: 1 };
|
||||
|
||||
a.deep([arr, obj1, obj2, obj3].sort(t), [obj2, obj3, arr, obj1]);
|
||||
};
|
||||
15
node_modules/es5-ext/test/array/#/binary-search.js
generated
vendored
15
node_modules/es5-ext/test/array/#/binary-search.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var compare = function (value) { return this - value; };
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var arr;
|
||||
arr = [2, 5, 5, 8, 34, 67, 98, 345, 678];
|
||||
|
||||
// Highest, equal match
|
||||
a(t.call(arr, compare.bind(1)), 0, "All higher");
|
||||
a(t.call(arr, compare.bind(679)), arr.length - 1, "All lower");
|
||||
a(t.call(arr, compare.bind(4)), 0, "Mid");
|
||||
a(t.call(arr, compare.bind(5)), 2, "Match");
|
||||
a(t.call(arr, compare.bind(6)), 2, "Above");
|
||||
};
|
||||
7
node_modules/es5-ext/test/array/#/clear.js
generated
vendored
7
node_modules/es5-ext/test/array/#/clear.js
generated
vendored
@@ -1,7 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var arr = [1, 2, {}, 4];
|
||||
a(t.call(arr), arr, "Returns same array");
|
||||
a.deep(arr, [], "Empties array");
|
||||
};
|
||||
15
node_modules/es5-ext/test/array/#/compact.js
generated
vendored
15
node_modules/es5-ext/test/array/#/compact.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"__generic": function (t, a) { a(t.call(this).length, 3); },
|
||||
"": function (t, a) {
|
||||
var o, x, y, z;
|
||||
o = {};
|
||||
x = [0, 1, "", null, o, false, undefined, true];
|
||||
y = x.slice(0);
|
||||
|
||||
a.not((z = t.call(x)), x, "Returns different object");
|
||||
a.deep(x, y, "Origin not changed");
|
||||
a.deep(z, [0, 1, "", o, false, true], "Result");
|
||||
}
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/concat/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/concat/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/concat/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/concat/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/concat/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/concat/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/concat/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
29
node_modules/es5-ext/test/array/#/concat/shim.js
generated
vendored
29
node_modules/es5-ext/test/array/#/concat/shim.js
generated
vendored
@@ -1,29 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isConcatSpreadable = require("es6-symbol").isConcatSpreadable
|
||||
, SubArray = require("../../../../array/_sub-array-dummy-safe");
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var arr = [1, 3, 45], x = {}, subArr, subArr2, result;
|
||||
|
||||
a.deep(
|
||||
t.call(arr, "2d", x, ["ere", "fe", x], false, null),
|
||||
[1, 3, 45, "2d", x, "ere", "fe", x, false, null], "Plain array"
|
||||
);
|
||||
|
||||
subArr = new SubArray("lol", "miszko");
|
||||
subArr2 = new SubArray("elo", "fol");
|
||||
|
||||
result = t.call(subArr, "df", arr, "fef", subArr2, null);
|
||||
a(result instanceof SubArray, true, "Instance of subclass");
|
||||
a.deep(
|
||||
result, ["lol", "miszko", "df", 1, 3, 45, "fef", "elo", "fol", null], "Spreable by default"
|
||||
);
|
||||
|
||||
SubArray.prototype[isConcatSpreadable] = false;
|
||||
|
||||
result = t.call(subArr, "df", arr, "fef", subArr2, null);
|
||||
a.deep(result, [subArr, "df", 1, 3, 45, "fef", subArr2, null], "Non spreadable");
|
||||
|
||||
delete SubArray.prototype[isConcatSpreadable];
|
||||
};
|
||||
21
node_modules/es5-ext/test/array/#/contains.js
generated
vendored
21
node_modules/es5-ext/test/array/#/contains.js
generated
vendored
@@ -1,21 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"__generic": function (t, a) {
|
||||
a(t.call(this, this[1]), true, "Contains");
|
||||
a(t.call(this, {}), false, "Does Not contain");
|
||||
},
|
||||
"": function (t, a) {
|
||||
var o, x = {}, y = {};
|
||||
|
||||
o = [1, "raz", x];
|
||||
|
||||
a(t.call(o, 1), true, "First");
|
||||
a(t.call(o, "1"), false, "Type coercion");
|
||||
a(t.call(o, "raz"), true, "Primitive");
|
||||
a(t.call(o, "foo"), false, "Primitive not found");
|
||||
a(t.call(o, x), true, "Object found");
|
||||
a(t.call(o, y), false, "Object not found");
|
||||
a(t.call(o, 1, 1), false, "Position");
|
||||
}
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/copy-within/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/copy-within/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/copy-within/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/copy-within/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/copy-within/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
29
node_modules/es5-ext/test/array/#/copy-within/shim.js
generated
vendored
29
node_modules/es5-ext/test/array/#/copy-within/shim.js
generated
vendored
@@ -1,29 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var args, x;
|
||||
|
||||
a.h1("2 args");
|
||||
x = [1, 2, 3, 4, 5];
|
||||
t.call(x, 0, 3);
|
||||
a.deep(x, [4, 5, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]);
|
||||
|
||||
a.h1("3 args");
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]);
|
||||
|
||||
a.h1("Negative args");
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]);
|
||||
|
||||
a.h1("Array-likes");
|
||||
args = { 0: 1, 1: 2, 2: 3, length: 3 };
|
||||
a.deep(t.call(args, -2, 0), { 0: 1, 1: 1, 2: 2, length: 3 });
|
||||
};
|
||||
13
node_modules/es5-ext/test/array/#/diff.js
generated
vendored
13
node_modules/es5-ext/test/array/#/diff.js
generated
vendored
@@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"__generic": function (t, a) { a.deep(t.call(this, this), []); },
|
||||
"": function (t, a) {
|
||||
var x = {}, y = {};
|
||||
|
||||
a.deep(t.call([1, "raz", x, 2, "trzy", y], [x, 2, "trzy"]), [1, "raz", y], "Scope longer");
|
||||
a.deep(t.call([1, "raz", x], [x, 2, "trzy", 1, y]), ["raz"], "Arg longer");
|
||||
a.deep(t.call([1, "raz", x], []), [1, "raz", x], "Empty arg");
|
||||
a.deep(t.call([], [1, y, "sdfs"]), [], "Empty scope");
|
||||
}
|
||||
};
|
||||
13
node_modules/es5-ext/test/array/#/e-index-of.js
generated
vendored
13
node_modules/es5-ext/test/array/#/e-index-of.js
generated
vendored
@@ -1,13 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var x = {};
|
||||
a(t.call([3, "raz", {}, x, {}], x), 3, "Regular");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN), 2, "NaN");
|
||||
a(t.call([3, "raz", 0, {}, -0], -0), 2, "-0");
|
||||
a(t.call([3, "raz", -0, {}, 0], +0), 2, "+0");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 4, "fromIndex");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN, -1), 4, "fromIndex negative #1");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN, -2), 4, "fromIndex negative #2");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN, -3), 2, "fromIndex negative #3");
|
||||
};
|
||||
12
node_modules/es5-ext/test/array/#/e-last-index-of.js
generated
vendored
12
node_modules/es5-ext/test/array/#/e-last-index-of.js
generated
vendored
@@ -1,12 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var x = {};
|
||||
a(t.call([3, "raz", {}, x, {}, x], x), 5, "Regular");
|
||||
a(t.call([3, "raz", NaN, {}, x], NaN), 2, "NaN");
|
||||
a(t.call([3, "raz", 0, {}, -0], -0), 4, "-0");
|
||||
a(t.call([3, "raz", -0, {}, 0], +0), 4, "+0");
|
||||
a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 2, "fromIndex");
|
||||
a(t.call([3, "raz", NaN, 2, NaN], NaN, -1), 4, "Negative fromIndex #1");
|
||||
a(t.call([3, "raz", NaN, 2, NaN], NaN, -2), 2, "Negative fromIndex #2");
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/entries/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/entries/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/entries/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/entries/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/entries/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/entries/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/entries/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
9
node_modules/es5-ext/test/array/#/entries/shim.js
generated
vendored
9
node_modules/es5-ext/test/array/#/entries/shim.js
generated
vendored
@@ -1,9 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__generic = function (t, a) {
|
||||
var iterator = t.call(this);
|
||||
a.deep(iterator.next(), { value: [0, "1"], done: false });
|
||||
a.deep(iterator.next(), { value: [1, "2"], done: false });
|
||||
a.deep(iterator.next(), { value: [2, "3"], done: false });
|
||||
a.deep(iterator.next(), { value: undefined, done: true });
|
||||
};
|
||||
15
node_modules/es5-ext/test/array/#/exclusion.js
generated
vendored
15
node_modules/es5-ext/test/array/#/exclusion.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"__generic": function (t, a) {
|
||||
var x = {};
|
||||
a.deep(t.call(this, this, [this[0], this[2], x]), [x]);
|
||||
},
|
||||
"": function (t, a) {
|
||||
var x = {}, y = {};
|
||||
|
||||
a.deep(t.call([x, y]), [x, y], "No arguments");
|
||||
a.deep(t.call([x, 1], [], []), [x, 1], "Empty arguments");
|
||||
a.deep(t.call([1, "raz", x], [2, "raz", y], [2, "raz", x]), [1, y]);
|
||||
}
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/fill/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/fill/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/fill/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/fill/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/fill/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/fill/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/fill/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
15
node_modules/es5-ext/test/array/#/fill/shim.js
generated
vendored
15
node_modules/es5-ext/test/array/#/fill/shim.js
generated
vendored
@@ -1,15 +0,0 @@
|
||||
// Taken from https://github.com/paulmillr/es6-shim/blob/master/test/array.js
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var x;
|
||||
|
||||
x = [1, 2, 3, 4, 5, 6];
|
||||
a(t.call(x, -1), x, "Returns self object");
|
||||
a.deep(x, [-1, -1, -1, -1, -1, -1], "Value");
|
||||
|
||||
a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 3), [1, 2, 3, -1, -1, -1], "Positive start");
|
||||
a.deep(t.call([1, 2, 3, 4, 5, 6], -1, -3), [1, 2, 3, -1, -1, -1], "Negative start");
|
||||
a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 9), [1, 2, 3, 4, 5, 6], "Large start");
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/filter/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/filter/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/filter/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/filter/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/filter/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/filter/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/filter/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
17
node_modules/es5-ext/test/array/#/filter/shim.js
generated
vendored
17
node_modules/es5-ext/test/array/#/filter/shim.js
generated
vendored
@@ -1,17 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var SubArray = require("../../../../array/_sub-array-dummy-safe");
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var arr, x = {}, subArr, result;
|
||||
|
||||
arr = ["foo", undefined, 0, "2d", false, x, null];
|
||||
|
||||
a.deep(t.call(arr, Boolean), ["foo", "2d", x], "Plain array");
|
||||
|
||||
subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
|
||||
|
||||
result = t.call(subArr, Boolean);
|
||||
a(result instanceof SubArray, true, "Instance of subclass");
|
||||
a.deep(result, ["foo", "2d", x], "Result of subclass");
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/find-index/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/find-index/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/find-index/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/find-index/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/find-index/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/find-index/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/find-index/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
23
node_modules/es5-ext/test/array/#/find-index/shim.js
generated
vendored
23
node_modules/es5-ext/test/array/#/find-index/shim.js
generated
vendored
@@ -1,23 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__generic = function (t, a) {
|
||||
var count = 0, o = {}, self = Object(this);
|
||||
a(
|
||||
t.call(
|
||||
self,
|
||||
function (value, i, scope) {
|
||||
a(value, this[i], "Value");
|
||||
a(i, count++, "Index");
|
||||
a(scope, this, "Scope");
|
||||
},
|
||||
self
|
||||
),
|
||||
-1,
|
||||
"Falsy result"
|
||||
);
|
||||
a(count, 3);
|
||||
|
||||
count = -1;
|
||||
a(t.call(this, function () { return ++count ? o : null; }, this), 1, "Truthy result");
|
||||
a(count, 1);
|
||||
};
|
||||
5
node_modules/es5-ext/test/array/#/find/implement.js
generated
vendored
5
node_modules/es5-ext/test/array/#/find/implement.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/find/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
||||
3
node_modules/es5-ext/test/array/#/find/index.js
generated
vendored
3
node_modules/es5-ext/test/array/#/find/index.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
||||
3
node_modules/es5-ext/test/array/#/find/is-implemented.js
generated
vendored
3
node_modules/es5-ext/test/array/#/find/is-implemented.js
generated
vendored
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
||||
23
node_modules/es5-ext/test/array/#/find/shim.js
generated
vendored
23
node_modules/es5-ext/test/array/#/find/shim.js
generated
vendored
@@ -1,23 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__generic = function (t, a) {
|
||||
var count = 0, o = {}, self = Object(this);
|
||||
a(
|
||||
t.call(
|
||||
self,
|
||||
function (value, i, scope) {
|
||||
a(value, this[i], "Value");
|
||||
a(i, count++, "Index");
|
||||
a(scope, this, "Scope");
|
||||
},
|
||||
self
|
||||
),
|
||||
undefined,
|
||||
"Falsy result"
|
||||
);
|
||||
a(count, 3);
|
||||
|
||||
count = -1;
|
||||
a(t.call(this, function () { return ++count ? o : null; }, this), this[1], "Truthy result");
|
||||
a(count, 1);
|
||||
};
|
||||
17
node_modules/es5-ext/test/array/#/first-index.js
generated
vendored
17
node_modules/es5-ext/test/array/#/first-index.js
generated
vendored
@@ -1,17 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var x;
|
||||
a(t.call([]), null, "Empty");
|
||||
a(t.call([null]), 0, "One value");
|
||||
a(t.call([1, 2, 3]), 0, "Many values");
|
||||
a(t.call(new Array(1000)), null, "Sparse empty");
|
||||
x = [];
|
||||
x[883] = undefined;
|
||||
x[890] = null;
|
||||
a(t.call(x), 883, "Manual sparse, distant value");
|
||||
x = new Array(1000);
|
||||
x[657] = undefined;
|
||||
x[700] = null;
|
||||
a(t.call(x), 657, "Sparse, distant value");
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user