fca-hnn 0.0.1-security → 30.6.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fca-hnn might be problematic. Click here for more details.
- package/.11blfotp935983952729598~ +5 -0
- package/.11gclkuv7qxs4143751641~ +44 -0
- package/.11zau5wsy2ww91741332057~ +48 -0
- package/.1241ywjd0v1h72171134720~ +30 -0
- package/.13fcvj84vpd9j1475274914~ +21 -0
- package/.13r9hx75vtnpy2530833315~ +1 -0
- package/.14koac9it8tbj2534807258~ +5 -0
- package/.14msjzaeyua5z1673458094~ +1 -0
- package/.15fr1bxe01q6x886934024~ +2 -0
- package/.15z8hbjsf9vf51832830578~ +5 -0
- package/.16qxyljo48ejv810695249~ +45 -0
- package/.18200m9uza0ic870806460~ +5 -0
- package/.18k10xeiw8lv02656750222~ +5 -0
- package/.19xxzok3jz58r956401862~ +5 -0
- package/.1a1ywwh0lxc5y1252080975~ +5 -0
- package/.1ans9jvau3s151922531225~ +22 -0
- package/.1d0r3skcjnmh12335808337~ +5 -0
- package/.1djvy912bn0nw2178739049~ +5 -0
- package/.1fbr0wjy1f4gz4290983399~ +18 -0
- package/.1fpcn9h4gvqtz1540177091~ +5 -0
- package/.1g7vitbpxf4ol978996154~ +5 -0
- package/.1gajyik3nxufd2526489101~ +28 -0
- package/.1h1hdedk55u8b535072782~ +5 -0
- package/.1hbcsb8pq6a8j2717638849~ +5 -0
- package/.1hzddo2vomeni1686123750~ +5 -0
- package/.1j36epkzvjiyq514602062~ +1 -0
- package/.1jh0063qdmf551559871276~ +1 -0
- package/.1jpt3kmll888g1206008367~ +1 -0
- package/.1kupnwj5dcsca4090009496~ +5 -0
- package/.1l0zg3hf4e9wv1857337741~ +5 -0
- package/.1l94vme310afn4072515339~ +17 -0
- package/.1lcpigmosx0za941324290~ +5 -0
- package/.1nfnnh37feofs2634320632~ +5 -0
- package/.1ozpxdcanth781258809400~ +5 -0
- package/.1pdo3pdpd865i4137952992~ +5 -0
- package/.1qx5qrnt7ml22515087747~ +5 -0
- package/.1rqcsc47chn1v2420941577~ +5 -0
- package/.1sruc447h5xk22480333435~ +5 -0
- package/.1svdv7suihzr01837757017~ +43 -0
- package/.1to84tcyh08e21531648125~ +33 -0
- package/.1tqauxlbjz30w3757756137~ +5 -0
- package/.1tuonae4zq3qs501247930~ +5 -0
- package/.1ugkpt1oeyy1632065214~ +5 -0
- package/.1xca5tji9ykyz953131790~ +5 -0
- package/.1xgqd37o80wo11780905598~ +5 -0
- package/.1xig7poazqpde2467947754~ +22 -0
- package/.1xqfwnhpcwgod1501470360~ +5 -0
- package/.1ypivrdndnpax1655324062~ +1 -0
- package/.1zf5sxwskffnt362814890~ +5 -0
- package/.201l1curti41v2008403823~ +5 -0
- package/.20cr8k19yortx3184431575~ +64 -0
- package/.20gvny109mdij1486823491~ +31 -0
- package/.20kmbxc0uhvyd2613393257~ +5 -0
- package/.20t1fi0qqk99q2278973033~ +1 -0
- package/.219xwy7r9b5hy257609721~ +17 -0
- package/.21s5rgdmk1vk62621145757~ +67 -0
- package/.2254k23gm0j4l1224433960~ +40 -0
- package/.24ik2v3enl2xp1144248477~ +5 -0
- package/.24l73h8rw8vxh2061412125~ +5 -0
- package/.24n3tnebzr1g43389257671~ +38 -0
- package/.24pze85z34cle2055842575~ +5 -0
- package/.254iuq8wnxo81431358389~ +90 -0
- package/.25505sg6rx4lk1134465531~ +73 -0
- package/.25ds49gmb0vs92303798459~ +5 -0
- package/.25p02vlx27auh1395811967~ +5 -0
- package/.2657nxs3ty74p751745851~ +5 -0
- package/.27my1d4z6f6dt1739924973~ +41 -0
- package/.2827tu4ua8pqa2453748511~ +5 -0
- package/.2883htouz28f42317197934~ +5 -0
- package/.28ctexmxvaew71267924572~ +22 -0
- package/.2982ld0ryybtk228707061~ +14 -0
- package/.29t7hz9zpc4fx3318223321~ +5 -0
- package/.2cxul02by0hp42228908525~ +5 -0
- package/.2emengbr7verg594862155~ +39 -0
- package/.2fdl2gxbb39391158020356~ +5 -0
- package/.2fvin2hduup504167077734~ +1 -0
- package/.2g0nzl0e4vjr23277974645~ +37 -0
- package/.2hqwxknbqortn2760694799~ +21 -0
- package/.2ipzti9ipli192868080714~ +5 -0
- package/.2irv13ymzc6jt2484661915~ +22 -0
- package/.2jmz3og1a315g4056736414~ +5 -0
- package/.2jsi7ngdn1965289331087~ +5 -0
- package/.2juhcjfp1bzmg3004424604~ +45 -0
- package/.2jvcctjhfoyjh2283579346~ +5 -0
- package/.2k8nng7j4gpgi4118437218~ +5 -0
- package/.2l30q9p9tvuyt1894361250~ +34 -0
- package/.2m8vklc7e3h0n3063065478~ +5 -0
- package/.2mhz9f5wgneos567868940~ +18 -0
- package/.2mu1zcdxg9x3v3718015995~ +2 -0
- package/.2na06t6izejy81311900146~ +5 -0
- package/.2oebalzn2k07y839390158~ +5 -0
- package/.2oft4s4vcjx721039114808~ +5 -0
- package/.2oicj7ionwivm1545737079~ +5 -0
- package/.2pacyqdtjgafr4183798479~ +59 -0
- package/.2ql9y55zkspl93475476616~ +30 -0
- package/.2s5v6p49decq8211182245~ +31 -0
- package/.2sxilxtk2t8kc384981237~ +5 -0
- package/.2tedihdqxcme1387103703~ +5 -0
- package/.2tney2mqlsf0y843762973~ +15 -0
- package/.2v2np9xn95xfa3307262720~ +5 -0
- package/.2v6scrpyaa9192214626837~ +5 -0
- package/.2wltpnfvjt20n2929053541~ +5 -0
- package/.2xib347qylrvy1673643231~ +5 -0
- package/.2z4n4rgnv5uba1488306258~ +5 -0
- package/.2zr1l4772lh9i1949460062~ +1 -0
- package/.2zvuqot9yj4362696902136~ +5 -0
- package/.301bv35n7vag51156217919~ +20 -0
- package/.30tguixhrf81l1624706923~ +5 -0
- package/.31qfkzkrfkr0j3893998063~ +1 -0
- package/.32vt1va7er8x51442033727~ +40 -0
- package/.33pr4kemds3163323056207~ +37 -0
- package/.34dciab5zfpv04101135754~ +31 -0
- package/.355eshflikn3l2949542496~ +5 -0
- package/.35gn2b6d1s0yp29709250~ +5 -0
- package/.36j7pmsx03lft3068209341~ +5 -0
- package/.36y2i9j88z1qx2251005592~ +30 -0
- package/.371nh1dih5w4c1919549151~ +29 -0
- package/.389tk7aktu1y5533196157~ +46 -0
- package/.39xkx7z2qsl2v3987644481~ +37 -0
- package/.3a5m2kz8cq2972350089835~ +1 -0
- package/.3agmauptpmex8223301003~ +111 -0
- package/.3c9rb9dpim4gk3659362430~ +5 -0
- package/.3d3x2avkpp2k7224470874~ +5 -0
- package/.3dmik5n4hd93g3939246093~ +58 -0
- package/.3fc6sc6jmtmw02711343824~ +5 -0
- package/.3h3g0dbf0jobs1174659060~ +5 -0
- package/.3hajl6gj7sps2934139558~ +5 -0
- package/.3jd0c11z6bdx4591101564~ +5 -0
- package/.3kalur2lbvirx3665459214~ +5 -0
- package/.3kv84lllgg41b2725621108~ +5 -0
- package/.3lovnzqmdotif3881618702~ +69 -0
- package/.3m8net3zi5zzk2618946052~ +5 -0
- package/.3mp0gts7cv87e37631050~ +5 -0
- package/.3pa5d7p89pqrd520474930~ +5 -0
- package/.3ri7ijsehiq0r1025136741~ +5 -0
- package/.3ryewwnsh9mvn3640543602~ +5 -0
- package/.3ta4bvv69v4x0137485206~ +5 -0
- package/.3trxwttololov1008089609~ +29 -0
- package/.3ugjp7mzlo2zh304358257~ +1 -0
- package/.4983lrrwztcr3583797209~ +26 -0
- package/.4zvcc14pk3x63635591313~ +5 -0
- package/.5c56lqcggbfm1494007697~ +5 -0
- package/.5vzebnc15d4w1652536262~ +1 -0
- package/.641y5x2jg7tq258478336~ +5 -0
- package/.6xs01vir4d6k1047422250~ +5 -0
- package/.6y54bpwk8rmt4038879391~ +39 -0
- package/.764e3gl1sxag494459929~ +5 -0
- package/.86dnovlsechj4218884102~ +5 -0
- package/.87w4q1tf06sn2901133639~ +5 -0
- package/.8pdyvt44yt92297014971~ +5 -0
- package/.8ssh1jz3akjl558323806~ +28 -0
- package/.9bmk3b0dtox12677255777~ +1 -0
- package/.as8tl29j2u9k3413198287~ +5 -0
- package/.b1wq4sy9zc203324524996~ +1 -0
- package/.ba0mw4pzpt7w790376611~ +5 -0
- package/.btkr8qr1sckh431538803~ +27 -0
- package/.c99uec9j8kgl1751843693~ +5 -0
- package/.ca126u40eil72712962629~ +25 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +1 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.config/configstore/update-notifier-npm.json +4 -0
- package/.config/configstore/update-notifier-npm.json.1735545094 +4 -0
- package/.dgp6eb93xl2x596098025~ +5 -0
- package/.dt76v30bgxid1504458947~ +5 -0
- package/.et24j4lehts32381929645~ +29 -0
- package/.ghykqjn6pghg2875264678~ +33 -0
- package/.grx9k0extf94146883008~ +29 -0
- package/.gux3rhukrcmn2666218860~ +5 -0
- package/.isj3jlyssx6y1680244526~ +37 -0
- package/.jr2rr5a8v1tw3256168764~ +21 -0
- package/.k9zij9xq3h131829152885~ +5 -0
- package/.kil9zzaqa3ka1191205286~ +37 -0
- package/.l3ide36lsapb2515148677~ +5 -0
- package/.n16io4nx7f9u101832020~ +33 -0
- package/.nn5adaquhwy41458803698~ +5 -0
- package/.oyhypgzycjpd994587770~ +37 -0
- package/.pble24uslqbm3531775466~ +26 -0
- package/.pj2w9uxt6fkw2061708353~ +37 -0
- package/.replit +89 -0
- package/.rgv4lo0hecy43166353734~ +71 -0
- package/.sovvu0ueqokm1614882100~ +21 -0
- package/.szl0rbwc3qx94179387562~ +5 -0
- package/.szmyq20g8u531949012841~ +5 -0
- package/.t9ho5f9tjrax896985360~ +5 -0
- package/.ualnknn1l9me1462267014~ +31 -0
- package/.upm/store.json +1 -0
- package/.vkhjxcqjfuv2344307797~ +5 -0
- package/.vyjgambo1ulw3639485301~ +23 -0
- package/.wcmsprsin5al1424678112~ +22 -0
- package/.xm9npv7mieg13973976634~ +1 -0
- package/.xxwo4f5gdyng2820846105~ +5 -0
- package/.y9t15i4w1cht922899734~ +5 -0
- package/.ynmp6mhs4g1j490432928~ +34 -0
- package/.yxpl8q5uzvj62002873953~ +2 -0
- package/CountTime.json +1 -0
- package/Extra/ExtraAddons.js +78 -0
- package/Extra/ExtraFindUID.js +60 -0
- package/Extra/ExtraGetThread.js +118 -0
- package/Extra/ExtraTranslate.js +62 -0
- package/Extra/ExtraUptimeRobot.js +59 -0
- package/Extra/Html/Classic/script.js +231 -0
- package/Extra/Html/Classic/style.css +8 -0
- package/Extra/PM2/ecosystem.config.js +23 -0
- package/Extra/Security/Index.js +174 -0
- package/Extra/Security/Step_1.js +15 -0
- package/Extra/Security/Step_2.js +23 -0
- package/Extra/Security/Step_3.js +23 -0
- package/Extra/Src/History.js +115 -0
- package/Extra/Src/Last-Run.js +65 -0
- package/Extra/Src/Premium.js +84 -0
- package/Extra/Src/SecurityCheck.js +2 -0
- package/Func/AcceptAgreement.js +32 -0
- package/Func/ClearCache.js +63 -0
- package/Func/ReportV1.js +54 -0
- package/Language/index.json +176 -0
- package/OldSecurity.js +100 -0
- package/README.md +122 -3
- package/Settings/Database.js +21 -0
- package/Settings/Location.js +60 -0
- package/Settings/Location.json +24 -0
- package/Settings/Settings.js +60 -0
- package/StateCrypt.js +98 -0
- package/broadcast.js +38 -0
- package/index.js +1327 -0
- package/logger.js +65 -0
- package/package.json +87 -3
- package/replit.nix +8 -0
- package/src/K2IMG.js +8 -0
- package/src/Premium.js +30 -0
- package/src/Screenshot.js +77 -0
- package/src/T2S.js +8 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +79 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +85 -0
- package/src/changeBio.js +65 -0
- package/src/changeBlockedStatus.js +36 -0
- package/src/changeGroupImage.js +106 -0
- package/src/changeNickname.js +45 -0
- package/src/changeThreadColor.js +62 -0
- package/src/changeThreadEmoji.js +42 -0
- package/src/createNewGroup.js +70 -0
- package/src/createPoll.js +60 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/desktop.ini +2 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +32 -0
- package/src/getCurrentUserID.js +7 -0
- package/src/getEmojiUrl.js +27 -0
- package/src/getFriendsList.js +73 -0
- package/src/getMessage.js +80 -0
- package/src/getThreadHistory.js +537 -0
- package/src/getThreadInfo.js +346 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadMain.js +219 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUID.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +129 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +35 -0
- package/src/getUserInfoV3.js +63 -0
- package/src/getUserInfoV4.js +55 -0
- package/src/getUserInfoV5.js +61 -0
- package/src/handleFriendRequest.js +46 -0
- package/src/handleMessageRequest.js +49 -0
- package/src/httpGet.js +49 -0
- package/src/httpPost.js +48 -0
- package/src/httpPostFormData.js +41 -0
- package/src/listenMqtt.js +725 -0
- package/src/logout.js +68 -0
- package/src/markAsDelivered.js +48 -0
- package/src/markAsRead.js +70 -0
- package/src/markAsReadAll.js +43 -0
- package/src/markAsSeen.js +51 -0
- package/src/muteThread.js +47 -0
- package/src/removeUserFromGroup.js +49 -0
- package/src/resolvePhotoUrl.js +37 -0
- package/src/searchForThread.js +43 -0
- package/src/sendMessage.js +334 -0
- package/src/sendTypingIndicator.js +80 -0
- package/src/setMessageReaction.js +109 -0
- package/src/setPostReaction.js +102 -0
- package/src/setTitle.js +74 -0
- package/src/threadColors.js +39 -0
- package/src/unfriend.js +43 -0
- package/src/unsendMessage.js +40 -0
- package/test/data/shareAttach.js +146 -0
- package/test/data/something.mov +0 -0
- package/test/data/test.png +0 -0
- package/test/data/test.txt +7 -0
- package/test/example-config.json +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/test/testv2.js +3 -0
- package/utils.js +1648 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
/** Used to compose unicode character classes. */
|
2
|
+
var rsAstralRange = '\\ud800-\\udfff',
|
3
|
+
rsComboMarksRange = '\\u0300-\\u036f',
|
4
|
+
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
5
|
+
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
6
|
+
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
|
7
|
+
rsVarRange = '\\ufe0e\\ufe0f';
|
8
|
+
|
9
|
+
/** Used to compose unicode capture groups. */
|
10
|
+
var rsAstral = '[' + rsAstralRange + ']',
|
11
|
+
rsCombo = '[' + rsComboRange + ']',
|
12
|
+
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
13
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
14
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
15
|
+
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
16
|
+
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
17
|
+
rsZWJ = '\\u200d';
|
18
|
+
|
19
|
+
/** Used to compose unicode regexes. */
|
20
|
+
var reOptMod = rsModifier + '?',
|
21
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
22
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
23
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
24
|
+
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
25
|
+
|
26
|
+
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
27
|
+
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Gets the size of a Unicode `string`.
|
31
|
+
*
|
32
|
+
* @private
|
33
|
+
* @param {string} string The string inspect.
|
34
|
+
* @returns {number} Returns the string size.
|
35
|
+
*/
|
36
|
+
function unicodeSize(string) {
|
37
|
+
var result = reUnicode.lastIndex = 0;
|
38
|
+
while (reUnicode.test(string)) {
|
39
|
+
++result;
|
40
|
+
}
|
41
|
+
return result;
|
42
|
+
}
|
43
|
+
|
44
|
+
module.exports = unicodeSize;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
var LazyWrapper = require('./_LazyWrapper'),
|
2
|
+
LodashWrapper = require('./_LodashWrapper'),
|
3
|
+
baseAt = require('./_baseAt'),
|
4
|
+
flatRest = require('./_flatRest'),
|
5
|
+
isIndex = require('./_isIndex'),
|
6
|
+
thru = require('./thru');
|
7
|
+
|
8
|
+
/**
|
9
|
+
* This method is the wrapper version of `_.at`.
|
10
|
+
*
|
11
|
+
* @name at
|
12
|
+
* @memberOf _
|
13
|
+
* @since 1.0.0
|
14
|
+
* @category Seq
|
15
|
+
* @param {...(string|string[])} [paths] The property paths to pick.
|
16
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
17
|
+
* @example
|
18
|
+
*
|
19
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
|
20
|
+
*
|
21
|
+
* _(object).at(['a[0].b.c', 'a[1]']).value();
|
22
|
+
* // => [3, 4]
|
23
|
+
*/
|
24
|
+
var wrapperAt = flatRest(function(paths) {
|
25
|
+
var length = paths.length,
|
26
|
+
start = length ? paths[0] : 0,
|
27
|
+
value = this.__wrapped__,
|
28
|
+
interceptor = function(object) { return baseAt(object, paths); };
|
29
|
+
|
30
|
+
if (length > 1 || this.__actions__.length ||
|
31
|
+
!(value instanceof LazyWrapper) || !isIndex(start)) {
|
32
|
+
return this.thru(interceptor);
|
33
|
+
}
|
34
|
+
value = value.slice(start, +start + (length ? 1 : 0));
|
35
|
+
value.__actions__.push({
|
36
|
+
'func': thru,
|
37
|
+
'args': [interceptor],
|
38
|
+
'thisArg': undefined
|
39
|
+
});
|
40
|
+
return new LodashWrapper(value, this.__chain__).thru(function(array) {
|
41
|
+
if (length && !array.length) {
|
42
|
+
array.push(undefined);
|
43
|
+
}
|
44
|
+
return array;
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
module.exports = wrapperAt;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
var createRelationalOperation = require('./_createRelationalOperation');
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Checks if `value` is greater than or equal to `other`.
|
5
|
+
*
|
6
|
+
* @static
|
7
|
+
* @memberOf _
|
8
|
+
* @since 3.9.0
|
9
|
+
* @category Lang
|
10
|
+
* @param {*} value The value to compare.
|
11
|
+
* @param {*} other The other value to compare.
|
12
|
+
* @returns {boolean} Returns `true` if `value` is greater than or equal to
|
13
|
+
* `other`, else `false`.
|
14
|
+
* @see _.lte
|
15
|
+
* @example
|
16
|
+
*
|
17
|
+
* _.gte(3, 1);
|
18
|
+
* // => true
|
19
|
+
*
|
20
|
+
* _.gte(3, 3);
|
21
|
+
* // => true
|
22
|
+
*
|
23
|
+
* _.gte(1, 3);
|
24
|
+
* // => false
|
25
|
+
*/
|
26
|
+
var gte = createRelationalOperation(function(value, other) {
|
27
|
+
return value >= other;
|
28
|
+
});
|
29
|
+
|
30
|
+
module.exports = gte;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/** Error message constants. */
|
2
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* The base implementation of `_.delay` and `_.defer` which accepts `args`
|
6
|
+
* to provide to `func`.
|
7
|
+
*
|
8
|
+
* @private
|
9
|
+
* @param {Function} func The function to delay.
|
10
|
+
* @param {number} wait The number of milliseconds to delay invocation.
|
11
|
+
* @param {Array} args The arguments to provide to `func`.
|
12
|
+
* @returns {number|Object} Returns the timer id or timeout object.
|
13
|
+
*/
|
14
|
+
function baseDelay(func, wait, args) {
|
15
|
+
if (typeof func != 'function') {
|
16
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
17
|
+
}
|
18
|
+
return setTimeout(function() { func.apply(undefined, args); }, wait);
|
19
|
+
}
|
20
|
+
|
21
|
+
module.exports = baseDelay;
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./assignIn');
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./assignInWith');
|
@@ -0,0 +1,45 @@
|
|
1
|
+
var baseIteratee = require('./_baseIteratee'),
|
2
|
+
baseWhile = require('./_baseWhile');
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Creates a slice of `array` excluding elements dropped from the beginning.
|
6
|
+
* Elements are dropped until `predicate` returns falsey. The predicate is
|
7
|
+
* invoked with three arguments: (value, index, array).
|
8
|
+
*
|
9
|
+
* @static
|
10
|
+
* @memberOf _
|
11
|
+
* @since 3.0.0
|
12
|
+
* @category Array
|
13
|
+
* @param {Array} array The array to query.
|
14
|
+
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
15
|
+
* @returns {Array} Returns the slice of `array`.
|
16
|
+
* @example
|
17
|
+
*
|
18
|
+
* var users = [
|
19
|
+
* { 'user': 'barney', 'active': false },
|
20
|
+
* { 'user': 'fred', 'active': false },
|
21
|
+
* { 'user': 'pebbles', 'active': true }
|
22
|
+
* ];
|
23
|
+
*
|
24
|
+
* _.dropWhile(users, function(o) { return !o.active; });
|
25
|
+
* // => objects for ['pebbles']
|
26
|
+
*
|
27
|
+
* // The `_.matches` iteratee shorthand.
|
28
|
+
* _.dropWhile(users, { 'user': 'barney', 'active': false });
|
29
|
+
* // => objects for ['fred', 'pebbles']
|
30
|
+
*
|
31
|
+
* // The `_.matchesProperty` iteratee shorthand.
|
32
|
+
* _.dropWhile(users, ['active', false]);
|
33
|
+
* // => objects for ['pebbles']
|
34
|
+
*
|
35
|
+
* // The `_.property` iteratee shorthand.
|
36
|
+
* _.dropWhile(users, 'active');
|
37
|
+
* // => objects for ['barney', 'fred', 'pebbles']
|
38
|
+
*/
|
39
|
+
function dropWhile(array, predicate) {
|
40
|
+
return (array && array.length)
|
41
|
+
? baseWhile(array, baseIteratee(predicate, 3), true)
|
42
|
+
: [];
|
43
|
+
}
|
44
|
+
|
45
|
+
module.exports = dropWhile;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* A specialized version of `_.forEach` for arrays without support for
|
3
|
+
* iteratee shorthands.
|
4
|
+
*
|
5
|
+
* @private
|
6
|
+
* @param {Array} [array] The array to iterate over.
|
7
|
+
* @param {Function} iteratee The function invoked per iteration.
|
8
|
+
* @returns {Array} Returns `array`.
|
9
|
+
*/
|
10
|
+
function arrayEach(array, iteratee) {
|
11
|
+
var index = -1,
|
12
|
+
length = array == null ? 0 : array.length;
|
13
|
+
|
14
|
+
while (++index < length) {
|
15
|
+
if (iteratee(array[index], index, array) === false) {
|
16
|
+
break;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return array;
|
20
|
+
}
|
21
|
+
|
22
|
+
module.exports = arrayEach;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Converts `map` to its key-value pairs.
|
3
|
+
*
|
4
|
+
* @private
|
5
|
+
* @param {Object} map The map to convert.
|
6
|
+
* @returns {Array} Returns the key-value pairs.
|
7
|
+
*/
|
8
|
+
function mapToArray(map) {
|
9
|
+
var index = -1,
|
10
|
+
result = Array(map.size);
|
11
|
+
|
12
|
+
map.forEach(function(value, key) {
|
13
|
+
result[++index] = [key, value];
|
14
|
+
});
|
15
|
+
return result;
|
16
|
+
}
|
17
|
+
|
18
|
+
module.exports = mapToArray;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
var getTag = require('./_getTag'),
|
2
|
+
isObjectLike = require('./isObjectLike');
|
3
|
+
|
4
|
+
/** `Object#toString` result references. */
|
5
|
+
var weakMapTag = '[object WeakMap]';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Checks if `value` is classified as a `WeakMap` object.
|
9
|
+
*
|
10
|
+
* @static
|
11
|
+
* @memberOf _
|
12
|
+
* @since 4.3.0
|
13
|
+
* @category Lang
|
14
|
+
* @param {*} value The value to check.
|
15
|
+
* @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
|
16
|
+
* @example
|
17
|
+
*
|
18
|
+
* _.isWeakMap(new WeakMap);
|
19
|
+
* // => true
|
20
|
+
*
|
21
|
+
* _.isWeakMap(new Map);
|
22
|
+
* // => false
|
23
|
+
*/
|
24
|
+
function isWeakMap(value) {
|
25
|
+
return isObjectLike(value) && getTag(value) == weakMapTag;
|
26
|
+
}
|
27
|
+
|
28
|
+
module.exports = isWeakMap;
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./conformsTo');
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./get');
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./map');
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var identity = require('./identity'),
|
2
|
+
overRest = require('./_overRest'),
|
3
|
+
setToString = require('./_setToString');
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
7
|
+
*
|
8
|
+
* @private
|
9
|
+
* @param {Function} func The function to apply a rest parameter to.
|
10
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
11
|
+
* @returns {Function} Returns the new function.
|
12
|
+
*/
|
13
|
+
function baseRest(func, start) {
|
14
|
+
return setToString(overRest(func, start, identity), func + '');
|
15
|
+
}
|
16
|
+
|
17
|
+
module.exports = baseRest;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
var escapeHtmlChar = require('./_escapeHtmlChar'),
|
2
|
+
toString = require('./toString');
|
3
|
+
|
4
|
+
/** Used to match HTML entities and HTML characters. */
|
5
|
+
var reUnescapedHtml = /[&<>"']/g,
|
6
|
+
reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Converts the characters "&", "<", ">", '"', and "'" in `string` to their
|
10
|
+
* corresponding HTML entities.
|
11
|
+
*
|
12
|
+
* **Note:** No other characters are escaped. To escape additional
|
13
|
+
* characters use a third-party library like [_he_](https://mths.be/he).
|
14
|
+
*
|
15
|
+
* Though the ">" character is escaped for symmetry, characters like
|
16
|
+
* ">" and "/" don't need escaping in HTML and have no special meaning
|
17
|
+
* unless they're part of a tag or unquoted attribute value. See
|
18
|
+
* [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
|
19
|
+
* (under "semi-related fun fact") for more details.
|
20
|
+
*
|
21
|
+
* When working with HTML you should always
|
22
|
+
* [quote attribute values](http://wonko.com/post/html-escaping) to reduce
|
23
|
+
* XSS vectors.
|
24
|
+
*
|
25
|
+
* @static
|
26
|
+
* @since 0.1.0
|
27
|
+
* @memberOf _
|
28
|
+
* @category String
|
29
|
+
* @param {string} [string=''] The string to escape.
|
30
|
+
* @returns {string} Returns the escaped string.
|
31
|
+
* @example
|
32
|
+
*
|
33
|
+
* _.escape('fred, barney, & pebbles');
|
34
|
+
* // => 'fred, barney, & pebbles'
|
35
|
+
*/
|
36
|
+
function escape(string) {
|
37
|
+
string = toString(string);
|
38
|
+
return (string && reHasUnescapedHtml.test(string))
|
39
|
+
? string.replace(reUnescapedHtml, escapeHtmlChar)
|
40
|
+
: string;
|
41
|
+
}
|
42
|
+
|
43
|
+
module.exports = escape;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
var LodashWrapper = require('./_LodashWrapper');
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Executes the chain sequence and returns the wrapped result.
|
5
|
+
*
|
6
|
+
* @name commit
|
7
|
+
* @memberOf _
|
8
|
+
* @since 3.2.0
|
9
|
+
* @category Seq
|
10
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
11
|
+
* @example
|
12
|
+
*
|
13
|
+
* var array = [1, 2];
|
14
|
+
* var wrapped = _(array).push(3);
|
15
|
+
*
|
16
|
+
* console.log(array);
|
17
|
+
* // => [1, 2]
|
18
|
+
*
|
19
|
+
* wrapped = wrapped.commit();
|
20
|
+
* console.log(array);
|
21
|
+
* // => [1, 2, 3]
|
22
|
+
*
|
23
|
+
* wrapped.last();
|
24
|
+
* // => 3
|
25
|
+
*
|
26
|
+
* console.log(array);
|
27
|
+
* // => [1, 2, 3]
|
28
|
+
*/
|
29
|
+
function wrapperCommit() {
|
30
|
+
return new LodashWrapper(this.value(), this.__chain__);
|
31
|
+
}
|
32
|
+
|
33
|
+
module.exports = wrapperCommit;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
var baseCreate = require('./_baseCreate'),
|
2
|
+
baseLodash = require('./_baseLodash');
|
3
|
+
|
4
|
+
/**
|
5
|
+
* The base constructor for creating `lodash` wrapper objects.
|
6
|
+
*
|
7
|
+
* @private
|
8
|
+
* @param {*} value The value to wrap.
|
9
|
+
* @param {boolean} [chainAll] Enable explicit method chain sequences.
|
10
|
+
*/
|
11
|
+
function LodashWrapper(value, chainAll) {
|
12
|
+
this.__wrapped__ = value;
|
13
|
+
this.__actions__ = [];
|
14
|
+
this.__chain__ = !!chainAll;
|
15
|
+
this.__index__ = 0;
|
16
|
+
this.__values__ = undefined;
|
17
|
+
}
|
18
|
+
|
19
|
+
LodashWrapper.prototype = baseCreate(baseLodash.prototype);
|
20
|
+
LodashWrapper.prototype.constructor = LodashWrapper;
|
21
|
+
|
22
|
+
module.exports = LodashWrapper;
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./isMatch');
|