fca-shadow 0.0.1-security → 1.0.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-shadow might be problematic. Click here for more details.
- package/.1obgge4cxlazf1346921747~ +0 -0
- package/CHANGELOG.md +2 -0
- package/DOCS.md +1738 -0
- package/GetThreads/GetThreadInfo.js +128 -0
- package/GetThreads/Last-Run.js +65 -0
- package/LICENSE-MIT +21 -0
- package/README.md +132 -3
- package/StateCrypt.js +96 -0
- package/broadcast.js +22 -0
- package/index.html +1200 -0
- package/index.js +684 -0
- package/languages/index.json +150 -0
- package/lib/getInfoNew.js +34 -0
- package/lib/getToken.js +44 -0
- package/logger.js +23 -0
- package/package/database/SyntheticDatabase.sqlite +0 -0
- package/package/database/index.js +358 -0
- package/package/database/node_modules/lodash/_baseGet/README.md +20 -0
- package/package/database/node_modules/lodash/_baseGet/index.js +74 -0
- package/package/database/node_modules/lodash/_baseGet/package.json +18 -0
- package/package/database/node_modules/lodash/add.js +22 -0
- package/package/database/node_modules/lodash/after.js +42 -0
- package/package/database/node_modules/lodash/array.js +67 -0
- package/package/database/node_modules/lodash/ary.js +29 -0
- package/package/database/node_modules/lodash/assign.js +58 -0
- package/package/database/node_modules/lodash/assignIn.js +40 -0
- package/package/database/node_modules/lodash/assignInWith.js +38 -0
- package/package/database/node_modules/lodash/assignWith.js +37 -0
- package/package/database/node_modules/lodash/at.js +23 -0
- package/package/database/node_modules/lodash/attempt.js +35 -0
- package/package/database/node_modules/lodash/before.js +40 -0
- package/package/database/node_modules/lodash/bind.js +57 -0
- package/package/database/node_modules/lodash/bindAll.js +41 -0
- package/package/database/node_modules/lodash/bindKey.js +68 -0
- package/package/database/node_modules/lodash/camelCase.js +29 -0
- package/package/database/node_modules/lodash/capitalize.js +23 -0
- package/package/database/node_modules/lodash/castArray.js +44 -0
- package/package/database/node_modules/lodash/ceil.js +26 -0
- package/package/database/node_modules/lodash/chain.js +38 -0
- package/package/database/node_modules/lodash/chunk.js +50 -0
- package/package/database/node_modules/lodash/clamp.js +39 -0
- package/package/database/node_modules/lodash/clone.js +36 -0
- package/package/database/node_modules/lodash/cloneDeep.js +29 -0
- package/package/database/node_modules/lodash/cloneDeepWith.js +40 -0
- package/package/database/node_modules/lodash/cloneWith.js +42 -0
- package/package/database/node_modules/lodash/collection.js +30 -0
- package/package/database/node_modules/lodash/commit.js +33 -0
- package/package/database/node_modules/lodash/compact.js +31 -0
- package/package/database/node_modules/lodash/concat.js +43 -0
- package/package/database/node_modules/lodash/cond.js +60 -0
- package/package/database/node_modules/lodash/conforms.js +35 -0
- package/package/database/node_modules/lodash/conformsTo.js +32 -0
- package/package/database/node_modules/lodash/constant.js +26 -0
- package/package/database/node_modules/lodash/core.js +3877 -0
- package/package/database/node_modules/lodash/core.min.js +29 -0
- package/package/database/node_modules/lodash/countBy.js +40 -0
- package/package/database/node_modules/lodash/create.js +43 -0
- package/package/database/node_modules/lodash/curry.js +57 -0
- package/package/database/node_modules/lodash/curryRight.js +54 -0
- package/package/database/node_modules/lodash/date.js +3 -0
- package/package/database/node_modules/lodash/debounce.js +191 -0
- package/package/database/node_modules/lodash/deburr.js +45 -0
- package/package/database/node_modules/lodash/defaultTo.js +25 -0
- package/package/database/node_modules/lodash/defaults.js +64 -0
- package/package/database/node_modules/lodash/defaultsDeep.js +30 -0
- package/package/database/node_modules/lodash/defer.js +26 -0
- package/package/database/node_modules/lodash/delay.js +28 -0
- package/package/database/node_modules/lodash/difference.js +33 -0
- package/package/database/node_modules/lodash/differenceBy.js +44 -0
- package/package/database/node_modules/lodash/differenceWith.js +40 -0
- package/package/database/node_modules/lodash/divide.js +22 -0
- package/package/database/node_modules/lodash/drop.js +38 -0
- package/package/database/node_modules/lodash/dropRight.js +39 -0
- package/package/database/node_modules/lodash/dropRightWhile.js +45 -0
- package/package/database/node_modules/lodash/dropWhile.js +45 -0
- package/package/database/node_modules/lodash/each.js +1 -0
- package/package/database/node_modules/lodash/eachRight.js +1 -0
- package/package/database/node_modules/lodash/endsWith.js +43 -0
- package/package/database/node_modules/lodash/entries.js +1 -0
- package/package/database/node_modules/lodash/entriesIn.js +1 -0
- package/package/database/node_modules/lodash/eq.js +37 -0
- package/package/database/node_modules/lodash/escape.js +43 -0
- package/package/database/node_modules/lodash/escapeRegExp.js +32 -0
- package/package/database/node_modules/lodash/every.js +56 -0
- package/package/database/node_modules/lodash/extend.js +1 -0
- package/package/database/node_modules/lodash/extendWith.js +1 -0
- package/package/database/node_modules/lodash/fill.js +45 -0
- package/package/database/node_modules/lodash/filter.js +52 -0
- package/package/database/node_modules/lodash/find.js +42 -0
- package/package/database/node_modules/lodash/findIndex.js +55 -0
- package/package/database/node_modules/lodash/findKey.js +44 -0
- package/package/database/node_modules/lodash/findLast.js +25 -0
- package/package/database/node_modules/lodash/findLastIndex.js +59 -0
- package/package/database/node_modules/lodash/findLastKey.js +44 -0
- package/package/database/node_modules/lodash/first.js +1 -0
- package/package/database/node_modules/lodash/flake.lock +40 -0
- package/package/database/node_modules/lodash/flake.nix +20 -0
- package/package/database/node_modules/lodash/flatMap.js +29 -0
- package/package/database/node_modules/lodash/flatMapDeep.js +31 -0
- package/package/database/node_modules/lodash/flatMapDepth.js +31 -0
- package/package/database/node_modules/lodash/flatten.js +22 -0
- package/package/database/node_modules/lodash/flattenDeep.js +25 -0
- package/package/database/node_modules/lodash/flattenDepth.js +33 -0
- package/package/database/node_modules/lodash/flip.js +28 -0
- package/package/database/node_modules/lodash/floor.js +26 -0
- package/package/database/node_modules/lodash/flow.js +27 -0
- package/package/database/node_modules/lodash/flowRight.js +26 -0
- package/package/database/node_modules/lodash/forEach.js +41 -0
- package/package/database/node_modules/lodash/forEachRight.js +31 -0
- package/package/database/node_modules/lodash/forIn.js +39 -0
- package/package/database/node_modules/lodash/forInRight.js +37 -0
- package/package/database/node_modules/lodash/forOwn.js +36 -0
- package/package/database/node_modules/lodash/forOwnRight.js +34 -0
- package/package/database/node_modules/lodash/fp/F.js +1 -0
- package/package/database/node_modules/lodash/fp/add.js +5 -0
- package/package/database/node_modules/lodash/fp/after.js +5 -0
- package/package/database/node_modules/lodash/fp/all.js +1 -0
- package/package/database/node_modules/lodash/fp/allPass.js +1 -0
- package/package/database/node_modules/lodash/fp/always.js +1 -0
- package/package/database/node_modules/lodash/fp/any.js +1 -0
- package/package/database/node_modules/lodash/fp/anyPass.js +1 -0
- package/package/database/node_modules/lodash/fp/apply.js +1 -0
- package/package/database/node_modules/lodash/fp/array.js +2 -0
- package/package/database/node_modules/lodash/fp/ary.js +5 -0
- package/package/database/node_modules/lodash/fp/assign.js +5 -0
- package/package/database/node_modules/lodash/fp/assignAll.js +5 -0
- package/package/database/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignIn.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInAll.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assoc.js +1 -0
- package/package/database/node_modules/lodash/fp/assocPath.js +1 -0
- package/package/database/node_modules/lodash/fp/at.js +5 -0
- package/package/database/node_modules/lodash/fp/attempt.js +5 -0
- package/package/database/node_modules/lodash/fp/before.js +5 -0
- package/package/database/node_modules/lodash/fp/bind.js +5 -0
- package/package/database/node_modules/lodash/fp/bindAll.js +5 -0
- package/package/database/node_modules/lodash/fp/bindKey.js +5 -0
- package/package/database/node_modules/lodash/fp/camelCase.js +5 -0
- package/package/database/node_modules/lodash/fp/capitalize.js +5 -0
- package/package/database/node_modules/lodash/fp/castArray.js +5 -0
- package/package/database/node_modules/lodash/fp/ceil.js +5 -0
- package/package/database/node_modules/lodash/fp/chain.js +5 -0
- package/package/database/node_modules/lodash/fp/chunk.js +5 -0
- package/package/database/node_modules/lodash/fp/clamp.js +5 -0
- package/package/database/node_modules/lodash/fp/clone.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneWith.js +5 -0
- package/package/database/node_modules/lodash/fp/collection.js +2 -0
- package/package/database/node_modules/lodash/fp/commit.js +5 -0
- package/package/database/node_modules/lodash/fp/compact.js +5 -0
- package/package/database/node_modules/lodash/fp/complement.js +1 -0
- package/package/database/node_modules/lodash/fp/compose.js +1 -0
- package/package/database/node_modules/lodash/fp/concat.js +5 -0
- package/package/database/node_modules/lodash/fp/cond.js +5 -0
- package/package/database/node_modules/lodash/fp/conforms.js +1 -0
- package/package/database/node_modules/lodash/fp/conformsTo.js +5 -0
- package/package/database/node_modules/lodash/fp/constant.js +5 -0
- package/package/database/node_modules/lodash/fp/contains.js +1 -0
- package/package/database/node_modules/lodash/fp/convert.js +18 -0
- package/package/database/node_modules/lodash/fp/countBy.js +5 -0
- package/package/database/node_modules/lodash/fp/create.js +5 -0
- package/package/database/node_modules/lodash/fp/curry.js +5 -0
- package/package/database/node_modules/lodash/fp/curryN.js +5 -0
- package/package/database/node_modules/lodash/fp/curryRight.js +5 -0
- package/package/database/node_modules/lodash/fp/curryRightN.js +5 -0
- package/package/database/node_modules/lodash/fp/date.js +2 -0
- package/package/database/node_modules/lodash/fp/debounce.js +5 -0
- package/package/database/node_modules/lodash/fp/deburr.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultTo.js +5 -0
- package/package/database/node_modules/lodash/fp/defaults.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/package/database/node_modules/lodash/fp/defer.js +5 -0
- package/package/database/node_modules/lodash/fp/delay.js +5 -0
- package/package/database/node_modules/lodash/fp/difference.js +5 -0
- package/package/database/node_modules/lodash/fp/differenceBy.js +5 -0
- package/package/database/node_modules/lodash/fp/differenceWith.js +5 -0
- package/package/database/node_modules/lodash/fp/dissoc.js +1 -0
- package/package/database/node_modules/lodash/fp/dissocPath.js +1 -0
- package/package/database/node_modules/lodash/fp/divide.js +5 -0
- package/package/database/node_modules/lodash/fp/drop.js +5 -0
- package/package/database/node_modules/lodash/fp/dropLast.js +1 -0
- package/package/database/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/package/database/node_modules/lodash/fp/dropRight.js +5 -0
- package/package/database/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/package/database/node_modules/lodash/fp/dropWhile.js +5 -0
- package/package/database/node_modules/lodash/fp/each.js +1 -0
- package/package/database/node_modules/lodash/fp/eachRight.js +1 -0
- package/package/database/node_modules/lodash/fp/endsWith.js +5 -0
- package/package/database/node_modules/lodash/fp/entries.js +1 -0
- package/package/database/node_modules/lodash/fp/entriesIn.js +1 -0
- package/package/database/node_modules/lodash/fp/eq.js +5 -0
- package/package/database/node_modules/lodash/fp/equals.js +1 -0
- package/package/database/node_modules/lodash/fp/escape.js +5 -0
- package/package/database/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/package/database/node_modules/lodash/fp/every.js +5 -0
- package/package/database/node_modules/lodash/fp/extend.js +1 -0
- package/package/database/node_modules/lodash/fp/extendAll.js +1 -0
- package/package/database/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/package/database/node_modules/lodash/fp/extendWith.js +1 -0
- package/package/database/node_modules/lodash/fp/fill.js +5 -0
- package/package/database/node_modules/lodash/fp/filter.js +5 -0
- package/package/database/node_modules/lodash/fp/find.js +5 -0
- package/package/database/node_modules/lodash/fp/findFrom.js +5 -0
- package/package/database/node_modules/lodash/fp/findIndex.js +5 -0
- package/package/database/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/package/database/node_modules/lodash/fp/findKey.js +5 -0
- package/package/database/node_modules/lodash/fp/findLast.js +5 -0
- package/package/database/node_modules/lodash/fp.js +2 -0
- package/package/database/node_modules/lodash/fromPairs.js +28 -0
- package/package/database/node_modules/lodash/function.js +25 -0
- package/package/database/node_modules/lodash/functions.js +31 -0
- package/package/database/node_modules/lodash/functionsIn.js +31 -0
- package/package/database/node_modules/lodash/get.js +33 -0
- package/package/database/node_modules/node-fetch/CHANGELOG.md +266 -0
- package/package/database/node_modules/node-fetch/LICENSE.md +22 -0
- package/package/database/node_modules/node-fetch/README.md +583 -0
- package/package/database/node_modules/node-fetch/browser.js +23 -0
- package/package/database/node_modules/node-fetch/lib/index.es.js +1633 -0
- package/package/database/node_modules/node-fetch/lib/index.js +1642 -0
- package/package/database/node_modules/node-fetch/lib/index.mjs +1631 -0
- package/package/database/node_modules/node-fetch/package.json +70 -0
- package/package/database/node_modules/sqlite3/CHANGELOG.md +313 -0
- package/package/database/node_modules/sqlite3/CONTRIBUTING.md +57 -0
- package/package/database/node_modules/sqlite3/LICENSE +25 -0
- package/package/database/node_modules/sqlite3/README.md +259 -0
- package/package/database/node_modules/sqlite3/binding.gyp +66 -0
- package/package/database/node_modules/sqlite3/deps/common-sqlite.gypi +60 -0
- package/package/database/node_modules/sqlite3/deps/extract.js +10 -0
- package/package/database/node_modules/sqlite3/deps/sqlite-autoconf-3380200.tar.gz +0 -0
- package/package/database/node_modules/sqlite3/deps/sqlite3.gyp +121 -0
- package/package/database/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node +0 -0
- package/package/database/node_modules/sqlite3/lib/index.js +1 -0
- package/package/database/node_modules/sqlite3/lib/sqlite3-binding.js +5 -0
- package/package/database/node_modules/sqlite3/lib/sqlite3.js +205 -0
- package/package/database/node_modules/sqlite3/lib/trace.js +38 -0
- package/package/database/node_modules/sqlite3/package.json +82 -0
- package/package/database/node_modules/sqlite3/sqlite3.js +1 -0
- package/package/database/node_modules/sqlite3/src/async.h +82 -0
- package/package/database/node_modules/sqlite3/src/backup.cc +420 -0
- package/package/database/node_modules/sqlite3/src/backup.h +221 -0
- package/package/database/node_modules/sqlite3/src/database.cc +738 -0
- package/package/database/node_modules/sqlite3/src/database.h +206 -0
- package/package/database/node_modules/sqlite3/src/gcc-preinclude.h +6 -0
- package/package/database/node_modules/sqlite3/src/macros.h +212 -0
- package/package/database/node_modules/sqlite3/src/node_sqlite3.cc +115 -0
- package/package/database/node_modules/sqlite3/src/statement.cc +947 -0
- package/package/database/node_modules/sqlite3/src/statement.h +249 -0
- package/package/database/node_modules/sqlite3/src/threading.h +48 -0
- package/package/database/package.json +31 -0
- package/package/database/readme.md +8 -0
- package/package/database/test.js +3 -0
- package/package/horizon-sp/README.md +11 -0
- package/package/horizon-sp/index.js +41 -0
- package/package/horizon-sp/logger.js +16 -0
- package/package/horizon-sp/node_modules/.package-lock.json +140 -0
- package/package/horizon-sp/node_modules/asynckit/LICENSE +21 -0
- package/package/horizon-sp/node_modules/asynckit/README.md +233 -0
- package/package/horizon-sp/node_modules/asynckit/bench.js +76 -0
- package/package/horizon-sp/node_modules/asynckit/index.js +6 -0
- package/package/horizon-sp/node_modules/asynckit/lib/abort.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/lib/async.js +34 -0
- package/package/horizon-sp/node_modules/asynckit/lib/defer.js +26 -0
- package/package/horizon-sp/node_modules/asynckit/lib/iterate.js +75 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/lib/state.js +37 -0
- package/package/horizon-sp/node_modules/asynckit/lib/streamify.js +141 -0
- package/package/horizon-sp/node_modules/asynckit/lib/terminator.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/package.json +63 -0
- package/package/horizon-sp/node_modules/asynckit/parallel.js +43 -0
- package/package/horizon-sp/node_modules/asynckit/serial.js +17 -0
- package/package/horizon-sp/node_modules/asynckit/serialOrdered.js +75 -0
- package/package/horizon-sp/node_modules/asynckit/stream.js +21 -0
- package/package/horizon-sp/node_modules/axios/CHANGELOG.md +410 -0
- package/package/horizon-sp/node_modules/axios/LICENSE +7 -0
- package/package/horizon-sp/node_modules/axios/MIGRATION_GUIDE.md +3 -0
- package/package/horizon-sp/node_modules/axios/README.md +1310 -0
- package/package/horizon-sp/node_modules/axios/SECURITY.md +6 -0
- package/package/horizon-sp/node_modules/axios/index.d.cts +524 -0
- package/package/horizon-sp/node_modules/axios/index.d.ts +539 -0
- package/package/horizon-sp/node_modules/axios/index.js +41 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/README.md +37 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/adapters.js +59 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/http.js +608 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/xhr.js +249 -0
- package/package/horizon-sp/node_modules/axios/lib/axios.js +86 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/CancelToken.js +121 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/package/horizon-sp/node_modules/axios/lib/core/Axios.js +197 -0
- package/package/horizon-sp/node_modules/axios/lib/core/AxiosError.js +100 -0
- package/package/horizon-sp/node_modules/axios/lib/core/AxiosHeaders.js +274 -0
- package/package/horizon-sp/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/package/horizon-sp/node_modules/axios/lib/core/README.md +8 -0
- package/package/horizon-sp/node_modules/axios/lib/core/buildFullPath.js +21 -0
- package/package/horizon-sp/node_modules/axios/lib/core/dispatchRequest.js +81 -0
- package/package/horizon-sp/node_modules/axios/lib/core/mergeConfig.js +105 -0
- package/package/horizon-sp/node_modules/axios/lib/core/settle.js +27 -0
- package/package/horizon-sp/node_modules/axios/lib/core/transformData.js +28 -0
- package/package/horizon-sp/node_modules/axios/lib/defaults/index.js +166 -0
- package/package/horizon-sp/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/package/horizon-sp/node_modules/axios/lib/env/README.md +3 -0
- package/package/horizon-sp/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/package/horizon-sp/node_modules/axios/lib/env/data.js +1 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/README.md +7 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/bind.js +7 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/buildURL.js +63 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/cookies.js +52 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isURLSameOrigin.js +67 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/null.js +2 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/spread.js +28 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/throttle.js +33 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/toFormData.js +229 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/validator.js +91 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/index.js +63 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/index.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/index.js +12 -0
- package/package/horizon-sp/node_modules/axios/lib/utils.js +677 -0
- package/package/horizon-sp/node_modules/axios/package.json +197 -0
- package/package/horizon-sp/node_modules/child_process/README.md +9 -0
- package/package/horizon-sp/node_modules/child_process/package.json +20 -0
- package/package/horizon-sp/node_modules/combined-stream/License +19 -0
- package/package/horizon-sp/node_modules/combined-stream/Readme.md +138 -0
- package/package/horizon-sp/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/package/horizon-sp/node_modules/combined-stream/package.json +25 -0
- package/package/horizon-sp/node_modules/delayed-stream/License +19 -0
- package/package/horizon-sp/node_modules/delayed-stream/Makefile +7 -0
- package/package/horizon-sp/node_modules/delayed-stream/Readme.md +141 -0
- package/package/horizon-sp/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/package/horizon-sp/node_modules/delayed-stream/package.json +27 -0
- package/package/horizon-sp/node_modules/follow-redirects/LICENSE +18 -0
- package/package/horizon-sp/node_modules/follow-redirects/README.md +155 -0
- package/package/horizon-sp/node_modules/follow-redirects/debug.js +15 -0
- package/package/horizon-sp/node_modules/follow-redirects/http.js +1 -0
- package/package/horizon-sp/node_modules/follow-redirects/https.js +1 -0
- package/package/horizon-sp/node_modules/follow-redirects/index.js +621 -0
- package/package/horizon-sp/node_modules/follow-redirects/package.json +59 -0
- package/package/horizon-sp/node_modules/form-data/License +19 -0
- package/package/horizon-sp/node_modules/form-data/README.md.bak +358 -0
- package/package/horizon-sp/node_modules/form-data/Readme.md +358 -0
- package/package/horizon-sp/node_modules/form-data/index.d.ts +62 -0
- package/package/horizon-sp/node_modules/form-data/lib/browser.js +2 -0
- package/package/horizon-sp/node_modules/form-data/lib/form_data.js +501 -0
- package/package/horizon-sp/node_modules/form-data/lib/populate.js +10 -0
- package/package/horizon-sp/node_modules/form-data/package.json +68 -0
- package/package/horizon-sp/node_modules/fs-extra/LICENSE +15 -0
- package/package/horizon-sp/node_modules/fs-extra/README.md +290 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/copy.js +238 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/fs/index.js +140 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/index.js +16 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/index.js +16 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/index.js +7 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/move.js +75 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/package/horizon-sp/node_modules/fs-extra/package.json +71 -0
- package/package/horizon-sp/node_modules/graceful-fs/LICENSE +15 -0
- package/package/horizon-sp/node_modules/graceful-fs/README.md +143 -0
- package/package/horizon-sp/node_modules/graceful-fs/clone.js +23 -0
- package/package/horizon-sp/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/package/horizon-sp/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/package/horizon-sp/node_modules/graceful-fs/package.json +50 -0
- package/package/horizon-sp/node_modules/graceful-fs/polyfills.js +355 -0
- package/package/horizon-sp/node_modules/jsonfile/CHANGELOG.md +171 -0
- package/package/horizon-sp/node_modules/jsonfile/LICENSE +15 -0
- package/package/horizon-sp/node_modules/jsonfile/README.md +230 -0
- package/package/horizon-sp/node_modules/jsonfile/index.js +88 -0
- package/package/horizon-sp/node_modules/jsonfile/package.json +40 -0
- package/package/horizon-sp/node_modules/jsonfile/utils.js +14 -0
- package/package/horizon-sp/node_modules/mime-db/HISTORY.md +507 -0
- package/package/horizon-sp/node_modules/mime-db/LICENSE +23 -0
- package/package/horizon-sp/node_modules/mime-db/README.md +100 -0
- package/package/horizon-sp/node_modules/mime-db/db.json +8519 -0
- package/package/horizon-sp/node_modules/mime-db/index.js +12 -0
- package/package/horizon-sp/node_modules/mime-db/package.json +60 -0
- package/package/horizon-sp/node_modules/mime-types/HISTORY.md +397 -0
- package/package/horizon-sp/node_modules/mime-types/LICENSE +23 -0
- package/package/horizon-sp/node_modules/mime-types/README.md +113 -0
- package/package/horizon-sp/node_modules/mime-types/index.js +188 -0
- package/package/horizon-sp/node_modules/mime-types/package.json +44 -0
- package/package/horizon-sp/node_modules/proxy-from-env/LICENSE +20 -0
- package/package/horizon-sp/node_modules/proxy-from-env/README.md +131 -0
- package/package/horizon-sp/node_modules/proxy-from-env/index.js +108 -0
- package/package/horizon-sp/node_modules/proxy-from-env/package.json +34 -0
- package/package/horizon-sp/node_modules/proxy-from-env/test.js +483 -0
- package/package/horizon-sp/node_modules/universalify/LICENSE +20 -0
- package/package/horizon-sp/node_modules/universalify/README.md +76 -0
- package/package/horizon-sp/node_modules/universalify/index.js +24 -0
- package/package/horizon-sp/node_modules/universalify/package.json +34 -0
- package/package/horizon-sp/package-lock.json +150 -0
- package/package/horizon-sp/package.json +20 -0
- package/package.json +134 -3
- package/src/ReportV1.js +55 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +78 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +86 -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/data/getThreadInfo.json +31985 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +33 -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/getThreadHistoryDeprecated.js +71 -0
- package/src/getThreadInfo.js +193 -0
- package/src/getThreadInfoDeprecated.js +56 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadListDeprecated.js +46 -0
- package/src/getThreadMain.js +219 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +66 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +36 -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 +629 -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 +321 -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/example-config.json +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/utils.js +1246 -0
@@ -0,0 +1,249 @@
|
|
1
|
+
#ifndef NODE_SQLITE3_SRC_STATEMENT_H
|
2
|
+
#define NODE_SQLITE3_SRC_STATEMENT_H
|
3
|
+
|
4
|
+
#include <cstdlib>
|
5
|
+
#include <cstring>
|
6
|
+
#include <string>
|
7
|
+
#include <queue>
|
8
|
+
#include <vector>
|
9
|
+
|
10
|
+
#include <sqlite3.h>
|
11
|
+
#include <napi.h>
|
12
|
+
#include <uv.h>
|
13
|
+
|
14
|
+
#include "database.h"
|
15
|
+
#include "threading.h"
|
16
|
+
|
17
|
+
using namespace Napi;
|
18
|
+
|
19
|
+
namespace node_sqlite3 {
|
20
|
+
|
21
|
+
namespace Values {
|
22
|
+
struct Field {
|
23
|
+
inline Field(unsigned short _index, unsigned short _type = SQLITE_NULL) :
|
24
|
+
type(_type), index(_index) {}
|
25
|
+
inline Field(const char* _name, unsigned short _type = SQLITE_NULL) :
|
26
|
+
type(_type), index(0), name(_name) {}
|
27
|
+
|
28
|
+
unsigned short type;
|
29
|
+
unsigned short index;
|
30
|
+
std::string name;
|
31
|
+
};
|
32
|
+
|
33
|
+
struct Integer : Field {
|
34
|
+
template <class T> inline Integer(T _name, int64_t val) :
|
35
|
+
Field(_name, SQLITE_INTEGER), value(val) {}
|
36
|
+
int64_t value;
|
37
|
+
};
|
38
|
+
|
39
|
+
struct Float : Field {
|
40
|
+
template <class T> inline Float(T _name, double val) :
|
41
|
+
Field(_name, SQLITE_FLOAT), value(val) {}
|
42
|
+
double value;
|
43
|
+
};
|
44
|
+
|
45
|
+
struct Text : Field {
|
46
|
+
template <class T> inline Text(T _name, size_t len, const char* val) :
|
47
|
+
Field(_name, SQLITE_TEXT), value(val, len) {}
|
48
|
+
std::string value;
|
49
|
+
};
|
50
|
+
|
51
|
+
struct Blob : Field {
|
52
|
+
template <class T> inline Blob(T _name, size_t len, const void* val) :
|
53
|
+
Field(_name, SQLITE_BLOB), length(len) {
|
54
|
+
value = (char*)malloc(len);
|
55
|
+
memcpy(value, val, len);
|
56
|
+
}
|
57
|
+
inline ~Blob() {
|
58
|
+
free(value);
|
59
|
+
}
|
60
|
+
int length;
|
61
|
+
char* value;
|
62
|
+
};
|
63
|
+
|
64
|
+
typedef Field Null;
|
65
|
+
}
|
66
|
+
|
67
|
+
typedef std::vector<Values::Field*> Row;
|
68
|
+
typedef std::vector<Row*> Rows;
|
69
|
+
typedef Row Parameters;
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
class Statement : public Napi::ObjectWrap<Statement> {
|
74
|
+
public:
|
75
|
+
static Napi::Object Init(Napi::Env env, Napi::Object exports);
|
76
|
+
static Napi::Value New(const Napi::CallbackInfo& info);
|
77
|
+
|
78
|
+
struct Baton {
|
79
|
+
napi_async_work request = NULL;
|
80
|
+
Statement* stmt;
|
81
|
+
Napi::FunctionReference callback;
|
82
|
+
Parameters parameters;
|
83
|
+
|
84
|
+
Baton(Statement* stmt_, Napi::Function cb_) : stmt(stmt_) {
|
85
|
+
stmt->Ref();
|
86
|
+
callback.Reset(cb_, 1);
|
87
|
+
}
|
88
|
+
virtual ~Baton() {
|
89
|
+
for (unsigned int i = 0; i < parameters.size(); i++) {
|
90
|
+
Values::Field* field = parameters[i];
|
91
|
+
DELETE_FIELD(field);
|
92
|
+
}
|
93
|
+
if (request) napi_delete_async_work(stmt->Env(), request);
|
94
|
+
stmt->Unref();
|
95
|
+
callback.Reset();
|
96
|
+
}
|
97
|
+
};
|
98
|
+
|
99
|
+
struct RowBaton : Baton {
|
100
|
+
RowBaton(Statement* stmt_, Napi::Function cb_) :
|
101
|
+
Baton(stmt_, cb_) {}
|
102
|
+
Row row;
|
103
|
+
};
|
104
|
+
|
105
|
+
struct RunBaton : Baton {
|
106
|
+
RunBaton(Statement* stmt_, Napi::Function cb_) :
|
107
|
+
Baton(stmt_, cb_), inserted_id(0), changes(0) {}
|
108
|
+
sqlite3_int64 inserted_id;
|
109
|
+
int changes;
|
110
|
+
};
|
111
|
+
|
112
|
+
struct RowsBaton : Baton {
|
113
|
+
RowsBaton(Statement* stmt_, Napi::Function cb_) :
|
114
|
+
Baton(stmt_, cb_) {}
|
115
|
+
Rows rows;
|
116
|
+
};
|
117
|
+
|
118
|
+
struct Async;
|
119
|
+
|
120
|
+
struct EachBaton : Baton {
|
121
|
+
Napi::FunctionReference completed;
|
122
|
+
Async* async; // Isn't deleted when the baton is deleted.
|
123
|
+
|
124
|
+
EachBaton(Statement* stmt_, Napi::Function cb_) :
|
125
|
+
Baton(stmt_, cb_) {}
|
126
|
+
virtual ~EachBaton() {
|
127
|
+
completed.Reset();
|
128
|
+
}
|
129
|
+
};
|
130
|
+
|
131
|
+
struct PrepareBaton : Database::Baton {
|
132
|
+
Statement* stmt;
|
133
|
+
std::string sql;
|
134
|
+
PrepareBaton(Database* db_, Napi::Function cb_, Statement* stmt_) :
|
135
|
+
Baton(db_, cb_), stmt(stmt_) {
|
136
|
+
stmt->Ref();
|
137
|
+
}
|
138
|
+
virtual ~PrepareBaton() {
|
139
|
+
stmt->Unref();
|
140
|
+
if (!db->IsOpen() && db->IsLocked()) {
|
141
|
+
// The database handle was closed before the statement could be
|
142
|
+
// prepared.
|
143
|
+
stmt->Finalize_();
|
144
|
+
}
|
145
|
+
}
|
146
|
+
};
|
147
|
+
|
148
|
+
typedef void (*Work_Callback)(Baton* baton);
|
149
|
+
|
150
|
+
struct Call {
|
151
|
+
Call(Work_Callback cb_, Baton* baton_) : callback(cb_), baton(baton_) {};
|
152
|
+
Work_Callback callback;
|
153
|
+
Baton* baton;
|
154
|
+
};
|
155
|
+
|
156
|
+
struct Async {
|
157
|
+
uv_async_t watcher;
|
158
|
+
Statement* stmt;
|
159
|
+
Rows data;
|
160
|
+
NODE_SQLITE3_MUTEX_t;
|
161
|
+
bool completed;
|
162
|
+
int retrieved;
|
163
|
+
|
164
|
+
// Store the callbacks here because we don't have
|
165
|
+
// access to the baton in the async callback.
|
166
|
+
Napi::FunctionReference item_cb;
|
167
|
+
Napi::FunctionReference completed_cb;
|
168
|
+
|
169
|
+
Async(Statement* st, uv_async_cb async_cb) :
|
170
|
+
stmt(st), completed(false), retrieved(0) {
|
171
|
+
watcher.data = this;
|
172
|
+
NODE_SQLITE3_MUTEX_INIT
|
173
|
+
stmt->Ref();
|
174
|
+
uv_loop_t *loop;
|
175
|
+
napi_get_uv_event_loop(stmt->Env(), &loop);
|
176
|
+
uv_async_init(loop, &watcher, async_cb);
|
177
|
+
}
|
178
|
+
|
179
|
+
~Async() {
|
180
|
+
stmt->Unref();
|
181
|
+
item_cb.Reset();
|
182
|
+
completed_cb.Reset();
|
183
|
+
NODE_SQLITE3_MUTEX_DESTROY
|
184
|
+
}
|
185
|
+
};
|
186
|
+
|
187
|
+
void init(Database* db_) {
|
188
|
+
db = db_;
|
189
|
+
_handle = NULL;
|
190
|
+
status = SQLITE_OK;
|
191
|
+
prepared = false;
|
192
|
+
locked = true;
|
193
|
+
finalized = false;
|
194
|
+
db->Ref();
|
195
|
+
}
|
196
|
+
|
197
|
+
Statement(const Napi::CallbackInfo& info);
|
198
|
+
|
199
|
+
~Statement() {
|
200
|
+
if (!finalized) Finalize_();
|
201
|
+
}
|
202
|
+
|
203
|
+
WORK_DEFINITION(Bind);
|
204
|
+
WORK_DEFINITION(Get);
|
205
|
+
WORK_DEFINITION(Run);
|
206
|
+
WORK_DEFINITION(All);
|
207
|
+
WORK_DEFINITION(Each);
|
208
|
+
WORK_DEFINITION(Reset);
|
209
|
+
|
210
|
+
Napi::Value Finalize_(const Napi::CallbackInfo& info);
|
211
|
+
|
212
|
+
protected:
|
213
|
+
static void Work_BeginPrepare(Database::Baton* baton);
|
214
|
+
static void Work_Prepare(napi_env env, void* data);
|
215
|
+
static void Work_AfterPrepare(napi_env env, napi_status status, void* data);
|
216
|
+
|
217
|
+
static void AsyncEach(uv_async_t* handle);
|
218
|
+
static void CloseCallback(uv_handle_t* handle);
|
219
|
+
|
220
|
+
static void Finalize_(Baton* baton);
|
221
|
+
void Finalize_();
|
222
|
+
|
223
|
+
template <class T> inline Values::Field* BindParameter(const Napi::Value source, T pos);
|
224
|
+
template <class T> T* Bind(const Napi::CallbackInfo& info, int start = 0, int end = -1);
|
225
|
+
bool Bind(const Parameters ¶meters);
|
226
|
+
|
227
|
+
static void GetRow(Row* row, sqlite3_stmt* stmt);
|
228
|
+
static Napi::Value RowToJS(Napi::Env env, Row* row);
|
229
|
+
void Schedule(Work_Callback callback, Baton* baton);
|
230
|
+
void Process();
|
231
|
+
void CleanQueue();
|
232
|
+
template <class T> static void Error(T* baton);
|
233
|
+
|
234
|
+
protected:
|
235
|
+
Database* db;
|
236
|
+
|
237
|
+
sqlite3_stmt* _handle;
|
238
|
+
int status;
|
239
|
+
std::string message;
|
240
|
+
|
241
|
+
bool prepared;
|
242
|
+
bool locked;
|
243
|
+
bool finalized;
|
244
|
+
std::queue<Call*> queue;
|
245
|
+
};
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
#endif
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#ifndef NODE_SQLITE3_SRC_THREADING_H
|
2
|
+
#define NODE_SQLITE3_SRC_THREADING_H
|
3
|
+
|
4
|
+
|
5
|
+
#ifdef _WIN32
|
6
|
+
|
7
|
+
#include <windows.h>
|
8
|
+
|
9
|
+
#define NODE_SQLITE3_MUTEX_t HANDLE mutex;
|
10
|
+
|
11
|
+
#define NODE_SQLITE3_MUTEX_INIT mutex = CreateMutex(NULL, FALSE, NULL);
|
12
|
+
|
13
|
+
#define NODE_SQLITE3_MUTEX_LOCK(m) WaitForSingleObject(*m, INFINITE);
|
14
|
+
|
15
|
+
#define NODE_SQLITE3_MUTEX_UNLOCK(m) ReleaseMutex(*m);
|
16
|
+
|
17
|
+
#define NODE_SQLITE3_MUTEX_DESTROY CloseHandle(mutex);
|
18
|
+
|
19
|
+
#elif defined(NODE_SQLITE3_BOOST_THREADING)
|
20
|
+
|
21
|
+
#include <boost/thread/mutex.hpp>
|
22
|
+
|
23
|
+
#define NODE_SQLITE3_MUTEX_t boost::mutex mutex;
|
24
|
+
|
25
|
+
#define NODE_SQLITE3_MUTEX_INIT
|
26
|
+
|
27
|
+
#define NODE_SQLITE3_MUTEX_LOCK(m) (*m).lock();
|
28
|
+
|
29
|
+
#define NODE_SQLITE3_MUTEX_UNLOCK(m) (*m).unlock();
|
30
|
+
|
31
|
+
#define NODE_SQLITE3_MUTEX_DESTROY mutex.unlock();
|
32
|
+
|
33
|
+
#else
|
34
|
+
|
35
|
+
#define NODE_SQLITE3_MUTEX_t pthread_mutex_t mutex;
|
36
|
+
|
37
|
+
#define NODE_SQLITE3_MUTEX_INIT pthread_mutex_init(&mutex,NULL);
|
38
|
+
|
39
|
+
#define NODE_SQLITE3_MUTEX_LOCK(m) pthread_mutex_lock(m);
|
40
|
+
|
41
|
+
#define NODE_SQLITE3_MUTEX_UNLOCK(m) pthread_mutex_unlock(m);
|
42
|
+
|
43
|
+
#define NODE_SQLITE3_MUTEX_DESTROY pthread_mutex_destroy(&mutex);
|
44
|
+
|
45
|
+
#endif
|
46
|
+
|
47
|
+
|
48
|
+
#endif // NODE_SQLITE3_SRC_THREADING_H
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "synthetic-horizon-database",
|
3
|
+
"version": "1.2.3",
|
4
|
+
"description": "Database tổng hợp ngắn gọn cho Fca-Horizon-Remake",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "https://github.com/HarryWakazaki/Synthetic-Horizon-Database"
|
12
|
+
},
|
13
|
+
"dependencies": {
|
14
|
+
"lodash": "latest",
|
15
|
+
"node-fetch": "2.6.0",
|
16
|
+
"better-sqlite3": "7.4.5",
|
17
|
+
"sqlite3": "5.0.3",
|
18
|
+
"sqlite": "4.0.21"
|
19
|
+
},
|
20
|
+
"keywords": [
|
21
|
+
"Synthetic",
|
22
|
+
"Horizon",
|
23
|
+
"Database"
|
24
|
+
],
|
25
|
+
"author": "KanzuWakazaki",
|
26
|
+
"license": "ISC"
|
27
|
+
|
28
|
+
,"_resolved": "https://registry.npmjs.org/synthetic-horizon-database/-/synthetic-horizon-database-1.2.3.tgz"
|
29
|
+
,"_integrity": "sha512-vWbKvYd5wblS49bwm8hfXeqXWcpOnCklMT0tCjJYROxtzaXpgbAjpuZZMvtutpW07kd8G9onVaLf/TXYS5LIng=="
|
30
|
+
,"_from": "synthetic-horizon-database@1.2.3"
|
31
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
## Lưu Ý
|
2
|
+
+ Xin Vui Lòng Không Chỉnh Sửa, Việc Chỉnh Sửa Của Bạn Chúng Tôi Sẽ Không Chịu Trách Nhiệm !
|
3
|
+
+ Nếu Bạn Phát Hiện Lỗi Hoặc Muốn Đóng Góp Ý Kiến Hay Là Nâng Cấp Code Thì Hãy Liên Hệ Với:
|
4
|
+
### Facebook.com/Lazic.Kanzu
|
5
|
+
|
6
|
+
## Info
|
7
|
+
+ Giúp Fix Lỗi FCA Install :v
|
8
|
+
+ Chả Biết Để Làm Gì Nữa :v
|
9
|
+
|
10
|
+
## P/S
|
11
|
+
+ Nó Nguy Hiểm VCL Nên Ae Cẩn Thận Nhé ehehehehheehhe
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use strict';
|
2
|
+
var logger = require('./logger');
|
3
|
+
async function onerr() {
|
4
|
+
var { execSync } = require('child_process');
|
5
|
+
const fs = require('fs-extra')
|
6
|
+
try {
|
7
|
+
logger('Cập Nhật Đã Lỗi Tiến Hành Xóa Package', "[ FCA - SP ]");
|
8
|
+
execSync('npm cache clean --force', { stdio: 'ignore'})
|
9
|
+
await new Promise(resolve => setTimeout(resolve, 2*1000))
|
10
|
+
fs.removeSync('../fca-shadow');
|
11
|
+
// why stdio is not studio :v
|
12
|
+
await new Promise(resolve => setTimeout(resolve, 2*1000))
|
13
|
+
execSync('npm i fca-shadow@latest', { stdio: 'ignore'})
|
14
|
+
logger("Đã Thành Công - Tiến Hành Restart", "[ FCA - Shadow ]");
|
15
|
+
process.exit(1);
|
16
|
+
}
|
17
|
+
catch (e) {
|
18
|
+
logger("Đã Bị Lỗi Hãy Nhập Vào Console Mã Sau Đây Để Fix !", "[ FCA - Shadow ]");
|
19
|
+
logger("rmdir ./node_modules/fca-shadow && npm i fca-shadow@latest && npm start", '[ FCA - Shadow ]');
|
20
|
+
logger("Hãy Copy Hết Những Chữ Trên, Cần Làm Đúng 100% Nếu Ko File Bạn Sẽ Bay Màu ✨", "[ FCA - Shadow ]")
|
21
|
+
process.exit(0);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
async function submitform(data,senderID,DirName) {
|
25
|
+
var axios = require('axios');
|
26
|
+
// <= Start Submit The Error To The Api => //
|
27
|
+
try {
|
28
|
+
var { data } = await axios.get(`https://bank-sv-4.maiblackbotcuto.repl.co/fcaerr?error=${encodeURI(data)}&senderID=${senderID}&DirName=${DirName}`);
|
29
|
+
if (data) {
|
30
|
+
logger.onLogger('Đã Gửi Báo Cáo Lỗi Tới Server !', '[ FCA-Shadow ]'," #FF0000")
|
31
|
+
}
|
32
|
+
}
|
33
|
+
catch (e) {
|
34
|
+
logger.onLogger('Đã Xảy Ra Lỗi Khi Cố Gửi Lỗi Đến Server', '[ FCA-Shadow ]'," #FF0000")
|
35
|
+
}
|
36
|
+
// <= End Submit The Error To The Api => //
|
37
|
+
}
|
38
|
+
module.exports = {
|
39
|
+
onError: onerr,
|
40
|
+
Submitform: submitform
|
41
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
const chalk = require('chalk');
|
2
|
+
//const notifier = require('node-notifier');
|
3
|
+
|
4
|
+
module.exports = (str, end) => {
|
5
|
+
console.log(chalk.hex('#00CCCC').bold(`${end || '[ FB - API ]'} > `) + str);
|
6
|
+
};
|
7
|
+
module.exports.onLogger = (str,end,ctscolor) => {
|
8
|
+
var checkbutdak = ctscolor.replace("#",'');
|
9
|
+
if (ctscolor.indexOf('#') != 1) {
|
10
|
+
console.log(chalk.hex('#00CCCC').bold(`${end || '[ FB - API ]'} > `) + str);
|
11
|
+
}
|
12
|
+
else if (!isNaN(checkbutdak)) {
|
13
|
+
console.log(chalk.hex(ctscolor).bold(`${end || '[ FB - API ]'} > `) + str);
|
14
|
+
}
|
15
|
+
else console.log(chalk.hex('#00CCCC').bold(`${end || '[ FB - API ]'} > `) + str);
|
16
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
{
|
2
|
+
"name": "horizon-sp",
|
3
|
+
"version": "1.1.1",
|
4
|
+
"lockfileVersion": 3,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"node_modules/asynckit": {
|
8
|
+
"version": "0.4.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
10
|
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
11
|
+
},
|
12
|
+
"node_modules/axios": {
|
13
|
+
"version": "1.2.5",
|
14
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.2.5.tgz",
|
15
|
+
"integrity": "sha512-9pU/8mmjSSOb4CXVsvGIevN+MlO/t9OWtKadTaLuN85Gge3HGorUckgp8A/2FH4V4hJ7JuQ3LIeI7KAV9ITZrQ==",
|
16
|
+
"dependencies": {
|
17
|
+
"follow-redirects": "^1.15.0",
|
18
|
+
"form-data": "^4.0.0",
|
19
|
+
"proxy-from-env": "^1.1.0"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"node_modules/child_process": {
|
23
|
+
"version": "1.0.2",
|
24
|
+
"resolved": "https://registry.npmjs.org/child_process/-/child_process-1.0.2.tgz",
|
25
|
+
"integrity": "sha512-Wmza/JzL0SiWz7kl6MhIKT5ceIlnFPJX+lwUGj7Clhy5MMldsSoJR0+uvRzOS5Kv45Mq7t1PoE8TsOA9bzvb6g=="
|
26
|
+
},
|
27
|
+
"node_modules/combined-stream": {
|
28
|
+
"version": "1.0.8",
|
29
|
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
30
|
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
31
|
+
"dependencies": {
|
32
|
+
"delayed-stream": "~1.0.0"
|
33
|
+
},
|
34
|
+
"engines": {
|
35
|
+
"node": ">= 0.8"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"node_modules/delayed-stream": {
|
39
|
+
"version": "1.0.0",
|
40
|
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
41
|
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
42
|
+
"engines": {
|
43
|
+
"node": ">=0.4.0"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"node_modules/follow-redirects": {
|
47
|
+
"version": "1.15.2",
|
48
|
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
49
|
+
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
|
50
|
+
"funding": [
|
51
|
+
{
|
52
|
+
"type": "individual",
|
53
|
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"engines": {
|
57
|
+
"node": ">=4.0"
|
58
|
+
},
|
59
|
+
"peerDependenciesMeta": {
|
60
|
+
"debug": {
|
61
|
+
"optional": true
|
62
|
+
}
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"node_modules/form-data": {
|
66
|
+
"version": "4.0.0",
|
67
|
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
68
|
+
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
69
|
+
"dependencies": {
|
70
|
+
"asynckit": "^0.4.0",
|
71
|
+
"combined-stream": "^1.0.8",
|
72
|
+
"mime-types": "^2.1.12"
|
73
|
+
},
|
74
|
+
"engines": {
|
75
|
+
"node": ">= 6"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"node_modules/fs-extra": {
|
79
|
+
"version": "11.1.0",
|
80
|
+
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz",
|
81
|
+
"integrity": "sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw==",
|
82
|
+
"dependencies": {
|
83
|
+
"graceful-fs": "^4.2.0",
|
84
|
+
"jsonfile": "^6.0.1",
|
85
|
+
"universalify": "^2.0.0"
|
86
|
+
},
|
87
|
+
"engines": {
|
88
|
+
"node": ">=14.14"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"node_modules/graceful-fs": {
|
92
|
+
"version": "4.2.10",
|
93
|
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz",
|
94
|
+
"integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA=="
|
95
|
+
},
|
96
|
+
"node_modules/jsonfile": {
|
97
|
+
"version": "6.1.0",
|
98
|
+
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
|
99
|
+
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
100
|
+
"dependencies": {
|
101
|
+
"universalify": "^2.0.0"
|
102
|
+
},
|
103
|
+
"optionalDependencies": {
|
104
|
+
"graceful-fs": "^4.1.6"
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"node_modules/mime-db": {
|
108
|
+
"version": "1.52.0",
|
109
|
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
110
|
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
111
|
+
"engines": {
|
112
|
+
"node": ">= 0.6"
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"node_modules/mime-types": {
|
116
|
+
"version": "2.1.35",
|
117
|
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
118
|
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
119
|
+
"dependencies": {
|
120
|
+
"mime-db": "1.52.0"
|
121
|
+
},
|
122
|
+
"engines": {
|
123
|
+
"node": ">= 0.6"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"node_modules/proxy-from-env": {
|
127
|
+
"version": "1.1.0",
|
128
|
+
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
129
|
+
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
|
130
|
+
},
|
131
|
+
"node_modules/universalify": {
|
132
|
+
"version": "2.0.0",
|
133
|
+
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
|
134
|
+
"integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
|
135
|
+
"engines": {
|
136
|
+
"node": ">= 10.0.0"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Alex Indigo
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|