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,1270 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// @ts-check
|
|
3
|
+
// ==================================================================================
|
|
4
|
+
// filesystem.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
|
+
// 8. File System
|
|
14
|
+
// ----------------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
const util = require('./util');
|
|
17
|
+
const fs = require('fs');
|
|
18
|
+
|
|
19
|
+
const exec = require('child_process').exec;
|
|
20
|
+
const execSync = require('child_process').execSync;
|
|
21
|
+
const execPromiseSave = util.promisifySave(require('child_process').exec);
|
|
22
|
+
|
|
23
|
+
let _platform = process.platform;
|
|
24
|
+
|
|
25
|
+
const _linux = (_platform === 'linux' || _platform === 'android');
|
|
26
|
+
const _darwin = (_platform === 'darwin');
|
|
27
|
+
const _windows = (_platform === 'win32');
|
|
28
|
+
const _freebsd = (_platform === 'freebsd');
|
|
29
|
+
const _openbsd = (_platform === 'openbsd');
|
|
30
|
+
const _netbsd = (_platform === 'netbsd');
|
|
31
|
+
const _sunos = (_platform === 'sunos');
|
|
32
|
+
|
|
33
|
+
let _fs_speed = {};
|
|
34
|
+
let _disk_io = {};
|
|
35
|
+
|
|
36
|
+
// --------------------------
|
|
37
|
+
// FS - mounted file systems
|
|
38
|
+
|
|
39
|
+
function fsSize(callback) {
|
|
40
|
+
|
|
41
|
+
let macOsDisks = [];
|
|
42
|
+
|
|
43
|
+
function getmacOsFsType(fs) {
|
|
44
|
+
if (!fs.startsWith('/')) { return 'NFS'; }
|
|
45
|
+
const parts = fs.split('/');
|
|
46
|
+
const fsShort = parts[parts.length - 1];
|
|
47
|
+
const macOsDisksSingle = macOsDisks.filter(item => item.indexOf(fsShort) >= 0);
|
|
48
|
+
if (macOsDisksSingle.length === 1 && macOsDisksSingle[0].indexOf('APFS') >= 0) { return 'APFS'; }
|
|
49
|
+
return 'HFS';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function parseDf(lines) {
|
|
53
|
+
let data = [];
|
|
54
|
+
lines.forEach(function (line) {
|
|
55
|
+
if (line !== '') {
|
|
56
|
+
line = line.replace(/ +/g, ' ').split(' ');
|
|
57
|
+
if (line && ((line[0].startsWith('/')) || (line[6] && line[6] === '/') || (line[0].indexOf('/') > 0) || (line[0].indexOf(':') === 1))) {
|
|
58
|
+
const fs = line[0];
|
|
59
|
+
const fsType = ((_linux || _freebsd || _openbsd || _netbsd) ? line[1] : getmacOsFsType(line[0]));
|
|
60
|
+
const size = parseInt(((_linux || _freebsd || _openbsd || _netbsd) ? line[2] : line[1])) * 1024;
|
|
61
|
+
const used = parseInt(((_linux || _freebsd || _openbsd || _netbsd) ? line[3] : line[2])) * 1024;
|
|
62
|
+
const available = parseInt(((_linux || _freebsd || _openbsd || _netbsd) ? line[4] : line[3])) * 1024;
|
|
63
|
+
const use = parseFloat((100.0 * (used / (used + available))).toFixed(2));
|
|
64
|
+
line.splice(0, (_linux || _freebsd || _openbsd || _netbsd) ? 6 : 5);
|
|
65
|
+
const mount = line.join(' ');
|
|
66
|
+
// const mount = line[line.length - 1];
|
|
67
|
+
if (!data.find(el => (el.fs === fs && el.type === fsType))) {
|
|
68
|
+
data.push({
|
|
69
|
+
fs,
|
|
70
|
+
type: fsType,
|
|
71
|
+
size,
|
|
72
|
+
used,
|
|
73
|
+
available,
|
|
74
|
+
use,
|
|
75
|
+
mount
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return data;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return new Promise((resolve) => {
|
|
85
|
+
process.nextTick(() => {
|
|
86
|
+
let data = [];
|
|
87
|
+
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
|
|
88
|
+
let cmd = '';
|
|
89
|
+
if (_darwin) {
|
|
90
|
+
cmd = 'df -kP';
|
|
91
|
+
try {
|
|
92
|
+
macOsDisks = execSync('diskutil list').toString().split('\n').filter(line => {
|
|
93
|
+
return !line.startsWith('/') && line.indexOf(':') > 0;
|
|
94
|
+
});
|
|
95
|
+
} catch (e) {
|
|
96
|
+
macOsDisks = [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (_linux) { cmd = 'df -lkPTx squashfs | grep -E "^/|^.\\:"'; }
|
|
100
|
+
if (_freebsd || _openbsd || _netbsd) { cmd = 'df -lkPT'; }
|
|
101
|
+
exec(cmd, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
102
|
+
if (!error) {
|
|
103
|
+
let lines = stdout.toString().split('\n');
|
|
104
|
+
data = parseDf(lines);
|
|
105
|
+
if (callback) {
|
|
106
|
+
callback(data);
|
|
107
|
+
}
|
|
108
|
+
resolve(data);
|
|
109
|
+
} else {
|
|
110
|
+
exec('df -kPT', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
111
|
+
if (!error) {
|
|
112
|
+
let lines = stdout.toString().split('\n');
|
|
113
|
+
data = parseDf(lines);
|
|
114
|
+
}
|
|
115
|
+
if (callback) {
|
|
116
|
+
callback(data);
|
|
117
|
+
}
|
|
118
|
+
resolve(data);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (_sunos) {
|
|
124
|
+
if (callback) { callback(data); }
|
|
125
|
+
resolve(data);
|
|
126
|
+
}
|
|
127
|
+
if (_windows) {
|
|
128
|
+
try {
|
|
129
|
+
// util.wmic('logicaldisk get Caption,FileSystem,FreeSpace,Size').then((stdout) => {
|
|
130
|
+
util.powerShell('Get-WmiObject Win32_logicaldisk | select Caption,FileSystem,FreeSpace,Size | fl').then((stdout, error) => {
|
|
131
|
+
if (!error) {
|
|
132
|
+
let devices = stdout.toString().split(/\n\s*\n/);
|
|
133
|
+
devices.forEach(function (device) {
|
|
134
|
+
let lines = device.split('\r\n');
|
|
135
|
+
const size = util.toInt(util.getValue(lines, 'size', ':'));
|
|
136
|
+
const free = util.toInt(util.getValue(lines, 'freespace', ':'));
|
|
137
|
+
const caption = util.getValue(lines, 'caption', ':');
|
|
138
|
+
if (size) {
|
|
139
|
+
data.push({
|
|
140
|
+
fs: caption,
|
|
141
|
+
type: util.getValue(lines, 'filesystem', ':'),
|
|
142
|
+
size,
|
|
143
|
+
used: size - free,
|
|
144
|
+
available: free,
|
|
145
|
+
use: parseFloat(((100.0 * (size - free)) / size).toFixed(2)),
|
|
146
|
+
mount: caption
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
if (callback) {
|
|
152
|
+
callback(data);
|
|
153
|
+
}
|
|
154
|
+
resolve(data);
|
|
155
|
+
});
|
|
156
|
+
} catch (e) {
|
|
157
|
+
if (callback) { callback(data); }
|
|
158
|
+
resolve(data);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
exports.fsSize = fsSize;
|
|
166
|
+
|
|
167
|
+
// --------------------------
|
|
168
|
+
// FS - open files count
|
|
169
|
+
|
|
170
|
+
function fsOpenFiles(callback) {
|
|
171
|
+
|
|
172
|
+
return new Promise((resolve) => {
|
|
173
|
+
process.nextTick(() => {
|
|
174
|
+
const result = {
|
|
175
|
+
max: null,
|
|
176
|
+
allocated: null,
|
|
177
|
+
available: null
|
|
178
|
+
};
|
|
179
|
+
if (_freebsd || _openbsd || _netbsd || _darwin) {
|
|
180
|
+
let cmd = 'sysctl -i kern.maxfiles kern.num_files kern.open_files';
|
|
181
|
+
exec(cmd, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
182
|
+
if (!error) {
|
|
183
|
+
let lines = stdout.toString().split('\n');
|
|
184
|
+
result.max = parseInt(util.getValue(lines, 'kern.maxfiles', ':'), 10);
|
|
185
|
+
result.allocated = parseInt(util.getValue(lines, 'kern.num_files', ':'), 10) || parseInt(util.getValue(lines, 'kern.open_files', ':'), 10);
|
|
186
|
+
result.available = result.max - result.allocated;
|
|
187
|
+
}
|
|
188
|
+
if (callback) {
|
|
189
|
+
callback(result);
|
|
190
|
+
}
|
|
191
|
+
resolve(result);
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
if (_linux) {
|
|
195
|
+
fs.readFile('/proc/sys/fs/file-nr', function (error, stdout) {
|
|
196
|
+
if (!error) {
|
|
197
|
+
let lines = stdout.toString().split('\n');
|
|
198
|
+
if (lines[0]) {
|
|
199
|
+
const parts = lines[0].replace(/\s+/g, ' ').split(' ');
|
|
200
|
+
if (parts.length === 3) {
|
|
201
|
+
result.allocated = parseInt(parts[0], 10);
|
|
202
|
+
result.available = parseInt(parts[1], 10);
|
|
203
|
+
result.max = parseInt(parts[2], 10);
|
|
204
|
+
if (!result.available) { result.available = result.max - result.allocated; }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (callback) {
|
|
208
|
+
callback(result);
|
|
209
|
+
}
|
|
210
|
+
resolve(result);
|
|
211
|
+
} else {
|
|
212
|
+
fs.readFile('/proc/sys/fs/file-max', function (error, stdout) {
|
|
213
|
+
if (!error) {
|
|
214
|
+
let lines = stdout.toString().split('\n');
|
|
215
|
+
if (lines[0]) {
|
|
216
|
+
result.max = parseInt(lines[0], 10);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (callback) {
|
|
220
|
+
callback(result);
|
|
221
|
+
}
|
|
222
|
+
resolve(result);
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
if (_sunos) {
|
|
228
|
+
if (callback) { callback(null); }
|
|
229
|
+
resolve(null);
|
|
230
|
+
}
|
|
231
|
+
if (_windows) {
|
|
232
|
+
if (callback) { callback(null); }
|
|
233
|
+
resolve(null);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
exports.fsOpenFiles = fsOpenFiles;
|
|
240
|
+
|
|
241
|
+
// --------------------------
|
|
242
|
+
// disks
|
|
243
|
+
|
|
244
|
+
function parseBytes(s) {
|
|
245
|
+
return parseInt(s.substr(s.indexOf(' (') + 2, s.indexOf(' Bytes)') - 10));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function parseDevices(lines) {
|
|
249
|
+
let devices = [];
|
|
250
|
+
let i = 0;
|
|
251
|
+
lines.forEach(line => {
|
|
252
|
+
if (line.length > 0) {
|
|
253
|
+
if (line[0] === '*') {
|
|
254
|
+
i++;
|
|
255
|
+
} else {
|
|
256
|
+
let parts = line.split(':');
|
|
257
|
+
if (parts.length > 1) {
|
|
258
|
+
if (!devices[i]) {
|
|
259
|
+
devices[i] = {
|
|
260
|
+
name: '',
|
|
261
|
+
identifier: '',
|
|
262
|
+
type: 'disk',
|
|
263
|
+
fsType: '',
|
|
264
|
+
mount: '',
|
|
265
|
+
size: 0,
|
|
266
|
+
physical: 'HDD',
|
|
267
|
+
uuid: '',
|
|
268
|
+
label: '',
|
|
269
|
+
model: '',
|
|
270
|
+
serial: '',
|
|
271
|
+
removable: false,
|
|
272
|
+
protocol: ''
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
parts[0] = parts[0].trim().toUpperCase().replace(/ +/g, '');
|
|
276
|
+
parts[1] = parts[1].trim();
|
|
277
|
+
if ('DEVICEIDENTIFIER' === parts[0]) { devices[i].identifier = parts[1]; }
|
|
278
|
+
if ('DEVICENODE' === parts[0]) { devices[i].name = parts[1]; }
|
|
279
|
+
if ('VOLUMENAME' === parts[0]) {
|
|
280
|
+
if (parts[1].indexOf('Not applicable') === -1) { devices[i].label = parts[1]; }
|
|
281
|
+
}
|
|
282
|
+
if ('PROTOCOL' === parts[0]) { devices[i].protocol = parts[1]; }
|
|
283
|
+
if ('DISKSIZE' === parts[0]) { devices[i].size = parseBytes(parts[1]); }
|
|
284
|
+
if ('FILESYSTEMPERSONALITY' === parts[0]) { devices[i].fsType = parts[1]; }
|
|
285
|
+
if ('MOUNTPOINT' === parts[0]) { devices[i].mount = parts[1]; }
|
|
286
|
+
if ('VOLUMEUUID' === parts[0]) { devices[i].uuid = parts[1]; }
|
|
287
|
+
if ('READ-ONLYMEDIA' === parts[0] && parts[1] === 'Yes') { devices[i].physical = 'CD/DVD'; }
|
|
288
|
+
if ('SOLIDSTATE' === parts[0] && parts[1] === 'Yes') { devices[i].physical = 'SSD'; }
|
|
289
|
+
if ('VIRTUAL' === parts[0]) { devices[i].type = 'virtual'; }
|
|
290
|
+
if ('REMOVABLEMEDIA' === parts[0]) { devices[i].removable = (parts[1] === 'Removable'); }
|
|
291
|
+
if ('PARTITIONTYPE' === parts[0]) { devices[i].type = 'part'; }
|
|
292
|
+
if ('DEVICE/MEDIANAME' === parts[0]) { devices[i].model = parts[1]; }
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
return devices;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function parseBlk(lines) {
|
|
301
|
+
let data = [];
|
|
302
|
+
|
|
303
|
+
lines.filter(line => line !== '').forEach((line) => {
|
|
304
|
+
try {
|
|
305
|
+
line = decodeURIComponent(line.replace(/\\x/g, '%'));
|
|
306
|
+
line = line.replace(/\\/g, '\\\\');
|
|
307
|
+
let disk = JSON.parse(line);
|
|
308
|
+
data.push({
|
|
309
|
+
'name': disk.name,
|
|
310
|
+
'type': disk.type,
|
|
311
|
+
'fsType': disk.fsType,
|
|
312
|
+
'mount': disk.mountpoint,
|
|
313
|
+
'size': parseInt(disk.size),
|
|
314
|
+
'physical': (disk.type === 'disk' ? (disk.rota === '0' ? 'SSD' : 'HDD') : (disk.type === 'rom' ? 'CD/DVD' : '')),
|
|
315
|
+
'uuid': disk.uuid,
|
|
316
|
+
'label': disk.label,
|
|
317
|
+
'model': disk.model,
|
|
318
|
+
'serial': disk.serial,
|
|
319
|
+
'removable': disk.rm === '1',
|
|
320
|
+
'protocol': disk.tran,
|
|
321
|
+
'group': disk.group,
|
|
322
|
+
});
|
|
323
|
+
} catch (e) {
|
|
324
|
+
util.noop();
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
data = util.unique(data);
|
|
328
|
+
data = util.sortByKey(data, ['type', 'name']);
|
|
329
|
+
return data;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function blkStdoutToObject(stdout) {
|
|
333
|
+
return stdout.toString()
|
|
334
|
+
.replace(/NAME=/g, '{"name":')
|
|
335
|
+
.replace(/FSTYPE=/g, ',"fsType":')
|
|
336
|
+
.replace(/TYPE=/g, ',"type":')
|
|
337
|
+
.replace(/SIZE=/g, ',"size":')
|
|
338
|
+
.replace(/MOUNTPOINT=/g, ',"mountpoint":')
|
|
339
|
+
.replace(/UUID=/g, ',"uuid":')
|
|
340
|
+
.replace(/ROTA=/g, ',"rota":')
|
|
341
|
+
.replace(/RO=/g, ',"ro":')
|
|
342
|
+
.replace(/RM=/g, ',"rm":')
|
|
343
|
+
.replace(/TRAN=/g, ',"tran":')
|
|
344
|
+
.replace(/SERIAL=/g, ',"serial":')
|
|
345
|
+
.replace(/LABEL=/g, ',"label":')
|
|
346
|
+
.replace(/MODEL=/g, ',"model":')
|
|
347
|
+
.replace(/OWNER=/g, ',"owner":')
|
|
348
|
+
.replace(/GROUP=/g, ',"group":')
|
|
349
|
+
.replace(/\n/g, '}\n');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function blockDevices(callback) {
|
|
353
|
+
|
|
354
|
+
return new Promise((resolve) => {
|
|
355
|
+
process.nextTick(() => {
|
|
356
|
+
let data = [];
|
|
357
|
+
if (_linux) {
|
|
358
|
+
// see https://wiki.ubuntuusers.de/lsblk/
|
|
359
|
+
// exec("lsblk -bo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,TRAN,SERIAL,LABEL,MODEL,OWNER,GROUP,MODE,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,SCHED,RQ-SIZE,RA,WSAME", function (error, stdout) {
|
|
360
|
+
exec('lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,TRAN,SERIAL,LABEL,MODEL,OWNER 2>/dev/null', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
361
|
+
if (!error) {
|
|
362
|
+
let lines = blkStdoutToObject(stdout).split('\n');
|
|
363
|
+
data = parseBlk(lines);
|
|
364
|
+
if (callback) {
|
|
365
|
+
callback(data);
|
|
366
|
+
}
|
|
367
|
+
resolve(data);
|
|
368
|
+
} else {
|
|
369
|
+
exec('lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER 2>/dev/null', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
370
|
+
if (!error) {
|
|
371
|
+
let lines = blkStdoutToObject(stdout).split('\n');
|
|
372
|
+
data = parseBlk(lines);
|
|
373
|
+
}
|
|
374
|
+
if (callback) {
|
|
375
|
+
callback(data);
|
|
376
|
+
}
|
|
377
|
+
resolve(data);
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
if (_darwin) {
|
|
383
|
+
exec('diskutil info -all', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
384
|
+
if (!error) {
|
|
385
|
+
let lines = stdout.toString().split('\n');
|
|
386
|
+
// parse lines into temp array of devices
|
|
387
|
+
data = parseDevices(lines);
|
|
388
|
+
}
|
|
389
|
+
if (callback) {
|
|
390
|
+
callback(data);
|
|
391
|
+
}
|
|
392
|
+
resolve(data);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
if (_sunos) {
|
|
396
|
+
if (callback) { callback(data); }
|
|
397
|
+
resolve(data);
|
|
398
|
+
}
|
|
399
|
+
if (_windows) {
|
|
400
|
+
let drivetypes = ['Unknown', 'NoRoot', 'Removable', 'Local', 'Network', 'CD/DVD', 'RAM'];
|
|
401
|
+
try {
|
|
402
|
+
// util.wmic('logicaldisk get Caption,Description,DeviceID,DriveType,FileSystem,FreeSpace,Name,Size,VolumeName,VolumeSerialNumber /value').then((stdout, error) => {
|
|
403
|
+
// util.powerShell('Get-WmiObject Win32_logicaldisk | select Caption,DriveType,Name,FileSystem,Size,VolumeSerialNumber,VolumeName | fl').then((stdout, error) => {
|
|
404
|
+
util.powerShell('Get-CimInstance -ClassName Win32_LogicalDisk | select Caption,DriveType,Name,FileSystem,Size,VolumeSerialNumber,VolumeName | fl').then((stdout, error) => {
|
|
405
|
+
if (!error) {
|
|
406
|
+
let devices = stdout.toString().split(/\n\s*\n/);
|
|
407
|
+
devices.forEach(function (device) {
|
|
408
|
+
let lines = device.split('\r\n');
|
|
409
|
+
let drivetype = util.getValue(lines, 'drivetype', ':');
|
|
410
|
+
if (drivetype) {
|
|
411
|
+
data.push({
|
|
412
|
+
name: util.getValue(lines, 'name', ':'),
|
|
413
|
+
identifier: util.getValue(lines, 'caption', ':'),
|
|
414
|
+
type: 'disk',
|
|
415
|
+
fsType: util.getValue(lines, 'filesystem', ':').toLowerCase(),
|
|
416
|
+
mount: util.getValue(lines, 'caption', ':'),
|
|
417
|
+
size: util.getValue(lines, 'size', ':'),
|
|
418
|
+
physical: (drivetype >= 0 && drivetype <= 6) ? drivetypes[drivetype] : drivetypes[0],
|
|
419
|
+
uuid: util.getValue(lines, 'volumeserialnumber', ':'),
|
|
420
|
+
label: util.getValue(lines, 'volumename', ':'),
|
|
421
|
+
model: '',
|
|
422
|
+
serial: util.getValue(lines, 'volumeserialnumber', ':'),
|
|
423
|
+
removable: drivetype === '2',
|
|
424
|
+
protocol: ''
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
if (callback) {
|
|
430
|
+
callback(data);
|
|
431
|
+
}
|
|
432
|
+
resolve(data);
|
|
433
|
+
});
|
|
434
|
+
} catch (e) {
|
|
435
|
+
if (callback) { callback(data); }
|
|
436
|
+
resolve(data);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (_freebsd || _openbsd || _netbsd) {
|
|
440
|
+
// will follow
|
|
441
|
+
if (callback) { callback(null); }
|
|
442
|
+
resolve(null);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
exports.blockDevices = blockDevices;
|
|
450
|
+
|
|
451
|
+
// --------------------------
|
|
452
|
+
// FS - speed
|
|
453
|
+
|
|
454
|
+
function calcFsSpeed(rx, wx) {
|
|
455
|
+
let result = {
|
|
456
|
+
rx: 0,
|
|
457
|
+
wx: 0,
|
|
458
|
+
tx: 0,
|
|
459
|
+
rx_sec: null,
|
|
460
|
+
wx_sec: null,
|
|
461
|
+
tx_sec: null,
|
|
462
|
+
ms: 0
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
if (_fs_speed && _fs_speed.ms) {
|
|
466
|
+
result.rx = rx;
|
|
467
|
+
result.wx = wx;
|
|
468
|
+
result.tx = result.rx + result.wx;
|
|
469
|
+
result.ms = Date.now() - _fs_speed.ms;
|
|
470
|
+
result.rx_sec = (result.rx - _fs_speed.bytes_read) / (result.ms / 1000);
|
|
471
|
+
result.wx_sec = (result.wx - _fs_speed.bytes_write) / (result.ms / 1000);
|
|
472
|
+
result.tx_sec = result.rx_sec + result.wx_sec;
|
|
473
|
+
_fs_speed.rx_sec = result.rx_sec;
|
|
474
|
+
_fs_speed.wx_sec = result.wx_sec;
|
|
475
|
+
_fs_speed.tx_sec = result.tx_sec;
|
|
476
|
+
_fs_speed.bytes_read = result.rx;
|
|
477
|
+
_fs_speed.bytes_write = result.wx;
|
|
478
|
+
_fs_speed.bytes_overall = result.rx + result.wx;
|
|
479
|
+
_fs_speed.ms = Date.now();
|
|
480
|
+
_fs_speed.last_ms = result.ms;
|
|
481
|
+
} else {
|
|
482
|
+
result.rx = rx;
|
|
483
|
+
result.wx = wx;
|
|
484
|
+
result.tx = result.rx + result.wx;
|
|
485
|
+
_fs_speed.rx_sec = null;
|
|
486
|
+
_fs_speed.wx_sec = null;
|
|
487
|
+
_fs_speed.tx_sec = null;
|
|
488
|
+
_fs_speed.bytes_read = result.rx;
|
|
489
|
+
_fs_speed.bytes_write = result.wx;
|
|
490
|
+
_fs_speed.bytes_overall = result.rx + result.wx;
|
|
491
|
+
_fs_speed.ms = Date.now();
|
|
492
|
+
_fs_speed.last_ms = 0;
|
|
493
|
+
}
|
|
494
|
+
return result;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function fsStats(callback) {
|
|
498
|
+
|
|
499
|
+
return new Promise((resolve) => {
|
|
500
|
+
process.nextTick(() => {
|
|
501
|
+
if (_windows || _freebsd || _openbsd || _netbsd || _sunos) {
|
|
502
|
+
return resolve(null);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
let result = {
|
|
506
|
+
rx: 0,
|
|
507
|
+
wx: 0,
|
|
508
|
+
tx: 0,
|
|
509
|
+
rx_sec: null,
|
|
510
|
+
wx_sec: null,
|
|
511
|
+
tx_sec: null,
|
|
512
|
+
ms: 0
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
let rx = 0;
|
|
516
|
+
let wx = 0;
|
|
517
|
+
if ((_fs_speed && !_fs_speed.ms) || (_fs_speed && _fs_speed.ms && Date.now() - _fs_speed.ms >= 500)) {
|
|
518
|
+
if (_linux) {
|
|
519
|
+
// exec("df -k | grep /dev/", function(error, stdout) {
|
|
520
|
+
exec('lsblk -r 2>/dev/null | grep /', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
521
|
+
if (!error) {
|
|
522
|
+
let lines = stdout.toString().split('\n');
|
|
523
|
+
let fs_filter = [];
|
|
524
|
+
lines.forEach(function (line) {
|
|
525
|
+
if (line !== '') {
|
|
526
|
+
line = line.trim().split(' ');
|
|
527
|
+
if (fs_filter.indexOf(line[0]) === -1) { fs_filter.push(line[0]); }
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
let output = fs_filter.join('|');
|
|
532
|
+
exec('cat /proc/diskstats | egrep "' + output + '"', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
533
|
+
if (!error) {
|
|
534
|
+
let lines = stdout.toString().split('\n');
|
|
535
|
+
lines.forEach(function (line) {
|
|
536
|
+
line = line.trim();
|
|
537
|
+
if (line !== '') {
|
|
538
|
+
line = line.replace(/ +/g, ' ').split(' ');
|
|
539
|
+
|
|
540
|
+
rx += parseInt(line[5]) * 512;
|
|
541
|
+
wx += parseInt(line[9]) * 512;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
result = calcFsSpeed(rx, wx);
|
|
545
|
+
}
|
|
546
|
+
if (callback) {
|
|
547
|
+
callback(result);
|
|
548
|
+
}
|
|
549
|
+
resolve(result);
|
|
550
|
+
});
|
|
551
|
+
} else {
|
|
552
|
+
if (callback) {
|
|
553
|
+
callback(result);
|
|
554
|
+
}
|
|
555
|
+
resolve(result);
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
if (_darwin) {
|
|
560
|
+
exec('ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890,\n"', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
561
|
+
if (!error) {
|
|
562
|
+
let lines = stdout.toString().split('\n');
|
|
563
|
+
lines.forEach(function (line) {
|
|
564
|
+
line = line.trim();
|
|
565
|
+
if (line !== '') {
|
|
566
|
+
line = line.split(',');
|
|
567
|
+
|
|
568
|
+
rx += parseInt(line[2]);
|
|
569
|
+
wx += parseInt(line[9]);
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
result = calcFsSpeed(rx, wx);
|
|
573
|
+
}
|
|
574
|
+
if (callback) {
|
|
575
|
+
callback(result);
|
|
576
|
+
}
|
|
577
|
+
resolve(result);
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
} else {
|
|
581
|
+
result.ms = _fs_speed.last_ms;
|
|
582
|
+
result.rx = _fs_speed.bytes_read;
|
|
583
|
+
result.wx = _fs_speed.bytes_write;
|
|
584
|
+
result.tx = _fs_speed.bytes_read + _fs_speed.bytes_write;
|
|
585
|
+
result.rx_sec = _fs_speed.rx_sec;
|
|
586
|
+
result.wx_sec = _fs_speed.wx_sec;
|
|
587
|
+
result.tx_sec = _fs_speed.tx_sec;
|
|
588
|
+
if (callback) {
|
|
589
|
+
callback(result);
|
|
590
|
+
}
|
|
591
|
+
resolve(result);
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
exports.fsStats = fsStats;
|
|
598
|
+
|
|
599
|
+
function calcDiskIO(rIO, wIO, rWaitTime, wWaitTime, tWaitTime) {
|
|
600
|
+
let result = {
|
|
601
|
+
rIO: 0,
|
|
602
|
+
wIO: 0,
|
|
603
|
+
tIO: 0,
|
|
604
|
+
rIO_sec: null,
|
|
605
|
+
wIO_sec: null,
|
|
606
|
+
tIO_sec: null,
|
|
607
|
+
rWaitTime: 0,
|
|
608
|
+
wWaitTime: 0,
|
|
609
|
+
tWaitTime: 0,
|
|
610
|
+
rWaitPercent: null,
|
|
611
|
+
wWaitPercent: null,
|
|
612
|
+
tWaitPercent: null,
|
|
613
|
+
ms: 0
|
|
614
|
+
};
|
|
615
|
+
if (_disk_io && _disk_io.ms) {
|
|
616
|
+
result.rIO = rIO;
|
|
617
|
+
result.wIO = wIO;
|
|
618
|
+
result.tIO = rIO + wIO;
|
|
619
|
+
result.ms = Date.now() - _disk_io.ms;
|
|
620
|
+
result.rIO_sec = (result.rIO - _disk_io.rIO) / (result.ms / 1000);
|
|
621
|
+
result.wIO_sec = (result.wIO - _disk_io.wIO) / (result.ms / 1000);
|
|
622
|
+
result.tIO_sec = result.rIO_sec + result.wIO_sec;
|
|
623
|
+
result.rWaitTime = rWaitTime;
|
|
624
|
+
result.wWaitTime = wWaitTime;
|
|
625
|
+
result.tWaitTime = tWaitTime;
|
|
626
|
+
result.rWaitPercent = (result.rWaitTime - _disk_io.rWaitTime) * 100 / (result.ms);
|
|
627
|
+
result.wWaitPercent = (result.wWaitTime - _disk_io.wWaitTime) * 100 / (result.ms);
|
|
628
|
+
result.tWaitPercent = (result.tWaitTime - _disk_io.tWaitTime) * 100 / (result.ms);
|
|
629
|
+
_disk_io.rIO = rIO;
|
|
630
|
+
_disk_io.wIO = wIO;
|
|
631
|
+
_disk_io.rIO_sec = result.rIO_sec;
|
|
632
|
+
_disk_io.wIO_sec = result.wIO_sec;
|
|
633
|
+
_disk_io.tIO_sec = result.tIO_sec;
|
|
634
|
+
_disk_io.rWaitTime = rWaitTime;
|
|
635
|
+
_disk_io.wWaitTime = wWaitTime;
|
|
636
|
+
_disk_io.tWaitTime = tWaitTime;
|
|
637
|
+
_disk_io.rWaitPercent = result.rWaitPercent;
|
|
638
|
+
_disk_io.wWaitPercent = result.wWaitPercent;
|
|
639
|
+
_disk_io.tWaitPercent = result.tWaitPercent;
|
|
640
|
+
_disk_io.last_ms = result.ms;
|
|
641
|
+
_disk_io.ms = Date.now();
|
|
642
|
+
} else {
|
|
643
|
+
result.rIO = rIO;
|
|
644
|
+
result.wIO = wIO;
|
|
645
|
+
result.tIO = rIO + wIO;
|
|
646
|
+
result.rWaitTime = rWaitTime;
|
|
647
|
+
result.wWaitTime = wWaitTime;
|
|
648
|
+
result.tWaitTime = tWaitTime;
|
|
649
|
+
_disk_io.rIO = rIO;
|
|
650
|
+
_disk_io.wIO = wIO;
|
|
651
|
+
_disk_io.rIO_sec = null;
|
|
652
|
+
_disk_io.wIO_sec = null;
|
|
653
|
+
_disk_io.tIO_sec = null;
|
|
654
|
+
_disk_io.rWaitTime = rWaitTime;
|
|
655
|
+
_disk_io.wWaitTime = wWaitTime;
|
|
656
|
+
_disk_io.tWaitTime = tWaitTime;
|
|
657
|
+
_disk_io.rWaitPercent = null;
|
|
658
|
+
_disk_io.wWaitPercent = null;
|
|
659
|
+
_disk_io.tWaitPercent = null;
|
|
660
|
+
_disk_io.last_ms = 0;
|
|
661
|
+
_disk_io.ms = Date.now();
|
|
662
|
+
}
|
|
663
|
+
return result;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function disksIO(callback) {
|
|
667
|
+
|
|
668
|
+
return new Promise((resolve) => {
|
|
669
|
+
process.nextTick(() => {
|
|
670
|
+
if (_windows) {
|
|
671
|
+
return resolve(null);
|
|
672
|
+
}
|
|
673
|
+
if (_sunos) {
|
|
674
|
+
return resolve(null);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
let result = {
|
|
678
|
+
rIO: 0,
|
|
679
|
+
wIO: 0,
|
|
680
|
+
tIO: 0,
|
|
681
|
+
rIO_sec: null,
|
|
682
|
+
wIO_sec: null,
|
|
683
|
+
tIO_sec: null,
|
|
684
|
+
rWaitTime: 0,
|
|
685
|
+
wWaitTime: 0,
|
|
686
|
+
tWaitTime: 0,
|
|
687
|
+
rWaitPercent: null,
|
|
688
|
+
wWaitPercent: null,
|
|
689
|
+
tWaitPercent: null,
|
|
690
|
+
ms: 0
|
|
691
|
+
};
|
|
692
|
+
let rIO = 0;
|
|
693
|
+
let wIO = 0;
|
|
694
|
+
let rWaitTime = 0;
|
|
695
|
+
let wWaitTime = 0;
|
|
696
|
+
let tWaitTime = 0;
|
|
697
|
+
|
|
698
|
+
if ((_disk_io && !_disk_io.ms) || (_disk_io && _disk_io.ms && Date.now() - _disk_io.ms >= 500)) {
|
|
699
|
+
if (_linux || _freebsd || _openbsd || _netbsd) {
|
|
700
|
+
// prints Block layer statistics for all mounted volumes
|
|
701
|
+
// var cmd = "for mount in `lsblk | grep / | sed -r 's/│ └─//' | cut -d ' ' -f 1`; do cat /sys/block/$mount/stat | sed -r 's/ +/;/g' | sed -r 's/^;//'; done";
|
|
702
|
+
// var cmd = "for mount in `lsblk | grep / | sed 's/[│└─├]//g' | awk '{$1=$1};1' | cut -d ' ' -f 1 | sort -u`; do cat /sys/block/$mount/stat | sed -r 's/ +/;/g' | sed -r 's/^;//'; done";
|
|
703
|
+
let cmd = 'for mount in `lsblk 2>/dev/null | grep " disk " | sed "s/[│└─├]//g" | awk \'{$1=$1};1\' | cut -d " " -f 1 | sort -u`; do cat /sys/block/$mount/stat | sed -r "s/ +/;/g" | sed -r "s/^;//"; done';
|
|
704
|
+
|
|
705
|
+
exec(cmd, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
706
|
+
if (!error) {
|
|
707
|
+
let lines = stdout.split('\n');
|
|
708
|
+
lines.forEach(function (line) {
|
|
709
|
+
// ignore empty lines
|
|
710
|
+
if (!line) { return; }
|
|
711
|
+
|
|
712
|
+
// sum r/wIO of all disks to compute all disks IO
|
|
713
|
+
let stats = line.split(';');
|
|
714
|
+
rIO += parseInt(stats[0]);
|
|
715
|
+
wIO += parseInt(stats[4]);
|
|
716
|
+
rWaitTime += parseInt(stats[3]);
|
|
717
|
+
wWaitTime += parseInt(stats[7]);
|
|
718
|
+
tWaitTime += parseInt(stats[10]);
|
|
719
|
+
});
|
|
720
|
+
result = calcDiskIO(rIO, wIO, rWaitTime, wWaitTime, tWaitTime);
|
|
721
|
+
|
|
722
|
+
if (callback) {
|
|
723
|
+
callback(result);
|
|
724
|
+
}
|
|
725
|
+
resolve(result);
|
|
726
|
+
} else {
|
|
727
|
+
if (callback) {
|
|
728
|
+
callback(result);
|
|
729
|
+
}
|
|
730
|
+
resolve(result);
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
if (_darwin) {
|
|
735
|
+
exec('ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890,\n"', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
736
|
+
if (!error) {
|
|
737
|
+
let lines = stdout.toString().split('\n');
|
|
738
|
+
lines.forEach(function (line) {
|
|
739
|
+
line = line.trim();
|
|
740
|
+
if (line !== '') {
|
|
741
|
+
line = line.split(',');
|
|
742
|
+
|
|
743
|
+
rIO += parseInt(line[10]);
|
|
744
|
+
wIO += parseInt(line[0]);
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
result = calcDiskIO(rIO, wIO, rWaitTime, wWaitTime, tWaitTime);
|
|
748
|
+
}
|
|
749
|
+
if (callback) {
|
|
750
|
+
callback(result);
|
|
751
|
+
}
|
|
752
|
+
resolve(result);
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
} else {
|
|
756
|
+
result.rIO = _disk_io.rIO;
|
|
757
|
+
result.wIO = _disk_io.wIO;
|
|
758
|
+
result.tIO = _disk_io.rIO + _disk_io.wIO;
|
|
759
|
+
result.ms = _disk_io.last_ms;
|
|
760
|
+
result.rIO_sec = _disk_io.rIO_sec;
|
|
761
|
+
result.wIO_sec = _disk_io.wIO_sec;
|
|
762
|
+
result.tIO_sec = _disk_io.tIO_sec;
|
|
763
|
+
result.rWaitTime = _disk_io.rWaitTime;
|
|
764
|
+
result.wWaitTime = _disk_io.wWaitTime;
|
|
765
|
+
result.tWaitTime = _disk_io.tWaitTime;
|
|
766
|
+
result.rWaitPercent = _disk_io.rWaitPercent;
|
|
767
|
+
result.wWaitPercent = _disk_io.wWaitPercent;
|
|
768
|
+
result.tWaitPercent = _disk_io.tWaitPercent;
|
|
769
|
+
if (callback) {
|
|
770
|
+
callback(result);
|
|
771
|
+
}
|
|
772
|
+
resolve(result);
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
exports.disksIO = disksIO;
|
|
779
|
+
|
|
780
|
+
function diskLayout(callback) {
|
|
781
|
+
|
|
782
|
+
function getVendorFromModel(model) {
|
|
783
|
+
const diskManufacturers = [
|
|
784
|
+
{ pattern: 'WESTERN.*', manufacturer: 'Western Digital' },
|
|
785
|
+
{ pattern: '^WDC.*', manufacturer: 'Western Digital' },
|
|
786
|
+
{ pattern: 'WD.*', manufacturer: 'Western Digital' },
|
|
787
|
+
{ pattern: 'TOSHIBA.*', manufacturer: 'Toshiba' },
|
|
788
|
+
{ pattern: 'HITACHI.*', manufacturer: 'Hitachi' },
|
|
789
|
+
{ pattern: '^IC.*', manufacturer: 'Hitachi' },
|
|
790
|
+
{ pattern: '^HTS.*', manufacturer: 'Hitachi' },
|
|
791
|
+
{ pattern: 'SANDISK.*', manufacturer: 'SanDisk' },
|
|
792
|
+
{ pattern: 'KINGSTON.*', manufacturer: 'Kingston Technology' },
|
|
793
|
+
{ pattern: '^SONY.*', manufacturer: 'Sony' },
|
|
794
|
+
{ pattern: 'TRANSCEND.*', manufacturer: 'Transcend' },
|
|
795
|
+
{ pattern: 'SAMSUNG.*', manufacturer: 'Samsung' },
|
|
796
|
+
{ pattern: '^ST(?!I\\ ).*', manufacturer: 'Seagate' },
|
|
797
|
+
{ pattern: '^STI\\ .*', manufacturer: 'SimpleTech' },
|
|
798
|
+
{ pattern: '^D...-.*', manufacturer: 'IBM' },
|
|
799
|
+
{ pattern: '^IBM.*', manufacturer: 'IBM' },
|
|
800
|
+
{ pattern: '^FUJITSU.*', manufacturer: 'Fujitsu' },
|
|
801
|
+
{ pattern: '^MP.*', manufacturer: 'Fujitsu' },
|
|
802
|
+
{ pattern: '^MK.*', manufacturer: 'Toshiba' },
|
|
803
|
+
{ pattern: 'MAXTO.*', manufacturer: 'Maxtor' },
|
|
804
|
+
{ pattern: 'PIONEER.*', manufacturer: 'Pioneer' },
|
|
805
|
+
{ pattern: 'PHILIPS.*', manufacturer: 'Philips' },
|
|
806
|
+
{ pattern: 'QUANTUM.*', manufacturer: 'Quantum Technology' },
|
|
807
|
+
{ pattern: 'FIREBALL.*', manufacturer: 'Quantum Technology' },
|
|
808
|
+
{ pattern: '^VBOX.*', manufacturer: 'VirtualBox' },
|
|
809
|
+
{ pattern: 'CORSAIR.*', manufacturer: 'Corsair Components' },
|
|
810
|
+
{ pattern: 'CRUCIAL.*', manufacturer: 'Crucial' },
|
|
811
|
+
{ pattern: 'ECM.*', manufacturer: 'ECM' },
|
|
812
|
+
{ pattern: 'INTEL.*', manufacturer: 'INTEL' },
|
|
813
|
+
{ pattern: 'EVO.*', manufacturer: 'Samsung' },
|
|
814
|
+
{ pattern: 'APPLE.*', manufacturer: 'Apple' },
|
|
815
|
+
];
|
|
816
|
+
|
|
817
|
+
let result = '';
|
|
818
|
+
if (model) {
|
|
819
|
+
model = model.toUpperCase();
|
|
820
|
+
diskManufacturers.forEach((manufacturer) => {
|
|
821
|
+
const re = RegExp(manufacturer.pattern);
|
|
822
|
+
if (re.test(model)) { result = manufacturer.manufacturer; }
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
return result;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
return new Promise((resolve) => {
|
|
829
|
+
process.nextTick(() => {
|
|
830
|
+
|
|
831
|
+
const commitResult = res => {
|
|
832
|
+
for (let i = 0; i < res.length; i++) {
|
|
833
|
+
delete res[i].BSDName;
|
|
834
|
+
}
|
|
835
|
+
if (callback) {
|
|
836
|
+
callback(res);
|
|
837
|
+
}
|
|
838
|
+
resolve(res);
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
let result = [];
|
|
842
|
+
let cmd = '';
|
|
843
|
+
|
|
844
|
+
if (_linux) {
|
|
845
|
+
let cmdFullSmart = '';
|
|
846
|
+
|
|
847
|
+
exec('export LC_ALL=C; lsblk -ablJO 2>/dev/null; unset LC_ALL', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
848
|
+
if (!error) {
|
|
849
|
+
try {
|
|
850
|
+
const out = stdout.toString().trim();
|
|
851
|
+
let devices = [];
|
|
852
|
+
try {
|
|
853
|
+
const outJSON = JSON.parse(out);
|
|
854
|
+
if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) {
|
|
855
|
+
devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fsType === null && item.parttype === null)); });
|
|
856
|
+
}
|
|
857
|
+
} catch (e) {
|
|
858
|
+
// fallback to older version of lsblk
|
|
859
|
+
const out2 = execSync('export LC_ALL=C; lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER,GROUP 2>/dev/null; unset LC_ALL').toString();
|
|
860
|
+
let lines = blkStdoutToObject(out2).split('\n');
|
|
861
|
+
const data = parseBlk(lines);
|
|
862
|
+
devices = data.filter(item => { return (item.type === 'disk') && item.size > 0 && ((item.model !== null && item.model !== '') || (item.mount === '' && item.label === '' && item.fsType === '')); });
|
|
863
|
+
}
|
|
864
|
+
devices.forEach((device) => {
|
|
865
|
+
let mediumType = '';
|
|
866
|
+
const BSDName = '/dev/' + device.name;
|
|
867
|
+
const logical = device.name;
|
|
868
|
+
try {
|
|
869
|
+
mediumType = execSync('cat /sys/block/' + logical + '/queue/rotational 2>/dev/null').toString().split('\n')[0];
|
|
870
|
+
} catch (e) {
|
|
871
|
+
util.noop();
|
|
872
|
+
}
|
|
873
|
+
let interfaceType = device.tran ? device.tran.toUpperCase().trim() : '';
|
|
874
|
+
if (interfaceType === 'NVME') {
|
|
875
|
+
mediumType = '2';
|
|
876
|
+
interfaceType = 'PCIe';
|
|
877
|
+
}
|
|
878
|
+
result.push({
|
|
879
|
+
device: BSDName,
|
|
880
|
+
type: (mediumType === '0' ? 'SSD' : (mediumType === '1' ? 'HD' : (mediumType === '2' ? 'NVMe' : (device.model && device.model.indexOf('SSD') > -1 ? 'SSD' : (device.model && device.model.indexOf('NVM') > -1 ? 'NVMe' : 'HD'))))),
|
|
881
|
+
name: device.model || '',
|
|
882
|
+
vendor: getVendorFromModel(device.model) || (device.vendor ? device.vendor.trim() : ''),
|
|
883
|
+
size: device.size || 0,
|
|
884
|
+
bytesPerSector: null,
|
|
885
|
+
totalCylinders: null,
|
|
886
|
+
totalHeads: null,
|
|
887
|
+
totalSectors: null,
|
|
888
|
+
totalTracks: null,
|
|
889
|
+
tracksPerCylinder: null,
|
|
890
|
+
sectorsPerTrack: null,
|
|
891
|
+
firmwareRevision: device.rev ? device.rev.trim() : '',
|
|
892
|
+
serialNum: device.serial ? device.serial.trim() : '',
|
|
893
|
+
interfaceType: interfaceType,
|
|
894
|
+
smartStatus: 'unknown',
|
|
895
|
+
temperature: null,
|
|
896
|
+
BSDName: BSDName
|
|
897
|
+
});
|
|
898
|
+
cmd += `printf "\n${BSDName}|"; smartctl -H ${BSDName} | grep overall;`;
|
|
899
|
+
cmdFullSmart += `${cmdFullSmart ? 'printf ",";' : ''}smartctl -a -j ${BSDName};`;
|
|
900
|
+
});
|
|
901
|
+
} catch (e) {
|
|
902
|
+
util.noop();
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
// check S.M.A.R.T. status
|
|
906
|
+
if (cmdFullSmart) {
|
|
907
|
+
exec(cmdFullSmart, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
908
|
+
try {
|
|
909
|
+
const data = JSON.parse(`[${stdout}]`);
|
|
910
|
+
data.forEach(disk => {
|
|
911
|
+
const diskBSDName = disk.smartctl.argv[disk.smartctl.argv.length - 1];
|
|
912
|
+
|
|
913
|
+
for (let i = 0; i < result.length; i++) {
|
|
914
|
+
if (result[i].BSDName === diskBSDName) {
|
|
915
|
+
result[i].smartStatus = (disk.smart_status.passed ? 'Ok' : (disk.smart_status.passed === false ? 'Predicted Failure' : 'unknown'));
|
|
916
|
+
if (disk.temperature && disk.temperature.current) {
|
|
917
|
+
result[i].temperature = disk.temperature.current;
|
|
918
|
+
}
|
|
919
|
+
result[i].smartData = disk;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
commitResult(result);
|
|
924
|
+
} catch (e) {
|
|
925
|
+
if (cmd) {
|
|
926
|
+
cmd = cmd + 'printf "\n"';
|
|
927
|
+
exec(cmd, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
928
|
+
let lines = stdout.toString().split('\n');
|
|
929
|
+
lines.forEach(line => {
|
|
930
|
+
if (line) {
|
|
931
|
+
let parts = line.split('|');
|
|
932
|
+
if (parts.length === 2) {
|
|
933
|
+
let BSDName = parts[0];
|
|
934
|
+
parts[1] = parts[1].trim();
|
|
935
|
+
let parts2 = parts[1].split(':');
|
|
936
|
+
if (parts2.length === 2) {
|
|
937
|
+
parts2[1] = parts2[1].trim();
|
|
938
|
+
let status = parts2[1].toLowerCase();
|
|
939
|
+
for (let i = 0; i < result.length; i++) {
|
|
940
|
+
if (result[i].BSDName === BSDName) {
|
|
941
|
+
result[i].smartStatus = (status === 'passed' ? 'Ok' : (status === 'failed!' ? 'Predicted Failure' : 'unknown'));
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
commitResult(result);
|
|
949
|
+
});
|
|
950
|
+
} else {
|
|
951
|
+
commitResult(result);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
});
|
|
955
|
+
} else {
|
|
956
|
+
commitResult(result);
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
if (_freebsd || _openbsd || _netbsd) {
|
|
961
|
+
if (callback) { callback(result); }
|
|
962
|
+
resolve(result);
|
|
963
|
+
}
|
|
964
|
+
if (_sunos) {
|
|
965
|
+
if (callback) { callback(result); }
|
|
966
|
+
resolve(result);
|
|
967
|
+
}
|
|
968
|
+
if (_darwin) {
|
|
969
|
+
exec('system_profiler SPSerialATADataType SPNVMeDataType SPUSBDataType', { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
970
|
+
if (!error) {
|
|
971
|
+
// split by type:
|
|
972
|
+
let lines = stdout.toString().split('\n');
|
|
973
|
+
let linesSATA = [];
|
|
974
|
+
let linesNVMe = [];
|
|
975
|
+
let linesUSB = [];
|
|
976
|
+
let dataType = 'SATA';
|
|
977
|
+
lines.forEach(line => {
|
|
978
|
+
if (line === 'NVMExpress:') { dataType = 'NVMe'; }
|
|
979
|
+
else if (line === 'USB:') { dataType = 'USB'; }
|
|
980
|
+
else if (line === 'SATA/SATA Express:') { dataType = 'SATA'; }
|
|
981
|
+
else if (dataType === 'SATA') { linesSATA.push(line); }
|
|
982
|
+
else if (dataType === 'NVMe') { linesNVMe.push(line); }
|
|
983
|
+
else if (dataType === 'USB') { linesUSB.push(line); }
|
|
984
|
+
});
|
|
985
|
+
try {
|
|
986
|
+
// Serial ATA Drives
|
|
987
|
+
let devices = linesSATA.join('\n').split(' Physical Interconnect: ');
|
|
988
|
+
devices.shift();
|
|
989
|
+
devices.forEach(function (device) {
|
|
990
|
+
device = 'InterfaceType: ' + device;
|
|
991
|
+
let lines = device.split('\n');
|
|
992
|
+
const mediumType = util.getValue(lines, 'Medium Type', ':', true).trim();
|
|
993
|
+
const sizeStr = util.getValue(lines, 'capacity', ':', true).trim();
|
|
994
|
+
const BSDName = util.getValue(lines, 'BSD Name', ':', true).trim();
|
|
995
|
+
if (sizeStr) {
|
|
996
|
+
let sizeValue = 0;
|
|
997
|
+
if (sizeStr.indexOf('(') >= 0) {
|
|
998
|
+
sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
|
|
999
|
+
}
|
|
1000
|
+
if (!sizeValue) {
|
|
1001
|
+
sizeValue = parseInt(sizeStr);
|
|
1002
|
+
}
|
|
1003
|
+
if (sizeValue) {
|
|
1004
|
+
const smartStatusString = util.getValue(lines, 'S.M.A.R.T. status', ':', true).trim().toLowerCase();
|
|
1005
|
+
result.push({
|
|
1006
|
+
device: BSDName,
|
|
1007
|
+
type: mediumType.startsWith('Solid') ? 'SSD' : 'HD',
|
|
1008
|
+
name: util.getValue(lines, 'Model', ':', true).trim(),
|
|
1009
|
+
vendor: getVendorFromModel(util.getValue(lines, 'Model', ':', true).trim()) || util.getValue(lines, 'Manufacturer', ':', true),
|
|
1010
|
+
size: sizeValue,
|
|
1011
|
+
bytesPerSector: null,
|
|
1012
|
+
totalCylinders: null,
|
|
1013
|
+
totalHeads: null,
|
|
1014
|
+
totalSectors: null,
|
|
1015
|
+
totalTracks: null,
|
|
1016
|
+
tracksPerCylinder: null,
|
|
1017
|
+
sectorsPerTrack: null,
|
|
1018
|
+
firmwareRevision: util.getValue(lines, 'Revision', ':', true).trim(),
|
|
1019
|
+
serialNum: util.getValue(lines, 'Serial Number', ':', true).trim(),
|
|
1020
|
+
interfaceType: util.getValue(lines, 'InterfaceType', ':', true).trim(),
|
|
1021
|
+
smartStatus: smartStatusString === 'verified' ? 'OK' : smartStatusString || 'unknown',
|
|
1022
|
+
temperature: null,
|
|
1023
|
+
BSDName: BSDName
|
|
1024
|
+
});
|
|
1025
|
+
cmd = cmd + 'printf "\n' + BSDName + '|"; diskutil info /dev/' + BSDName + ' | grep SMART;';
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
} catch (e) {
|
|
1030
|
+
util.noop();
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
// NVME Drives
|
|
1034
|
+
try {
|
|
1035
|
+
let devices = linesNVMe.join('\n').split('\n\n Capacity:');
|
|
1036
|
+
devices.shift();
|
|
1037
|
+
devices.forEach(function (device) {
|
|
1038
|
+
device = '!Capacity: ' + device;
|
|
1039
|
+
let lines = device.split('\n');
|
|
1040
|
+
const linkWidth = util.getValue(lines, 'link width', ':', true).trim();
|
|
1041
|
+
const sizeStr = util.getValue(lines, '!capacity', ':', true).trim();
|
|
1042
|
+
const BSDName = util.getValue(lines, 'BSD Name', ':', true).trim();
|
|
1043
|
+
if (sizeStr) {
|
|
1044
|
+
let sizeValue = 0;
|
|
1045
|
+
if (sizeStr.indexOf('(') >= 0) {
|
|
1046
|
+
sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
|
|
1047
|
+
}
|
|
1048
|
+
if (!sizeValue) {
|
|
1049
|
+
sizeValue = parseInt(sizeStr);
|
|
1050
|
+
}
|
|
1051
|
+
if (sizeValue) {
|
|
1052
|
+
const smartStatusString = util.getValue(lines, 'S.M.A.R.T. status', ':', true).trim().toLowerCase();
|
|
1053
|
+
result.push({
|
|
1054
|
+
device: BSDName,
|
|
1055
|
+
type: 'NVMe',
|
|
1056
|
+
name: util.getValue(lines, 'Model', ':', true).trim(),
|
|
1057
|
+
vendor: getVendorFromModel(util.getValue(lines, 'Model', ':', true).trim()),
|
|
1058
|
+
size: sizeValue,
|
|
1059
|
+
bytesPerSector: null,
|
|
1060
|
+
totalCylinders: null,
|
|
1061
|
+
totalHeads: null,
|
|
1062
|
+
totalSectors: null,
|
|
1063
|
+
totalTracks: null,
|
|
1064
|
+
tracksPerCylinder: null,
|
|
1065
|
+
sectorsPerTrack: null,
|
|
1066
|
+
firmwareRevision: util.getValue(lines, 'Revision', ':', true).trim(),
|
|
1067
|
+
serialNum: util.getValue(lines, 'Serial Number', ':', true).trim(),
|
|
1068
|
+
interfaceType: ('PCIe ' + linkWidth).trim(),
|
|
1069
|
+
smartStatus: smartStatusString === 'verified' ? 'OK' : smartStatusString || 'unknown',
|
|
1070
|
+
temperature: null,
|
|
1071
|
+
BSDName: BSDName
|
|
1072
|
+
});
|
|
1073
|
+
cmd = cmd + 'printf "\n' + BSDName + '|"; diskutil info /dev/' + BSDName + ' | grep SMART;';
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
} catch (e) {
|
|
1078
|
+
util.noop();
|
|
1079
|
+
}
|
|
1080
|
+
// USB Drives
|
|
1081
|
+
try {
|
|
1082
|
+
let devices = linesUSB.join('\n').replaceAll('Media:\n ', 'Model:').split('\n\n Product ID:');
|
|
1083
|
+
devices.shift();
|
|
1084
|
+
devices.forEach(function (device) {
|
|
1085
|
+
let lines = device.split('\n');
|
|
1086
|
+
const sizeStr = util.getValue(lines, 'Capacity', ':', true).trim();
|
|
1087
|
+
const BSDName = util.getValue(lines, 'BSD Name', ':', true).trim();
|
|
1088
|
+
if (sizeStr) {
|
|
1089
|
+
let sizeValue = 0;
|
|
1090
|
+
if (sizeStr.indexOf('(') >= 0) {
|
|
1091
|
+
sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
|
|
1092
|
+
}
|
|
1093
|
+
if (!sizeValue) {
|
|
1094
|
+
sizeValue = parseInt(sizeStr);
|
|
1095
|
+
}
|
|
1096
|
+
if (sizeValue) {
|
|
1097
|
+
const smartStatusString = util.getValue(lines, 'S.M.A.R.T. status', ':', true).trim().toLowerCase();
|
|
1098
|
+
result.push({
|
|
1099
|
+
device: BSDName,
|
|
1100
|
+
type: 'USB',
|
|
1101
|
+
name: util.getValue(lines, 'Model', ':', true).trim().replaceAll(':', ''),
|
|
1102
|
+
vendor: getVendorFromModel(util.getValue(lines, 'Model', ':', true).trim()),
|
|
1103
|
+
size: sizeValue,
|
|
1104
|
+
bytesPerSector: null,
|
|
1105
|
+
totalCylinders: null,
|
|
1106
|
+
totalHeads: null,
|
|
1107
|
+
totalSectors: null,
|
|
1108
|
+
totalTracks: null,
|
|
1109
|
+
tracksPerCylinder: null,
|
|
1110
|
+
sectorsPerTrack: null,
|
|
1111
|
+
firmwareRevision: util.getValue(lines, 'Revision', ':', true).trim(),
|
|
1112
|
+
serialNum: util.getValue(lines, 'Serial Number', ':', true).trim(),
|
|
1113
|
+
interfaceType: 'USB',
|
|
1114
|
+
smartStatus: smartStatusString === 'verified' ? 'OK' : smartStatusString || 'unknown',
|
|
1115
|
+
temperature: null,
|
|
1116
|
+
BSDName: BSDName
|
|
1117
|
+
});
|
|
1118
|
+
cmd = cmd + 'printf "\n' + BSDName + '|"; diskutil info /dev/' + BSDName + ' | grep SMART;';
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
} catch (e) {
|
|
1123
|
+
util.noop();
|
|
1124
|
+
}
|
|
1125
|
+
if (cmd) {
|
|
1126
|
+
cmd = cmd + 'printf "\n"';
|
|
1127
|
+
exec(cmd, { maxBuffer: 1024 * 1024 }, function (error, stdout) {
|
|
1128
|
+
let lines = stdout.toString().split('\n');
|
|
1129
|
+
lines.forEach(line => {
|
|
1130
|
+
if (line) {
|
|
1131
|
+
let parts = line.split('|');
|
|
1132
|
+
if (parts.length === 2) {
|
|
1133
|
+
let BSDName = parts[0];
|
|
1134
|
+
parts[1] = parts[1].trim();
|
|
1135
|
+
let parts2 = parts[1].split(':');
|
|
1136
|
+
if (parts2.length === 2) {
|
|
1137
|
+
parts2[1] = parts2[1].trim();
|
|
1138
|
+
let status = parts2[1].toLowerCase();
|
|
1139
|
+
for (let i = 0; i < result.length; i++) {
|
|
1140
|
+
if (result[i].BSDName === BSDName) {
|
|
1141
|
+
result[i].smartStatus = (status === 'not supported' ? 'not supported' : (status === 'verified' ? 'Ok' : (status === 'failing' ? 'Predicted Failure' : 'unknown')));
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
for (let i = 0; i < result.length; i++) {
|
|
1149
|
+
delete result[i].BSDName;
|
|
1150
|
+
}
|
|
1151
|
+
if (callback) {
|
|
1152
|
+
callback(result);
|
|
1153
|
+
}
|
|
1154
|
+
resolve(result);
|
|
1155
|
+
});
|
|
1156
|
+
} else {
|
|
1157
|
+
for (let i = 0; i < result.length; i++) {
|
|
1158
|
+
delete result[i].BSDName;
|
|
1159
|
+
}
|
|
1160
|
+
if (callback) {
|
|
1161
|
+
callback(result);
|
|
1162
|
+
}
|
|
1163
|
+
resolve(result);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
if (_windows) {
|
|
1169
|
+
try {
|
|
1170
|
+
const workload = [];
|
|
1171
|
+
workload.push(util.powerShell('Get-WmiObject Win32_DiskDrive | select Caption,Size,Status,PNPDeviceId,BytesPerSector,TotalCylinders,TotalHeads,TotalSectors,TotalTracks,TracksPerCylinder,SectorsPerTrack,FirmwareRevision,SerialNumber,InterfaceType | fl'));
|
|
1172
|
+
workload.push(util.powerShell('Get-PhysicalDisk | select BusType,MediaType,FriendlyName,Model,SerialNumber,Size | fl'));
|
|
1173
|
+
if (util.smartMonToolsInstalled()) {
|
|
1174
|
+
try {
|
|
1175
|
+
const smartDev = JSON.parse(execSync('smartctl --scan -j'));
|
|
1176
|
+
if (smartDev && smartDev.devices && smartDev.devices.length > 0) {
|
|
1177
|
+
smartDev.devices.forEach((dev) => {
|
|
1178
|
+
workload.push(execPromiseSave(`smartctl -j -a ${dev.name}`, util.execOptsWin));
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
} catch (e) {
|
|
1182
|
+
util.noop();
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
util.promiseAll(
|
|
1186
|
+
workload
|
|
1187
|
+
).then(data => {
|
|
1188
|
+
let devices = data.results[0].toString().split(/\n\s*\n/);
|
|
1189
|
+
devices.forEach(function (device) {
|
|
1190
|
+
let lines = device.split('\r\n');
|
|
1191
|
+
const size = util.getValue(lines, 'Size', ':').trim();
|
|
1192
|
+
const status = util.getValue(lines, 'Status', ':').trim().toLowerCase();
|
|
1193
|
+
if (size) {
|
|
1194
|
+
result.push({
|
|
1195
|
+
device: util.getValue(lines, 'PNPDeviceId', ':'),
|
|
1196
|
+
type: device.indexOf('SSD') > -1 ? 'SSD' : 'HD', // just a starting point ... better: MSFT_PhysicalDisk - Media Type ... see below
|
|
1197
|
+
name: util.getValue(lines, 'Caption', ':'),
|
|
1198
|
+
vendor: getVendorFromModel(util.getValue(lines, 'Caption', ':', true).trim()),
|
|
1199
|
+
size: parseInt(size),
|
|
1200
|
+
bytesPerSector: parseInt(util.getValue(lines, 'BytesPerSector', ':')),
|
|
1201
|
+
totalCylinders: parseInt(util.getValue(lines, 'TotalCylinders', ':')),
|
|
1202
|
+
totalHeads: parseInt(util.getValue(lines, 'TotalHeads', ':')),
|
|
1203
|
+
totalSectors: parseInt(util.getValue(lines, 'TotalSectors', ':')),
|
|
1204
|
+
totalTracks: parseInt(util.getValue(lines, 'TotalTracks', ':')),
|
|
1205
|
+
tracksPerCylinder: parseInt(util.getValue(lines, 'TracksPerCylinder', ':')),
|
|
1206
|
+
sectorsPerTrack: parseInt(util.getValue(lines, 'SectorsPerTrack', ':')),
|
|
1207
|
+
firmwareRevision: util.getValue(lines, 'FirmwareRevision', ':').trim(),
|
|
1208
|
+
serialNum: util.getValue(lines, 'SerialNumber', ':').trim(),
|
|
1209
|
+
interfaceType: util.getValue(lines, 'InterfaceType', ':').trim(),
|
|
1210
|
+
smartStatus: (status === 'ok' ? 'Ok' : (status === 'degraded' ? 'Degraded' : (status === 'pred fail' ? 'Predicted Failure' : 'Unknown'))),
|
|
1211
|
+
temperature: null,
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
devices = data.results[1].split(/\n\s*\n/);
|
|
1216
|
+
devices.forEach(function (device) {
|
|
1217
|
+
let lines = device.split('\r\n');
|
|
1218
|
+
const serialNum = util.getValue(lines, 'SerialNumber', ':').trim();
|
|
1219
|
+
const name = util.getValue(lines, 'FriendlyName', ':').trim().replace('Msft ', 'Microsoft');
|
|
1220
|
+
const size = util.getValue(lines, 'Size', ':').trim();
|
|
1221
|
+
const model = util.getValue(lines, 'Model', ':').trim();
|
|
1222
|
+
const interfaceType = util.getValue(lines, 'BusType', ':').trim();
|
|
1223
|
+
let mediaType = util.getValue(lines, 'MediaType', ':').trim();
|
|
1224
|
+
if (mediaType === '3' || mediaType === 'HDD') { mediaType = 'HD'; }
|
|
1225
|
+
if (mediaType === '4') { mediaType = 'SSD'; }
|
|
1226
|
+
if (mediaType === '5') { mediaType = 'SCM'; }
|
|
1227
|
+
if (mediaType === 'Unspecified' && (model.toLowerCase().indexOf('virtual') > -1 || model.toLowerCase().indexOf('vbox') > -1)) { mediaType = 'Virtual'; }
|
|
1228
|
+
if (size) {
|
|
1229
|
+
let i = util.findObjectByKey(result, 'serialNum', serialNum);
|
|
1230
|
+
if (i === -1 || serialNum === '') {
|
|
1231
|
+
i = util.findObjectByKey(result, 'name', name);
|
|
1232
|
+
}
|
|
1233
|
+
if (i != -1) {
|
|
1234
|
+
result[i].type = mediaType;
|
|
1235
|
+
result[i].interfaceType = interfaceType;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1239
|
+
// S.M.A.R.T
|
|
1240
|
+
data.results.shift();
|
|
1241
|
+
data.results.shift();
|
|
1242
|
+
data.results.forEach((smartStr) => {
|
|
1243
|
+
const smartData = JSON.parse(smartStr);
|
|
1244
|
+
if (smartData.serial_number) {
|
|
1245
|
+
const serialNum = smartData.serial_number;
|
|
1246
|
+
let i = util.findObjectByKey(result, 'serialNum', serialNum);
|
|
1247
|
+
if (i != -1) {
|
|
1248
|
+
result[i].smartStatus = (smartData.smart_status.passed ? 'Ok' : (smartData.smart_status.passed === false ? 'Predicted Failure' : 'unknown'));
|
|
1249
|
+
if (smartData.temperature && smartData.temperature.current) {
|
|
1250
|
+
result[i].temperature = smartData.temperature.current;
|
|
1251
|
+
}
|
|
1252
|
+
result[i].smartData = smartData;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
if (callback) {
|
|
1257
|
+
callback(result);
|
|
1258
|
+
}
|
|
1259
|
+
resolve(result);
|
|
1260
|
+
});
|
|
1261
|
+
} catch (e) {
|
|
1262
|
+
if (callback) { callback(result); }
|
|
1263
|
+
resolve(result);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
exports.diskLayout = diskLayout;
|