harperdb 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/BinObjects.jsc +0 -0
- package/bin/harperdb.jsc +0 -0
- package/bin/install.jsc +0 -0
- package/bin/register.jsc +0 -0
- package/bin/run.jsc +0 -0
- package/bin/stop.jsc +0 -0
- package/bin/upgrade.jsc +0 -0
- package/bin/utility.jsc +0 -0
- package/bin/version.jsc +0 -0
- package/coverage/lcov.info +4044 -4034
- package/data_layer/CreateAttributeObject.jsc +0 -0
- package/data_layer/CreateTableObject.jsc +0 -0
- package/data_layer/DataLayerObjects.jsc +0 -0
- package/data_layer/DeleteBeforeObject.jsc +0 -0
- package/data_layer/DeleteObject.jsc +0 -0
- package/data_layer/DropAttributeObject.jsc +0 -0
- package/data_layer/InsertObject.jsc +0 -0
- package/data_layer/ReadTransactionLogObject.jsc +0 -0
- package/data_layer/SQLSearch.jsc +0 -0
- package/data_layer/SearchByConditionsObject.jsc +0 -0
- package/data_layer/SearchByHashObject.jsc +0 -0
- package/data_layer/SearchObject.jsc +0 -0
- package/data_layer/SqlSearchObject.jsc +0 -0
- package/data_layer/UpdateObject.jsc +0 -0
- package/data_layer/UpsertObject.jsc +0 -0
- package/data_layer/bulkLoad.jsc +0 -0
- package/data_layer/data_objects/BulkLoadObjects.jsc +0 -0
- package/data_layer/data_objects/UpsertObject.jsc +0 -0
- package/data_layer/delete.jsc +0 -0
- package/data_layer/export.jsc +0 -0
- package/data_layer/harperBridge/BridgeMethods.jsc +0 -0
- package/data_layer/harperBridge/bridgeUtility/checkForNewAttr.jsc +0 -0
- package/data_layer/harperBridge/bridgeUtility/convertOperationToTransaction.jsc +0 -0
- package/data_layer/harperBridge/bridgeUtility/evaluateTableGetAttributes.jsc +0 -0
- package/data_layer/harperBridge/bridgeUtility/insertUpdateReturnObj.jsc +0 -0
- package/data_layer/harperBridge/bridgeUtility/insertUpdateValidate.jsc +0 -0
- package/data_layer/harperBridge/harperBridge.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/LMDBBridge.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/DeleteTransactionsBeforeResults.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecordsBefore.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteTransactionLogsBefore.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadTransactionLog.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/ThreadSearchObject.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsEnvironment.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbDropAllAttributes.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbThreadSearch.jsc +0 -0
- package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.jsc +0 -0
- package/data_layer/hdbInfoController.jsc +0 -0
- package/data_layer/insert.jsc +0 -0
- package/data_layer/readTransactionLog.jsc +0 -0
- package/data_layer/schema.jsc +0 -0
- package/data_layer/schemaDescribe.jsc +0 -0
- package/data_layer/search.jsc +0 -0
- package/data_layer/update.jsc +0 -0
- package/events/ClusterStatusEmitter.jsc +0 -0
- package/events/SioServerStoppedEvent.jsc +0 -0
- package/events/SocketClusterStatusEmitter.jsc +0 -0
- package/node_modules/@pm2/js-api/node_modules/async/CHANGELOG.md +275 -0
- package/node_modules/@pm2/js-api/node_modules/async/LICENSE +19 -0
- package/node_modules/@pm2/js-api/node_modules/async/README.md +56 -0
- package/node_modules/@pm2/js-api/node_modules/async/all.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/allLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/allSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/any.js +52 -0
- package/node_modules/@pm2/js-api/node_modules/async/anyLimit.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/anySeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/apply.js +68 -0
- package/node_modules/@pm2/js-api/node_modules/async/applyEach.js +51 -0
- package/node_modules/@pm2/js-api/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/asyncify.js +110 -0
- package/node_modules/@pm2/js-api/node_modules/async/auto.js +289 -0
- package/node_modules/@pm2/js-api/node_modules/async/autoInject.js +170 -0
- package/node_modules/@pm2/js-api/node_modules/async/bower.json +17 -0
- package/node_modules/@pm2/js-api/node_modules/async/cargo.js +94 -0
- package/node_modules/@pm2/js-api/node_modules/async/compose.js +58 -0
- package/node_modules/@pm2/js-api/node_modules/async/concat.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/concatLimit.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/concatSeries.js +36 -0
- package/node_modules/@pm2/js-api/node_modules/async/constant.js +66 -0
- package/node_modules/@pm2/js-api/node_modules/async/detect.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/detectLimit.js +48 -0
- package/node_modules/@pm2/js-api/node_modules/async/detectSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/dir.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/dist/async.js +5609 -0
- package/node_modules/@pm2/js-api/node_modules/async/dist/async.min.js +2 -0
- package/node_modules/@pm2/js-api/node_modules/async/dist/async.min.map +1 -0
- package/node_modules/@pm2/js-api/node_modules/async/doDuring.js +66 -0
- package/node_modules/@pm2/js-api/node_modules/async/doUntil.js +39 -0
- package/node_modules/@pm2/js-api/node_modules/async/doWhilst.js +59 -0
- package/node_modules/@pm2/js-api/node_modules/async/during.js +76 -0
- package/node_modules/@pm2/js-api/node_modules/async/each.js +82 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachLimit.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOf.js +111 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/eachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/@pm2/js-api/node_modules/async/every.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/everyLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/everySeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/filter.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/filterLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/filterSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/find.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/findLimit.js +48 -0
- package/node_modules/@pm2/js-api/node_modules/async/findSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/foldl.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/foldr.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEach.js +82 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOf.js +111 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/forever.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupBy.js +54 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/@pm2/js-api/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/index.js +582 -0
- package/node_modules/@pm2/js-api/node_modules/async/inject.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/filter.js +75 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/iterator.js +58 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/map.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/notId.js +10 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/once.js +15 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/queue.js +204 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/reject.js +21 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/slice.js +16 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/@pm2/js-api/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/@pm2/js-api/node_modules/async/log.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/map.js +54 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapSeries.js +36 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValues.js +63 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/@pm2/js-api/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/memoize.js +101 -0
- package/node_modules/@pm2/js-api/node_modules/async/nextTick.js +51 -0
- package/node_modules/@pm2/js-api/node_modules/async/package.json +110 -0
- package/node_modules/@pm2/js-api/node_modules/async/parallel.js +90 -0
- package/node_modules/@pm2/js-api/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/@pm2/js-api/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/@pm2/js-api/node_modules/async/queue.js +130 -0
- package/node_modules/@pm2/js-api/node_modules/async/race.js +70 -0
- package/node_modules/@pm2/js-api/node_modules/async/reduce.js +78 -0
- package/node_modules/@pm2/js-api/node_modules/async/reduceRight.js +44 -0
- package/node_modules/@pm2/js-api/node_modules/async/reflect.js +81 -0
- package/node_modules/@pm2/js-api/node_modules/async/reflectAll.js +105 -0
- package/node_modules/@pm2/js-api/node_modules/async/reject.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/retry.js +156 -0
- package/node_modules/@pm2/js-api/node_modules/async/retryable.js +65 -0
- package/node_modules/@pm2/js-api/node_modules/async/select.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/selectLimit.js +37 -0
- package/node_modules/@pm2/js-api/node_modules/async/selectSeries.js +35 -0
- package/node_modules/@pm2/js-api/node_modules/async/seq.js +91 -0
- package/node_modules/@pm2/js-api/node_modules/async/series.js +85 -0
- package/node_modules/@pm2/js-api/node_modules/async/setImmediate.js +45 -0
- package/node_modules/@pm2/js-api/node_modules/async/some.js +52 -0
- package/node_modules/@pm2/js-api/node_modules/async/someLimit.js +43 -0
- package/node_modules/@pm2/js-api/node_modules/async/someSeries.js +38 -0
- package/node_modules/@pm2/js-api/node_modules/async/sortBy.js +91 -0
- package/node_modules/@pm2/js-api/node_modules/async/timeout.js +89 -0
- package/node_modules/@pm2/js-api/node_modules/async/times.js +50 -0
- package/node_modules/@pm2/js-api/node_modules/async/timesLimit.js +42 -0
- package/node_modules/@pm2/js-api/node_modules/async/timesSeries.js +32 -0
- package/node_modules/@pm2/js-api/node_modules/async/transform.js +87 -0
- package/node_modules/@pm2/js-api/node_modules/async/tryEach.js +81 -0
- package/node_modules/@pm2/js-api/node_modules/async/unmemoize.js +25 -0
- package/node_modules/@pm2/js-api/node_modules/async/until.js +41 -0
- package/node_modules/@pm2/js-api/node_modules/async/waterfall.js +113 -0
- package/node_modules/@pm2/js-api/node_modules/async/whilst.js +72 -0
- package/node_modules/@pm2/js-api/node_modules/async/wrapSync.js +110 -0
- package/node_modules/@pm2/js-api/package.json +3 -1
- package/node_modules/ajv/package.json +0 -1
- package/node_modules/async/CHANGELOG.md +0 -6
- package/node_modules/async/package.json +12 -15
- package/node_modules/async-limiter/package.json +1 -0
- package/node_modules/{fastify-static → avvio}/.github/dependabot.yml +5 -1
- package/node_modules/avvio/.github/workflows/ci.yml +34 -11
- package/node_modules/avvio/.taprc +1 -1
- package/node_modules/avvio/README.md +17 -15
- package/node_modules/avvio/boot.js +15 -9
- package/node_modules/avvio/index.d.ts +1 -1
- package/node_modules/avvio/node_modules/debug/LICENSE +10 -9
- package/node_modules/avvio/node_modules/debug/README.md +24 -1
- package/node_modules/avvio/node_modules/debug/package.json +20 -20
- package/node_modules/avvio/node_modules/debug/src/common.js +15 -2
- package/node_modules/avvio/package.json +15 -15
- package/node_modules/avvio/plugin.js +5 -4
- package/node_modules/avvio/test/after-and-ready.test.js +27 -27
- package/node_modules/avvio/test/after-pass-through.test.js +3 -3
- package/node_modules/avvio/test/async-await.test.js +1 -1
- package/node_modules/avvio/test/await-after.test.js +12 -12
- package/node_modules/avvio/test/await-self.test.js +6 -6
- package/node_modules/avvio/test/await-use.test.js +1 -1
- package/node_modules/avvio/test/basic.test.js +14 -14
- package/node_modules/avvio/test/callbacks.test.js +1 -1
- package/node_modules/avvio/test/close.test.js +64 -21
- package/node_modules/avvio/test/esm.mjs +1 -1
- package/node_modules/avvio/test/events-listeners.test.js +1 -0
- package/node_modules/avvio/test/express.test.js +1 -1
- package/node_modules/avvio/test/override.test.js +27 -27
- package/node_modules/avvio/test/plugin-timeout.test.js +18 -18
- package/node_modules/avvio/test/pretty-print.test.js +1 -1
- package/node_modules/avvio/test/to-json.test.js +5 -5
- package/node_modules/avvio/test/types/index.ts +7 -0
- package/node_modules/axios/CHANGELOG.md +0 -23
- package/node_modules/axios/README.md +1 -3
- package/node_modules/axios/dist/axios.js +1 -21
- package/node_modules/axios/dist/axios.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.map +1 -1
- package/node_modules/axios/index.d.ts +2 -3
- package/node_modules/axios/lib/adapters/http.js +12 -28
- package/node_modules/axios/lib/axios.js +0 -3
- package/node_modules/axios/package.json +10 -10
- package/node_modules/big-integer/BigInteger.d.ts +1 -1
- package/node_modules/big-integer/BigInteger.js +2 -2
- package/node_modules/big-integer/BigInteger.min.js +1 -1
- package/node_modules/big-integer/README.md +2 -1
- package/node_modules/big-integer/package.json +15 -15
- package/node_modules/clone/README.md +3 -19
- package/node_modules/clone/clone.js +1 -7
- package/node_modules/clone/package.json +12 -11
- package/node_modules/cookie/HISTORY.md +6 -0
- package/node_modules/cookie/README.md +49 -20
- package/node_modules/cookie/index.js +11 -11
- package/node_modules/cookie/package.json +18 -16
- package/node_modules/fast-deep-equal/package.json +2 -1
- package/node_modules/fast-json-stringify/.github/dependabot.yml +4 -0
- package/node_modules/fast-json-stringify/.github/workflows/benchmark.yml +111 -0
- package/node_modules/fast-json-stringify/.github/workflows/ci.yml +32 -16
- package/node_modules/fast-json-stringify/.taprc +0 -1
- package/node_modules/fast-json-stringify/README.md +24 -17
- package/node_modules/fast-json-stringify/bench.js +28 -0
- package/node_modules/fast-json-stringify/example.js +1 -3
- package/node_modules/fast-json-stringify/index.d.ts +1 -0
- package/node_modules/fast-json-stringify/index.js +175 -116
- package/node_modules/fast-json-stringify/package.json +13 -12
- package/node_modules/fast-json-stringify/test/allof.test.js +63 -11
- package/node_modules/fast-json-stringify/test/any.test.js +25 -25
- package/node_modules/fast-json-stringify/test/anyof.test.js +92 -22
- package/node_modules/fast-json-stringify/test/array.test.js +66 -3
- package/node_modules/fast-json-stringify/test/basic.test.js +3 -3
- package/node_modules/fast-json-stringify/test/date.test.js +1 -1
- package/node_modules/fast-json-stringify/test/debug-mode.test.js +4 -4
- package/node_modules/fast-json-stringify/test/defaults.test.js +1 -1
- package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
- package/node_modules/fast-json-stringify/test/inferType.test.js +1 -1
- package/node_modules/fast-json-stringify/test/integer.test.js +44 -1
- package/node_modules/fast-json-stringify/test/nestedObjects.test.js +1 -1
- package/node_modules/fast-json-stringify/test/nullable.test.js +1 -1
- package/node_modules/fast-json-stringify/test/oneof.test.js +145 -17
- package/node_modules/fast-json-stringify/test/recursion.test.js +180 -0
- package/node_modules/fast-json-stringify/test/ref.test.js +54 -7
- package/node_modules/fast-json-stringify/test/required.test.js +10 -10
- package/node_modules/fast-json-stringify/test/requiresAjv.test.js +48 -0
- package/node_modules/fast-json-stringify/test/sanitize.test.js +2 -2
- package/node_modules/fast-json-stringify/test/side-effect.test.js +7 -7
- package/node_modules/fast-json-stringify/test/types/test.ts +8 -0
- package/node_modules/fast-json-stringify/test/typesArray.test.js +26 -26
- package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
- package/node_modules/fastify/README.md +3 -3
- package/node_modules/fastify/docs/ContentTypeParser.md +0 -21
- package/node_modules/fastify/docs/Ecosystem.md +0 -1
- package/node_modules/fastify/docs/Request.md +1 -1
- package/node_modules/fastify/docs/Server.md +1 -23
- package/node_modules/fastify/docs/Serverless.md +10 -17
- package/node_modules/fastify/docs/Style-Guide.md +2 -2
- package/node_modules/fastify/fastify.js +0 -3
- package/node_modules/fastify/lib/contentTypeParser.js +7 -28
- package/node_modules/fastify/lib/errors.js +1 -1
- package/node_modules/fastify/lib/reply.js +15 -11
- package/node_modules/fastify/lib/route.js +1 -1
- package/node_modules/fastify/node_modules/semver/package.json +10 -10
- package/node_modules/fastify/node_modules/semver/ranges/subset.js +67 -7
- package/node_modules/fastify/package.json +11 -11
- package/node_modules/fastify/test/content-parser.test.js +7 -179
- package/node_modules/fastify/test/custom-parser.test.js +2 -262
- package/node_modules/fastify/test/pretty-print.test.js +0 -28
- package/node_modules/fastify/test/schema-special-usage.test.js +0 -46
- package/node_modules/fastify/test/stream.test.js +0 -90
- package/node_modules/fastify/test/types/instance.test-d.ts +0 -2
- package/node_modules/fastify/test/types/logger.test-d.ts +3 -8
- package/node_modules/fastify/test/types/schema.test-d.ts +1 -41
- package/node_modules/fastify/test/versioned-routes.test.js +18 -61
- package/node_modules/fastify/types/content-type-parser.d.ts +4 -4
- package/node_modules/fastify/types/instance.d.ts +5 -11
- package/node_modules/fastify/types/logger.d.ts +1 -1
- package/node_modules/fastify/types/route.d.ts +11 -14
- package/node_modules/fastify/types/schema.d.ts +4 -4
- package/node_modules/{light-my-request → fastify-compress}/.dependabot/config.yml +1 -1
- package/node_modules/fastify-compress/.github/workflows/ci.yml +1 -10
- package/node_modules/fastify-compress/index.js +0 -12
- package/node_modules/fastify-compress/node_modules/mime-db/HISTORY.md +33 -0
- package/node_modules/fastify-compress/node_modules/mime-db/README.md +0 -2
- package/node_modules/fastify-compress/node_modules/mime-db/db.json +167 -9
- package/node_modules/fastify-compress/node_modules/mime-db/package.json +17 -17
- package/node_modules/fastify-compress/package.json +11 -11
- package/node_modules/fastify-compress/test/test-routes-compress.js +0 -27
- package/node_modules/fastify-cors/README.md +11 -18
- package/node_modules/fastify-cors/index.d.ts +55 -66
- package/node_modules/fastify-cors/index.js +83 -131
- package/node_modules/fastify-cors/package.json +11 -11
- package/node_modules/fastify-cors/test/cors.test.js +3 -250
- package/node_modules/fastify-cors/test/index.test-d.ts +1 -65
- package/node_modules/fastify-cors/test/preflight.test.js +1 -61
- package/node_modules/{fastify-compress → fastify-error}/.github/dependabot.yml +5 -1
- package/node_modules/fastify-error/.github/workflows/ci.yml +24 -8
- package/node_modules/fastify-error/README.md +8 -5
- package/node_modules/fastify-error/index.d.ts +1 -2
- package/node_modules/fastify-error/index.test-d.ts +1 -1
- package/node_modules/fastify-error/package.json +12 -12
- package/node_modules/fastify-helmet/.dependabot/config.yml +5 -0
- package/node_modules/fastify-helmet/.github/workflows/ci.yml +0 -9
- package/node_modules/fastify-helmet/README.md +2 -2
- package/node_modules/fastify-helmet/benchmarks/express.js +3 -3
- package/node_modules/fastify-helmet/benchmarks/koa.js +2 -2
- package/node_modules/fastify-helmet/index.js +0 -2
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/.github/workflows/ci.yml +18 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/.taprc +5 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/LICENSE +21 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/README.md +144 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/package.json +69 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.d.ts +36 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.js +126 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.test-d.ts +72 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/stackParser.js +11 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/bundlers.test.js +85 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/checkVersion.test.js +73 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/composite.test.js +16 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/esm/esm.mjs +34 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/esm/index.test.js +19 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +16 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/stackParser.test.js +48 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/test.js +307 -0
- package/node_modules/fastify-helmet/node_modules/fastify-plugin/tsconfig.json +8 -0
- package/node_modules/fastify-helmet/node_modules/semver/CHANGELOG.md +111 -0
- package/node_modules/fastify-helmet/node_modules/semver/LICENSE +15 -0
- package/node_modules/fastify-helmet/node_modules/semver/README.md +566 -0
- package/node_modules/fastify-helmet/node_modules/semver/bin/semver.js +173 -0
- package/node_modules/fastify-helmet/node_modules/semver/classes/comparator.js +135 -0
- package/node_modules/fastify-helmet/node_modules/semver/classes/index.js +5 -0
- package/node_modules/fastify-helmet/node_modules/semver/classes/range.js +510 -0
- package/node_modules/fastify-helmet/node_modules/semver/classes/semver.js +287 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/cmp.js +48 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/coerce.js +51 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/inc.js +15 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/major.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/parse.js +33 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/fastify-helmet/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/fastify-helmet/node_modules/semver/index.js +48 -0
- package/node_modules/fastify-helmet/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/fastify-helmet/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/fastify-helmet/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/fastify-helmet/node_modules/semver/internal/parse-options.js +11 -0
- package/node_modules/fastify-helmet/node_modules/semver/internal/re.js +182 -0
- package/node_modules/fastify-helmet/node_modules/semver/package.json +76 -0
- package/node_modules/fastify-helmet/node_modules/semver/preload.js +2 -0
- package/node_modules/fastify-helmet/node_modules/semver/range.bnf +16 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/min-version.js +60 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/simplify.js +44 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/subset.js +222 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/fastify-helmet/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/fastify-helmet/package.json +17 -17
- package/node_modules/fastify-helmet/test.js +0 -27
- package/node_modules/fastify-plugin/package.json +0 -1
- package/node_modules/{avvio → fastify-static}/.dependabot/config.yml +0 -0
- package/node_modules/fastify-static/.github/workflows/ci.yml +1 -10
- package/node_modules/fastify-static/README.md +0 -3
- package/node_modules/fastify-static/example/public/index.js +1 -1
- package/node_modules/fastify-static/example/server-compress.js +2 -5
- package/node_modules/fastify-static/example/server-dir-list.js +18 -25
- package/node_modules/fastify-static/example/server.js +1 -4
- package/node_modules/fastify-static/index.d.ts +2 -2
- package/node_modules/fastify-static/index.js +31 -64
- package/node_modules/fastify-static/node_modules/glob/README.md +4 -1
- package/node_modules/fastify-static/node_modules/glob/common.js +4 -8
- package/node_modules/fastify-static/node_modules/glob/glob.js +4 -7
- package/node_modules/fastify-static/node_modules/glob/package.json +18 -12
- package/node_modules/fastify-static/node_modules/glob/sync.js +4 -7
- package/node_modules/fastify-static/package.json +13 -14
- package/node_modules/fastify-static/test/dir-list.test.js +1 -5
- package/node_modules/fastify-static/test/static.test.js +2 -261
- package/node_modules/fastify-static/test/types/index.ts +1 -13
- package/node_modules/find-my-way/.taprc +4 -1
- package/node_modules/find-my-way/README.md +96 -6
- package/node_modules/find-my-way/index.d.ts +6 -5
- package/node_modules/find-my-way/index.js +72 -10
- package/node_modules/find-my-way/lib/constrainer.js +6 -2
- package/node_modules/find-my-way/lib/pretty-print.js +234 -33
- package/node_modules/find-my-way/node.js +25 -28
- package/node_modules/find-my-way/package.json +11 -11
- package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +2 -2
- package/node_modules/find-my-way/test/constraint.custom.test.js +72 -10
- package/node_modules/find-my-way/test/constraint.default-versioning.test.js +24 -1
- package/node_modules/find-my-way/test/constraint.host.test.js +7 -7
- package/node_modules/find-my-way/test/constraints.test.js +19 -19
- package/node_modules/find-my-way/test/errors.test.js +25 -25
- package/node_modules/find-my-way/test/fastify-issue-3129.test.js +35 -0
- package/node_modules/find-my-way/test/full-url.test.js +8 -8
- package/node_modules/find-my-way/test/host-storage.test.js +15 -15
- package/node_modules/find-my-way/test/http2/constraint.host.test.js +45 -0
- package/node_modules/find-my-way/test/issue-104.test.js +41 -18
- package/node_modules/find-my-way/test/issue-110.test.js +1 -1
- package/node_modules/find-my-way/test/issue-132.test.js +9 -9
- package/node_modules/find-my-way/test/issue-145.test.js +6 -6
- package/node_modules/find-my-way/test/issue-151.test.js +2 -2
- package/node_modules/find-my-way/test/issue-17.test.js +92 -12
- package/node_modules/find-my-way/test/issue-175.test.js +51 -1
- package/node_modules/find-my-way/test/issue-182.test.js +19 -0
- package/node_modules/find-my-way/test/issue-28.test.js +21 -21
- package/node_modules/find-my-way/test/issue-46.test.js +13 -13
- package/node_modules/find-my-way/test/issue-49.test.js +4 -4
- package/node_modules/find-my-way/test/issue-59.test.js +1 -1
- package/node_modules/find-my-way/test/issue-63.test.js +1 -1
- package/node_modules/find-my-way/test/issue-67.test.js +1 -1
- package/node_modules/find-my-way/test/max-param-length.test.js +5 -5
- package/node_modules/find-my-way/test/methods.test.js +53 -53
- package/node_modules/find-my-way/test/on-bad-url.test.js +4 -4
- package/node_modules/find-my-way/test/optional-params.test.js +145 -0
- package/node_modules/find-my-way/test/path-params-match.test.js +12 -12
- package/node_modules/find-my-way/test/pretty-print.test.js +364 -9
- package/node_modules/find-my-way/test/regex.test.js +5 -5
- package/node_modules/find-my-way/test/routes-registered.test.js +4 -4
- package/node_modules/find-my-way/test/server.test.js +23 -23
- package/node_modules/find-my-way/test/store.test.js +4 -4
- package/node_modules/find-my-way/test/types/router.test-d.ts +62 -0
- package/node_modules/follow-redirects/debug.js +2 -1
- package/node_modules/follow-redirects/index.js +111 -42
- package/node_modules/follow-redirects/package.json +10 -10
- package/node_modules/helmet/CHANGELOG.md +27 -3
- package/node_modules/helmet/README.md +130 -27
- package/node_modules/helmet/dist/index.d.ts +21 -13
- package/node_modules/helmet/dist/index.js +111 -52
- package/node_modules/helmet/dist/middlewares/content-security-policy/index.d.ts +2 -1
- package/node_modules/helmet/dist/middlewares/content-security-policy/index.js +28 -11
- package/node_modules/helmet/dist/middlewares/cross-origin-embedder-policy/index.d.ts +3 -0
- package/node_modules/helmet/dist/middlewares/cross-origin-embedder-policy/index.js +10 -0
- package/node_modules/helmet/dist/middlewares/cross-origin-opener-policy/index.d.ts +6 -0
- package/node_modules/helmet/dist/middlewares/cross-origin-opener-policy/index.js +19 -0
- package/node_modules/helmet/dist/middlewares/cross-origin-resource-policy/index.d.ts +6 -0
- package/node_modules/helmet/dist/middlewares/cross-origin-resource-policy/index.js +19 -0
- package/node_modules/helmet/package.json +19 -18
- package/node_modules/ieee754/package.json +1 -2
- package/node_modules/inherits/package.json +0 -1
- package/node_modules/ipaddr.js/Changes.md +20 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js +66 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +1 -0
- package/node_modules/ipaddr.js/package.json +10 -10
- package/node_modules/{fastify-helmet → light-my-request}/.github/dependabot.yml +5 -1
- package/node_modules/light-my-request/.github/workflows/ci.yml +38 -12
- package/node_modules/light-my-request/README.md +5 -3
- package/node_modules/light-my-request/index.d.ts +6 -3
- package/node_modules/light-my-request/lib/parseURL.js +7 -4
- package/node_modules/light-my-request/lib/request.js +16 -6
- package/node_modules/light-my-request/lib/response.js +24 -11
- package/node_modules/light-my-request/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/light-my-request/node_modules/ajv/LICENSE +22 -0
- package/node_modules/light-my-request/node_modules/ajv/README.md +193 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2019.d.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2019.js +55 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2020.d.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2020.js +49 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/ajv.d.ts +16 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/ajv.js +44 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.js +155 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.js +510 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/core.d.ts +173 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/core.js +617 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/jtd.d.ts +45 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/jtd.js +66 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.js +184 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.d.ts +169 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.js +100 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/2019.ts +78 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/2020.ts +72 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/ajv.ts +67 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/code.ts +168 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/index.ts +573 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/core.ts +887 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/jtd.ts +129 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/types/index.ts +240 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/types/json-schema.ts +186 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/types/jtd-schema.ts +263 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/discriminator/index.ts +110 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/light-my-request/node_modules/ajv/package.json +161 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/package.json +73 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/light-my-request/package.json +26 -19
- package/node_modules/light-my-request/test/benchmark.js +67 -0
- package/node_modules/light-my-request/test/index.test-d.ts +6 -4
- package/node_modules/light-my-request/test/test.js +103 -14
- package/node_modules/lmdb-store/build/Makefile +1 -1
- package/node_modules/lmdb-store/build/lmdb-store.target.mk +7 -7
- package/node_modules/lodash/package.json +4 -1
- package/node_modules/lru-cache/package.json +1 -0
- package/node_modules/minipass/README.md +7 -7
- package/node_modules/minipass/index.js +18 -3
- package/node_modules/minipass/package.json +11 -11
- package/node_modules/msgpackr-extract/build/Makefile +1 -1
- package/node_modules/node-lmdb/build/Makefile +1 -1
- package/node_modules/{socketcluster-client/node_modules/clone → pm2-sysmonit/node_modules/systeminformation}/LICENSE +7 -5
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/README.md +1075 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/audio.js +219 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/battery.js +309 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/bluetooth.js +183 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/cli.js +31 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/cpu.js +1681 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/docker.js +764 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/dockerSocket.js +327 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/filesystem.js +1270 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/graphics.js +1062 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/index.d.ts +988 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/index.js +513 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/internet.js +240 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/memory.js +547 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/network.js +1713 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/osinfo.js +1161 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/printer.js +212 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/processes.js +1257 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/system.js +829 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/usb.js +305 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/users.js +441 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/util.js +1276 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/virtualbox.js +107 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/wifi.js +747 -0
- package/node_modules/pm2-sysmonit/node_modules/systeminformation/package.json +135 -0
- package/node_modules/pumpify/node_modules/duplexify/.travis.yml +3 -0
- package/node_modules/pumpify/node_modules/duplexify/index.js +1 -1
- package/node_modules/pumpify/node_modules/duplexify/package.json +10 -10
- package/node_modules/pumpify/node_modules/duplexify/test.js +1 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +61 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/sc-errors/package.json +2 -1
- package/node_modules/secure-json-parse/.github/workflows/ci.yml +16 -1
- package/node_modules/secure-json-parse/index.d.ts +60 -0
- package/node_modules/secure-json-parse/index.test-d.ts +30 -0
- package/node_modules/secure-json-parse/package.json +16 -13
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/http-errors/HISTORY.md +11 -0
- package/node_modules/send/node_modules/http-errors/README.md +12 -6
- package/node_modules/send/node_modules/http-errors/index.js +35 -2
- package/node_modules/send/node_modules/http-errors/package.json +24 -24
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +16 -15
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/send/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/send/node_modules/setprototypeof/package.json +14 -12
- package/node_modules/send/package.json +26 -26
- package/node_modules/socketcluster-client/bower.json +1 -1
- package/node_modules/socketcluster-client/index.js +1 -1
- package/node_modules/socketcluster-client/node_modules/buffer/AUTHORS.md +8 -0
- package/node_modules/socketcluster-client/node_modules/buffer/README.md +0 -6
- package/node_modules/socketcluster-client/node_modules/buffer/index.d.ts +1 -1
- package/node_modules/socketcluster-client/node_modules/buffer/index.js +49 -37
- package/node_modules/socketcluster-client/node_modules/buffer/package.json +36 -22
- package/node_modules/socketcluster-client/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/socketcluster-client/node_modules/ieee754/README.md +51 -0
- package/node_modules/socketcluster-client/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/socketcluster-client/node_modules/ieee754/index.js +85 -0
- package/node_modules/socketcluster-client/node_modules/ieee754/package.json +87 -0
- package/node_modules/socketcluster-client/node_modules/ws/LICENSE +21 -0
- package/node_modules/socketcluster-client/node_modules/ws/README.md +389 -0
- package/node_modules/socketcluster-client/node_modules/ws/index.js +9 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/.DS_Store +0 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/buffer-util.js +72 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/constants.js +10 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/event-target.js +170 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/extension.js +211 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/permessage-deflate.js +516 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/receiver.js +513 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/sender.js +401 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/validation.js +29 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/websocket-server.js +350 -0
- package/node_modules/socketcluster-client/node_modules/ws/lib/websocket.js +821 -0
- package/node_modules/socketcluster-client/node_modules/ws/package.json +81 -0
- package/node_modules/socketcluster-client/package.json +17 -18
- package/node_modules/socketcluster-client/socketcluster.js +12 -40
- package/node_modules/socketcluster-client/socketcluster.min.js +2 -2
- package/node_modules/string_decoder/package.json +0 -1
- package/node_modules/systeminformation/CHANGELOG.md +3 -22
- package/node_modules/systeminformation/README.md +1 -4
- package/node_modules/systeminformation/lib/battery.js +26 -104
- package/node_modules/systeminformation/lib/cpu.js +10 -13
- package/node_modules/systeminformation/lib/docker.js +3 -3
- package/node_modules/systeminformation/lib/filesystem.js +59 -86
- package/node_modules/systeminformation/lib/graphics.js +22 -91
- package/node_modules/systeminformation/lib/index.d.ts +11 -48
- package/node_modules/systeminformation/lib/memory.js +1 -1
- package/node_modules/systeminformation/lib/network.js +7 -17
- package/node_modules/systeminformation/lib/osinfo.js +7 -10
- package/node_modules/systeminformation/lib/processes.js +23 -35
- package/node_modules/systeminformation/lib/system.js +5 -5
- package/node_modules/systeminformation/lib/util.js +1 -41
- package/node_modules/systeminformation/package.json +11 -12
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +25 -21
- package/node_modules/uri-js/package.json +2 -1
- package/node_modules/util-deprecate/package.json +0 -1
- package/node_modules/vizion/node_modules/async/CHANGELOG.md +275 -0
- package/node_modules/vizion/node_modules/async/LICENSE +19 -0
- package/node_modules/vizion/node_modules/async/README.md +56 -0
- package/node_modules/vizion/node_modules/async/all.js +50 -0
- package/node_modules/vizion/node_modules/async/allLimit.js +42 -0
- package/node_modules/vizion/node_modules/async/allSeries.js +37 -0
- package/node_modules/vizion/node_modules/async/any.js +52 -0
- package/node_modules/vizion/node_modules/async/anyLimit.js +43 -0
- package/node_modules/vizion/node_modules/async/anySeries.js +38 -0
- package/node_modules/vizion/node_modules/async/apply.js +68 -0
- package/node_modules/vizion/node_modules/async/applyEach.js +51 -0
- package/node_modules/vizion/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/vizion/node_modules/async/asyncify.js +110 -0
- package/node_modules/vizion/node_modules/async/auto.js +289 -0
- package/node_modules/vizion/node_modules/async/autoInject.js +170 -0
- package/node_modules/vizion/node_modules/async/bower.json +17 -0
- package/node_modules/vizion/node_modules/async/cargo.js +94 -0
- package/node_modules/vizion/node_modules/async/compose.js +58 -0
- package/node_modules/vizion/node_modules/async/concat.js +43 -0
- package/node_modules/vizion/node_modules/async/concatLimit.js +65 -0
- package/node_modules/vizion/node_modules/async/concatSeries.js +36 -0
- package/node_modules/vizion/node_modules/async/constant.js +66 -0
- package/node_modules/vizion/node_modules/async/detect.js +61 -0
- package/node_modules/vizion/node_modules/async/detectLimit.js +48 -0
- package/node_modules/vizion/node_modules/async/detectSeries.js +38 -0
- package/node_modules/vizion/node_modules/async/dir.js +43 -0
- package/node_modules/vizion/node_modules/async/dist/async.js +5609 -0
- package/node_modules/vizion/node_modules/async/dist/async.min.js +2 -0
- package/node_modules/vizion/node_modules/async/dist/async.min.map +1 -0
- package/node_modules/vizion/node_modules/async/doDuring.js +66 -0
- package/node_modules/vizion/node_modules/async/doUntil.js +39 -0
- package/node_modules/vizion/node_modules/async/doWhilst.js +59 -0
- package/node_modules/vizion/node_modules/async/during.js +76 -0
- package/node_modules/vizion/node_modules/async/each.js +82 -0
- package/node_modules/vizion/node_modules/async/eachLimit.js +45 -0
- package/node_modules/vizion/node_modules/async/eachOf.js +111 -0
- package/node_modules/vizion/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/vizion/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/vizion/node_modules/async/eachSeries.js +37 -0
- package/node_modules/vizion/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/vizion/node_modules/async/every.js +50 -0
- package/node_modules/vizion/node_modules/async/everyLimit.js +42 -0
- package/node_modules/vizion/node_modules/async/everySeries.js +37 -0
- package/node_modules/vizion/node_modules/async/filter.js +45 -0
- package/node_modules/vizion/node_modules/async/filterLimit.js +37 -0
- package/node_modules/vizion/node_modules/async/filterSeries.js +35 -0
- package/node_modules/vizion/node_modules/async/find.js +61 -0
- package/node_modules/vizion/node_modules/async/findLimit.js +48 -0
- package/node_modules/vizion/node_modules/async/findSeries.js +38 -0
- package/node_modules/vizion/node_modules/async/foldl.js +78 -0
- package/node_modules/vizion/node_modules/async/foldr.js +44 -0
- package/node_modules/vizion/node_modules/async/forEach.js +82 -0
- package/node_modules/vizion/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/vizion/node_modules/async/forEachOf.js +111 -0
- package/node_modules/vizion/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/vizion/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/vizion/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/vizion/node_modules/async/forever.js +65 -0
- package/node_modules/vizion/node_modules/async/groupBy.js +54 -0
- package/node_modules/vizion/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/vizion/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/vizion/node_modules/async/index.js +582 -0
- package/node_modules/vizion/node_modules/async/inject.js +78 -0
- package/node_modules/vizion/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/vizion/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/vizion/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/vizion/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/vizion/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/vizion/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/vizion/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/vizion/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/vizion/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/vizion/node_modules/async/internal/filter.js +75 -0
- package/node_modules/vizion/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/vizion/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/vizion/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/vizion/node_modules/async/internal/iterator.js +58 -0
- package/node_modules/vizion/node_modules/async/internal/map.js +35 -0
- package/node_modules/vizion/node_modules/async/internal/notId.js +10 -0
- package/node_modules/vizion/node_modules/async/internal/once.js +15 -0
- package/node_modules/vizion/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/vizion/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/vizion/node_modules/async/internal/queue.js +204 -0
- package/node_modules/vizion/node_modules/async/internal/reject.js +21 -0
- package/node_modules/vizion/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/vizion/node_modules/async/internal/slice.js +16 -0
- package/node_modules/vizion/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/vizion/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/vizion/node_modules/async/log.js +41 -0
- package/node_modules/vizion/node_modules/async/map.js +54 -0
- package/node_modules/vizion/node_modules/async/mapLimit.js +37 -0
- package/node_modules/vizion/node_modules/async/mapSeries.js +36 -0
- package/node_modules/vizion/node_modules/async/mapValues.js +63 -0
- package/node_modules/vizion/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/vizion/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/vizion/node_modules/async/memoize.js +101 -0
- package/node_modules/vizion/node_modules/async/nextTick.js +51 -0
- package/node_modules/vizion/node_modules/async/package.json +110 -0
- package/node_modules/vizion/node_modules/async/parallel.js +90 -0
- package/node_modules/vizion/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/vizion/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/vizion/node_modules/async/queue.js +130 -0
- package/node_modules/vizion/node_modules/async/race.js +70 -0
- package/node_modules/vizion/node_modules/async/reduce.js +78 -0
- package/node_modules/vizion/node_modules/async/reduceRight.js +44 -0
- package/node_modules/vizion/node_modules/async/reflect.js +81 -0
- package/node_modules/vizion/node_modules/async/reflectAll.js +105 -0
- package/node_modules/vizion/node_modules/async/reject.js +45 -0
- package/node_modules/vizion/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/vizion/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/vizion/node_modules/async/retry.js +156 -0
- package/node_modules/vizion/node_modules/async/retryable.js +65 -0
- package/node_modules/vizion/node_modules/async/select.js +45 -0
- package/node_modules/vizion/node_modules/async/selectLimit.js +37 -0
- package/node_modules/vizion/node_modules/async/selectSeries.js +35 -0
- package/node_modules/vizion/node_modules/async/seq.js +91 -0
- package/node_modules/vizion/node_modules/async/series.js +85 -0
- package/node_modules/vizion/node_modules/async/setImmediate.js +45 -0
- package/node_modules/vizion/node_modules/async/some.js +52 -0
- package/node_modules/vizion/node_modules/async/someLimit.js +43 -0
- package/node_modules/vizion/node_modules/async/someSeries.js +38 -0
- package/node_modules/vizion/node_modules/async/sortBy.js +91 -0
- package/node_modules/vizion/node_modules/async/timeout.js +89 -0
- package/node_modules/vizion/node_modules/async/times.js +50 -0
- package/node_modules/vizion/node_modules/async/timesLimit.js +42 -0
- package/node_modules/vizion/node_modules/async/timesSeries.js +32 -0
- package/node_modules/vizion/node_modules/async/transform.js +87 -0
- package/node_modules/vizion/node_modules/async/tryEach.js +81 -0
- package/node_modules/vizion/node_modules/async/unmemoize.js +25 -0
- package/node_modules/vizion/node_modules/async/until.js +41 -0
- package/node_modules/vizion/node_modules/async/waterfall.js +113 -0
- package/node_modules/vizion/node_modules/async/whilst.js +72 -0
- package/node_modules/vizion/node_modules/async/wrapSync.js +110 -0
- package/node_modules/vizion/package.json +3 -1
- package/node_modules/ws/package.json +0 -1
- package/package.json +62 -62
- package/security/JWTObjects.jsc +0 -0
- package/security/auth.jsc +0 -0
- package/security/cryptoHash.jsc +0 -0
- package/security/data_objects/PermissionAttributeResponseObject.jsc +0 -0
- package/security/data_objects/PermissionResponseObject.jsc +0 -0
- package/security/data_objects/PermissionTableResponseObject.jsc +0 -0
- package/security/permissionsTranslator.jsc +0 -0
- package/security/role.jsc +0 -0
- package/security/tokenAuthentication.jsc +0 -0
- package/security/user.jsc +0 -0
- package/server/ClusteringOriginObject.jsc +0 -0
- package/server/JobObject.jsc +0 -0
- package/server/clustering/ClusterStatusObject.jsc +0 -0
- package/server/clustering/NodeObject.jsc +0 -0
- package/server/clustering/clusterUtilities.jsc +0 -0
- package/server/configuration.jsc +0 -0
- package/server/customFunctions/customFunctionsServer.jsc +0 -0
- package/server/customFunctions/helpers/getCORSOptions.jsc +0 -0
- package/server/customFunctions/helpers/getHeaderTimeoutConfig.jsc +0 -0
- package/server/customFunctions/helpers/getServerOptions.jsc +0 -0
- package/server/customFunctions/operations.jsc +0 -0
- package/server/customFunctions/operationsValidation.jsc +0 -0
- package/server/harperdb/hdbServer.jsc +0 -0
- package/server/ipc/IPCClient.jsc +0 -0
- package/server/ipc/hdbIpcServer.jsc +0 -0
- package/server/ipc/serverHandlers.jsc +0 -0
- package/server/ipc/utility/IPCEventObject.jsc +0 -0
- package/server/ipc/utility/ipcUtils.jsc +0 -0
- package/server/jobRunner.jsc +0 -0
- package/server/jobThread.jsc +0 -0
- package/server/jobs.jsc +0 -0
- package/server/serverHelpers/OperationFunctionObject.jsc +0 -0
- package/server/serverHelpers/requestTimePlugin.jsc +0 -0
- package/server/serverHelpers/serverHandlers.jsc +0 -0
- package/server/serverHelpers/serverUtilities.jsc +0 -0
- package/server/socketcluster/Server.jsc +0 -0
- package/server/socketcluster/broker.jsc +0 -0
- package/server/socketcluster/connector/HDBSocketConnector.jsc +0 -0
- package/server/socketcluster/connector/InterNodeSocketConnector.jsc +0 -0
- package/server/socketcluster/connector/SocketConnector.jsc +0 -0
- package/server/socketcluster/connector/spawnSCConnection.jsc +0 -0
- package/server/socketcluster/decisionMatrix/CoreDecisionMatrix.jsc +0 -0
- package/server/socketcluster/decisionMatrix/DecisionMatrixIF.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/AssignToHdbChildWorkerRule.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/CallRoomMsgHandlerRule.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/CleanDataObjectRule.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/CommandCollection.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/DummyRule.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/RulesIF.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/StripHdbHeaderRule.jsc +0 -0
- package/server/socketcluster/decisionMatrix/rules/TestRule.jsc +0 -0
- package/server/socketcluster/handlers/NodeConnectionsHandler.jsc +0 -0
- package/server/socketcluster/handlers/SCServer.jsc +0 -0
- package/server/socketcluster/handlers/ServerSocket.jsc +0 -0
- package/server/socketcluster/interNodeConnectionLauncher.jsc +0 -0
- package/server/socketcluster/messageQueue/MessageQueueIF.jsc +0 -0
- package/server/socketcluster/middleware/AuthMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/ConnectionNameCheckMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/GenericMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/MessagePrepMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/MiddlewareFactory.jsc +0 -0
- package/server/socketcluster/middleware/MiddlewareIF.jsc +0 -0
- package/server/socketcluster/middleware/OriginatorCheckMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/RequestDataValidMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/StampOriginatorMiddleware.jsc +0 -0
- package/server/socketcluster/middleware/StampRequestMiddleware.jsc +0 -0
- package/server/socketcluster/observer/EventableIF.jsc +0 -0
- package/server/socketcluster/room/AddUserRoom.jsc +0 -0
- package/server/socketcluster/room/AlterUserRoom.jsc +0 -0
- package/server/socketcluster/room/CoreRoom.jsc +0 -0
- package/server/socketcluster/room/CreateAttributeRoom.jsc +0 -0
- package/server/socketcluster/room/CreateSchemaRoom.jsc +0 -0
- package/server/socketcluster/room/CreateTableRoom.jsc +0 -0
- package/server/socketcluster/room/DropUserRoom.jsc +0 -0
- package/server/socketcluster/room/HDBNodeRoom.jsc +0 -0
- package/server/socketcluster/room/RoomIF.jsc +0 -0
- package/server/socketcluster/room/RoomMessageObjects.jsc +0 -0
- package/server/socketcluster/room/UsersRoom.jsc +0 -0
- package/server/socketcluster/room/WatchHDBWorkersRoom.jsc +0 -0
- package/server/socketcluster/room/WorkerRoom.jsc +0 -0
- package/server/socketcluster/room/roomFactory.jsc +0 -0
- package/server/socketcluster/socketClusterObjects.jsc +0 -0
- package/server/socketcluster/types.jsc +0 -0
- package/server/socketcluster/util/clusterData.jsc +0 -0
- package/server/socketcluster/util/socketClusterUtils.jsc +0 -0
- package/server/socketcluster/worker/ClusterWorker.jsc +0 -0
- package/server/socketcluster/worker/WorkerIF.jsc +0 -0
- package/server/socketcluster/worker/WorkerObjects.jsc +0 -0
- package/server/transactToClusteringUtilities.jsc +0 -0
- package/sqlTranslator/SelectValidator.jsc +0 -0
- package/sqlTranslator/alasqlFunctionImporter.jsc +0 -0
- package/sqlTranslator/conditionPatterns.jsc +0 -0
- package/sqlTranslator/deleteTranslator.jsc +0 -0
- package/sqlTranslator/index.jsc +0 -0
- package/sqlTranslator/sql_statement_bucket.jsc +0 -0
- package/upgrade/EnvironmentVariable.jsc +0 -0
- package/upgrade/UpgradeDirective.jsc +0 -0
- package/upgrade/UpgradeObjects.jsc +0 -0
- package/upgrade/directives/3-0-0.jsc +0 -0
- package/upgrade/directives/3-1-0.jsc +0 -0
- package/upgrade/directives/directivesController.jsc +0 -0
- package/upgrade/directives/upgrade_scripts/3_0_0_reindex_script.jsc +0 -0
- package/upgrade/directivesManager.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/DBIDefinition.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/OpenDBIObject.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/OpenEnvironmentObject.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/commonErrors.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/commonUtility.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/environmentUtility.jsc +0 -0
- package/upgrade/lmdb/nodeLMDB/terms.jsc +0 -0
- package/upgrade/upgradePrompt.jsc +0 -0
- package/upgrade/upgradeUtilities.jsc +0 -0
- package/utility/AWS/AWSConnector.jsc +0 -0
- package/utility/OperationFunctionCaller.jsc +0 -0
- package/utility/common_utils.jsc +0 -0
- package/utility/environment/SystemInformationObject.jsc +0 -0
- package/utility/environment/SystemInformationOperation.jsc +0 -0
- package/utility/environment/environmentManager.jsc +0 -0
- package/utility/environment/systemInformation.jsc +0 -0
- package/utility/errors/commonErrors.jsc +0 -0
- package/utility/errors/hdbError.jsc +0 -0
- package/utility/functions/date/dateFunctions.jsc +0 -0
- package/utility/functions/geo.jsc +0 -0
- package/utility/functions/math/avg.jsc +0 -0
- package/utility/functions/math/count.jsc +0 -0
- package/utility/functions/sql/alaSQLExtension.jsc +0 -0
- package/utility/functions/string/compare.jsc +0 -0
- package/utility/globalSchema.jsc +0 -0
- package/utility/hdbTerms.jsc +0 -0
- package/utility/install/checkJWTTokensExist.jsc +0 -0
- package/utility/install/installer.jsc +0 -0
- package/utility/install_user_permission.jsc +0 -0
- package/utility/lmdb/DBIDefinition.jsc +0 -0
- package/utility/lmdb/DeleteRecordsResponseObject.jsc +0 -0
- package/utility/lmdb/InsertRecordsResponseObject.jsc +0 -0
- package/utility/lmdb/OpenDBIObject.jsc +0 -0
- package/utility/lmdb/OpenEnvironmentObject.jsc +0 -0
- package/utility/lmdb/UpdateRecordsResponseObject.jsc +0 -0
- package/utility/lmdb/UpsertRecordsResponseObject.jsc +0 -0
- package/utility/lmdb/cleanLMDBMap.jsc +0 -0
- package/utility/lmdb/commonUtility.jsc +0 -0
- package/utility/lmdb/deleteUtility.jsc +0 -0
- package/utility/lmdb/environmentUtility.jsc +0 -0
- package/utility/lmdb/searchCursorFunctions.jsc +0 -0
- package/utility/lmdb/searchUtility.jsc +0 -0
- package/utility/lmdb/terms.jsc +0 -0
- package/utility/lmdb/writeUtility.jsc +0 -0
- package/utility/logging/harper_logger.jsc +0 -0
- package/utility/mount_hdb.jsc +0 -0
- package/utility/operation_authorization.jsc +0 -0
- package/utility/password.jsc +0 -0
- package/utility/pm2/servicesConfig.jsc +0 -0
- package/utility/pm2/utilityFunctions.jsc +0 -0
- package/utility/psList.jsc +0 -0
- package/utility/registration/hdb_license.jsc +0 -0
- package/utility/registration/licenseObjects.jsc +0 -0
- package/utility/registration/registrationHandler.jsc +0 -0
- package/utility/scripts/restartHdb.jsc +0 -0
- package/utility/signalling.jsc +0 -0
- package/utility/system_info.jsc +0 -0
- package/validation/bulkDeleteValidator.jsc +0 -0
- package/validation/check_permissions.jsc +0 -0
- package/validation/clustering/configureValidator.jsc +0 -0
- package/validation/common_validators.jsc +0 -0
- package/validation/conditionalDeleteValidator.jsc +0 -0
- package/validation/deleteValidator.jsc +0 -0
- package/validation/fileLoadValidator.jsc +0 -0
- package/validation/insertValidator.jsc +0 -0
- package/validation/nodeSubscriptionValidator.jsc +0 -0
- package/validation/nodeValidator.jsc +0 -0
- package/validation/readLogValidator.jsc +0 -0
- package/validation/registration/license_key_object.jsc +0 -0
- package/validation/role_validation.jsc +0 -0
- package/validation/schemaMetadataValidator.jsc +0 -0
- package/validation/schema_validator.jsc +0 -0
- package/validation/searchValidator.jsc +0 -0
- package/validation/user_validation.jsc +0 -0
- package/validation/validationWrapper.jsc +0 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
- package/node_modules/fastify-helmet/.github/stale.yml +0 -21
- package/node_modules/fastify-static/.github/stale.yml +0 -21
- package/node_modules/fastify-static/example/public2/test.css +0 -4
- package/node_modules/fastify-static/example/public2/test.html +0 -8
- package/node_modules/fastify-static/example/server-multi-dir-list.js +0 -49
- package/node_modules/fastify-static/node_modules/glob/changelog.md +0 -67
- package/node_modules/fastify-static/test/static/.example +0 -1
- package/node_modules/fastify-static/test/static/a .md +0 -1
- package/node_modules/fastify-static/test/static2/bar.html +0 -3
- package/node_modules/fastify-static/test/static2/index.html +0 -3
- package/node_modules/light-my-request/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/light-my-request/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/light-my-request/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/light-my-request/node_modules/readable-stream/README.md +0 -106
- package/node_modules/light-my-request/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/light-my-request/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/light-my-request/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
- package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_writable.js +0 -697
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/light-my-request/node_modules/readable-stream/package.json +0 -100
- package/node_modules/light-my-request/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/light-my-request/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/socketcluster-client/node_modules/clone/.npmignore +0 -4
- package/node_modules/socketcluster-client/node_modules/clone/README.md +0 -178
- package/node_modules/socketcluster-client/node_modules/clone/clone.iml +0 -10
- package/node_modules/socketcluster-client/node_modules/clone/clone.js +0 -251
- package/node_modules/socketcluster-client/node_modules/clone/package.json +0 -161
- package/node_modules/socketcluster-client/node_modules/sc-errors/README.md +0 -2
- package/node_modules/socketcluster-client/node_modules/sc-errors/decycle.js +0 -79
- package/node_modules/socketcluster-client/node_modules/sc-errors/index.js +0 -340
- package/node_modules/socketcluster-client/node_modules/sc-errors/package.json +0 -55
|
@@ -0,0 +1,1257 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// @ts-check
|
|
3
|
+
// ==================================================================================
|
|
4
|
+
// processes.js
|
|
5
|
+
// ----------------------------------------------------------------------------------
|
|
6
|
+
// Description: System Information - library
|
|
7
|
+
// for Node.js
|
|
8
|
+
// Copyright: (c) 2014 - 2022
|
|
9
|
+
// Author: Sebastian Hildebrandt
|
|
10
|
+
// ----------------------------------------------------------------------------------
|
|
11
|
+
// License: MIT
|
|
12
|
+
// ==================================================================================
|
|
13
|
+
// 10. Processes
|
|
14
|
+
// ----------------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
const os = require('os');
|
|
17
|
+
const fs = require('fs');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
const exec = require('child_process').exec;
|
|
20
|
+
const execSync = require('child_process').execSync;
|
|
21
|
+
|
|
22
|
+
const util = require('./util');
|
|
23
|
+
|
|
24
|
+
let _platform = process.platform;
|
|
25
|
+
|
|
26
|
+
const _linux = (_platform === 'linux' || _platform === 'android');
|
|
27
|
+
const _darwin = (_platform === 'darwin');
|
|
28
|
+
const _windows = (_platform === 'win32');
|
|
29
|
+
const _freebsd = (_platform === 'freebsd');
|
|
30
|
+
const _openbsd = (_platform === 'openbsd');
|
|
31
|
+
const _netbsd = (_platform === 'netbsd');
|
|
32
|
+
const _sunos = (_platform === 'sunos');
|
|
33
|
+
|
|
34
|
+
const _processes_cpu = {
|
|
35
|
+
all: 0,
|
|
36
|
+
all_utime: 0,
|
|
37
|
+
all_stime: 0,
|
|
38
|
+
list: {},
|
|
39
|
+
ms: 0,
|
|
40
|
+
result: {}
|
|
41
|
+
};
|
|
42
|
+
const _services_cpu = {
|
|
43
|
+
all: 0,
|
|
44
|
+
all_utime: 0,
|
|
45
|
+
all_stime: 0,
|
|
46
|
+
list: {},
|
|
47
|
+
ms: 0,
|
|
48
|
+
result: {}
|
|
49
|
+
};
|
|
50
|
+
const _process_cpu = {
|
|
51
|
+
all: 0,
|
|
52
|
+
all_utime: 0,
|
|
53
|
+
all_stime: 0,
|
|
54
|
+
list: {},
|
|
55
|
+
ms: 0,
|
|
56
|
+
result: {}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const _winStatusValues = {
|
|
60
|
+
'0': 'unknown',
|
|
61
|
+
'1': 'other',
|
|
62
|
+
'2': 'ready',
|
|
63
|
+
'3': 'running',
|
|
64
|
+
'4': 'blocked',
|
|
65
|
+
'5': 'suspended blocked',
|
|
66
|
+
'6': 'suspended ready',
|
|
67
|
+
'7': 'terminated',
|
|
68
|
+
'8': 'stopped',
|
|
69
|
+
'9': 'growing',
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
function parseTimeWin(time) {
|
|
74
|
+
time = time || '';
|
|
75
|
+
if (time) {
|
|
76
|
+
return (time.substr(0, 4) + '-' + time.substr(4, 2) + '-' + time.substr(6, 2) + ' ' + time.substr(8, 2) + ':' + time.substr(10, 2) + ':' + time.substr(12, 2));
|
|
77
|
+
} else {
|
|
78
|
+
return '';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function parseTimeUnix(time) {
|
|
83
|
+
let result = time;
|
|
84
|
+
let parts = time.replace(/ +/g, ' ').split(' ');
|
|
85
|
+
if (parts.length === 5) {
|
|
86
|
+
result = parts[4] + '-' + ('0' + ('JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC'.indexOf(parts[1].toUpperCase()) / 3 + 1)).slice(-2) + '-' + ('0' + parts[2]).slice(-2) + ' ' + parts[3];
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// --------------------------
|
|
92
|
+
// PS - services
|
|
93
|
+
// pass a comma separated string with services to check (mysql, apache, postgresql, ...)
|
|
94
|
+
// this function gives an array back, if the services are running.
|
|
95
|
+
|
|
96
|
+
function services(srv, callback) {
|
|
97
|
+
|
|
98
|
+
// fallback - if only callback is given
|
|
99
|
+
if (util.isFunction(srv) && !callback) {
|
|
100
|
+
callback = srv;
|
|
101
|
+
srv = '';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return new Promise((resolve) => {
|
|
105
|
+
process.nextTick(() => {
|
|
106
|
+
if (typeof srv !== 'string') {
|
|
107
|
+
if (callback) { callback([]); }
|
|
108
|
+
return resolve([]);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (srv) {
|
|
112
|
+
let srvString = '';
|
|
113
|
+
srvString.__proto__.toLowerCase = util.stringToLower;
|
|
114
|
+
srvString.__proto__.replace = util.stringReplace;
|
|
115
|
+
srvString.__proto__.trim = util.stringTrim;
|
|
116
|
+
|
|
117
|
+
const s = util.sanitizeShellString(srv);
|
|
118
|
+
for (let i = 0; i <= util.mathMin(s.length, 2000); i++) {
|
|
119
|
+
if (!(s[i] === undefined)) {
|
|
120
|
+
srvString = srvString + s[i];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
srvString = srvString.trim().toLowerCase().replace(/, /g, '|').replace(/,+/g, '|');
|
|
125
|
+
if (srvString === '') {
|
|
126
|
+
srvString = '*';
|
|
127
|
+
}
|
|
128
|
+
if (util.isPrototypePolluted() && srvString !== '*') {
|
|
129
|
+
srvString = '------';
|
|
130
|
+
}
|
|
131
|
+
let srvs = srvString.split('|');
|
|
132
|
+
let result = [];
|
|
133
|
+
let dataSrv = [];
|
|
134
|
+
// let allSrv = [];
|
|
135
|
+
|
|
136
|
+
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
|
|
137
|
+
if ((_linux || _freebsd || _openbsd || _netbsd) && srvString === '*') {
|
|
138
|
+
try {
|
|
139
|
+
const tmpsrv = execSync('systemctl --type=service --no-legend 2> /dev/null').toString().split('\n');
|
|
140
|
+
srvs = [];
|
|
141
|
+
for (const s of tmpsrv) {
|
|
142
|
+
const name = s.split('.service')[0];
|
|
143
|
+
if (name) {
|
|
144
|
+
srvs.push(name);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
srvString = srvs.join('|');
|
|
148
|
+
} catch (d) {
|
|
149
|
+
try {
|
|
150
|
+
srvString = '';
|
|
151
|
+
const tmpsrv = execSync('service --status-all 2> /dev/null').toString().split('\n');
|
|
152
|
+
for (const s of tmpsrv) {
|
|
153
|
+
const parts = s.split(']');
|
|
154
|
+
if (parts.length === 2) {
|
|
155
|
+
srvString += (srvString !== '' ? '|' : '') + parts[1].trim();
|
|
156
|
+
// allSrv.push({ name: parts[1].trim(), running: parts[0].indexOf('+') > 0 });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
srvs = srvString.split('|');
|
|
160
|
+
} catch (e) {
|
|
161
|
+
try {
|
|
162
|
+
const srvStr = execSync('ls /etc/init.d/ -m 2> /dev/null').toString().split('\n').join('');
|
|
163
|
+
srvString = '';
|
|
164
|
+
if (srvStr) {
|
|
165
|
+
const tmpsrv = srvStr.split(',');
|
|
166
|
+
for (const s of tmpsrv) {
|
|
167
|
+
const name = s.trim();
|
|
168
|
+
if (name) {
|
|
169
|
+
srvString += (srvString !== '' ? '|' : '') + name;
|
|
170
|
+
// allSrv.push({ name: name, running: null });
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
srvs = srvString.split('|');
|
|
174
|
+
}
|
|
175
|
+
} catch (f) {
|
|
176
|
+
// allSrv = [];
|
|
177
|
+
srvString = '';
|
|
178
|
+
srvs = [];
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if ((_darwin) && srvString === '*') { // service enumeration not yet suported on mac OS
|
|
184
|
+
if (callback) { callback(result); }
|
|
185
|
+
resolve(result);
|
|
186
|
+
}
|
|
187
|
+
let args = (_darwin) ? ['-caxo', 'pcpu,pmem,pid,command'] : ['-axo', 'pcpu,pmem,pid,command'];
|
|
188
|
+
if (srvString !== '' && srvs.length > 0) {
|
|
189
|
+
util.execSafe('ps', args).then((stdout) => {
|
|
190
|
+
if (stdout) {
|
|
191
|
+
let lines = stdout.replace(/ +/g, ' ').replace(/,+/g, '.').split('\n');
|
|
192
|
+
srvs.forEach(function (srv) {
|
|
193
|
+
let ps;
|
|
194
|
+
if (_darwin) {
|
|
195
|
+
ps = lines.filter(function (e) {
|
|
196
|
+
return (e.toLowerCase().indexOf(srv) !== -1);
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
} else {
|
|
200
|
+
ps = lines.filter(function (e) {
|
|
201
|
+
return (e.toLowerCase().indexOf(' ' + srv + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv) !== -1);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
// let singleSrv = allSrv.filter(item => { return item.name === srv; });
|
|
205
|
+
const pids = [];
|
|
206
|
+
for (const p of ps) {
|
|
207
|
+
const pid = p.trim().split(' ')[2];
|
|
208
|
+
if (pid) {
|
|
209
|
+
pids.push(parseInt(pid, 10));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
result.push({
|
|
213
|
+
name: srv,
|
|
214
|
+
// running: (allSrv.length && singleSrv.length && singleSrv[0].running !== null ? singleSrv[0].running : ps.length > 0),
|
|
215
|
+
running: ps.length > 0,
|
|
216
|
+
startmode: '',
|
|
217
|
+
pids: pids,
|
|
218
|
+
cpu: parseFloat((ps.reduce(function (pv, cv) {
|
|
219
|
+
return pv + parseFloat(cv.trim().split(' ')[0]);
|
|
220
|
+
}, 0)).toFixed(2)),
|
|
221
|
+
mem: parseFloat((ps.reduce(function (pv, cv) {
|
|
222
|
+
return pv + parseFloat(cv.trim().split(' ')[1]);
|
|
223
|
+
}, 0)).toFixed(2))
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
if (_linux) {
|
|
227
|
+
// calc process_cpu - ps is not accurate in linux!
|
|
228
|
+
let cmd = 'cat /proc/stat | grep "cpu "';
|
|
229
|
+
for (let i in result) {
|
|
230
|
+
for (let j in result[i].pids) {
|
|
231
|
+
cmd += (';cat /proc/' + result[i].pids[j] + '/stat');
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
|
235
|
+
let curr_processes = stdout.toString().split('\n');
|
|
236
|
+
|
|
237
|
+
// first line (all - /proc/stat)
|
|
238
|
+
let all = parseProcStat(curr_processes.shift());
|
|
239
|
+
|
|
240
|
+
// process
|
|
241
|
+
let list_new = {};
|
|
242
|
+
let resultProcess = {};
|
|
243
|
+
for (let i = 0; i < curr_processes.length; i++) {
|
|
244
|
+
resultProcess = calcProcStatLinux(curr_processes[i], all, _services_cpu);
|
|
245
|
+
|
|
246
|
+
if (resultProcess.pid) {
|
|
247
|
+
let listPos = -1;
|
|
248
|
+
for (let i in result) {
|
|
249
|
+
for (let j in result[i].pids) {
|
|
250
|
+
if (parseInt(result[i].pids[j]) === parseInt(resultProcess.pid)) {
|
|
251
|
+
listPos = i;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if (listPos >= 0) {
|
|
256
|
+
result[listPos].cpu += resultProcess.cpuu + resultProcess.cpus;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// save new values
|
|
260
|
+
list_new[resultProcess.pid] = {
|
|
261
|
+
cpuu: resultProcess.cpuu,
|
|
262
|
+
cpus: resultProcess.cpus,
|
|
263
|
+
utime: resultProcess.utime,
|
|
264
|
+
stime: resultProcess.stime,
|
|
265
|
+
cutime: resultProcess.cutime,
|
|
266
|
+
cstime: resultProcess.cstime
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// store old values
|
|
272
|
+
_services_cpu.all = all;
|
|
273
|
+
// _services_cpu.list = list_new;
|
|
274
|
+
_services_cpu.list = Object.assign({}, list_new);
|
|
275
|
+
_services_cpu.ms = Date.now() - _services_cpu.ms;
|
|
276
|
+
// _services_cpu.result = result;
|
|
277
|
+
_services_cpu.result = Object.assign({}, result);
|
|
278
|
+
if (callback) { callback(result); }
|
|
279
|
+
resolve(result);
|
|
280
|
+
});
|
|
281
|
+
} else {
|
|
282
|
+
if (callback) { callback(result); }
|
|
283
|
+
resolve(result);
|
|
284
|
+
}
|
|
285
|
+
} else {
|
|
286
|
+
args = ['-o', 'comm'];
|
|
287
|
+
util.execSafe('ps', args).then((stdout) => {
|
|
288
|
+
if (stdout) {
|
|
289
|
+
let lines = stdout.replace(/ +/g, ' ').replace(/,+/g, '.').split('\n');
|
|
290
|
+
srvs.forEach(function (srv) {
|
|
291
|
+
let ps = lines.filter(function (e) {
|
|
292
|
+
return e.indexOf(srv) !== -1;
|
|
293
|
+
});
|
|
294
|
+
result.push({
|
|
295
|
+
name: srv,
|
|
296
|
+
running: ps.length > 0,
|
|
297
|
+
startmode: '',
|
|
298
|
+
cpu: 0,
|
|
299
|
+
mem: 0
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
if (callback) { callback(result); }
|
|
303
|
+
resolve(result);
|
|
304
|
+
} else {
|
|
305
|
+
srvs.forEach(function (srv) {
|
|
306
|
+
result.push({
|
|
307
|
+
name: srv,
|
|
308
|
+
running: false,
|
|
309
|
+
startmode: '',
|
|
310
|
+
cpu: 0,
|
|
311
|
+
mem: 0
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
if (callback) { callback(result); }
|
|
315
|
+
resolve(result);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
} else {
|
|
321
|
+
if (callback) { callback(result); }
|
|
322
|
+
resolve(result);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (_windows) {
|
|
326
|
+
try {
|
|
327
|
+
let wincommand = 'Get-WmiObject Win32_Service';
|
|
328
|
+
if (srvs[0] !== '*') {
|
|
329
|
+
wincommand += ' -Filter "';
|
|
330
|
+
for (let i = 0; i < srvs.length; i++) {
|
|
331
|
+
wincommand += `Name='${srvs[i]}' or `;
|
|
332
|
+
}
|
|
333
|
+
wincommand = `${wincommand.slice(0, -4)}"`;
|
|
334
|
+
}
|
|
335
|
+
wincommand += ' | select Name,Caption,Started,StartMode,ProcessId | fl';
|
|
336
|
+
util.powerShell(wincommand).then((stdout, error) => {
|
|
337
|
+
if (!error) {
|
|
338
|
+
let serviceSections = stdout.split(/\n\s*\n/);
|
|
339
|
+
for (let i = 0; i < serviceSections.length; i++) {
|
|
340
|
+
if (serviceSections[i].trim() !== '') {
|
|
341
|
+
let lines = serviceSections[i].trim().split('\r\n');
|
|
342
|
+
let srvName = util.getValue(lines, 'Name', ':', true).toLowerCase();
|
|
343
|
+
let srvCaption = util.getValue(lines, 'Caption', ':', true).toLowerCase();
|
|
344
|
+
let started = util.getValue(lines, 'Started', ':', true);
|
|
345
|
+
let startMode = util.getValue(lines, 'StartMode', ':', true);
|
|
346
|
+
let pid = util.getValue(lines, 'ProcessId', ':', true);
|
|
347
|
+
if (srvString === '*' || srvs.indexOf(srvName) >= 0 || srvs.indexOf(srvCaption) >= 0) {
|
|
348
|
+
result.push({
|
|
349
|
+
name: srvName,
|
|
350
|
+
running: (started.toLowerCase() === 'true'),
|
|
351
|
+
startmode: startMode,
|
|
352
|
+
pids: [pid],
|
|
353
|
+
cpu: 0,
|
|
354
|
+
mem: 0
|
|
355
|
+
});
|
|
356
|
+
dataSrv.push(srvName);
|
|
357
|
+
dataSrv.push(srvCaption);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
if (srvString !== '*') {
|
|
362
|
+
let srvsMissing = srvs.filter(function (e) {
|
|
363
|
+
return dataSrv.indexOf(e) === -1;
|
|
364
|
+
});
|
|
365
|
+
srvsMissing.forEach(function (srvName) {
|
|
366
|
+
result.push({
|
|
367
|
+
name: srvName,
|
|
368
|
+
running: false,
|
|
369
|
+
startmode: '',
|
|
370
|
+
pids: [],
|
|
371
|
+
cpu: 0,
|
|
372
|
+
mem: 0
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
if (callback) { callback(result); }
|
|
377
|
+
resolve(result);
|
|
378
|
+
} else {
|
|
379
|
+
srvs.forEach(function (srvName) {
|
|
380
|
+
result.push({
|
|
381
|
+
name: srvName,
|
|
382
|
+
running: false,
|
|
383
|
+
startmode: '',
|
|
384
|
+
cpu: 0,
|
|
385
|
+
mem: 0
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
if (callback) { callback(result); }
|
|
389
|
+
resolve(result);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
} catch (e) {
|
|
393
|
+
if (callback) { callback(result); }
|
|
394
|
+
resolve(result);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
if (callback) { callback([]); }
|
|
399
|
+
resolve([]);
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
exports.services = services;
|
|
406
|
+
|
|
407
|
+
function parseProcStat(line) {
|
|
408
|
+
let parts = line.replace(/ +/g, ' ').split(' ');
|
|
409
|
+
let user = (parts.length >= 2 ? parseInt(parts[1]) : 0);
|
|
410
|
+
let nice = (parts.length >= 3 ? parseInt(parts[2]) : 0);
|
|
411
|
+
let system = (parts.length >= 4 ? parseInt(parts[3]) : 0);
|
|
412
|
+
let idle = (parts.length >= 5 ? parseInt(parts[4]) : 0);
|
|
413
|
+
let iowait = (parts.length >= 6 ? parseInt(parts[5]) : 0);
|
|
414
|
+
let irq = (parts.length >= 7 ? parseInt(parts[6]) : 0);
|
|
415
|
+
let softirq = (parts.length >= 8 ? parseInt(parts[7]) : 0);
|
|
416
|
+
let steal = (parts.length >= 9 ? parseInt(parts[8]) : 0);
|
|
417
|
+
let guest = (parts.length >= 10 ? parseInt(parts[9]) : 0);
|
|
418
|
+
let guest_nice = (parts.length >= 11 ? parseInt(parts[10]) : 0);
|
|
419
|
+
return user + nice + system + idle + iowait + irq + softirq + steal + guest + guest_nice;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
function calcProcStatLinux(line, all, _cpu_old) {
|
|
423
|
+
let statparts = line.replace(/ +/g, ' ').split(')');
|
|
424
|
+
if (statparts.length >= 2) {
|
|
425
|
+
let parts = statparts[1].split(' ');
|
|
426
|
+
if (parts.length >= 16) {
|
|
427
|
+
let pid = parseInt(statparts[0].split(' ')[0]);
|
|
428
|
+
let utime = parseInt(parts[12]);
|
|
429
|
+
let stime = parseInt(parts[13]);
|
|
430
|
+
let cutime = parseInt(parts[14]);
|
|
431
|
+
let cstime = parseInt(parts[15]);
|
|
432
|
+
|
|
433
|
+
// calc
|
|
434
|
+
let cpuu = 0;
|
|
435
|
+
let cpus = 0;
|
|
436
|
+
if (_cpu_old.all > 0 && _cpu_old.list[pid]) {
|
|
437
|
+
cpuu = (utime + cutime - _cpu_old.list[pid].utime - _cpu_old.list[pid].cutime) / (all - _cpu_old.all) * 100; // user
|
|
438
|
+
cpus = (stime + cstime - _cpu_old.list[pid].stime - _cpu_old.list[pid].cstime) / (all - _cpu_old.all) * 100; // system
|
|
439
|
+
} else {
|
|
440
|
+
cpuu = (utime + cutime) / (all) * 100; // user
|
|
441
|
+
cpus = (stime + cstime) / (all) * 100; // system
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
pid: pid,
|
|
445
|
+
utime: utime,
|
|
446
|
+
stime: stime,
|
|
447
|
+
cutime: cutime,
|
|
448
|
+
cstime: cstime,
|
|
449
|
+
cpuu: cpuu,
|
|
450
|
+
cpus: cpus
|
|
451
|
+
};
|
|
452
|
+
} else {
|
|
453
|
+
return {
|
|
454
|
+
pid: 0,
|
|
455
|
+
utime: 0,
|
|
456
|
+
stime: 0,
|
|
457
|
+
cutime: 0,
|
|
458
|
+
cstime: 0,
|
|
459
|
+
cpuu: 0,
|
|
460
|
+
cpus: 0
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
} else {
|
|
464
|
+
return {
|
|
465
|
+
pid: 0,
|
|
466
|
+
utime: 0,
|
|
467
|
+
stime: 0,
|
|
468
|
+
cutime: 0,
|
|
469
|
+
cstime: 0,
|
|
470
|
+
cpuu: 0,
|
|
471
|
+
cpus: 0
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function calcProcStatWin(procStat, all, _cpu_old) {
|
|
477
|
+
// calc
|
|
478
|
+
let cpuu = 0;
|
|
479
|
+
let cpus = 0;
|
|
480
|
+
if (_cpu_old.all > 0 && _cpu_old.list[procStat.pid]) {
|
|
481
|
+
cpuu = (procStat.utime - _cpu_old.list[procStat.pid].utime) / (all - _cpu_old.all) * 100; // user
|
|
482
|
+
cpus = (procStat.stime - _cpu_old.list[procStat.pid].stime) / (all - _cpu_old.all) * 100; // system
|
|
483
|
+
} else {
|
|
484
|
+
cpuu = (procStat.utime) / (all) * 100; // user
|
|
485
|
+
cpus = (procStat.stime) / (all) * 100; // system
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
pid: procStat.pid,
|
|
489
|
+
utime: cpuu > 0 ? procStat.utime : 0,
|
|
490
|
+
stime: cpus > 0 ? procStat.stime : 0,
|
|
491
|
+
cpuu: cpuu > 0 ? cpuu : 0,
|
|
492
|
+
cpus: cpus > 0 ? cpus : 0
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
// --------------------------
|
|
499
|
+
// running processes
|
|
500
|
+
|
|
501
|
+
function processes(callback) {
|
|
502
|
+
|
|
503
|
+
let parsedhead = [];
|
|
504
|
+
|
|
505
|
+
function getName(command) {
|
|
506
|
+
command = command || '';
|
|
507
|
+
let result = command.split(' ')[0];
|
|
508
|
+
if (result.substr(-1) === ':') {
|
|
509
|
+
result = result.substr(0, result.length - 1);
|
|
510
|
+
}
|
|
511
|
+
if (result.substr(0, 1) !== '[') {
|
|
512
|
+
let parts = result.split('/');
|
|
513
|
+
if (isNaN(parseInt(parts[parts.length - 1]))) {
|
|
514
|
+
result = parts[parts.length - 1];
|
|
515
|
+
} else {
|
|
516
|
+
result = parts[0];
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return result;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
function parseLine(line) {
|
|
523
|
+
|
|
524
|
+
let offset = 0;
|
|
525
|
+
let offset2 = 0;
|
|
526
|
+
|
|
527
|
+
function checkColumn(i) {
|
|
528
|
+
offset = offset2;
|
|
529
|
+
if (parsedhead[i]) {
|
|
530
|
+
offset2 = line.substring(parsedhead[i].to + offset, 10000).indexOf(' ');
|
|
531
|
+
} else {
|
|
532
|
+
offset2 = 10000;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
checkColumn(0);
|
|
537
|
+
const pid = parseInt(line.substring(parsedhead[0].from + offset, parsedhead[0].to + offset2));
|
|
538
|
+
checkColumn(1);
|
|
539
|
+
const ppid = parseInt(line.substring(parsedhead[1].from + offset, parsedhead[1].to + offset2));
|
|
540
|
+
checkColumn(2);
|
|
541
|
+
const cpu = parseFloat(line.substring(parsedhead[2].from + offset, parsedhead[2].to + offset2).replace(/,/g, '.'));
|
|
542
|
+
checkColumn(3);
|
|
543
|
+
const mem = parseFloat(line.substring(parsedhead[3].from + offset, parsedhead[3].to + offset2).replace(/,/g, '.'));
|
|
544
|
+
checkColumn(4);
|
|
545
|
+
const priority = parseInt(line.substring(parsedhead[4].from + offset, parsedhead[4].to + offset2));
|
|
546
|
+
checkColumn(5);
|
|
547
|
+
const vsz = parseInt(line.substring(parsedhead[5].from + offset, parsedhead[5].to + offset2));
|
|
548
|
+
checkColumn(6);
|
|
549
|
+
const rss = parseInt(line.substring(parsedhead[6].from + offset, parsedhead[6].to + offset2));
|
|
550
|
+
checkColumn(7);
|
|
551
|
+
const nice = parseInt(line.substring(parsedhead[7].from + offset, parsedhead[7].to + offset2)) || 0;
|
|
552
|
+
checkColumn(8);
|
|
553
|
+
const started = parseTimeUnix(line.substring(parsedhead[8].from + offset, parsedhead[8].to + offset2).trim());
|
|
554
|
+
checkColumn(9);
|
|
555
|
+
let state = line.substring(parsedhead[9].from + offset, parsedhead[9].to + offset2).trim();
|
|
556
|
+
state = (state[0] === 'R' ? 'running' : (state[0] === 'S' ? 'sleeping' : (state[0] === 'T' ? 'stopped' : (state[0] === 'W' ? 'paging' : (state[0] === 'X' ? 'dead' : (state[0] === 'Z' ? 'zombie' : ((state[0] === 'D' || state[0] === 'U') ? 'blocked' : 'unknown')))))));
|
|
557
|
+
checkColumn(10);
|
|
558
|
+
let tty = line.substring(parsedhead[10].from + offset, parsedhead[10].to + offset2).trim();
|
|
559
|
+
if (tty === '?' || tty === '??') { tty = ''; }
|
|
560
|
+
checkColumn(11);
|
|
561
|
+
const user = line.substring(parsedhead[11].from + offset, parsedhead[11].to + offset2).trim();
|
|
562
|
+
checkColumn(12);
|
|
563
|
+
let cmdPath = '';
|
|
564
|
+
let command = '';
|
|
565
|
+
let params = '';
|
|
566
|
+
let fullcommand = line.substring(parsedhead[12].from + offset, parsedhead[12].to + offset2).trim();
|
|
567
|
+
if (fullcommand.substr(fullcommand.length - 1) === ']') { fullcommand = fullcommand.slice(0, -1); }
|
|
568
|
+
if (fullcommand.substr(0, 1) === '[') { command = fullcommand.substring(1); }
|
|
569
|
+
else {
|
|
570
|
+
// try to figure out where parameter starts
|
|
571
|
+
let firstParamPos = fullcommand.indexOf(' -');
|
|
572
|
+
let firstParamPathPos = fullcommand.indexOf(' /');
|
|
573
|
+
firstParamPos = (firstParamPos >= 0 ? firstParamPos : 10000);
|
|
574
|
+
firstParamPathPos = (firstParamPathPos >= 0 ? firstParamPathPos : 10000);
|
|
575
|
+
const firstPos = Math.min(firstParamPos, firstParamPathPos);
|
|
576
|
+
let tmpCommand = fullcommand.substr(0, firstPos);
|
|
577
|
+
const tmpParams = fullcommand.substr(firstPos);
|
|
578
|
+
const lastSlashPos = tmpCommand.lastIndexOf('/');
|
|
579
|
+
if (lastSlashPos >= 0) {
|
|
580
|
+
cmdPath = tmpCommand.substr(0, lastSlashPos);
|
|
581
|
+
tmpCommand = tmpCommand.substr(lastSlashPos + 1);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
if (firstPos === 10000 && tmpCommand.indexOf(' ') > -1) {
|
|
585
|
+
const parts = tmpCommand.split(' ');
|
|
586
|
+
if (fs.existsSync(path.join(cmdPath, parts[0]))) {
|
|
587
|
+
command = parts.shift();
|
|
588
|
+
params = (parts.join(' ') + ' ' + tmpParams).trim();
|
|
589
|
+
} else {
|
|
590
|
+
command = tmpCommand.trim();
|
|
591
|
+
params = tmpParams.trim();
|
|
592
|
+
}
|
|
593
|
+
} else {
|
|
594
|
+
command = tmpCommand.trim();
|
|
595
|
+
params = tmpParams.trim();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return ({
|
|
600
|
+
pid: pid,
|
|
601
|
+
parentPid: ppid,
|
|
602
|
+
name: _linux ? getName(command) : command,
|
|
603
|
+
cpu: cpu,
|
|
604
|
+
cpuu: 0,
|
|
605
|
+
cpus: 0,
|
|
606
|
+
mem: mem,
|
|
607
|
+
priority: priority,
|
|
608
|
+
memVsz: vsz,
|
|
609
|
+
memRss: rss,
|
|
610
|
+
nice: nice,
|
|
611
|
+
started: started,
|
|
612
|
+
state: state,
|
|
613
|
+
tty: tty,
|
|
614
|
+
user: user,
|
|
615
|
+
command: command,
|
|
616
|
+
params: params,
|
|
617
|
+
path: cmdPath
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function parseProcesses(lines) {
|
|
622
|
+
let result = [];
|
|
623
|
+
if (lines.length > 1) {
|
|
624
|
+
let head = lines[0];
|
|
625
|
+
parsedhead = util.parseHead(head, 8);
|
|
626
|
+
lines.shift();
|
|
627
|
+
lines.forEach(function (line) {
|
|
628
|
+
if (line.trim() !== '') {
|
|
629
|
+
result.push(parseLine(line));
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
return result;
|
|
634
|
+
}
|
|
635
|
+
function parseProcesses2(lines) {
|
|
636
|
+
|
|
637
|
+
function formatDateTime(time) {
|
|
638
|
+
const month = ('0' + (time.getMonth() + 1).toString()).substr(-2);
|
|
639
|
+
const year = time.getFullYear().toString();
|
|
640
|
+
const day = ('0' + time.getDay().toString()).substr(-2);
|
|
641
|
+
const hours = time.getHours().toString();
|
|
642
|
+
const mins = time.getMinutes().toString();
|
|
643
|
+
const secs = ('0' + time.getSeconds().toString()).substr(-2);
|
|
644
|
+
|
|
645
|
+
return (year + '-' + month + '-' + day + ' ' + hours + ':' + mins + ':' + secs);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
let result = [];
|
|
649
|
+
lines.forEach(function (line) {
|
|
650
|
+
if (line.trim() !== '') {
|
|
651
|
+
line = line.trim().replace(/ +/g, ' ').replace(/,+/g, '.');
|
|
652
|
+
const parts = line.split(' ');
|
|
653
|
+
const command = parts.slice(9).join(' ');
|
|
654
|
+
const pmem = parseFloat((1.0 * parseInt(parts[3]) * 1024 / os.totalmem()).toFixed(1));
|
|
655
|
+
const elapsed_parts = parts[5].split(':');
|
|
656
|
+
const started = formatDateTime(new Date(Date.now() - (elapsed_parts.length > 1 ? (elapsed_parts[0] * 60 + elapsed_parts[1]) * 1000 : elapsed_parts[0] * 1000)));
|
|
657
|
+
|
|
658
|
+
result.push({
|
|
659
|
+
pid: parseInt(parts[0]),
|
|
660
|
+
parentPid: parseInt(parts[1]),
|
|
661
|
+
name: getName(command),
|
|
662
|
+
cpu: 0,
|
|
663
|
+
cpuu: 0,
|
|
664
|
+
cpus: 0,
|
|
665
|
+
mem: pmem,
|
|
666
|
+
priority: 0,
|
|
667
|
+
memVsz: parseInt(parts[2]),
|
|
668
|
+
memRss: parseInt(parts[3]),
|
|
669
|
+
nice: parseInt(parts[4]),
|
|
670
|
+
started: started,
|
|
671
|
+
state: (parts[6] === 'R' ? 'running' : (parts[6] === 'S' ? 'sleeping' : (parts[6] === 'T' ? 'stopped' : (parts[6] === 'W' ? 'paging' : (parts[6] === 'X' ? 'dead' : (parts[6] === 'Z' ? 'zombie' : ((parts[6] === 'D' || parts[6] === 'U') ? 'blocked' : 'unknown'))))))),
|
|
672
|
+
tty: parts[7],
|
|
673
|
+
user: parts[8],
|
|
674
|
+
command: command
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
return result;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
return new Promise((resolve) => {
|
|
682
|
+
process.nextTick(() => {
|
|
683
|
+
let result = {
|
|
684
|
+
all: 0,
|
|
685
|
+
running: 0,
|
|
686
|
+
blocked: 0,
|
|
687
|
+
sleeping: 0,
|
|
688
|
+
unknown: 0,
|
|
689
|
+
list: []
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
let cmd = '';
|
|
693
|
+
|
|
694
|
+
if ((_processes_cpu.ms && Date.now() - _processes_cpu.ms >= 500) || _processes_cpu.ms === 0) {
|
|
695
|
+
if (_linux || _freebsd || _openbsd || _netbsd || _darwin || _sunos) {
|
|
696
|
+
if (_linux) { cmd = 'export LC_ALL=C; ps -axo pid:11,ppid:11,pcpu:6,pmem:6,pri:5,vsz:11,rss:11,ni:5,lstart:30,state:5,tty:15,user:20,command; unset LC_ALL'; }
|
|
697
|
+
if (_freebsd || _openbsd || _netbsd) { cmd = 'export LC_ALL=C; ps -axo pid,ppid,pcpu,pmem,pri,vsz,rss,ni,lstart,state,tty,user,command; unset LC_ALL'; }
|
|
698
|
+
if (_darwin) { cmd = 'ps -axo pid,ppid,pcpu,pmem,pri,vsz=xxx_fake_title,rss=fake_title2,nice,lstart,state,tty,user,command -r'; }
|
|
699
|
+
if (_sunos) { cmd = 'ps -Ao pid,ppid,pcpu,pmem,pri,vsz,rss,nice,stime,s,tty,user,comm'; }
|
|
700
|
+
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
|
701
|
+
if (!error && stdout.toString().trim()) {
|
|
702
|
+
result.list = (parseProcesses(stdout.toString().split('\n'))).slice();
|
|
703
|
+
result.all = result.list.length;
|
|
704
|
+
result.running = result.list.filter(function (e) {
|
|
705
|
+
return e.state === 'running';
|
|
706
|
+
}).length;
|
|
707
|
+
result.blocked = result.list.filter(function (e) {
|
|
708
|
+
return e.state === 'blocked';
|
|
709
|
+
}).length;
|
|
710
|
+
result.sleeping = result.list.filter(function (e) {
|
|
711
|
+
return e.state === 'sleeping';
|
|
712
|
+
}).length;
|
|
713
|
+
|
|
714
|
+
if (_linux) {
|
|
715
|
+
// calc process_cpu - ps is not accurate in linux!
|
|
716
|
+
cmd = 'cat /proc/stat | grep "cpu "';
|
|
717
|
+
for (let i = 0; i < result.list.length; i++) {
|
|
718
|
+
cmd += (';cat /proc/' + result.list[i].pid + '/stat');
|
|
719
|
+
}
|
|
720
|
+
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
|
721
|
+
let curr_processes = stdout.toString().split('\n');
|
|
722
|
+
|
|
723
|
+
// first line (all - /proc/stat)
|
|
724
|
+
let all = parseProcStat(curr_processes.shift());
|
|
725
|
+
|
|
726
|
+
// process
|
|
727
|
+
let list_new = {};
|
|
728
|
+
let resultProcess = {};
|
|
729
|
+
for (let i = 0; i < curr_processes.length; i++) {
|
|
730
|
+
resultProcess = calcProcStatLinux(curr_processes[i], all, _processes_cpu);
|
|
731
|
+
|
|
732
|
+
if (resultProcess.pid) {
|
|
733
|
+
|
|
734
|
+
// store pcpu in outer array
|
|
735
|
+
let listPos = result.list.map(function (e) { return e.pid; }).indexOf(resultProcess.pid);
|
|
736
|
+
if (listPos >= 0) {
|
|
737
|
+
result.list[listPos].cpu = resultProcess.cpuu + resultProcess.cpus;
|
|
738
|
+
result.list[listPos].cpuu = resultProcess.cpuu;
|
|
739
|
+
result.list[listPos].cpus = resultProcess.cpus;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
// save new values
|
|
743
|
+
list_new[resultProcess.pid] = {
|
|
744
|
+
cpuu: resultProcess.cpuu,
|
|
745
|
+
cpus: resultProcess.cpus,
|
|
746
|
+
utime: resultProcess.utime,
|
|
747
|
+
stime: resultProcess.stime,
|
|
748
|
+
cutime: resultProcess.cutime,
|
|
749
|
+
cstime: resultProcess.cstime
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
// store old values
|
|
755
|
+
_processes_cpu.all = all;
|
|
756
|
+
// _processes_cpu.list = list_new;
|
|
757
|
+
_processes_cpu.list = Object.assign({}, list_new);
|
|
758
|
+
_processes_cpu.ms = Date.now() - _processes_cpu.ms;
|
|
759
|
+
// _processes_cpu.result = result;
|
|
760
|
+
_processes_cpu.result = Object.assign({}, result);
|
|
761
|
+
if (callback) { callback(result); }
|
|
762
|
+
resolve(result);
|
|
763
|
+
});
|
|
764
|
+
} else {
|
|
765
|
+
if (callback) { callback(result); }
|
|
766
|
+
resolve(result);
|
|
767
|
+
}
|
|
768
|
+
} else {
|
|
769
|
+
cmd = 'ps -o pid,ppid,vsz,rss,nice,etime,stat,tty,user,comm';
|
|
770
|
+
if (_sunos) {
|
|
771
|
+
cmd = 'ps -o pid,ppid,vsz,rss,nice,etime,s,tty,user,comm';
|
|
772
|
+
}
|
|
773
|
+
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
|
774
|
+
if (!error) {
|
|
775
|
+
let lines = stdout.toString().split('\n');
|
|
776
|
+
lines.shift();
|
|
777
|
+
|
|
778
|
+
result.list = parseProcesses2(lines).slice();
|
|
779
|
+
result.all = result.list.length;
|
|
780
|
+
result.running = result.list.filter(function (e) {
|
|
781
|
+
return e.state === 'running';
|
|
782
|
+
}).length;
|
|
783
|
+
result.blocked = result.list.filter(function (e) {
|
|
784
|
+
return e.state === 'blocked';
|
|
785
|
+
}).length;
|
|
786
|
+
result.sleeping = result.list.filter(function (e) {
|
|
787
|
+
return e.state === 'sleeping';
|
|
788
|
+
}).length;
|
|
789
|
+
if (callback) { callback(result); }
|
|
790
|
+
resolve(result);
|
|
791
|
+
} else {
|
|
792
|
+
if (callback) { callback(result); }
|
|
793
|
+
resolve(result);
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
} else if (_windows) {
|
|
799
|
+
try {
|
|
800
|
+
util.powerShell('Get-WmiObject Win32_Process | select ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage,CreationDate | fl').then((stdout, error) => {
|
|
801
|
+
if (!error) {
|
|
802
|
+
let processSections = stdout.split(/\n\s*\n/);
|
|
803
|
+
let procs = [];
|
|
804
|
+
let procStats = [];
|
|
805
|
+
let list_new = {};
|
|
806
|
+
let allcpuu = 0;
|
|
807
|
+
let allcpus = 0;
|
|
808
|
+
// let allcpuu = _processes_cpu.all_utime;
|
|
809
|
+
// let allcpus = _processes_cpu.all_stime;
|
|
810
|
+
for (let i = 0; i < processSections.length; i++) {
|
|
811
|
+
if (processSections[i].trim() !== '') {
|
|
812
|
+
let lines = processSections[i].trim().split('\r\n');
|
|
813
|
+
let pid = parseInt(util.getValue(lines, 'ProcessId', ':', true), 10);
|
|
814
|
+
let parentPid = parseInt(util.getValue(lines, 'ParentProcessId', ':', true), 10);
|
|
815
|
+
let statusValue = util.getValue(lines, 'ExecutionState', ':');
|
|
816
|
+
let name = util.getValue(lines, 'Caption', ':', true);
|
|
817
|
+
let commandLine = util.getValue(lines, 'CommandLine', ':', true);
|
|
818
|
+
let commandPath = util.getValue(lines, 'ExecutablePath', ':', true);
|
|
819
|
+
let utime = parseInt(util.getValue(lines, 'UserModeTime', ':', true), 10);
|
|
820
|
+
let stime = parseInt(util.getValue(lines, 'KernelModeTime', ':', true), 10);
|
|
821
|
+
let memw = parseInt(util.getValue(lines, 'WorkingSetSize', ':', true), 10);
|
|
822
|
+
allcpuu = allcpuu + utime;
|
|
823
|
+
allcpus = allcpus + stime;
|
|
824
|
+
// allcpuu += utime - (_processes_cpu.list[pid] ? _processes_cpu.list[pid].utime : 0);
|
|
825
|
+
// allcpus += stime - (_processes_cpu.list[pid] ? _processes_cpu.list[pid].stime : 0);
|
|
826
|
+
result.all++;
|
|
827
|
+
if (!statusValue) { result.unknown++; }
|
|
828
|
+
if (statusValue === '3') { result.running++; }
|
|
829
|
+
if (statusValue === '4' || statusValue === '5') { result.blocked++; }
|
|
830
|
+
|
|
831
|
+
procStats.push({
|
|
832
|
+
pid: pid,
|
|
833
|
+
utime: utime,
|
|
834
|
+
stime: stime,
|
|
835
|
+
cpu: 0,
|
|
836
|
+
cpuu: 0,
|
|
837
|
+
cpus: 0,
|
|
838
|
+
});
|
|
839
|
+
procs.push({
|
|
840
|
+
pid: pid,
|
|
841
|
+
parentPid: parentPid,
|
|
842
|
+
name: name,
|
|
843
|
+
cpu: 0,
|
|
844
|
+
cpuu: 0,
|
|
845
|
+
cpus: 0,
|
|
846
|
+
mem: memw / os.totalmem() * 100,
|
|
847
|
+
priority: parseInt(util.getValue(lines, 'Priority', ':', true), 10),
|
|
848
|
+
memVsz: parseInt(util.getValue(lines, 'PageFileUsage', ':', true), 10),
|
|
849
|
+
memRss: Math.floor(parseInt(util.getValue(lines, 'WorkingSetSize', ':', true), 10) / 1024),
|
|
850
|
+
nice: 0,
|
|
851
|
+
started: parseTimeWin(util.getValue(lines, 'CreationDate', ':', true)),
|
|
852
|
+
state: (!statusValue ? _winStatusValues[0] : _winStatusValues[statusValue]),
|
|
853
|
+
tty: '',
|
|
854
|
+
user: '',
|
|
855
|
+
command: commandLine || name,
|
|
856
|
+
path: commandPath,
|
|
857
|
+
params: ''
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
result.sleeping = result.all - result.running - result.blocked - result.unknown;
|
|
862
|
+
result.list = procs;
|
|
863
|
+
for (let i = 0; i < procStats.length; i++) {
|
|
864
|
+
let resultProcess = calcProcStatWin(procStats[i], allcpuu + allcpus, _processes_cpu);
|
|
865
|
+
|
|
866
|
+
// store pcpu in outer array
|
|
867
|
+
let listPos = result.list.map(function (e) { return e.pid; }).indexOf(resultProcess.pid);
|
|
868
|
+
if (listPos >= 0) {
|
|
869
|
+
result.list[listPos].cpu = resultProcess.cpuu + resultProcess.cpus;
|
|
870
|
+
result.list[listPos].cpuu = resultProcess.cpuu;
|
|
871
|
+
result.list[listPos].cpus = resultProcess.cpus;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
// save new values
|
|
875
|
+
list_new[resultProcess.pid] = {
|
|
876
|
+
cpuu: resultProcess.cpuu,
|
|
877
|
+
cpus: resultProcess.cpus,
|
|
878
|
+
utime: resultProcess.utime,
|
|
879
|
+
stime: resultProcess.stime
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
// store old values
|
|
883
|
+
_processes_cpu.all = allcpuu + allcpus;
|
|
884
|
+
_processes_cpu.all_utime = allcpuu;
|
|
885
|
+
_processes_cpu.all_stime = allcpus;
|
|
886
|
+
// _processes_cpu.list = list_new;
|
|
887
|
+
_processes_cpu.list = Object.assign({}, list_new);
|
|
888
|
+
_processes_cpu.ms = Date.now() - _processes_cpu.ms;
|
|
889
|
+
// _processes_cpu.result = result;
|
|
890
|
+
_processes_cpu.result = Object.assign({}, result);
|
|
891
|
+
}
|
|
892
|
+
if (callback) {
|
|
893
|
+
callback(result);
|
|
894
|
+
}
|
|
895
|
+
resolve(result);
|
|
896
|
+
});
|
|
897
|
+
} catch (e) {
|
|
898
|
+
if (callback) { callback(result); }
|
|
899
|
+
resolve(result);
|
|
900
|
+
}
|
|
901
|
+
} else {
|
|
902
|
+
if (callback) { callback(result); }
|
|
903
|
+
resolve(result);
|
|
904
|
+
}
|
|
905
|
+
} else {
|
|
906
|
+
if (callback) { callback(_processes_cpu.result); }
|
|
907
|
+
resolve(_processes_cpu.result);
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
exports.processes = processes;
|
|
914
|
+
|
|
915
|
+
// --------------------------
|
|
916
|
+
// PS - process load
|
|
917
|
+
// get detailed information about a certain process
|
|
918
|
+
// (PID, CPU-Usage %, Mem-Usage %)
|
|
919
|
+
|
|
920
|
+
function processLoad(proc, callback) {
|
|
921
|
+
|
|
922
|
+
// fallback - if only callback is given
|
|
923
|
+
if (util.isFunction(proc) && !callback) {
|
|
924
|
+
callback = proc;
|
|
925
|
+
proc = '';
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
return new Promise((resolve) => {
|
|
929
|
+
process.nextTick(() => {
|
|
930
|
+
|
|
931
|
+
proc = proc || '';
|
|
932
|
+
|
|
933
|
+
if (typeof proc !== 'string') {
|
|
934
|
+
if (callback) { callback([]); }
|
|
935
|
+
return resolve([]);
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
let processesString = '';
|
|
939
|
+
processesString.__proto__.toLowerCase = util.stringToLower;
|
|
940
|
+
processesString.__proto__.replace = util.stringReplace;
|
|
941
|
+
processesString.__proto__.trim = util.stringTrim;
|
|
942
|
+
|
|
943
|
+
const s = util.sanitizeShellString(proc);
|
|
944
|
+
for (let i = 0; i <= util.mathMin(s.length, 2000); i++) {
|
|
945
|
+
if (!(s[i] === undefined)) {
|
|
946
|
+
processesString = processesString + s[i];
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
processesString = processesString.trim().toLowerCase().replace(/, /g, '|').replace(/,+/g, '|');
|
|
951
|
+
if (processesString === '') {
|
|
952
|
+
processesString = '*';
|
|
953
|
+
}
|
|
954
|
+
if (util.isPrototypePolluted() && processesString !== '*') {
|
|
955
|
+
processesString = '------';
|
|
956
|
+
}
|
|
957
|
+
let processes = processesString.split('|');
|
|
958
|
+
let result = [];
|
|
959
|
+
|
|
960
|
+
const procSanitized = util.isPrototypePolluted() ? '' : util.sanitizeShellString(proc);
|
|
961
|
+
|
|
962
|
+
// from here new
|
|
963
|
+
// let result = {
|
|
964
|
+
// 'proc': procSanitized,
|
|
965
|
+
// 'pid': null,
|
|
966
|
+
// 'cpu': 0,
|
|
967
|
+
// 'mem': 0
|
|
968
|
+
// };
|
|
969
|
+
if (procSanitized && processes.length && processes[0] !== '------') {
|
|
970
|
+
if (_windows) {
|
|
971
|
+
try {
|
|
972
|
+
util.powerShell('Get-WmiObject Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | fl').then((stdout, error) => {
|
|
973
|
+
if (!error) {
|
|
974
|
+
let processSections = stdout.split(/\n\s*\n/);
|
|
975
|
+
let procStats = [];
|
|
976
|
+
let list_new = {};
|
|
977
|
+
let allcpuu = 0;
|
|
978
|
+
let allcpus = 0;
|
|
979
|
+
// let allcpuu = _process_cpu.all_utime;
|
|
980
|
+
// let allcpus = _process_cpu.all_stime;
|
|
981
|
+
|
|
982
|
+
// go through all processes
|
|
983
|
+
for (let i = 0; i < processSections.length; i++) {
|
|
984
|
+
if (processSections[i].trim() !== '') {
|
|
985
|
+
let lines = processSections[i].trim().split('\r\n');
|
|
986
|
+
let pid = parseInt(util.getValue(lines, 'ProcessId', ':', true), 10);
|
|
987
|
+
let name = util.getValue(lines, 'Caption', ':', true);
|
|
988
|
+
let utime = parseInt(util.getValue(lines, 'UserModeTime', ':', true), 10);
|
|
989
|
+
let stime = parseInt(util.getValue(lines, 'KernelModeTime', ':', true), 10);
|
|
990
|
+
let mem = parseInt(util.getValue(lines, 'WorkingSetSize', ':', true), 10);
|
|
991
|
+
allcpuu = allcpuu + utime;
|
|
992
|
+
allcpus = allcpus + stime;
|
|
993
|
+
// allcpuu += utime - (_process_cpu.list[pid] ? _process_cpu.list[pid].utime : 0);
|
|
994
|
+
// allcpus += stime - (_process_cpu.list[pid] ? _process_cpu.list[pid].stime : 0);
|
|
995
|
+
|
|
996
|
+
procStats.push({
|
|
997
|
+
pid: pid,
|
|
998
|
+
name,
|
|
999
|
+
utime: utime,
|
|
1000
|
+
stime: stime,
|
|
1001
|
+
cpu: 0,
|
|
1002
|
+
cpuu: 0,
|
|
1003
|
+
cpus: 0,
|
|
1004
|
+
mem
|
|
1005
|
+
});
|
|
1006
|
+
let pname = '';
|
|
1007
|
+
let inList = false;
|
|
1008
|
+
processes.forEach(function (proc) {
|
|
1009
|
+
// console.log(proc)
|
|
1010
|
+
// console.log(item)
|
|
1011
|
+
// inList = inList || item.name.toLowerCase() === proc.toLowerCase();
|
|
1012
|
+
if (name.toLowerCase().indexOf(proc.toLowerCase()) >= 0 && !inList) {
|
|
1013
|
+
inList = true;
|
|
1014
|
+
pname = proc;
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
if (processesString === '*' || inList) {
|
|
1019
|
+
let processFound = false;
|
|
1020
|
+
result.forEach(function (item) {
|
|
1021
|
+
if (item.proc.toLowerCase() === pname.toLowerCase()) {
|
|
1022
|
+
item.pids.push(pid);
|
|
1023
|
+
item.mem += mem / os.totalmem() * 100;
|
|
1024
|
+
processFound = true;
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
if (!processFound) {
|
|
1028
|
+
result.push({
|
|
1029
|
+
proc: pname,
|
|
1030
|
+
pid: pid,
|
|
1031
|
+
pids: [pid],
|
|
1032
|
+
cpu: 0,
|
|
1033
|
+
mem: mem / os.totalmem() * 100
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
// add missing processes
|
|
1040
|
+
if (processesString !== '*') {
|
|
1041
|
+
let processesMissing = processes.filter(function (name) {
|
|
1042
|
+
// return procStats.filter(function(item) { return item.name.toLowerCase() === name }).length === 0;
|
|
1043
|
+
return procStats.filter(function (item) { return item.name.toLowerCase().indexOf(name) >= 0; }).length === 0;
|
|
1044
|
+
|
|
1045
|
+
});
|
|
1046
|
+
processesMissing.forEach(function (procName) {
|
|
1047
|
+
result.push({
|
|
1048
|
+
proc: procName,
|
|
1049
|
+
pid: null,
|
|
1050
|
+
pids: [],
|
|
1051
|
+
cpu: 0,
|
|
1052
|
+
mem: 0
|
|
1053
|
+
});
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
// calculate proc stats for each proc
|
|
1058
|
+
for (let i = 0; i < procStats.length; i++) {
|
|
1059
|
+
let resultProcess = calcProcStatWin(procStats[i], allcpuu + allcpus, _process_cpu);
|
|
1060
|
+
|
|
1061
|
+
let listPos = -1;
|
|
1062
|
+
for (let j = 0; j < result.length; j++) {
|
|
1063
|
+
if (result[j].pid === resultProcess.pid || result[j].pids.indexOf(resultProcess.pid) >= 0) { listPos = j; }
|
|
1064
|
+
}
|
|
1065
|
+
if (listPos >= 0) {
|
|
1066
|
+
result[listPos].cpu += resultProcess.cpuu + resultProcess.cpus;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
// save new values
|
|
1070
|
+
list_new[resultProcess.pid] = {
|
|
1071
|
+
cpuu: resultProcess.cpuu,
|
|
1072
|
+
cpus: resultProcess.cpus,
|
|
1073
|
+
utime: resultProcess.utime,
|
|
1074
|
+
stime: resultProcess.stime
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
// store old values
|
|
1078
|
+
_process_cpu.all = allcpuu + allcpus;
|
|
1079
|
+
_process_cpu.all_utime = allcpuu;
|
|
1080
|
+
_process_cpu.all_stime = allcpus;
|
|
1081
|
+
// _process_cpu.list = list_new;
|
|
1082
|
+
_process_cpu.list = Object.assign({}, list_new);
|
|
1083
|
+
_process_cpu.ms = Date.now() - _process_cpu.ms;
|
|
1084
|
+
_process_cpu.result = JSON.parse(JSON.stringify(result));
|
|
1085
|
+
if (callback) {
|
|
1086
|
+
callback(result);
|
|
1087
|
+
}
|
|
1088
|
+
resolve(result);
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
} catch (e) {
|
|
1092
|
+
if (callback) { callback(result); }
|
|
1093
|
+
resolve(result);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
if (_darwin || _linux || _freebsd || _openbsd || _netbsd) {
|
|
1098
|
+
const params = ['-axo', 'pid,pcpu,pmem,comm'];
|
|
1099
|
+
util.execSafe('ps', params).then((stdout) => {
|
|
1100
|
+
if (stdout) {
|
|
1101
|
+
let procStats = [];
|
|
1102
|
+
let lines = stdout.toString().split('\n').filter(function (line) {
|
|
1103
|
+
if (processesString === '*') { return true; }
|
|
1104
|
+
if (line.toLowerCase().indexOf('grep') !== -1) { return false; } // remove this??
|
|
1105
|
+
let found = false;
|
|
1106
|
+
processes.forEach(function (item) {
|
|
1107
|
+
found = found || (line.toLowerCase().indexOf(item.toLowerCase()) >= 0);
|
|
1108
|
+
});
|
|
1109
|
+
return found;
|
|
1110
|
+
});
|
|
1111
|
+
|
|
1112
|
+
lines.forEach(function (line) {
|
|
1113
|
+
let data = line.trim().replace(/ +/g, ' ').split(' ');
|
|
1114
|
+
if (data.length > 3) {
|
|
1115
|
+
procStats.push({
|
|
1116
|
+
name: data[3].substring(data[3].lastIndexOf('/') + 1),
|
|
1117
|
+
pid: parseInt(data[0]) || 0,
|
|
1118
|
+
cpu: parseFloat(data[1].replace(',', '.')),
|
|
1119
|
+
mem: parseFloat(data[2].replace(',', '.'))
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
|
|
1124
|
+
procStats.forEach(function (item) {
|
|
1125
|
+
let listPos = -1;
|
|
1126
|
+
let inList = false;
|
|
1127
|
+
let name = '';
|
|
1128
|
+
for (let j = 0; j < result.length; j++) {
|
|
1129
|
+
// if (result[j].proc.toLowerCase() === item.name.toLowerCase()) {
|
|
1130
|
+
// if (result[j].proc.toLowerCase().indexOf(item.name.toLowerCase()) >= 0) {
|
|
1131
|
+
if (item.name.toLowerCase().indexOf(result[j].proc.toLowerCase()) >= 0) {
|
|
1132
|
+
listPos = j;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
// console.log(listPos);
|
|
1136
|
+
processes.forEach(function (proc) {
|
|
1137
|
+
// console.log(proc)
|
|
1138
|
+
// console.log(item)
|
|
1139
|
+
// inList = inList || item.name.toLowerCase() === proc.toLowerCase();
|
|
1140
|
+
if (item.name.toLowerCase().indexOf(proc.toLowerCase()) >= 0 && !inList) {
|
|
1141
|
+
inList = true;
|
|
1142
|
+
name = proc;
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
// console.log(item);
|
|
1146
|
+
// console.log(listPos);
|
|
1147
|
+
if ((processesString === '*') || inList) {
|
|
1148
|
+
if (listPos < 0) {
|
|
1149
|
+
result.push({
|
|
1150
|
+
proc: name,
|
|
1151
|
+
pid: item.pid,
|
|
1152
|
+
pids: [item.pid],
|
|
1153
|
+
cpu: item.cpu,
|
|
1154
|
+
mem: item.mem
|
|
1155
|
+
});
|
|
1156
|
+
} else {
|
|
1157
|
+
result[listPos].pids.push(item.pid);
|
|
1158
|
+
result[listPos].cpu += item.cpu;
|
|
1159
|
+
result[listPos].mem += item.mem;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1164
|
+
if (processesString !== '*') {
|
|
1165
|
+
// add missing processes
|
|
1166
|
+
let processesMissing = processes.filter(function (name) {
|
|
1167
|
+
return procStats.filter(function (item) { return item.name.toLowerCase().indexOf(name) >= 0; }).length === 0;
|
|
1168
|
+
});
|
|
1169
|
+
processesMissing.forEach(function (procName) {
|
|
1170
|
+
result.push({
|
|
1171
|
+
proc: procName,
|
|
1172
|
+
pid: null,
|
|
1173
|
+
pids: [],
|
|
1174
|
+
cpu: 0,
|
|
1175
|
+
mem: 0
|
|
1176
|
+
});
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
if (_linux) {
|
|
1180
|
+
// calc process_cpu - ps is not accurate in linux!
|
|
1181
|
+
result.forEach(function (item) {
|
|
1182
|
+
item.cpu = 0;
|
|
1183
|
+
});
|
|
1184
|
+
let cmd = 'cat /proc/stat | grep "cpu "';
|
|
1185
|
+
for (let i in result) {
|
|
1186
|
+
for (let j in result[i].pids) {
|
|
1187
|
+
cmd += (';cat /proc/' + result[i].pids[j] + '/stat');
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
exec(cmd, { maxBuffer: 1024 * 20000 }, function (error, stdout) {
|
|
1191
|
+
let curr_processes = stdout.toString().split('\n');
|
|
1192
|
+
|
|
1193
|
+
// first line (all - /proc/stat)
|
|
1194
|
+
let all = parseProcStat(curr_processes.shift());
|
|
1195
|
+
|
|
1196
|
+
// process
|
|
1197
|
+
let list_new = {};
|
|
1198
|
+
let resultProcess = {};
|
|
1199
|
+
|
|
1200
|
+
for (let i = 0; i < curr_processes.length; i++) {
|
|
1201
|
+
resultProcess = calcProcStatLinux(curr_processes[i], all, _process_cpu);
|
|
1202
|
+
|
|
1203
|
+
if (resultProcess.pid) {
|
|
1204
|
+
|
|
1205
|
+
// find result item
|
|
1206
|
+
let resultItemId = -1;
|
|
1207
|
+
for (let i in result) {
|
|
1208
|
+
if (result[i].pids.indexOf(resultProcess.pid) >= 0) {
|
|
1209
|
+
resultItemId = i;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
// store pcpu in outer result
|
|
1213
|
+
if (resultItemId >= 0) {
|
|
1214
|
+
result[resultItemId].cpu += resultProcess.cpuu + resultProcess.cpus;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
// save new values
|
|
1218
|
+
list_new[resultProcess.pid] = {
|
|
1219
|
+
cpuu: resultProcess.cpuu,
|
|
1220
|
+
cpus: resultProcess.cpus,
|
|
1221
|
+
utime: resultProcess.utime,
|
|
1222
|
+
stime: resultProcess.stime,
|
|
1223
|
+
cutime: resultProcess.cutime,
|
|
1224
|
+
cstime: resultProcess.cstime
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
result.forEach(function (item) {
|
|
1230
|
+
item.cpu = Math.round(item.cpu * 100) / 100;
|
|
1231
|
+
});
|
|
1232
|
+
|
|
1233
|
+
_process_cpu.all = all;
|
|
1234
|
+
// _process_cpu.list = list_new;
|
|
1235
|
+
_process_cpu.list = Object.assign({}, list_new);
|
|
1236
|
+
_process_cpu.ms = Date.now() - _process_cpu.ms;
|
|
1237
|
+
// _process_cpu.result = result;
|
|
1238
|
+
_process_cpu.result = Object.assign({}, result);
|
|
1239
|
+
if (callback) { callback(result); }
|
|
1240
|
+
resolve(result);
|
|
1241
|
+
});
|
|
1242
|
+
} else {
|
|
1243
|
+
if (callback) { callback(result); }
|
|
1244
|
+
resolve(result);
|
|
1245
|
+
}
|
|
1246
|
+
} else {
|
|
1247
|
+
if (callback) { callback(result); }
|
|
1248
|
+
resolve(result);
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
exports.processLoad = processLoad;
|