trusty-cms 4.3 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +79 -77
- data/app/assets/config/trusty-cms-manifest.js +6 -0
- data/app/assets/javascripts/ckeditor/config.js +2 -2
- data/app/controllers/admin/assets_controller.rb +1 -1
- data/config/initializers/assets.rb +0 -4
- data/lib/trusty_cms.rb +1 -1
- data/node_modules/hosted-git-info/CHANGELOG.md +10 -0
- data/node_modules/hosted-git-info/index.js +2 -2
- data/node_modules/hosted-git-info/package.json +1 -1
- data/node_modules/lodash/README.md +2 -2
- data/node_modules/lodash/_baseClone.js +2 -1
- data/node_modules/lodash/_baseOrderBy.js +17 -2
- data/node_modules/lodash/_baseSet.js +4 -0
- data/node_modules/lodash/_baseSortedIndexBy.js +7 -4
- data/node_modules/lodash/_baseTrim.js +19 -0
- data/node_modules/lodash/_equalArrays.js +5 -4
- data/node_modules/lodash/_equalObjects.js +5 -4
- data/node_modules/lodash/_trimmedEndIndex.js +19 -0
- data/node_modules/lodash/core.js +48 -6
- data/node_modules/lodash/core.min.js +9 -9
- data/node_modules/lodash/filter.js +4 -0
- data/node_modules/lodash/flake.lock +40 -0
- data/node_modules/lodash/flake.nix +20 -0
- data/node_modules/lodash/lodash.js +59 -11
- data/node_modules/lodash/lodash.min.js +126 -125
- data/node_modules/lodash/matches.js +7 -0
- data/node_modules/lodash/matchesProperty.js +7 -0
- data/node_modules/lodash/overEvery.js +4 -0
- data/node_modules/lodash/overSome.js +7 -0
- data/node_modules/lodash/package.json +1 -1
- data/node_modules/lodash/parseInt.js +1 -1
- data/node_modules/lodash/release.md +48 -0
- data/node_modules/lodash/sortBy.js +3 -3
- data/node_modules/lodash/template.js +24 -5
- data/node_modules/lodash/toNumber.js +3 -5
- data/node_modules/lodash/trim.js +2 -4
- data/node_modules/lodash/trimEnd.js +3 -5
- data/node_modules/lodash/trimStart.js +1 -1
- data/trusty_cms.gemspec +2 -1
- data/yarn.lock +6 -6
- metadata +11 -5
@@ -22,11 +22,14 @@ var nativeFloor = Math.floor,
|
|
22
22
|
* into `array`.
|
23
23
|
*/
|
24
24
|
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
25
|
-
value = iteratee(value);
|
26
|
-
|
27
25
|
var low = 0,
|
28
|
-
high = array == null ? 0 : array.length
|
29
|
-
|
26
|
+
high = array == null ? 0 : array.length;
|
27
|
+
if (high === 0) {
|
28
|
+
return 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
value = iteratee(value);
|
32
|
+
var valIsNaN = value !== value,
|
30
33
|
valIsNull = value === null,
|
31
34
|
valIsSymbol = isSymbol(value),
|
32
35
|
valIsUndefined = value === undefined;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
var trimmedEndIndex = require('./_trimmedEndIndex');
|
2
|
+
|
3
|
+
/** Used to match leading whitespace. */
|
4
|
+
var reTrimStart = /^\s+/;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* The base implementation of `_.trim`.
|
8
|
+
*
|
9
|
+
* @private
|
10
|
+
* @param {string} string The string to trim.
|
11
|
+
* @returns {string} Returns the trimmed string.
|
12
|
+
*/
|
13
|
+
function baseTrim(string) {
|
14
|
+
return string
|
15
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
16
|
+
: string;
|
17
|
+
}
|
18
|
+
|
19
|
+
module.exports = baseTrim;
|
@@ -27,10 +27,11 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
27
27
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
28
28
|
return false;
|
29
29
|
}
|
30
|
-
//
|
31
|
-
var
|
32
|
-
|
33
|
-
|
30
|
+
// Check that cyclic values are equal.
|
31
|
+
var arrStacked = stack.get(array);
|
32
|
+
var othStacked = stack.get(other);
|
33
|
+
if (arrStacked && othStacked) {
|
34
|
+
return arrStacked == other && othStacked == array;
|
34
35
|
}
|
35
36
|
var index = -1,
|
36
37
|
result = true,
|
@@ -39,10 +39,11 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
39
39
|
return false;
|
40
40
|
}
|
41
41
|
}
|
42
|
-
//
|
43
|
-
var
|
44
|
-
|
45
|
-
|
42
|
+
// Check that cyclic values are equal.
|
43
|
+
var objStacked = stack.get(object);
|
44
|
+
var othStacked = stack.get(other);
|
45
|
+
if (objStacked && othStacked) {
|
46
|
+
return objStacked == other && othStacked == object;
|
46
47
|
}
|
47
48
|
var result = true;
|
48
49
|
stack.set(object, other);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/** Used to match a single whitespace character. */
|
2
|
+
var reWhitespace = /\s/;
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
6
|
+
* character of `string`.
|
7
|
+
*
|
8
|
+
* @private
|
9
|
+
* @param {string} string The string to inspect.
|
10
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
11
|
+
*/
|
12
|
+
function trimmedEndIndex(string) {
|
13
|
+
var index = string.length;
|
14
|
+
|
15
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
16
|
+
return index;
|
17
|
+
}
|
18
|
+
|
19
|
+
module.exports = trimmedEndIndex;
|
data/node_modules/lodash/core.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license
|
3
3
|
* Lodash (Custom Build) <https://lodash.com/>
|
4
|
-
* Build: `lodash core
|
4
|
+
* Build: `lodash core -o ./dist/lodash.core.js`
|
5
5
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
6
6
|
* Released under MIT license <https://lodash.com/license>
|
7
7
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
var undefined;
|
14
14
|
|
15
15
|
/** Used as the semantic version number. */
|
16
|
-
var VERSION = '4.17.
|
16
|
+
var VERSION = '4.17.21';
|
17
17
|
|
18
18
|
/** Error message constants. */
|
19
19
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
@@ -1183,6 +1183,12 @@
|
|
1183
1183
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
1184
1184
|
return false;
|
1185
1185
|
}
|
1186
|
+
// Check that cyclic values are equal.
|
1187
|
+
var arrStacked = stack.get(array);
|
1188
|
+
var othStacked = stack.get(other);
|
1189
|
+
if (arrStacked && othStacked) {
|
1190
|
+
return arrStacked == other && othStacked == array;
|
1191
|
+
}
|
1186
1192
|
var index = -1,
|
1187
1193
|
result = true,
|
1188
1194
|
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? [] : undefined;
|
@@ -1293,6 +1299,12 @@
|
|
1293
1299
|
return false;
|
1294
1300
|
}
|
1295
1301
|
}
|
1302
|
+
// Check that cyclic values are equal.
|
1303
|
+
var objStacked = stack.get(object);
|
1304
|
+
var othStacked = stack.get(other);
|
1305
|
+
if (objStacked && othStacked) {
|
1306
|
+
return objStacked == other && othStacked == object;
|
1307
|
+
}
|
1296
1308
|
var result = true;
|
1297
1309
|
|
1298
1310
|
var skipCtor = isPartial;
|
@@ -1935,6 +1947,10 @@
|
|
1935
1947
|
* // The `_.property` iteratee shorthand.
|
1936
1948
|
* _.filter(users, 'active');
|
1937
1949
|
* // => objects for ['barney']
|
1950
|
+
*
|
1951
|
+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
1952
|
+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
1953
|
+
* // => objects for ['fred', 'barney']
|
1938
1954
|
*/
|
1939
1955
|
function filter(collection, predicate) {
|
1940
1956
|
return baseFilter(collection, baseIteratee(predicate));
|
@@ -2188,15 +2204,15 @@
|
|
2188
2204
|
* var users = [
|
2189
2205
|
* { 'user': 'fred', 'age': 48 },
|
2190
2206
|
* { 'user': 'barney', 'age': 36 },
|
2191
|
-
* { 'user': 'fred', 'age':
|
2207
|
+
* { 'user': 'fred', 'age': 30 },
|
2192
2208
|
* { 'user': 'barney', 'age': 34 }
|
2193
2209
|
* ];
|
2194
2210
|
*
|
2195
2211
|
* _.sortBy(users, [function(o) { return o.user; }]);
|
2196
|
-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred',
|
2212
|
+
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
|
2197
2213
|
*
|
2198
2214
|
* _.sortBy(users, ['user', 'age']);
|
2199
|
-
* // => objects for [['barney', 34], ['barney', 36], ['fred',
|
2215
|
+
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
2200
2216
|
*/
|
2201
2217
|
function sortBy(collection, iteratee) {
|
2202
2218
|
var index = 0;
|
@@ -3503,6 +3519,9 @@
|
|
3503
3519
|
* values against any array or object value, respectively. See `_.isEqual`
|
3504
3520
|
* for a list of supported value comparisons.
|
3505
3521
|
*
|
3522
|
+
* **Note:** Multiple values can be checked by combining several matchers
|
3523
|
+
* using `_.overSome`
|
3524
|
+
*
|
3506
3525
|
* @static
|
3507
3526
|
* @memberOf _
|
3508
3527
|
* @since 3.0.0
|
@@ -3518,6 +3537,10 @@
|
|
3518
3537
|
*
|
3519
3538
|
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
|
3520
3539
|
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
|
3540
|
+
*
|
3541
|
+
* // Checking for several possible values
|
3542
|
+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
|
3543
|
+
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
3521
3544
|
*/
|
3522
3545
|
function matches(source) {
|
3523
3546
|
return baseMatches(assign({}, source));
|
@@ -3826,10 +3849,29 @@
|
|
3826
3849
|
|
3827
3850
|
/*--------------------------------------------------------------------------*/
|
3828
3851
|
|
3829
|
-
|
3852
|
+
// Some AMD build optimizers, like r.js, check for condition patterns like:
|
3853
|
+
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
|
3854
|
+
// Expose Lodash on the global object to prevent errors when Lodash is
|
3855
|
+
// loaded by a script tag in the presence of an AMD loader.
|
3856
|
+
// See http://requirejs.org/docs/errors.html#mismatch for more details.
|
3857
|
+
// Use `_.noConflict` to remove Lodash from the global object.
|
3858
|
+
root._ = lodash;
|
3859
|
+
|
3860
|
+
// Define as an anonymous module so, through path mapping, it can be
|
3861
|
+
// referenced as the "underscore" module.
|
3862
|
+
define(function() {
|
3863
|
+
return lodash;
|
3864
|
+
});
|
3865
|
+
}
|
3866
|
+
// Check for `exports` after `define` in case a build optimizer adds it.
|
3867
|
+
else if (freeModule) {
|
3830
3868
|
// Export for Node.js.
|
3831
3869
|
(freeModule.exports = lodash)._ = lodash;
|
3832
3870
|
// Export for CommonJS support.
|
3833
3871
|
freeExports._ = lodash;
|
3834
3872
|
}
|
3873
|
+
else {
|
3874
|
+
// Export to the global object.
|
3875
|
+
root._ = lodash;
|
3876
|
+
}
|
3835
3877
|
}.call(this));
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license
|
3
3
|
* Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
4
|
-
* Build: `lodash core
|
4
|
+
* Build: `lodash core -o ./dist/lodash.core.js`
|
5
5
|
*/
|
6
6
|
;(function(){function n(n){return H(n)&&pn.call(n,"callee")&&!yn.call(n,"callee")}function t(n,t){return n.push.apply(n,t),n}function r(n){return function(t){return null==t?Z:t[n]}}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return j(t,function(t){return n[t]})}function o(n){return n instanceof i?n:new i(n)}function i(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
|
7
7
|
return setTimeout(function(){n.apply(Z,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===Z?i===i:r(i,c)))var c=i,f=o}return f}function l(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function p(n,r,e,u,o){var i=-1,c=n.length;for(e||(e=R),o||(o=[]);++i<c;){var f=n[i];0<r&&e(f)?1<r?p(f,r-1,e,u,o):t(o,f):u||(o[o.length]=f)}return o}function s(n,t){return n&&On(n,t,Dn);
|
@@ -10,12 +10,12 @@ return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if
|
|
10
10
|
r=u(i,f,r,e,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?d:r)(n)}function _(n,t){return n<t}function j(n,t){var r=-1,e=M(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function d(n){var t=_n(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&b(n[u],r[u],3)))return false}return true}}function m(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function O(n){return xn(I(n,void 0,X),n+"");
|
11
11
|
}function x(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function A(n){return x(n,0,n.length)}function E(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function w(n,r){return C(r,function(n,r){return r.func.apply(r.thisArg,t([n],r.args))},n)}function k(n,t,r){var e=!r;r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=Z;if(c===Z&&(c=n[i]),e)r[i]=c;else{var f=r,a=f[i];pn.call(f,i)&&J(a,c)&&(c!==Z||i in f)||(f[i]=c);
|
12
12
|
}}return r}function N(n){return O(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:Z,o=3<n.length&&typeof o=="function"?(u--,o):Z;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function F(n){return function(){var t=arguments,r=dn(n.prototype),t=n.apply(r,t);return V(t)?t:r}}function S(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==on&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");
|
13
|
-
var u=F(n);return e}function T(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(1&r&&c>i))return false;for(var c=-1,f=true,a=2&r?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||u(l,n,r,e,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!u(l,p,r,e,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=1&r,c=Dn(n),f=c.length,a=Dn(t).length;if(f!=a&&!i)return false;for(
|
14
|
-
if(void 0!==Z||s!==h&&!u(s,h,r,e,o)){
|
15
|
-
o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return(null==n?0:n.length)?p(n,1):[]}function q(n){return n&&n.length?n[0]:Z}function P(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,r){return e(n,g(t),r,3>arguments.length,mn)
|
16
|
-
function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n;
|
17
|
-
return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n);
|
18
|
-
if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
|
13
|
+
var u=F(n);return e}function T(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(1&r&&c>i))return false;var c=o.get(n),f=o.get(t);if(c&&f)return c==t&&f==n;for(var c=-1,f=true,a=2&r?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||u(l,n,r,e,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!u(l,p,r,e,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=1&r,c=Dn(n),f=c.length,a=Dn(t).length;if(f!=a&&!i)return false;for(a=f;a--;){var l=c[a];if(!(i?l in t:pn.call(t,l)))return false;
|
14
|
+
}var p=o.get(n),l=o.get(t);if(p&&l)return p==t&&l==n;for(p=true;++a<f;){var l=c[a],s=n[l],h=t[l];if(void 0!==Z||s!==h&&!u(s,h,r,e,o)){p=false;break}i||(i="constructor"==l)}return p&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(p=false)),p}function R(t){return Nn(t)||n(t)}function D(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function I(n,t,r){return t=jn(t===Z?n.length-1:t,0),
|
15
|
+
function(){for(var e=arguments,u=-1,o=jn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return(null==n?0:n.length)?p(n,1):[]}function q(n){return n&&n.length?n[0]:Z}function P(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,r){return e(n,g(t),r,3>arguments.length,mn);
|
16
|
+
}function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Fn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n;
|
17
|
+
return null!=n&&("object"==t||"function"==t)}function H(n){return null!=n&&typeof n=="object"}function K(n){return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n);
|
18
|
+
return mn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
|
19
19
|
return function(t){return null==n?Z:n[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,bn=Object.create,yn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return V(t)?bn?bn(t):(n.prototype=t,t=new n,n.prototype=Z,t):{}}}();i.prototype=dn(o.prototype),i.prototype.constructor=i;
|
20
20
|
var mn=function(n,t){return function(r,e){if(null==r)return r;if(!M(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(s),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=X,An=function(n){return function(t,r,e){var u=Object(t);if(!M(t)){var o=g(r);t=Dn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:Z}}(function(n,t,r){var e=null==n?0:n.length;
|
21
21
|
if(!e)return-1;r=null==r?0:Fn(r),0>r&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),En=O(function(n,t,r){return S(n,t,r)}),wn=O(function(n,t){return c(n,1,t)}),kn=O(function(n,t,r){return c(n,Sn(t)||0,r)}),Nn=Array.isArray,Fn=Number,Sn=Number,Tn=N(function(n,t){k(t,_n(t),n)}),Bn=N(function(n,t){k(t,D(t),n)}),Rn=O(function(n,t){n=Object(n);var r,e=-1,u=t.length,o=2<u?t[2]:Z;if(r=o){r=t[0];var i=t[1];if(V(o)){var c=typeof i;if("number"==c){if(c=M(o))var c=o.length,f=typeof i,c=null==c?9007199254740991:c,c=!!c&&("number"==f||"symbol"!=f&&en.test(i))&&-1<i&&0==i%1&&i<c;
|
@@ -25,5 +25,5 @@ return G(2,n)},o.pick=$n,o.slice=function(n,t,r){var e=null==n?0:n.length;return
|
|
25
25
|
return t(n),n},o.thru=function(n,t){return t(n)},o.toArray=function(n){return M(n)?n.length?A(n):[]:W(n)},o.values=W,o.extend=Bn,Y(o,o),o.clone=function(n){return V(n)?Nn(n)?A(n):k(n,_n(n)):n},o.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,fn):n},o.every=function(n,t,r){return t=r?Z:t,f(n,g(t))},o.find=An,o.forEach=z,o.has=function(n,t){return null!=n&&pn.call(n,t)},o.head=q,o.identity=X,o.indexOf=P,o.isArguments=n,o.isArray=Nn,o.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==hn.call(n);
|
26
26
|
},o.isDate=function(n){return H(n)&&"[object Date]"==hn.call(n)},o.isEmpty=function(t){return M(t)&&(Nn(t)||L(t)||U(t.splice)||n(t))?!t.length:!_n(t).length},o.isEqual=function(n,t){return b(n,t)},o.isFinite=function(n){return typeof n=="number"&&gn(n)},o.isFunction=U,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=V,o.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},o.isString=L,o.isUndefined=function(n){return n===Z},o.last=function(n){
|
27
27
|
var t=null==n?0:n.length;return t?n[t-1]:Z},o.max=function(n){return n&&n.length?a(n,X,v):Z},o.min=function(n){return n&&n.length?a(n,X,_):Z},o.noConflict=function(){return on._===this&&(on._=vn),this},o.noop=function(){},o.reduce=C,o.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},o.size=function(n){return null==n?0:(n=M(n)?n:_n(n),n.length)},o.some=function(n,t,r){return t=r?Z:t,E(n,g(t))},o.uniqueId=function(n){var t=++sn;return Q(n)+t},o.each=z,o.first=q,Y(o,function(){
|
28
|
-
var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.
|
29
|
-
})}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},
|
28
|
+
var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.21",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
|
29
|
+
})}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=o, define(function(){return o})):cn?((cn.exports=o)._=o,un._=o):on._=o}).call(this);
|
@@ -39,6 +39,10 @@ var arrayFilter = require('./_arrayFilter'),
|
|
39
39
|
* // The `_.property` iteratee shorthand.
|
40
40
|
* _.filter(users, 'active');
|
41
41
|
* // => objects for ['barney']
|
42
|
+
*
|
43
|
+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
44
|
+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
45
|
+
* // => objects for ['fred', 'barney']
|
42
46
|
*/
|
43
47
|
function filter(collection, predicate) {
|
44
48
|
var func = isArray(collection) ? arrayFilter : baseFilter;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"nodes": {
|
3
|
+
"nixpkgs": {
|
4
|
+
"locked": {
|
5
|
+
"lastModified": 1613582597,
|
6
|
+
"narHash": "sha256-6LvipIvFuhyorHpUqK3HjySC5Y6gshXHFBhU9EJ4DoM=",
|
7
|
+
"path": "/nix/store/srvplqq673sqd9vyfhyc5w1p88y1gfm4-source",
|
8
|
+
"rev": "6b1057b452c55bb3b463f0d7055bc4ec3fd1f381",
|
9
|
+
"type": "path"
|
10
|
+
},
|
11
|
+
"original": {
|
12
|
+
"id": "nixpkgs",
|
13
|
+
"type": "indirect"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"root": {
|
17
|
+
"inputs": {
|
18
|
+
"nixpkgs": "nixpkgs",
|
19
|
+
"utils": "utils"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"utils": {
|
23
|
+
"locked": {
|
24
|
+
"lastModified": 1610051610,
|
25
|
+
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
|
26
|
+
"owner": "numtide",
|
27
|
+
"repo": "flake-utils",
|
28
|
+
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
|
29
|
+
"type": "github"
|
30
|
+
},
|
31
|
+
"original": {
|
32
|
+
"owner": "numtide",
|
33
|
+
"repo": "flake-utils",
|
34
|
+
"type": "github"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"root": "root",
|
39
|
+
"version": 7
|
40
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
inputs = {
|
3
|
+
utils.url = "github:numtide/flake-utils";
|
4
|
+
};
|
5
|
+
|
6
|
+
outputs = { self, nixpkgs, utils }:
|
7
|
+
utils.lib.eachDefaultSystem (system:
|
8
|
+
let
|
9
|
+
pkgs = nixpkgs.legacyPackages."${system}";
|
10
|
+
in rec {
|
11
|
+
devShell = pkgs.mkShell {
|
12
|
+
nativeBuildInputs = with pkgs; [
|
13
|
+
yarn
|
14
|
+
nodejs-14_x
|
15
|
+
nodePackages.typescript-language-server
|
16
|
+
nodePackages.eslint
|
17
|
+
];
|
18
|
+
};
|
19
|
+
});
|
20
|
+
}
|
@@ -12,14 +12,15 @@
|
|
12
12
|
var undefined;
|
13
13
|
|
14
14
|
/** Used as the semantic version number. */
|
15
|
-
var VERSION = '4.17.
|
15
|
+
var VERSION = '4.17.21';
|
16
16
|
|
17
17
|
/** Used as the size to enable large array optimizations. */
|
18
18
|
var LARGE_ARRAY_SIZE = 200;
|
19
19
|
|
20
20
|
/** Error message constants. */
|
21
21
|
var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
|
22
|
-
FUNC_ERROR_TEXT = 'Expected a function'
|
22
|
+
FUNC_ERROR_TEXT = 'Expected a function',
|
23
|
+
INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
|
23
24
|
|
24
25
|
/** Used to stand-in for `undefined` hash values. */
|
25
26
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
@@ -152,10 +153,11 @@
|
|
152
153
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
153
154
|
reHasRegExpChar = RegExp(reRegExpChar.source);
|
154
155
|
|
155
|
-
/** Used to match leading
|
156
|
-
var
|
157
|
-
|
158
|
-
|
156
|
+
/** Used to match leading whitespace. */
|
157
|
+
var reTrimStart = /^\s+/;
|
158
|
+
|
159
|
+
/** Used to match a single whitespace character. */
|
160
|
+
var reWhitespace = /\s/;
|
159
161
|
|
160
162
|
/** Used to match wrap detail comments. */
|
161
163
|
var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
|
@@ -165,6 +167,18 @@
|
|
165
167
|
/** Used to match words composed of alphanumeric characters. */
|
166
168
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
167
169
|
|
170
|
+
/**
|
171
|
+
* Used to validate the `validate` option in `_.template` variable.
|
172
|
+
*
|
173
|
+
* Forbids characters which could potentially change the meaning of the function argument definition:
|
174
|
+
* - "()," (modification of function parameters)
|
175
|
+
* - "=" (default value)
|
176
|
+
* - "[]{}" (destructuring of function parameters)
|
177
|
+
* - "/" (beginning of a comment)
|
178
|
+
* - whitespace
|
179
|
+
*/
|
180
|
+
var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
|
181
|
+
|
168
182
|
/** Used to match backslashes in property paths. */
|
169
183
|
var reEscapeChar = /\\(\\)?/g;
|
170
184
|
|
@@ -993,6 +1007,19 @@
|
|
993
1007
|
});
|
994
1008
|
}
|
995
1009
|
|
1010
|
+
/**
|
1011
|
+
* The base implementation of `_.trim`.
|
1012
|
+
*
|
1013
|
+
* @private
|
1014
|
+
* @param {string} string The string to trim.
|
1015
|
+
* @returns {string} Returns the trimmed string.
|
1016
|
+
*/
|
1017
|
+
function baseTrim(string) {
|
1018
|
+
return string
|
1019
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
1020
|
+
: string;
|
1021
|
+
}
|
1022
|
+
|
996
1023
|
/**
|
997
1024
|
* The base implementation of `_.unary` without support for storing metadata.
|
998
1025
|
*
|
@@ -1326,6 +1353,21 @@
|
|
1326
1353
|
: asciiToArray(string);
|
1327
1354
|
}
|
1328
1355
|
|
1356
|
+
/**
|
1357
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
1358
|
+
* character of `string`.
|
1359
|
+
*
|
1360
|
+
* @private
|
1361
|
+
* @param {string} string The string to inspect.
|
1362
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
1363
|
+
*/
|
1364
|
+
function trimmedEndIndex(string) {
|
1365
|
+
var index = string.length;
|
1366
|
+
|
1367
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
1368
|
+
return index;
|
1369
|
+
}
|
1370
|
+
|
1329
1371
|
/**
|
1330
1372
|
* Used by `_.unescape` to convert HTML entities to characters.
|
1331
1373
|
*
|
@@ -12494,7 +12536,7 @@
|
|
12494
12536
|
if (typeof value != 'string') {
|
12495
12537
|
return value === 0 ? value : +value;
|
12496
12538
|
}
|
12497
|
-
value = value
|
12539
|
+
value = baseTrim(value);
|
12498
12540
|
var isBinary = reIsBinary.test(value);
|
12499
12541
|
return (isBinary || reIsOctal.test(value))
|
12500
12542
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
@@ -14866,6 +14908,12 @@
|
|
14866
14908
|
if (!variable) {
|
14867
14909
|
source = 'with (obj) {\n' + source + '\n}\n';
|
14868
14910
|
}
|
14911
|
+
// Throw an error if a forbidden character was found in `variable`, to prevent
|
14912
|
+
// potential command injection attacks.
|
14913
|
+
else if (reForbiddenIdentifierChars.test(variable)) {
|
14914
|
+
throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
|
14915
|
+
}
|
14916
|
+
|
14869
14917
|
// Cleanup code by stripping empty strings.
|
14870
14918
|
source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
|
14871
14919
|
.replace(reEmptyStringMiddle, '$1')
|
@@ -14979,7 +15027,7 @@
|
|
14979
15027
|
function trim(string, chars, guard) {
|
14980
15028
|
string = toString(string);
|
14981
15029
|
if (string && (guard || chars === undefined)) {
|
14982
|
-
return string
|
15030
|
+
return baseTrim(string);
|
14983
15031
|
}
|
14984
15032
|
if (!string || !(chars = baseToString(chars))) {
|
14985
15033
|
return string;
|
@@ -15014,7 +15062,7 @@
|
|
15014
15062
|
function trimEnd(string, chars, guard) {
|
15015
15063
|
string = toString(string);
|
15016
15064
|
if (string && (guard || chars === undefined)) {
|
15017
|
-
return string.
|
15065
|
+
return string.slice(0, trimmedEndIndex(string) + 1);
|
15018
15066
|
}
|
15019
15067
|
if (!string || !(chars = baseToString(chars))) {
|
15020
15068
|
return string;
|
@@ -15588,7 +15636,7 @@
|
|
15588
15636
|
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
|
15589
15637
|
*
|
15590
15638
|
* // Checking for several possible values
|
15591
|
-
* _.filter(
|
15639
|
+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
|
15592
15640
|
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
15593
15641
|
*/
|
15594
15642
|
function matches(source) {
|
@@ -15625,7 +15673,7 @@
|
|
15625
15673
|
* // => { 'a': 4, 'b': 5, 'c': 6 }
|
15626
15674
|
*
|
15627
15675
|
* // Checking for several possible values
|
15628
|
-
* _.filter(
|
15676
|
+
* _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
|
15629
15677
|
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
15630
15678
|
*/
|
15631
15679
|
function matchesProperty(path, srcValue) {
|