Skip to content

Commit c594f9f

Browse files
committed
fix(lodash): corrected checked in lodash version
1 parent 649d9f9 commit c594f9f

File tree

149 files changed

+129808
-6699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+129808
-6699
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"dependencies": {
1616
"jquery": "3.1.0",
17-
"lodash": "3.10.1",
17+
"lodash": "4.15.0",
1818
"angular": "1.5.3",
1919
"angular-route": "1.5.3",
2020
"angular-mocks": "1.5.3",

public/vendor/lodash/.bower.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
{
22
"name": "lodash",
3-
"main": "lodash.js",
4-
"ignore": [
5-
".*",
6-
"*.custom.*",
7-
"*.log",
8-
"*.map",
9-
"*.md",
10-
"lodash.src.js",
11-
"component.json",
12-
"package.json",
13-
"doc",
14-
"node_modules",
15-
"perf",
16-
"test",
17-
"vendor"
18-
],
193
"homepage": "https://github.com/lodash/lodash",
20-
"version": "3.10.1",
21-
"_release": "3.10.1",
4+
"version": "4.15.0",
5+
"_release": "4.15.0",
226
"_resolution": {
237
"type": "version",
24-
"tag": "3.10.1",
25-
"commit": "ef20b4290cc4fe7551c82a552ea7ffa76548eec8"
8+
"tag": "4.15.0",
9+
"commit": "e538563f2cf208980f24cda75ba21fabf939a604"
2610
},
2711
"_source": "https://github.com/lodash/lodash.git",
28-
"_target": "3.10.1",
12+
"_target": "4.15.0",
2913
"_originalSource": "lodash"
3014
}

public/vendor/lodash/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

public/vendor/lodash/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributing to Lodash
2+
3+
Contributions are always welcome. Before contributing please read the
4+
[code of conduct](https://jquery.org/conduct/) &
5+
[search the issue tracker](https://github.com/lodash/lodash/issues); your issue
6+
may have already been discussed or fixed in `master`. To contribute,
7+
[fork](https://help.github.com/articles/fork-a-repo/) Lodash, commit your changes,
8+
& [send a pull request](https://help.github.com/articles/using-pull-requests/).
9+
10+
## Feature Requests
11+
12+
Feature requests should be submitted in the
13+
[issue tracker](https://github.com/lodash/lodash/issues), with a description of
14+
the expected behavior & use case, where they’ll remain closed until sufficient interest,
15+
[e.g. :+1: reactions](https://help.github.com/articles/about-discussions-in-issues-and-pull-requests/),
16+
has been [shown by the community](https://github.com/lodash/lodash/issues?q=label%3A%22votes+needed%22+sort%3Areactions-%2B1-desc).
17+
Before submitting a request, please search for similar ones in the
18+
[closed issues](https://github.com/lodash/lodash/issues?q=is%3Aissue+is%3Aclosed+label%3Aenhancement).
19+
20+
## Pull Requests
21+
22+
For additions or bug fixes you should only need to modify `lodash.js`. Include
23+
updated unit tests in the `test` directory as part of your pull request. Don’t
24+
worry about regenerating the `dist/` or `doc/` files.
25+
26+
Before running the unit tests you’ll need to install, `npm i`,
27+
[development dependencies](https://docs.npmjs.com/files/package.json#devdependencies).
28+
Run unit tests from the command-line via `npm test`, or open `test/index.html` &
29+
`test/fp.html` in a web browser. The [Backbone](http://backbonejs.org/) &
30+
[Underscore](http://underscorejs.org/) test suites are included as well.
31+
32+
## Contributor License Agreement
33+
34+
Lodash is a member of the [jQuery Foundation](https://jquery.org/).
35+
As such, we request that all contributors sign the jQuery Foundation
36+
[contributor license agreement (CLA)](https://contribute.jquery.org/CLA/).
37+
38+
For more information about CLAs, please check out Alex Russell’s excellent post,
39+
[“Why Do I Need to Sign This?”](https://infrequently.org/2008/06/why-do-i-need-to-sign-this/).
40+
41+
## Coding Guidelines
42+
43+
In addition to the following guidelines, please follow the conventions already
44+
established in the code.
45+
46+
- **Spacing**:<br>
47+
Use two spaces for indentation. No tabs.
48+
49+
- **Naming**:<br>
50+
Keep variable & method names concise & descriptive.<br>
51+
Variable names `index`, `array`, & `iteratee` are preferable to
52+
`i`, `arr`, & `fn`.
53+
54+
- **Quotes**:<br>
55+
Single-quoted strings are preferred to double-quoted strings; however,
56+
please use a double-quoted string if the value contains a single-quote
57+
character to avoid unnecessary escaping.
58+
59+
- **Comments**:<br>
60+
Please use single-line comments to annotate significant additions, &
61+
[JSDoc-style](http://www.2ality.com/2011/08/jsdoc-intro.html) comments for
62+
functions.
63+
64+
Guidelines are enforced using [JSCS](https://www.npmjs.com/package/jscs):
65+
```bash
66+
$ npm run style
67+
```
68+
69+
## Tips
70+
71+
You can opt-in to a pre-push git hook by adding an `.opt-in` file to the root of
72+
the project containing:
73+
```txt
74+
pre-push
75+
```
76+
77+
With that, when you `git push`, the pre-push git hook will trigger and execute
78+
`npm run validate`.

public/vendor/lodash/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
*.log
3+
doc/*.html
4+
node_modules

public/vendor/lodash/.jscsrc

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"maxErrors": "2000",
3+
"maximumLineLength": {
4+
"value": 180,
5+
"allExcept": ["comments", "functionSignature", "regex"]
6+
},
7+
"requireCurlyBraces": [
8+
"if",
9+
"else",
10+
"for",
11+
"while",
12+
"do",
13+
"try",
14+
"catch"
15+
],
16+
"requireOperatorBeforeLineBreak": [
17+
"=",
18+
"+",
19+
"-",
20+
"/",
21+
"*",
22+
"==",
23+
"===",
24+
"!=",
25+
"!==",
26+
">",
27+
">=",
28+
"<",
29+
"<="
30+
],
31+
"requireSpaceAfterKeywords": [
32+
"if",
33+
"else",
34+
"for",
35+
"while",
36+
"do",
37+
"switch",
38+
"return",
39+
"try",
40+
"catch"
41+
],
42+
"requireSpaceBeforeBinaryOperators": [
43+
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
44+
"&=", "|=", "^=", "+=",
45+
46+
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
47+
"|", "^", "&&", "||", "===", "==", ">=",
48+
"<=", "<", ">", "!=", "!=="
49+
],
50+
"requireSpacesInFunctionExpression": {
51+
"beforeOpeningCurlyBrace": true
52+
},
53+
"requireCamelCaseOrUpperCaseIdentifiers": true,
54+
"requireDotNotation": { "allExcept": ["keywords"] },
55+
"requireEarlyReturn": true,
56+
"requireLineFeedAtFileEnd": true,
57+
"requireSemicolons": true,
58+
"requireSpaceAfterBinaryOperators": true,
59+
"requireSpacesInConditionalExpression": true,
60+
"requireSpaceBeforeObjectValues": true,
61+
"requireSpaceBeforeBlockStatements": true,
62+
"requireSpacesInForStatement": true,
63+
64+
"validateIndentation": 2,
65+
"validateParameterSeparator": ", ",
66+
"validateQuoteMarks": { "mark": "'", "escape": true },
67+
68+
"disallowSpacesInAnonymousFunctionExpression": {
69+
"beforeOpeningRoundBrace": true
70+
},
71+
"disallowSpacesInFunctionDeclaration": {
72+
"beforeOpeningRoundBrace": true
73+
},
74+
"disallowSpacesInFunctionExpression": {
75+
"beforeOpeningRoundBrace": true
76+
},
77+
"disallowKeywords": ["with"],
78+
"disallowMixedSpacesAndTabs": true,
79+
"disallowMultipleLineBreaks": true,
80+
"disallowNewlineBeforeBlockStatements": true,
81+
"disallowSpaceAfterObjectKeys": true,
82+
"disallowSpaceAfterPrefixUnaryOperators": true,
83+
"disallowSpacesInCallExpression": true,
84+
"disallowSpacesInsideArrayBrackets": true,
85+
"disallowSpacesInsideParentheses": true,
86+
"disallowTrailingWhitespace": true,
87+
"disallowUnusedVariables": true,
88+
89+
"jsDoc": {
90+
"checkRedundantAccess": true,
91+
"checkTypes": true,
92+
"requireNewlineAfterDescription": true,
93+
"requireParamDescription": true,
94+
"requireParamTypes": true,
95+
"requireReturnTypes": true
96+
}
97+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
delete global['__core-js_shared__'];
4+
5+
var _ = require('./lodash.js'),
6+
globals = require('lodash-doc-globals');
7+
8+
module.exports = {
9+
'babel': false,
10+
'globals': _.assign({ '_': _ }, globals)
11+
};

public/vendor/lodash/.travis.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
language: node_js
2+
sudo: false
3+
node_js:
4+
- "6"
5+
cache:
6+
directories:
7+
- $HOME/.npm
8+
- travis_phantomjs
9+
env:
10+
global:
11+
- BIN="node" ISTANBUL=false OPTION=""
12+
- SAUCE_LABS=false SAUCE_USERNAME="lodash"
13+
- secure: "tg1JFsIFnxzLaTboFPOnm+aJCuMm5+JdhLlESlqg9x3fwro++7KCnwHKLNovhchaPe4otC43ZMB/nfWhDnDm11dKbm/V6HlTkED+dadTsaLxVDg6J+7yK41QhokBPJOxLV78iDaNaAQVYEirAgZ0yn8kFubxmNKV+bpCGQNc9yU="
14+
matrix:
15+
-
16+
- BIN="phantomjs"
17+
- ISTANBUL=true
18+
- SAUCE_LABS=true
19+
matrix:
20+
include:
21+
- node_js: "0.10"
22+
env:
23+
- node_js: "0.12"
24+
env:
25+
- node_js: "4"
26+
env:
27+
- node_js: "5"
28+
env:
29+
git:
30+
depth: 10
31+
branches:
32+
only:
33+
- master
34+
notifications:
35+
webhooks:
36+
urls:
37+
- https://webhooks.gitter.im/e/4aab6358b0e9aed0b628
38+
on_success: change
39+
on_failure: always
40+
before_install:
41+
# Upgrade PhantomJS to v2.1.1.
42+
- "export PHANTOMJS_VERSION=2.1.1"
43+
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
44+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
45+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
46+
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
47+
- "phantomjs --version"
48+
49+
# Use exact Node version.
50+
- "nvm use $TRAVIS_NODE_VERSION"
51+
52+
# Setup npm.
53+
- "npm set loglevel error"
54+
- "npm set progress false"
55+
- "npm i -g npm@\"^2.0.0\""
56+
57+
# Remove code skipped on the coverage run.
58+
- |
59+
PATTERN[0]="|\s*if\s*\(isHostObject\b[\s\S]+?\}(?=\n)|"
60+
PATTERN[1]="|\s*if\s*\(enumerate\b[\s\S]+?\};\s*\}|"
61+
PATTERN[2]="|\s*while\s*\([^)]+\)\s*\{\s*iteratee\(index\);\s*\}|"
62+
PATTERN[3]="|\s*else\s*\{\s*assocSet\(data\b[\s\S]+?\}|"
63+
PATTERN[4]="|\bcase\s+(?:dataView|promise|set|map|weakMap)CtorString:.+|g"
64+
PATTERN[5]="|\bindex,\s*iterable\)\s*===\s*false\)[^}]+?(break;)|"
65+
PATTERN[6]="|\s*if\s*\(\!lodashFunc\)\s*\{\s*return;\s*\}|"
66+
PATTERN[7]="|\s*define\([\s\S]+?\);|"
67+
PATTERN[8]="|\s*root\._\s*=\s*_;|"
68+
69+
if [ $ISTANBUL == true ]; then
70+
set -e
71+
for PTRN in ${PATTERN[@]}; do
72+
node ./test/remove.js "$PTRN" ./lodash.js
73+
done
74+
fi
75+
76+
# Use lodash-cli from GitHub.
77+
- "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./node_modules/lodash-cli"
78+
- "mkdir -p ./node_modules/lodash-cli/node_modules/lodash && cd $_ && cp ../../../../lodash.js ./lodash.js && cp ../../../../package.json ./package.json"
79+
- "cd ../../ && npm i --production && cd ../../"
80+
81+
script:
82+
# Detect code coverage.
83+
- "[ $ISTANBUL == false ] || istanbul cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./lodash.js"
84+
- "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/lcov.info | coveralls) || true"
85+
- "[ $ISTANBUL == false ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/coverage.json | codecov) || true"
86+
87+
# Test in Node.js and PhantomJS.
88+
- "[ $ISTANBUL == true ] || node ./node_modules/lodash-cli/bin/lodash -o ./dist/lodash.js"
89+
- "[ $ISTANBUL == true ] || (node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./ && node ./node_modules/lodash-cli/bin/lodash -d -o ./lodash.js)"
90+
- "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || cd ./test"
91+
- "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || $BIN $OPTION ./test.js ../lodash.js"
92+
- "[ $ISTANBUL == true ] || [ $SAUCE_LABS == true ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || $BIN $OPTION ./test.js ../dist/lodash.min.js"
93+
94+
# Test in Sauce Labs.
95+
- "[ $SAUCE_LABS == false ] || node ./node_modules/lodash-cli/bin/lodash core -o ./dist/lodash.core.js"
96+
- "[ $SAUCE_LABS == false ] || npm run build"
97+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" runner=\"test/index.html?build=../dist/lodash.js&noglobals=true\" tags=\"development\""
98+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\" runner=\"test/index.html?build=../dist/lodash.min.js&noglobals=true\" tags=\"production\""
99+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash-fp tests\" runner=\"test/fp.html?noglobals=true\" tags=\"development\""
100+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.js\" tags=\"development,underscore\""
101+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.min.js\" tags=\"production,underscore\""
102+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.js\" tags=\"development,backbone\""
103+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.min.js\" tags=\"production,backbone\""
104+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.core.js\" tags=\"development,backbone\""
105+
- "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.core.min.js\" tags=\"production,backbone\""

public/vendor/lodash/LICENSE

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
2-
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
1+
Copyright jQuery Foundation and other contributors <https://jquery.org/>
2+
3+
Based on Underscore.js, copyright Jeremy Ashkenas,
34
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
45

6+
This software consists of voluntary contributions made by many
7+
individuals. For exact contribution history, see the revision history
8+
available at https://github.com/lodash/lodash
9+
10+
The following license applies to all parts of this software except as
11+
documented below:
12+
13+
====
14+
515
Permission is hereby granted, free of charge, to any person obtaining
616
a copy of this software and associated documentation files (the
717
"Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
2030
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2131
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2232
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33+
34+
====
35+
36+
Copyright and related rights for sample code are waived via CC0. Sample
37+
code is defined as all source code displayed within the prose of the
38+
documentation.
39+
40+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
41+
42+
====
43+
44+
Files located in the node_modules and vendor directories are externally
45+
maintained libraries used by this software which have their own
46+
licenses; we recommend you read them, as their terms may differ from the
47+
terms above.

0 commit comments

Comments
 (0)