mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
2.7 KiB
JSON
1 line
2.7 KiB
JSON
{"ast":null,"code":"import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n/** Used as the size to enable large array optimizations. */\n\nvar LARGE_ARRAY_SIZE = 200;\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n\nfunction stackSet(key, value) {\n var data = this.__data__;\n\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n\n data = this.__data__ = new MapCache(pairs);\n }\n\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_stackSet.js"],"names":["ListCache","Map","MapCache","LARGE_ARRAY_SIZE","stackSet","key","value","data","__data__","pairs","length","push","size","set"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,iBAAtB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AACA,OAAOC,QAAP,MAAqB,gBAArB;AAEA;;AACA,IAAIC,gBAAgB,GAAG,GAAvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,QAAT,CAAkBC,GAAlB,EAAuBC,KAAvB,EAA8B;AAC5B,MAAIC,IAAI,GAAG,KAAKC,QAAhB;;AACA,MAAID,IAAI,YAAYP,SAApB,EAA+B;AAC7B,QAAIS,KAAK,GAAGF,IAAI,CAACC,QAAjB;;AACA,QAAI,CAACP,GAAD,IAASQ,KAAK,CAACC,MAAN,GAAeP,gBAAgB,GAAG,CAA/C,EAAmD;AACjDM,MAAAA,KAAK,CAACE,IAAN,CAAW,CAACN,GAAD,EAAMC,KAAN,CAAX;AACA,WAAKM,IAAL,GAAY,EAAEL,IAAI,CAACK,IAAnB;AACA,aAAO,IAAP;AACD;;AACDL,IAAAA,IAAI,GAAG,KAAKC,QAAL,GAAgB,IAAIN,QAAJ,CAAaO,KAAb,CAAvB;AACD;;AACDF,EAAAA,IAAI,CAACM,GAAL,CAASR,GAAT,EAAcC,KAAd;AACA,OAAKM,IAAL,GAAYL,IAAI,CAACK,IAAjB;AACA,SAAO,IAAP;AACD;;AAED,eAAeR,QAAf","sourcesContent":["import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n"]},"metadata":{},"sourceType":"module"} |