harperdb 3.2.1 → 3.3.0

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.
Files changed (578) hide show
  1. package/README.md +20 -11
  2. package/bin/BinObjects.jsc +0 -0
  3. package/bin/harperdb.jsc +0 -0
  4. package/bin/install.jsc +0 -0
  5. package/bin/register.jsc +0 -0
  6. package/bin/run.jsc +0 -0
  7. package/bin/stop.jsc +0 -0
  8. package/bin/upgrade.jsc +0 -0
  9. package/bin/utility.jsc +0 -0
  10. package/bin/version.jsc +0 -0
  11. package/coverage/lcov.info +7142 -6704
  12. package/data_layer/CreateAttributeObject.jsc +0 -0
  13. package/data_layer/CreateTableObject.jsc +0 -0
  14. package/data_layer/DataLayerObjects.jsc +0 -0
  15. package/data_layer/DeleteBeforeObject.jsc +0 -0
  16. package/data_layer/DeleteObject.jsc +0 -0
  17. package/data_layer/DropAttributeObject.jsc +0 -0
  18. package/data_layer/InsertObject.jsc +0 -0
  19. package/data_layer/ReadTransactionLogObject.jsc +0 -0
  20. package/data_layer/SQLSearch.jsc +0 -0
  21. package/data_layer/SearchByConditionsObject.jsc +0 -0
  22. package/data_layer/SearchByHashObject.jsc +0 -0
  23. package/data_layer/SearchObject.jsc +0 -0
  24. package/data_layer/SqlSearchObject.jsc +0 -0
  25. package/data_layer/UpdateObject.jsc +0 -0
  26. package/data_layer/UpsertObject.jsc +0 -0
  27. package/data_layer/bulkLoad.jsc +0 -0
  28. package/data_layer/data_objects/BulkLoadObjects.jsc +0 -0
  29. package/data_layer/data_objects/UpsertObject.jsc +0 -0
  30. package/data_layer/delete.jsc +0 -0
  31. package/data_layer/export.jsc +0 -0
  32. package/data_layer/harperBridge/BridgeMethods.jsc +0 -0
  33. package/data_layer/harperBridge/bridgeUtility/checkForNewAttr.jsc +0 -0
  34. package/data_layer/harperBridge/bridgeUtility/convertOperationToTransaction.jsc +0 -0
  35. package/data_layer/harperBridge/bridgeUtility/evaluateTableGetAttributes.jsc +0 -0
  36. package/data_layer/harperBridge/bridgeUtility/insertUpdateReturnObj.jsc +0 -0
  37. package/data_layer/harperBridge/bridgeUtility/insertUpdateValidate.jsc +0 -0
  38. package/data_layer/harperBridge/harperBridge.jsc +0 -0
  39. package/data_layer/harperBridge/lmdbBridge/LMDBBridge.jsc +0 -0
  40. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/DeleteTransactionsBeforeResults.jsc +0 -0
  41. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.jsc +0 -0
  42. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.jsc +0 -0
  43. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.jsc +0 -0
  44. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.jsc +0 -0
  45. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.jsc +0 -0
  46. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecordsBefore.jsc +0 -0
  47. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteTransactionLogsBefore.jsc +0 -0
  48. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.jsc +0 -0
  49. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.jsc +0 -0
  50. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.jsc +0 -0
  51. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.jsc +0 -0
  52. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.jsc +0 -0
  53. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadTransactionLog.jsc +0 -0
  54. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.jsc +0 -0
  55. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.jsc +0 -0
  56. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.jsc +0 -0
  57. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.jsc +0 -0
  58. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.jsc +0 -0
  59. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.jsc +0 -0
  60. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.jsc +0 -0
  61. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.jsc +0 -0
  62. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.jsc +0 -0
  63. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.jsc +0 -0
  64. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.jsc +0 -0
  65. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.jsc +0 -0
  66. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/ThreadSearchObject.jsc +0 -0
  67. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.jsc +0 -0
  68. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.jsc +0 -0
  69. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.jsc +0 -0
  70. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsEnvironment.jsc +0 -0
  71. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbDropAllAttributes.jsc +0 -0
  72. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.jsc +0 -0
  73. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.jsc +0 -0
  74. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.jsc +0 -0
  75. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbThreadSearch.jsc +0 -0
  76. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.jsc +0 -0
  77. package/data_layer/hdbInfoController.jsc +0 -0
  78. package/data_layer/insert.jsc +0 -0
  79. package/data_layer/readTransactionLog.jsc +0 -0
  80. package/data_layer/schema.jsc +0 -0
  81. package/data_layer/schemaDescribe.jsc +0 -0
  82. package/data_layer/search.jsc +0 -0
  83. package/data_layer/update.jsc +0 -0
  84. package/events/ClusterStatusEmitter.jsc +0 -0
  85. package/events/SioServerStoppedEvent.jsc +0 -0
  86. package/events/SocketClusterStatusEmitter.jsc +0 -0
  87. package/license/LICENSE +91 -1
  88. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/README.md +1 -0
  89. package/node_modules/{node-addon-api/src/nothing.c → @msgpackr-extract/msgpackr-extract-linux-x64/index.js} +0 -0
  90. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/node.abi93.glibc.node +0 -0
  91. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/node.abi93.musl.node +0 -0
  92. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/node.napi.glibc.node +0 -0
  93. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/node.napi.musl.node +0 -0
  94. package/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/package.json +53 -0
  95. package/node_modules/{msgpackr-extract → lmdb-store}/.github/workflows/prebuild.yml +9 -10
  96. package/node_modules/lmdb-store/.idea/lmdb-store.iml +12 -0
  97. package/node_modules/lmdb-store/.idea/misc.xml +6 -0
  98. package/node_modules/lmdb-store/.idea/modules.xml +8 -0
  99. package/node_modules/lmdb-store/.idea/workspace.xml +4 -0
  100. package/node_modules/lmdb-store/README.md +393 -388
  101. package/node_modules/lmdb-store/benchmark/index.js +162 -162
  102. package/node_modules/lmdb-store/binding.gyp +79 -88
  103. package/node_modules/lmdb-store/caching.js +113 -113
  104. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/COPYRIGHT +20 -20
  105. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/Doxyfile +1631 -1631
  106. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/LICENSE +47 -47
  107. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.c +183 -183
  108. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.h +14 -14
  109. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/crypto.c +121 -121
  110. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/intro.doc +192 -192
  111. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb.c +12125 -12125
  112. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_copy.1 +74 -74
  113. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_copy.c +106 -106
  114. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_drop.1 +53 -53
  115. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_drop.c +154 -154
  116. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_dump.1 +94 -94
  117. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_dump.c +333 -333
  118. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_load.1 +97 -97
  119. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_load.c +530 -530
  120. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_stat.1 +83 -83
  121. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb_stat.c +276 -276
  122. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.c +452 -452
  123. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.h +208 -208
  124. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/module.c +101 -101
  125. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/module.h +16 -16
  126. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest.c +178 -178
  127. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest2.c +124 -124
  128. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest3.c +133 -133
  129. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest4.c +168 -168
  130. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest5.c +135 -135
  131. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest6.c +141 -141
  132. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest_enc.c +190 -190
  133. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest_enc2.c +189 -189
  134. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/mtest_remap.c +177 -177
  135. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/sample-bdb.txt +73 -73
  136. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/sample-mdb.txt +62 -62
  137. package/node_modules/lmdb-store/dependencies/lmdb/libraries/liblmdb/tooltag +27 -27
  138. package/node_modules/lmdb-store/dependencies/lz4/LICENSE +11 -11
  139. package/node_modules/lmdb-store/dependencies/lz4/lib/README.md +137 -137
  140. package/node_modules/lmdb-store/dependencies/lz4/lib/dll/example/README.md +69 -69
  141. package/node_modules/lmdb-store/dependencies/lz4/lib/lz4frame.c +1899 -1899
  142. package/node_modules/lmdb-store/dependencies/lz4/lib/xxhash.c +1030 -1030
  143. package/node_modules/lmdb-store/dependencies/lz4/lib/xxhash.h +328 -328
  144. package/node_modules/lmdb-store/dist/index.cjs +2591 -0
  145. package/node_modules/lmdb-store/dist/index.cjs.map +1 -0
  146. package/node_modules/lmdb-store/index.d.ts +323 -323
  147. package/node_modules/lmdb-store/index.js +1274 -1274
  148. package/node_modules/lmdb-store/index.mjs +3 -3
  149. package/node_modules/lmdb-store/package.json +16 -11
  150. package/node_modules/lmdb-store/prebuilds/darwin-arm64/electron.abi98.node +0 -0
  151. package/node_modules/lmdb-store/prebuilds/darwin-arm64/node.abi83.node +0 -0
  152. package/node_modules/lmdb-store/prebuilds/darwin-arm64/node.abi93.node +0 -0
  153. package/node_modules/lmdb-store/prebuilds/darwin-x64/electron.abi98.node +0 -0
  154. package/node_modules/lmdb-store/prebuilds/darwin-x64/node.abi83.node +0 -0
  155. package/node_modules/lmdb-store/prebuilds/darwin-x64/node.abi93.node +0 -0
  156. package/node_modules/lmdb-store/prebuilds/linux-arm64/electron.abi98.node +0 -0
  157. package/node_modules/lmdb-store/prebuilds/linux-arm64/node.abi83.node +0 -0
  158. package/node_modules/lmdb-store/prebuilds/linux-arm64/node.abi93.node +0 -0
  159. package/node_modules/lmdb-store/prebuilds/linux-x64/electron.abi98.node +0 -0
  160. package/node_modules/lmdb-store/prebuilds/linux-x64/node.abi83.musl.node +0 -0
  161. package/node_modules/lmdb-store/prebuilds/linux-x64/node.abi83.node +0 -0
  162. package/node_modules/lmdb-store/prebuilds/linux-x64/node.abi93.musl.node +0 -0
  163. package/node_modules/lmdb-store/prebuilds/linux-x64/node.abi93.node +0 -0
  164. package/node_modules/lmdb-store/prebuilds/win32-x64/electron.abi98.node +0 -0
  165. package/node_modules/lmdb-store/prebuilds/win32-x64/node.abi83.node +0 -0
  166. package/node_modules/lmdb-store/prebuilds/win32-x64/node.abi93.node +0 -0
  167. package/node_modules/lmdb-store/src/compression.cpp +181 -181
  168. package/node_modules/lmdb-store/src/cursor.cpp +407 -407
  169. package/node_modules/lmdb-store/src/dbi.cpp +354 -354
  170. package/node_modules/lmdb-store/src/env.cpp +1134 -1134
  171. package/node_modules/lmdb-store/src/misc.cpp +528 -528
  172. package/node_modules/lmdb-store/src/node-lmdb.cpp +44 -44
  173. package/node_modules/lmdb-store/src/node-lmdb.h +965 -965
  174. package/node_modules/lmdb-store/src/ordered-binary.cpp +337 -337
  175. package/node_modules/lmdb-store/src/txn.cpp +513 -513
  176. package/node_modules/lmdb-store/src/v8-fast-api-calls.h +419 -419
  177. package/node_modules/lmdb-store/src/windows.c +30 -30
  178. package/node_modules/lmdb-store/test/index.test.js +584 -584
  179. package/node_modules/lmdb-store/test/node-lmdb.test.js +1525 -1525
  180. package/node_modules/lmdb-store/test/threads.js +100 -100
  181. package/node_modules/lmdb-store/util/ArrayLikeIterable.js +136 -136
  182. package/node_modules/lmdb-store/util/WeakValueMap.js +40 -40
  183. package/node_modules/lmdb-store/util/upgrade-lmdb.js +46 -46
  184. package/node_modules/lmdb-store/util/when.js +8 -8
  185. package/node_modules/microtime/.github/workflows/release.yml +76 -0
  186. package/node_modules/microtime/.github/workflows/test.yml +46 -0
  187. package/node_modules/microtime/README.md +0 -2
  188. package/node_modules/microtime/binding.gyp +28 -10
  189. package/node_modules/microtime/package.json +25 -20
  190. package/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node +0 -0
  191. package/node_modules/microtime/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
  192. package/node_modules/microtime/prebuilds/linux-arm/node.napi.armv7.node +0 -0
  193. package/node_modules/microtime/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
  194. package/node_modules/microtime/prebuilds/linux-x64/electron.napi.node +0 -0
  195. package/node_modules/microtime/prebuilds/linux-x64/node.napi.node +0 -0
  196. package/node_modules/microtime/prebuilds/win32-ia32/electron.napi.node +0 -0
  197. package/node_modules/microtime/prebuilds/win32-ia32/node.napi.node +0 -0
  198. package/node_modules/microtime/prebuilds/win32-x64/electron.napi.node +0 -0
  199. package/node_modules/microtime/prebuilds/win32-x64/node.napi.node +0 -0
  200. package/node_modules/msgpackr/dist/index.js +1929 -1917
  201. package/node_modules/msgpackr/dist/index.min.js +67 -68
  202. package/node_modules/msgpackr/dist/node.cjs +1994 -1980
  203. package/node_modules/msgpackr/dist/test.js +683 -1235
  204. package/node_modules/msgpackr/index.d.ts +23 -12
  205. package/node_modules/msgpackr/node-index.js +23 -21
  206. package/node_modules/msgpackr/pack.js +935 -931
  207. package/node_modules/msgpackr/package.json +24 -12
  208. package/node_modules/msgpackr/unpack.d.ts +52 -50
  209. package/node_modules/msgpackr/unpack.js +1061 -1053
  210. package/node_modules/msgpackr-extract/bin/download-prebuilds.js +11 -0
  211. package/node_modules/msgpackr-extract/binding.gyp +22 -5
  212. package/node_modules/msgpackr-extract/index.js +1 -1
  213. package/node_modules/msgpackr-extract/package.json +46 -21
  214. package/node_modules/msgpackr-extract/src/.vs/ProjectSettings.json +3 -0
  215. package/node_modules/msgpackr-extract/src/.vs/VSWorkspaceState.json +7 -0
  216. package/node_modules/msgpackr-extract/src/.vs/slnx.sqlite +0 -0
  217. package/node_modules/msgpackr-extract/src/.vs/src/v16/.suo +0 -0
  218. package/node_modules/msgpackr-extract/src/.vs/src/v16/Browse.VC.db +0 -0
  219. package/node_modules/msgpackr-extract/{prebuilds/darwin-x64/node.abi72.node → src/.vs/src/v16/Browse.VC.db-shm} +0 -0
  220. package/node_modules/msgpackr-extract/src/.vs/src/v16/Browse.VC.db-wal +0 -0
  221. package/node_modules/msgpackr-extract/src/extract.cpp +272 -269
  222. package/node_modules/nan/package.json +0 -1
  223. package/node_modules/node-addon-api/README.md +146 -53
  224. package/node_modules/node-addon-api/common.gypi +21 -0
  225. package/node_modules/node-addon-api/except.gypi +25 -0
  226. package/node_modules/node-addon-api/index.js +7 -41
  227. package/node_modules/node-addon-api/napi-inl.deprecated.h +8 -8
  228. package/node_modules/node-addon-api/napi-inl.h +2795 -633
  229. package/node_modules/node-addon-api/napi.h +1547 -597
  230. package/node_modules/node-addon-api/node_api.gyp +9 -0
  231. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  232. package/node_modules/node-addon-api/nothing.c +0 -0
  233. package/node_modules/node-addon-api/package-support.json +21 -0
  234. package/node_modules/node-addon-api/package.json +203 -13
  235. package/node_modules/node-addon-api/tools/README.md +12 -6
  236. package/node_modules/node-addon-api/tools/clang-format.js +71 -0
  237. package/node_modules/node-addon-api/tools/conversion.js +4 -8
  238. package/node_modules/node-addon-api/tools/eslint-format.js +71 -0
  239. package/node_modules/node-gyp-build/README.md +17 -14
  240. package/node_modules/node-gyp-build/bin.js +28 -15
  241. package/node_modules/node-gyp-build/index.js +145 -34
  242. package/node_modules/node-gyp-build/package.json +18 -15
  243. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/LICENSE +0 -0
  244. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/README.md +0 -0
  245. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/bin.js +1 -1
  246. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/build-test.js +0 -0
  247. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/index.js +17 -11
  248. package/node_modules/{lmdb-store/node_modules/node-gyp-build → node-gyp-build-optional-packages}/optional.js +0 -0
  249. package/node_modules/{msgpackr-extract/node_modules/node-gyp-build → node-gyp-build-optional-packages}/package.json +17 -17
  250. package/package.json +12 -11
  251. package/security/JWTObjects.jsc +0 -0
  252. package/security/auth.jsc +0 -0
  253. package/security/cryptoHash.jsc +0 -0
  254. package/security/data_objects/PermissionAttributeResponseObject.jsc +0 -0
  255. package/security/data_objects/PermissionResponseObject.jsc +0 -0
  256. package/security/data_objects/PermissionTableResponseObject.jsc +0 -0
  257. package/security/permissionsTranslator.jsc +0 -0
  258. package/security/role.jsc +0 -0
  259. package/security/tokenAuthentication.jsc +0 -0
  260. package/security/user.jsc +0 -0
  261. package/server/ClusteringOriginObject.jsc +0 -0
  262. package/server/JobObject.jsc +0 -0
  263. package/server/clustering/ClusterStatusObject.jsc +0 -0
  264. package/server/clustering/NodeObject.jsc +0 -0
  265. package/server/clustering/clusterUtilities.jsc +0 -0
  266. package/server/configuration.jsc +0 -0
  267. package/server/customFunctions/customFunctionsServer.jsc +0 -0
  268. package/server/customFunctions/helpers/getCORSOptions.jsc +0 -0
  269. package/server/customFunctions/helpers/getHeaderTimeoutConfig.jsc +0 -0
  270. package/server/customFunctions/helpers/getServerOptions.jsc +0 -0
  271. package/server/customFunctions/operations.jsc +0 -0
  272. package/server/customFunctions/operationsValidation.jsc +0 -0
  273. package/server/harperdb/hdbServer.jsc +0 -0
  274. package/server/ipc/IPCClient.jsc +0 -0
  275. package/server/ipc/hdbIpcServer.jsc +0 -0
  276. package/server/ipc/serverHandlers.jsc +0 -0
  277. package/server/ipc/utility/IPCEventObject.jsc +0 -0
  278. package/server/ipc/utility/ipcUtils.jsc +0 -0
  279. package/server/jobRunner.jsc +0 -0
  280. package/server/jobThread.jsc +0 -0
  281. package/server/jobs.jsc +0 -0
  282. package/server/serverHelpers/OperationFunctionObject.jsc +0 -0
  283. package/server/serverHelpers/requestTimePlugin.jsc +0 -0
  284. package/server/serverHelpers/serverHandlers.jsc +0 -0
  285. package/server/serverHelpers/serverUtilities.jsc +0 -0
  286. package/server/socketcluster/Server.jsc +0 -0
  287. package/server/socketcluster/broker.jsc +0 -0
  288. package/server/socketcluster/connector/HDBSocketConnector.jsc +0 -0
  289. package/server/socketcluster/connector/InterNodeSocketConnector.jsc +0 -0
  290. package/server/socketcluster/connector/SocketConnector.jsc +0 -0
  291. package/server/socketcluster/connector/spawnSCConnection.jsc +0 -0
  292. package/server/socketcluster/decisionMatrix/CoreDecisionMatrix.jsc +0 -0
  293. package/server/socketcluster/decisionMatrix/DecisionMatrixIF.jsc +0 -0
  294. package/server/socketcluster/decisionMatrix/rules/AssignToHdbChildWorkerRule.jsc +0 -0
  295. package/server/socketcluster/decisionMatrix/rules/CallRoomMsgHandlerRule.jsc +0 -0
  296. package/server/socketcluster/decisionMatrix/rules/CleanDataObjectRule.jsc +0 -0
  297. package/server/socketcluster/decisionMatrix/rules/CommandCollection.jsc +0 -0
  298. package/server/socketcluster/decisionMatrix/rules/DummyRule.jsc +0 -0
  299. package/server/socketcluster/decisionMatrix/rules/RulesIF.jsc +0 -0
  300. package/server/socketcluster/decisionMatrix/rules/StripHdbHeaderRule.jsc +0 -0
  301. package/server/socketcluster/decisionMatrix/rules/TestRule.jsc +0 -0
  302. package/server/socketcluster/handlers/NodeConnectionsHandler.jsc +0 -0
  303. package/server/socketcluster/handlers/SCServer.jsc +0 -0
  304. package/server/socketcluster/handlers/ServerSocket.jsc +0 -0
  305. package/server/socketcluster/interNodeConnectionLauncher.jsc +0 -0
  306. package/server/socketcluster/messageQueue/MessageQueueIF.jsc +0 -0
  307. package/server/socketcluster/middleware/AuthMiddleware.jsc +0 -0
  308. package/server/socketcluster/middleware/ConnectionNameCheckMiddleware.jsc +0 -0
  309. package/server/socketcluster/middleware/GenericMiddleware.jsc +0 -0
  310. package/server/socketcluster/middleware/MessagePrepMiddleware.jsc +0 -0
  311. package/server/socketcluster/middleware/MiddlewareFactory.jsc +0 -0
  312. package/server/socketcluster/middleware/MiddlewareIF.jsc +0 -0
  313. package/server/socketcluster/middleware/OriginatorCheckMiddleware.jsc +0 -0
  314. package/server/socketcluster/middleware/RequestDataValidMiddleware.jsc +0 -0
  315. package/server/socketcluster/middleware/StampOriginatorMiddleware.jsc +0 -0
  316. package/server/socketcluster/middleware/StampRequestMiddleware.jsc +0 -0
  317. package/server/socketcluster/observer/EventableIF.jsc +0 -0
  318. package/server/socketcluster/room/AddUserRoom.jsc +0 -0
  319. package/server/socketcluster/room/AlterUserRoom.jsc +0 -0
  320. package/server/socketcluster/room/CoreRoom.jsc +0 -0
  321. package/server/socketcluster/room/CreateAttributeRoom.jsc +0 -0
  322. package/server/socketcluster/room/CreateSchemaRoom.jsc +0 -0
  323. package/server/socketcluster/room/CreateTableRoom.jsc +0 -0
  324. package/server/socketcluster/room/DropUserRoom.jsc +0 -0
  325. package/server/socketcluster/room/HDBNodeRoom.jsc +0 -0
  326. package/server/socketcluster/room/RoomIF.jsc +0 -0
  327. package/server/socketcluster/room/RoomMessageObjects.jsc +0 -0
  328. package/server/socketcluster/room/UsersRoom.jsc +0 -0
  329. package/server/socketcluster/room/WatchHDBWorkersRoom.jsc +0 -0
  330. package/server/socketcluster/room/WorkerRoom.jsc +0 -0
  331. package/server/socketcluster/room/roomFactory.jsc +0 -0
  332. package/server/socketcluster/socketClusterObjects.jsc +0 -0
  333. package/server/socketcluster/types.jsc +0 -0
  334. package/server/socketcluster/util/clusterData.jsc +0 -0
  335. package/server/socketcluster/util/socketClusterUtils.jsc +0 -0
  336. package/server/socketcluster/worker/ClusterWorker.jsc +0 -0
  337. package/server/socketcluster/worker/WorkerIF.jsc +0 -0
  338. package/server/socketcluster/worker/WorkerObjects.jsc +0 -0
  339. package/server/transactToClusteringUtilities.jsc +0 -0
  340. package/sqlTranslator/SelectValidator.jsc +0 -0
  341. package/sqlTranslator/alasqlFunctionImporter.jsc +0 -0
  342. package/sqlTranslator/conditionPatterns.jsc +0 -0
  343. package/sqlTranslator/deleteTranslator.jsc +0 -0
  344. package/sqlTranslator/index.jsc +0 -0
  345. package/sqlTranslator/sql_statement_bucket.jsc +0 -0
  346. package/upgrade/EnvironmentVariable.jsc +0 -0
  347. package/upgrade/UpgradeDirective.jsc +0 -0
  348. package/upgrade/UpgradeObjects.jsc +0 -0
  349. package/upgrade/directives/3-0-0.jsc +0 -0
  350. package/upgrade/directives/3-1-0.jsc +0 -0
  351. package/upgrade/directives/directivesController.jsc +0 -0
  352. package/upgrade/directives/upgrade_scripts/3_0_0_reindex_script.jsc +0 -0
  353. package/upgrade/directivesManager.jsc +0 -0
  354. package/upgrade/lmdb/nodeLMDB/DBIDefinition.jsc +0 -0
  355. package/upgrade/lmdb/nodeLMDB/OpenDBIObject.jsc +0 -0
  356. package/upgrade/lmdb/nodeLMDB/OpenEnvironmentObject.jsc +0 -0
  357. package/upgrade/lmdb/nodeLMDB/commonErrors.jsc +0 -0
  358. package/upgrade/lmdb/nodeLMDB/commonUtility.jsc +0 -0
  359. package/upgrade/lmdb/nodeLMDB/environmentUtility.jsc +0 -0
  360. package/upgrade/lmdb/nodeLMDB/terms.jsc +0 -0
  361. package/upgrade/upgradePrompt.jsc +0 -0
  362. package/upgrade/upgradeUtilities.jsc +0 -0
  363. package/utility/AWS/AWSConnector.jsc +0 -0
  364. package/utility/OperationFunctionCaller.jsc +0 -0
  365. package/utility/common_utils.jsc +0 -0
  366. package/utility/environment/SystemInformationObject.jsc +0 -0
  367. package/utility/environment/SystemInformationOperation.jsc +0 -0
  368. package/utility/environment/environmentManager.jsc +0 -0
  369. package/utility/environment/systemInformation.jsc +0 -0
  370. package/utility/errors/commonErrors.jsc +0 -0
  371. package/utility/errors/hdbError.jsc +0 -0
  372. package/utility/functions/date/dateFunctions.jsc +0 -0
  373. package/utility/functions/geo.jsc +0 -0
  374. package/utility/functions/math/avg.jsc +0 -0
  375. package/utility/functions/math/count.jsc +0 -0
  376. package/utility/functions/sql/alaSQLExtension.jsc +0 -0
  377. package/utility/functions/string/compare.jsc +0 -0
  378. package/utility/globalSchema.jsc +0 -0
  379. package/utility/hdbTerms.jsc +0 -0
  380. package/utility/install/checkJWTTokensExist.jsc +0 -0
  381. package/utility/install/installer.jsc +0 -0
  382. package/utility/install_user_permission.jsc +0 -0
  383. package/utility/lmdb/DBIDefinition.jsc +0 -0
  384. package/utility/lmdb/DeleteRecordsResponseObject.jsc +0 -0
  385. package/utility/lmdb/InsertRecordsResponseObject.jsc +0 -0
  386. package/utility/lmdb/OpenDBIObject.jsc +0 -0
  387. package/utility/lmdb/OpenEnvironmentObject.jsc +0 -0
  388. package/utility/lmdb/UpdateRecordsResponseObject.jsc +0 -0
  389. package/utility/lmdb/UpsertRecordsResponseObject.jsc +0 -0
  390. package/utility/lmdb/cleanLMDBMap.jsc +0 -0
  391. package/utility/lmdb/commonUtility.jsc +0 -0
  392. package/utility/lmdb/deleteUtility.jsc +0 -0
  393. package/utility/lmdb/environmentUtility.jsc +0 -0
  394. package/utility/lmdb/searchCursorFunctions.jsc +0 -0
  395. package/utility/lmdb/searchUtility.jsc +0 -0
  396. package/utility/lmdb/terms.jsc +0 -0
  397. package/utility/lmdb/writeUtility.jsc +0 -0
  398. package/utility/logging/harper_logger.jsc +0 -0
  399. package/utility/mount_hdb.jsc +0 -0
  400. package/utility/npmUtilities.jsc +0 -0
  401. package/utility/operation_authorization.jsc +0 -0
  402. package/utility/password.jsc +0 -0
  403. package/utility/pm2/servicesConfig.jsc +0 -0
  404. package/utility/pm2/utilityFunctions.jsc +0 -0
  405. package/utility/psList.jsc +0 -0
  406. package/utility/registration/hdb_license.jsc +0 -0
  407. package/utility/registration/licenseObjects.jsc +0 -0
  408. package/utility/registration/registrationHandler.jsc +0 -0
  409. package/utility/scripts/restartHdb.jsc +0 -0
  410. package/utility/signalling.jsc +0 -0
  411. package/utility/system_info.jsc +0 -0
  412. package/validation/bulkDeleteValidator.jsc +0 -0
  413. package/validation/check_permissions.jsc +0 -0
  414. package/validation/clustering/configureValidator.jsc +0 -0
  415. package/validation/common_validators.jsc +0 -0
  416. package/validation/conditionalDeleteValidator.jsc +0 -0
  417. package/validation/deleteValidator.jsc +0 -0
  418. package/validation/fileLoadValidator.jsc +0 -0
  419. package/validation/insertValidator.jsc +0 -0
  420. package/validation/nodeSubscriptionValidator.jsc +0 -0
  421. package/validation/nodeValidator.jsc +0 -0
  422. package/validation/readLogValidator.jsc +0 -0
  423. package/validation/registration/license_key_object.jsc +0 -0
  424. package/validation/role_validation.jsc +0 -0
  425. package/validation/schemaMetadataValidator.jsc +0 -0
  426. package/validation/schema_validator.jsc +0 -0
  427. package/validation/searchValidator.jsc +0 -0
  428. package/validation/user_validation.jsc +0 -0
  429. package/validation/validationWrapper.jsc +0 -0
  430. package/node_modules/lmdb-store/build/Makefile +0 -324
  431. package/node_modules/lmdb-store/build/Release/.deps/Release/lmdb-store.node.d +0 -1
  432. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.o.d +0 -6
  433. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb.o.d +0 -8
  434. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.o.d +0 -8
  435. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/dependencies/lz4/lib/lz4.o.d +0 -5
  436. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/compression.o.d +0 -72
  437. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/cursor.o.d +0 -73
  438. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/dbi.o.d +0 -73
  439. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/env.o.d +0 -73
  440. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/misc.o.d +0 -73
  441. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/node-lmdb.o.d +0 -73
  442. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/ordered-binary.o.d +0 -73
  443. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/txn.o.d +0 -73
  444. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store/src/windows.o.d +0 -3
  445. package/node_modules/lmdb-store/build/Release/.deps/Release/obj.target/lmdb-store.node.d +0 -1
  446. package/node_modules/lmdb-store/build/Release/lmdb-store.node +0 -0
  447. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/chacha8.o +0 -0
  448. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/mdb.o +0 -0
  449. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/dependencies/lmdb/libraries/liblmdb/midl.o +0 -0
  450. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/dependencies/lz4/lib/lz4.o +0 -0
  451. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/compression.o +0 -0
  452. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/cursor.o +0 -0
  453. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/dbi.o +0 -0
  454. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/env.o +0 -0
  455. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/misc.o +0 -0
  456. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/node-lmdb.o +0 -0
  457. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/ordered-binary.o +0 -0
  458. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/txn.o +0 -0
  459. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store/src/windows.o +0 -0
  460. package/node_modules/lmdb-store/build/Release/obj.target/lmdb-store.node +0 -0
  461. package/node_modules/lmdb-store/build/binding.Makefile +0 -6
  462. package/node_modules/lmdb-store/build/config.gypi +0 -426
  463. package/node_modules/lmdb-store/build/lmdb-store.target.mk +0 -206
  464. package/node_modules/lmdb-store/node_modules/node-gyp-build/package.json +0 -60
  465. package/node_modules/lmdb-store/prebuilds/darwin-x64/electron.abi87.node +0 -0
  466. package/node_modules/lmdb-store/prebuilds/darwin-x64/node.abi72.node +0 -0
  467. package/node_modules/lmdb-store/prebuilds/darwin-x64/node.abi88.node +0 -0
  468. package/node_modules/lmdb-store/prebuilds/win32-x64/electron.abi87.node +0 -0
  469. package/node_modules/lmdb-store/prebuilds/win32-x64/node.abi72.node +0 -0
  470. package/node_modules/lmdb-store/prebuilds/win32-x64/node.abi88.node +0 -0
  471. package/node_modules/microtime/prebuilds/darwin-x64/electron-napi.node +0 -0
  472. package/node_modules/microtime/prebuilds/darwin-x64/node-napi.node +0 -0
  473. package/node_modules/microtime/prebuilds/linux-arm/electron-napi.node +0 -0
  474. package/node_modules/microtime/prebuilds/linux-arm/node-napi.node +0 -0
  475. package/node_modules/microtime/prebuilds/linux-x64/electron-napi.node +0 -0
  476. package/node_modules/microtime/prebuilds/linux-x64/node-napi.node +0 -0
  477. package/node_modules/microtime/prebuilds/win32-x64/electron-napi.node +0 -0
  478. package/node_modules/microtime/prebuilds/win32-x64/node-napi.node +0 -0
  479. package/node_modules/msgpackr-extract/.circleci/config.yml +0 -19
  480. package/node_modules/msgpackr-extract/.travis.yml +0 -30
  481. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/LICENSE +0 -21
  482. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/README.md +0 -58
  483. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/bin.js +0 -77
  484. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/build-test.js +0 -19
  485. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/index.js +0 -202
  486. package/node_modules/msgpackr-extract/node_modules/node-gyp-build/optional.js +0 -7
  487. package/node_modules/msgpackr-extract/prebuilds/darwin-arm64/electron.abi98.node +0 -0
  488. package/node_modules/msgpackr-extract/prebuilds/darwin-arm64/node.abi102.node +0 -0
  489. package/node_modules/msgpackr-extract/prebuilds/darwin-arm64/node.abi83.node +0 -0
  490. package/node_modules/msgpackr-extract/prebuilds/darwin-arm64/node.abi93.node +0 -0
  491. package/node_modules/msgpackr-extract/prebuilds/darwin-x64/electron.abi98.node +0 -0
  492. package/node_modules/msgpackr-extract/prebuilds/darwin-x64/node.abi102.node +0 -0
  493. package/node_modules/msgpackr-extract/prebuilds/darwin-x64/node.abi83.node +0 -0
  494. package/node_modules/msgpackr-extract/prebuilds/darwin-x64/node.abi88.node +0 -0
  495. package/node_modules/msgpackr-extract/prebuilds/darwin-x64/node.abi93.node +0 -0
  496. package/node_modules/msgpackr-extract/prebuilds/linux-arm64/electron.abi98.node +0 -0
  497. package/node_modules/msgpackr-extract/prebuilds/linux-arm64/node.abi102.node +0 -0
  498. package/node_modules/msgpackr-extract/prebuilds/linux-arm64/node.abi83.node +0 -0
  499. package/node_modules/msgpackr-extract/prebuilds/linux-arm64/node.abi93.node +0 -0
  500. package/node_modules/msgpackr-extract/prebuilds/linux-x64/electron.abi98.node +0 -0
  501. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi102.musl.node +0 -0
  502. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi102.node +0 -0
  503. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi72.musl.node +0 -0
  504. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi72.node +0 -0
  505. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi83.musl.node +0 -0
  506. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi83.node +0 -0
  507. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi88.node +0 -0
  508. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi93.musl.node +0 -0
  509. package/node_modules/msgpackr-extract/prebuilds/linux-x64/node.abi93.node +0 -0
  510. package/node_modules/msgpackr-extract/prebuilds/win32-x64/electron.abi98.node +0 -0
  511. package/node_modules/msgpackr-extract/prebuilds/win32-x64/node.abi102.node +0 -0
  512. package/node_modules/msgpackr-extract/prebuilds/win32-x64/node.abi72.node +0 -0
  513. package/node_modules/msgpackr-extract/prebuilds/win32-x64/node.abi83.node +0 -0
  514. package/node_modules/msgpackr-extract/prebuilds/win32-x64/node.abi88.node +0 -0
  515. package/node_modules/msgpackr-extract/prebuilds/win32-x64/node.abi93.node +0 -0
  516. package/node_modules/node-addon-api/.editorconfig +0 -8
  517. package/node_modules/node-addon-api/.travis.yml +0 -65
  518. package/node_modules/node-addon-api/CHANGELOG.md +0 -325
  519. package/node_modules/node-addon-api/CODE_OF_CONDUCT.md +0 -4
  520. package/node_modules/node-addon-api/CONTRIBUTING.md +0 -66
  521. package/node_modules/node-addon-api/appveyor.yml +0 -48
  522. package/node_modules/node-addon-api/doc/Doxyfile +0 -2450
  523. package/node_modules/node-addon-api/doc/array_buffer.md +0 -129
  524. package/node_modules/node-addon-api/doc/async_context.md +0 -76
  525. package/node_modules/node-addon-api/doc/async_operations.md +0 -31
  526. package/node_modules/node-addon-api/doc/async_worker.md +0 -397
  527. package/node_modules/node-addon-api/doc/basic_types.md +0 -415
  528. package/node_modules/node-addon-api/doc/bigint.md +0 -92
  529. package/node_modules/node-addon-api/doc/boolean.md +0 -64
  530. package/node_modules/node-addon-api/doc/buffer.md +0 -140
  531. package/node_modules/node-addon-api/doc/callback_scope.md +0 -54
  532. package/node_modules/node-addon-api/doc/callbackinfo.md +0 -97
  533. package/node_modules/node-addon-api/doc/checker-tool.md +0 -32
  534. package/node_modules/node-addon-api/doc/class_property_descriptor.md +0 -118
  535. package/node_modules/node-addon-api/doc/cmake-js.md +0 -19
  536. package/node_modules/node-addon-api/doc/conversion-tool.md +0 -28
  537. package/node_modules/node-addon-api/doc/creating_a_release.md +0 -62
  538. package/node_modules/node-addon-api/doc/dataview.md +0 -244
  539. package/node_modules/node-addon-api/doc/env.md +0 -63
  540. package/node_modules/node-addon-api/doc/error.md +0 -115
  541. package/node_modules/node-addon-api/doc/error_handling.md +0 -186
  542. package/node_modules/node-addon-api/doc/escapable_handle_scope.md +0 -82
  543. package/node_modules/node-addon-api/doc/external.md +0 -59
  544. package/node_modules/node-addon-api/doc/function.md +0 -294
  545. package/node_modules/node-addon-api/doc/function_reference.md +0 -238
  546. package/node_modules/node-addon-api/doc/generator.md +0 -13
  547. package/node_modules/node-addon-api/doc/handle_scope.md +0 -65
  548. package/node_modules/node-addon-api/doc/memory_management.md +0 -27
  549. package/node_modules/node-addon-api/doc/node-gyp.md +0 -82
  550. package/node_modules/node-addon-api/doc/number.md +0 -163
  551. package/node_modules/node-addon-api/doc/object.md +0 -202
  552. package/node_modules/node-addon-api/doc/object_lifetime_management.md +0 -83
  553. package/node_modules/node-addon-api/doc/object_reference.md +0 -117
  554. package/node_modules/node-addon-api/doc/object_wrap.md +0 -546
  555. package/node_modules/node-addon-api/doc/prebuild_tools.md +0 -16
  556. package/node_modules/node-addon-api/doc/promises.md +0 -74
  557. package/node_modules/node-addon-api/doc/property_descriptor.md +0 -231
  558. package/node_modules/node-addon-api/doc/range_error.md +0 -59
  559. package/node_modules/node-addon-api/doc/reference.md +0 -111
  560. package/node_modules/node-addon-api/doc/setup.md +0 -82
  561. package/node_modules/node-addon-api/doc/string.md +0 -89
  562. package/node_modules/node-addon-api/doc/symbol.md +0 -44
  563. package/node_modules/node-addon-api/doc/threadsafe_function.md +0 -303
  564. package/node_modules/node-addon-api/doc/type_error.md +0 -59
  565. package/node_modules/node-addon-api/doc/typed_array.md +0 -74
  566. package/node_modules/node-addon-api/doc/typed_array_of.md +0 -133
  567. package/node_modules/node-addon-api/doc/value.md +0 -269
  568. package/node_modules/node-addon-api/doc/version_management.md +0 -43
  569. package/node_modules/node-addon-api/doc/working_with_javascript_values.md +0 -14
  570. package/node_modules/node-addon-api/external-napi/node_api.h +0 -7
  571. package/node_modules/node-addon-api/src/node_api.cc +0 -3655
  572. package/node_modules/node-addon-api/src/node_api.gyp +0 -21
  573. package/node_modules/node-addon-api/src/node_api.h +0 -588
  574. package/node_modules/node-addon-api/src/node_api_types.h +0 -115
  575. package/node_modules/node-addon-api/src/node_internals.cc +0 -142
  576. package/node_modules/node-addon-api/src/node_internals.h +0 -157
  577. package/node_modules/node-addon-api/src/util-inl.h +0 -38
  578. package/node_modules/node-addon-api/src/util.h +0 -7
@@ -1,415 +0,0 @@
1
- # Basic Types
2
-
3
- Node Addon API consists of a few fundamental data types. These allow a user of
4
- the API to create, convert and introspect fundamental JavaScript types, and
5
- interoperate with their C++ counterparts.
6
-
7
- ## Value
8
-
9
- `Napi::Value` is the base class of Node Addon API's fundamental object type hierarchy.
10
- It represents a JavaScript value of an unknown type. It is a thin wrapper around
11
- the N-API datatype `napi_value`. Methods on this class can be used to check
12
- the JavaScript type of the underlying N-API `napi_value` and also to convert to
13
- C++ types.
14
-
15
- ### Constructor
16
-
17
- ```cpp
18
- Napi::Value::Value();
19
- ```
20
-
21
- Used to create a Node Addon API `Napi::Value` that represents an **empty** value.
22
-
23
- ```cpp
24
- Napi::Value::Value(napi_env env, napi_value value);
25
- ```
26
-
27
- - `[in] env` - The `napi_env` environment in which to construct the `Napi::Value`
28
- object.
29
- - `[in] value` - The underlying JavaScript value that the `Napi::Value` instance
30
- represents.
31
-
32
- Returns a Node.js Addon API `Napi::Value` that represents the `napi_value` passed
33
- in.
34
-
35
- ### Operators
36
-
37
- #### operator napi_value
38
-
39
- ```cpp
40
- Napi::Value::operator napi_value() const;
41
- ```
42
-
43
- Returns the underlying N-API `napi_value`. If the instance is _empty_, this
44
- returns `nullptr`.
45
-
46
- #### operator ==
47
-
48
- ```cpp
49
- bool Napi::Value::operator ==(const Value& other) const;
50
- ```
51
-
52
- Returns `true` if this value strictly equals another value, or `false` otherwise.
53
-
54
- #### operator !=
55
-
56
- ```cpp
57
- bool Napi::Value::operator !=(const Value& other) const;
58
- ```
59
-
60
- Returns `false` if this value strictly equals another value, or `true` otherwise.
61
-
62
- ### Methods
63
-
64
- #### From
65
- ```cpp
66
- template <typename T>
67
- static Napi::Value Napi::Value::From(napi_env env, const T& value);
68
- ```
69
-
70
- - `[in] env` - The `napi_env` environment in which to construct the `Napi::Value` object.
71
- - `[in] value` - The C++ type to represent in JavaScript.
72
-
73
- Returns a `Napi::Value` representing the input C++ type in JavaScript.
74
-
75
- This method is used to convert from a C++ type to a JavaScript value.
76
- Here, `value` may be any of:
77
- - `bool` - returns a `Napi::Boolean`.
78
- - Any integer type - returns a `Napi::Number`.
79
- - Any floating point type - returns a `Napi::Number`.
80
- - `const char*` (encoded using UTF-8, null-terminated) - returns a `Napi::String`.
81
- - `const char16_t*` (encoded using UTF-16-LE, null-terminated) - returns a `Napi::String`.
82
- - `std::string` (encoded using UTF-8) - returns a `Napi::String`.
83
- - `std::u16string` - returns a `Napi::String`.
84
- - `napi::Value` - returns a `Napi::Value`.
85
- - `napi_value` - returns a `Napi::Value`.
86
-
87
- #### As
88
- ```cpp
89
- template <typename T> T Napi::Value::As() const;
90
- ```
91
-
92
- Returns the `Napi::Value` cast to a desired C++ type.
93
-
94
- Use this when the actual type is known or assumed.
95
-
96
- Note:
97
- This conversion does NOT coerce the type. Calling any methods inappropriate for
98
- the actual value type will throw `Napi::Error`.
99
-
100
- #### StrictEquals
101
- ```cpp
102
- bool Napi::Value::StrictEquals(const Value& other) const;
103
- ```
104
-
105
- - `[in] other` - The value to compare against.
106
-
107
- Returns true if the other `Napi::Value` is strictly equal to this one.
108
-
109
- #### Env
110
- ```cpp
111
- Napi::Env Napi::Value::Env() const;
112
- ```
113
-
114
- Returns the environment that the value is associated with. See
115
- [`Napi::Env`](env.md) for more details about environments.
116
-
117
- #### IsEmpty
118
- ```cpp
119
- bool Napi::Value::IsEmpty() const;
120
- ```
121
-
122
- Returns `true` if the value is uninitialized.
123
-
124
- An empty value is invalid, and most attempts to perform an operation on an
125
- empty value will result in an exception. An empty value is distinct from
126
- JavaScript `null` or `undefined`, which are valid values.
127
-
128
- When C++ exceptions are disabled at compile time, a method with a `Napi::Value`
129
- return type may return an empty value to indicate a pending exception. If C++
130
- exceptions are not being used, callers should check the result of
131
- `Env::IsExceptionPending` before attempting to use the value.
132
-
133
- #### Type
134
- ```cpp
135
- napi_valuetype Napi::Value::Type() const;
136
- ```
137
-
138
- Returns the underlying N-API `napi_valuetype` of the value.
139
-
140
- #### IsUndefined
141
- ```cpp
142
- bool Napi::Value::IsUndefined() const;
143
- ```
144
-
145
- Returns `true` if the underlying value is a JavaScript `undefined` or `false`
146
- otherwise.
147
-
148
- #### IsNull
149
- ```cpp
150
- bool Napi::Value::IsNull() const;
151
- ```
152
-
153
- Returns `true` if the underlying value is a JavaScript `null` or `false`
154
- otherwise.
155
-
156
- #### IsBoolean
157
- ```cpp
158
- bool Napi::Value::IsBoolean() const;
159
- ```
160
-
161
- Returns `true` if the underlying value is a JavaScript `true` or JavaScript
162
- `false`, or `false` if the value is not a `Napi::Boolean` value in JavaScript.
163
-
164
- #### IsNumber
165
- ```cpp
166
- bool Napi::Value::IsNumber() const;
167
- ```
168
-
169
- Returns `true` if the underlying value is a JavaScript `Napi::Number` or `false`
170
- otherwise.
171
-
172
- #### IsString
173
- ```cpp
174
- bool Napi::Value::IsString() const;
175
- ```
176
-
177
- Returns `true` if the underlying value is a JavaScript `Napi::String` or `false`
178
- otherwise.
179
-
180
- #### IsSymbol
181
- ```cpp
182
- bool Napi::Value::IsSymbol() const;
183
- ```
184
-
185
- Returns `true` if the underlying value is a JavaScript `Napi::Symbol` or `false`
186
- otherwise.
187
-
188
- #### IsArray
189
- ```cpp
190
- bool Napi::Value::IsArray() const;
191
- ```
192
-
193
- Returns `true` if the underlying value is a JavaScript `Napi::Array` or `false`
194
- otherwise.
195
-
196
- #### IsArrayBuffer
197
- ```cpp
198
- bool Napi::Value::IsArrayBuffer() const;
199
- ```
200
-
201
- Returns `true` if the underlying value is a JavaScript `Napi::ArrayBuffer` or `false`
202
- otherwise.
203
-
204
- #### IsTypedArray
205
- ```cpp
206
- bool Napi::Value::IsTypedArray() const;
207
- ```
208
-
209
- Returns `true` if the underlying value is a JavaScript `Napi::TypedArray` or `false`
210
- otherwise.
211
-
212
- #### IsObject
213
- ```cpp
214
- bool Napi::Value::IsObject() const;
215
- ```
216
-
217
- Returns `true` if the underlying value is a JavaScript `Napi::Object` or `false`
218
- otherwise.
219
-
220
- #### IsFunction
221
- ```cpp
222
- bool Napi::Value::IsFunction() const;
223
- ```
224
-
225
- Returns `true` if the underlying value is a JavaScript `Napi::Function` or `false`
226
- otherwise.
227
-
228
- #### IsPromise
229
- ```cpp
230
- bool Napi::Value::IsPromise() const;
231
- ```
232
-
233
- Returns `true` if the underlying value is a JavaScript `Napi::Promise` or `false`
234
- otherwise.
235
-
236
- #### IsDataView
237
- ```cpp
238
- bool Napi::Value::IsDataView() const;
239
- ```
240
-
241
- Returns `true` if the underlying value is a JavaScript `Napi::DataView` or `false`
242
- otherwise.
243
-
244
- #### IsBuffer
245
- ```cpp
246
- bool Napi::Value::IsBuffer() const;
247
- ```
248
-
249
- Returns `true` if the underlying value is a Node.js `Napi::Buffer` or `false`
250
- otherwise.
251
-
252
- #### IsExternal
253
- ```cpp
254
- bool Napi::Value::IsExternal() const;
255
- ```
256
-
257
- Returns `true` if the underlying value is a N-API external object or `false`
258
- otherwise.
259
-
260
- #### ToBoolean
261
- ```cpp
262
- Napi::Boolean Napi::Value::ToBoolean() const;
263
- ```
264
-
265
- Returns a `Napi::Boolean` representing the `Napi::Value`.
266
-
267
- This is a wrapper around `napi_coerce_to_boolean`. This will throw a JavaScript
268
- exception if the coercion fails. If C++ exceptions are not being used, callers
269
- should check the result of `Env::IsExceptionPending` before attempting to use
270
- the returned value.
271
-
272
- #### ToNumber
273
- ```cpp
274
- Napi::Number Napi::Value::ToNumber() const;
275
- ```
276
-
277
- Returns a `Napi::Number` representing the `Napi::Value`.
278
-
279
- Note:
280
- This can cause script code to be executed according to JavaScript semantics.
281
- This is a wrapper around `napi_coerce_to_number`. This will throw a JavaScript
282
- exception if the coercion fails. If C++ exceptions are not being used, callers
283
- should check the result of `Env::IsExceptionPending` before attempting to use
284
- the returned value.
285
-
286
- #### ToString
287
- ```cpp
288
- Napi::String Napi::Value::ToString() const;
289
- ```
290
-
291
- Returns a `Napi::String` representing the `Napi::Value`.
292
-
293
- Note that this can cause script code to be executed according to JavaScript
294
- semantics. This is a wrapper around `napi_coerce_to_string`. This will throw a
295
- JavaScript exception if the coercion fails. If C++ exceptions are not being
296
- used, callers should check the result of `Env::IsExceptionPending` before
297
- attempting to use the returned value.
298
-
299
- #### ToObject
300
- ```cpp
301
- Napi::Object Napi::Value::ToObject() const;
302
- ```
303
-
304
- Returns a `Napi::Object` representing the `Napi::Value`.
305
-
306
- This is a wrapper around `napi_coerce_to_object`. This will throw a JavaScript
307
- exception if the coercion fails. If C++ exceptions are not being used, callers
308
- should check the result of `Env::IsExceptionPending` before attempting to use
309
- the returned value.
310
-
311
- ## Name
312
-
313
- Names are JavaScript values that can be used as a property name. There are two
314
- specialized types of names supported in Node.js Addon API [`Napi::String`](string.md)
315
- and [`Napi::Symbol`](symbol.md).
316
-
317
- ### Methods
318
-
319
- #### Constructor
320
- ```cpp
321
- Napi::Name::Name();
322
- ```
323
-
324
- Returns an empty `Napi::Name`.
325
-
326
- ```cpp
327
- Napi::Name::Name(napi_env env, napi_value value);
328
- ```
329
- - `[in] env` - The environment in which to create the array.
330
- - `[in] value` - The primitive to wrap.
331
-
332
- Returns a `Napi::Name` created from the JavaScript primitive.
333
-
334
- Note:
335
- The value is not coerced to a string.
336
-
337
- ## Array
338
-
339
- Arrays are native representations of JavaScript Arrays. `Napi::Array` is a wrapper
340
- around `napi_value` representing a JavaScript Array.
341
-
342
- [`Napi::TypedArray`][] and [`Napi::ArrayBuffer`][] correspond to JavaScript data
343
- types such as [`Int32Array`][] and [`ArrayBuffer`][], respectively, that can be
344
- used for transferring large amounts of data from JavaScript to the native side.
345
- An example illustrating the use of a JavaScript-provided `ArrayBuffer` in native
346
- code is available [here](https://github.com/nodejs/node-addon-examples/tree/master/array_buffer_to_native/node-addon-api).
347
-
348
- ### Constructor
349
- ```cpp
350
- Napi::Array::Array();
351
- ```
352
-
353
- Returns an empty array.
354
-
355
- If an error occurs, a `Napi::Error` will be thrown. If C++ exceptions are not
356
- being used, callers should check the result of `Env::IsExceptionPending` before
357
- attempting to use the returned value.
358
-
359
- ```cpp
360
- Napi::Array::Array(napi_env env, napi_value value);
361
- ```
362
- - `[in] env` - The environment in which to create the array.
363
- - `[in] value` - The primitive to wrap.
364
-
365
- Returns a `Napi::Array` wrapping a `napi_value`.
366
-
367
- If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not
368
- being used, callers should check the result of `Env::IsExceptionPending` before
369
- attempting to use the returned value.
370
-
371
- ### Methods
372
-
373
- #### New
374
- ```cpp
375
- static Napi::Array Napi::Array::New(napi_env env);
376
- ```
377
- - `[in] env` - The environment in which to create the array.
378
-
379
- Returns a new `Napi::Array`.
380
-
381
- If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not
382
- being used, callers should check the result of `Env::IsExceptionPending` before
383
- attempting to use the returned value.
384
-
385
- #### New
386
-
387
- ```cpp
388
- static Napi::Array Napi::Array::New(napi_env env, size_t length);
389
- ```
390
- - `[in] env` - The environment in which to create the array.
391
- - `[in] length` - The length of the array.
392
-
393
- Returns a new `Napi::Array` with the given length.
394
-
395
- If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not
396
- being used, callers should check the result of `Env::IsExceptionPending` before
397
- attempting to use the returned value.
398
-
399
- #### Length
400
- ```cpp
401
- uint32_t Napi::Array::Length() const;
402
- ```
403
-
404
- Returns the length of the array.
405
-
406
- Note:
407
- This can execute JavaScript code implicitly according to JavaScript semantics.
408
- If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not
409
- being used, callers should check the result of `Env::IsExceptionPending` before
410
- attempting to use the returned value.
411
-
412
- [`Napi::TypedArray`]: ./typed_array.md
413
- [`Napi::ArrayBuffer`]: ./array_buffer.md
414
- [`Int32Array`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int32Array
415
- [`ArrayBuffer`]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
@@ -1,92 +0,0 @@
1
- # BigInt
2
-
3
- A JavaScript BigInt value.
4
-
5
- ## Methods
6
-
7
- ### New
8
-
9
- ```cpp
10
- static Napi::BigInt Napi::BigInt::New(Napi::Env env, int64_t value);
11
- ```
12
-
13
- - `[in] env`: The environment in which to construct the `Napi::BigInt` object.
14
- - `[in] value`: The value the JavaScript `BigInt` will contain
15
-
16
- These APIs convert the C `int64_t` and `uint64_t` types to the JavaScript
17
- `BigInt` type.
18
-
19
- ```cpp
20
- static Napi::BigInt Napi::BigInt::New(Napi::Env env,
21
- int sign_bit,
22
- size_t word_count,
23
- const uint64_t* words);
24
- ```
25
-
26
- - `[in] env`: The environment in which to construct the `Napi::BigInt` object.
27
- - `[in] sign_bit`: Determines if the resulting `BigInt` will be positive or negative.
28
- - `[in] word_count`: The length of the words array.
29
- - `[in] words`: An array of `uint64_t` little-endian 64-bit words.
30
-
31
- This API converts an array of unsigned 64-bit words into a single `BigInt`
32
- value.
33
-
34
- The resulting `BigInt` is calculated as: (–1)<sup>`sign_bit`</sup> (`words[0]`
35
- × (2<sup>64</sup>)<sup>0</sup> + `words[1]` × (2<sup>64</sup>)<sup>1</sup> + …)
36
-
37
- Returns a new JavaScript `BigInt`.
38
-
39
- ### Constructor
40
-
41
- ```cpp
42
- Napi::BigInt();
43
- ```
44
-
45
- Returns a new empty JavaScript `Napi::BigInt`.
46
-
47
- ### Int64Value
48
-
49
- ```cpp
50
- int64_t Napi::BitInt::Int64Value(bool* lossless) const;
51
- ```
52
-
53
- - `[out] lossless`: Indicates whether the `BigInt` value was converted losslessly.
54
-
55
- Returns the C `int64_t` primitive equivalent of the given JavaScript
56
- `BigInt`. If needed it will truncate the value, setting lossless to false.
57
-
58
- ### Uint64Value
59
-
60
- ```cpp
61
- uint64_t Napi::BigInt::Uint64Value(bool* lossless) const;
62
- ```
63
-
64
- - `[out] lossless`: Indicates whether the `BigInt` value was converted
65
- losslessly.
66
-
67
- Returns the C `uint64_t` primitive equivalent of the given JavaScript
68
- `BigInt`. If needed it will truncate the value, setting lossless to false.
69
-
70
- ### WordCount
71
-
72
- ```cpp
73
- size_t Napi::BigInt::WordCount() const;
74
- ```
75
-
76
- Returns the number of words needed to store this `BigInt` value.
77
-
78
- ### ToWords
79
-
80
- ```cpp
81
- void Napi::BigInt::ToWords(size_t* word_count, int* sign_bit, uint64_t* words);
82
- ```
83
-
84
- - `[out] sign_bit`: Integer representing if the JavaScript `BigInt` is positive
85
- or negative.
86
- - `[in/out] word_count`: Must be initialized to the length of the words array.
87
- Upon return, it will be set to the actual number of words that would be
88
- needed to store this `BigInt`.
89
- - `[out] words`: Pointer to a pre-allocated 64-bit word array.
90
-
91
- Returns a single `BigInt` value into a sign bit, 64-bit little-endian array,
92
- and the number of elements in the array.
@@ -1,64 +0,0 @@
1
- # Boolean
2
-
3
- `Napi::Boolean` class is a representation of the JavaScript `Boolean` object. The
4
- `Napi::Boolean` class inherits its behavior from the `Napi::Value` class
5
- (for more info see: [`Napi::Value`](value.md)).
6
-
7
- ## Methods
8
-
9
- ### Constructor
10
-
11
- Creates a new empty instance of an `Napi::Boolean` object.
12
-
13
- ```cpp
14
- Napi::Boolean::Boolean();
15
- ```
16
-
17
- Returns a new _empty_ `Napi::Boolean` object.
18
-
19
- ### Contructor
20
-
21
- Creates a new instance of the `Napi::Boolean` object.
22
-
23
- ```cpp
24
- Napi::Boolean(napi_env env, napi_value value);
25
- ```
26
-
27
- - `[in] env`: The `napi_env` environment in which to construct the `Napi::Boolean` object.
28
- - `[in] value`: The `napi_value` which is a handle for a JavaScript `Boolean`.
29
-
30
- Returns a non-empty `Napi::Boolean` object.
31
-
32
- ### New
33
-
34
- Initializes a new instance of the `Napi::Boolean` object.
35
-
36
- ```cpp
37
- Napi::Boolean Napi::Boolean::New(napi_env env, bool value);
38
- ```
39
- - `[in] env`: The `napi_env` environment in which to construct the `Napi::Boolean` object.
40
- - `[in] value`: The primitive boolean value (`true` or `false`).
41
-
42
- Returns a new instance of the `Napi::Boolean` object.
43
-
44
- ### Value
45
-
46
- Converts a `Napi::Boolean` value to a boolean primitive.
47
-
48
- ```cpp
49
- bool Napi::Boolean::Value() const;
50
- ```
51
-
52
- Returns the boolean primitive type of the corresponding `Napi::Boolean` object.
53
-
54
- ## Operators
55
-
56
- ### operator bool
57
-
58
- Converts a `Napi::Boolean` value to a boolean primitive.
59
-
60
- ```cpp
61
- Napi::Boolean::operator bool() const;
62
- ```
63
-
64
- Returns the boolean primitive type of the corresponding `Napi::Boolean` object.
@@ -1,140 +0,0 @@
1
- # Buffer
2
-
3
- The `Napi::Buffer` class creates a projection of raw data that can be consumed by
4
- script.
5
-
6
- ## Methods
7
-
8
- ### New
9
-
10
- Allocates a new `Napi::Buffer` object with a given length.
11
-
12
- ```cpp
13
- static Napi::Buffer<T> Napi::Buffer::New(napi_env env, size_t length);
14
- ```
15
-
16
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
17
- - `[in] length`: The number of `T` elements to allocate.
18
-
19
- Returns a new `Napi::Buffer` object.
20
-
21
- ### New
22
-
23
- Wraps the provided external data into a new `Napi::Buffer` object.
24
-
25
- The `Napi::Buffer` object does not assume ownership for the data and expects it to be
26
- valid for the lifetime of the object. Since the `Napi::Buffer` is subject to garbage
27
- collection this overload is only suitable for data which is static and never
28
- needs to be freed.
29
-
30
- ```cpp
31
- static Napi::Buffer<T> Napi::Buffer::New(napi_env env, T* data, size_t length);
32
- ```
33
-
34
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
35
- - `[in] data`: The pointer to the external data to expose.
36
- - `[in] length`: The number of `T` elements in the external data.
37
-
38
- Returns a new `Napi::Buffer` object.
39
-
40
- ### New
41
-
42
- Wraps the provided external data into a new `Napi::Buffer` object.
43
-
44
- The `Napi::Buffer` object does not assume ownership for the data and expects it
45
- to be valid for the lifetime of the object. The data can only be freed once the
46
- `finalizeCallback` is invoked to indicate that the `Napi::Buffer` has been released.
47
-
48
- ```cpp
49
- template <typename Finalizer>
50
- static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
51
- T* data,
52
- size_t length,
53
- Finalizer finalizeCallback);
54
- ```
55
-
56
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
57
- - `[in] data`: The pointer to the external data to expose.
58
- - `[in] length`: The number of `T` elements in the external data.
59
- - `[in] finalizeCallback`: The function to be called when the `Napi::Buffer` is
60
- destroyed. It must implement `operator()`, accept a `T*` (which is the
61
- external data pointer), and return `void`.
62
-
63
- Returns a new `Napi::Buffer` object.
64
-
65
- ### New
66
-
67
- Wraps the provided external data into a new `Napi::Buffer` object.
68
-
69
- The `Napi::Buffer` object does not assume ownership for the data and expects it to be
70
- valid for the lifetime of the object. The data can only be freed once the
71
- `finalizeCallback` is invoked to indicate that the `Napi::Buffer` has been released.
72
-
73
- ```cpp
74
- template <typename Finalizer, typename Hint>
75
- static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
76
- T* data,
77
- size_t length,
78
- Finalizer finalizeCallback,
79
- Hint* finalizeHint);
80
- ```
81
-
82
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
83
- - `[in] data`: The pointer to the external data to expose.
84
- - `[in] length`: The number of `T` elements in the external data.
85
- - `[in] finalizeCallback`: The function to be called when the `Napi::Buffer` is
86
- destroyed. It must implement `operator()`, accept a `T*` (which is the
87
- external data pointer) and `Hint*`, and return `void`.
88
- - `[in] finalizeHint`: The hint to be passed as the second parameter of the
89
- finalize callback.
90
-
91
- Returns a new `Napi::Buffer` object.
92
-
93
- ### Copy
94
-
95
- Allocates a new `Napi::Buffer` object and copies the provided external data into it.
96
-
97
- ```cpp
98
- static Napi::Buffer<T> Napi::Buffer::Copy(napi_env env, const T* data, size_t length);
99
- ```
100
-
101
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
102
- - `[in] data`: The pointer to the external data to copy.
103
- - `[in] length`: The number of `T` elements in the external data.
104
-
105
- Returns a new `Napi::Buffer` object containing a copy of the data.
106
-
107
- ### Constructor
108
-
109
- Initializes an empty instance of the `Napi::Buffer` class.
110
-
111
- ```cpp
112
- Napi::Buffer::Buffer();
113
- ```
114
-
115
- ### Constructor
116
-
117
- Initializes the `Napi::Buffer` object using an existing Uint8Array.
118
-
119
- ```cpp
120
- Napi::Buffer::Buffer(napi_env env, napi_value value);
121
- ```
122
-
123
- - `[in] env`: The environment in which to create the `Napi::Buffer` object.
124
- - `[in] value`: The Uint8Array reference to wrap.
125
-
126
- ### Data
127
-
128
- ```cpp
129
- T* Napi::Buffer::Data() const;
130
- ```
131
-
132
- Returns a pointer the external data.
133
-
134
- ### Length
135
-
136
- ```cpp
137
- size_t Napi::Buffer::Length() const;
138
- ```
139
-
140
- Returns the number of `T` elements in the external data.