@proteinjs/reflection-build 1.4.10 → 1.4.12

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 (273) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/LICENSE → LICENSE} +5 -6
  3. package/dist/src/tsconfigTemplate.json +1 -0
  4. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  5. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  6. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  7. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  8. package/package.json +5 -4
  9. package/src/tsconfigTemplate.json +1 -0
  10. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  11. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  12. package/test/examples/source-repository/a/dist/tsconfigTemplate.json +1 -0
  13. package/test/examples/source-repository/a/generated/index.ts +38 -33
  14. package/test/examples/source-repository/a/node_modules/.package-lock.json +0 -57
  15. package/test/examples/source-repository/a/package-lock.json +0 -4
  16. package/test/examples/source-repository/a/package.json +1 -1
  17. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  18. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  19. package/test/examples/source-repository/b/dist/tsconfigTemplate.json +1 -0
  20. package/test/examples/source-repository/b/generated/index.ts +10 -11
  21. package/test/examples/source-repository/b/node_modules/.package-lock.json +0 -57
  22. package/test/examples/source-repository/b/package-lock.json +0 -4
  23. package/test/examples/source-repository/b/package.json +1 -1
  24. package/tsconfig.json +1 -0
  25. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  26. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  27. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  28. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  29. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  30. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  31. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  32. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  33. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  34. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  35. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  36. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  37. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  38. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  39. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  40. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  41. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  42. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  43. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  44. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  45. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  46. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  47. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  48. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  49. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  50. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +0 -5
  51. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  52. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +0 -42
  53. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  54. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  55. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  56. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  57. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  58. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  59. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  60. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  61. package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +0 -22
  62. package/test/examples/source-repository/a/node_modules/bindings/README.md +0 -98
  63. package/test/examples/source-repository/a/node_modules/bindings/bindings.js +0 -221
  64. package/test/examples/source-repository/a/node_modules/bindings/package.json +0 -28
  65. package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +0 -30
  66. package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +0 -21
  67. package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +0 -20
  68. package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +0 -74
  69. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +0 -2
  70. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +0 -66
  71. package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +0 -32
  72. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +0 -24
  73. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +0 -13
  74. package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +0 -22
  75. package/test/examples/source-repository/a/node_modules/fsevents/README.md +0 -89
  76. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +0 -46
  77. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +0 -83
  78. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
  79. package/test/examples/source-repository/a/node_modules/fsevents/package.json +0 -62
  80. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  81. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  82. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  83. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  84. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  85. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  86. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  87. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +0 -79
  88. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  89. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  90. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -191
  91. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -772
  92. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  93. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  94. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  95. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  96. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  97. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  98. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  99. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  100. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  101. package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +0 -557
  102. package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +0 -138
  103. package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +0 -9
  104. package/test/examples/source-repository/a/node_modules/nan/README.md +0 -456
  105. package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +0 -146
  106. package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +0 -54
  107. package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +0 -76
  108. package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +0 -41
  109. package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +0 -226
  110. package/test/examples/source-repository/a/node_modules/nan/doc/json.md +0 -62
  111. package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +0 -583
  112. package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +0 -672
  113. package/test/examples/source-repository/a/node_modules/nan/doc/new.md +0 -147
  114. package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +0 -123
  115. package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +0 -263
  116. package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +0 -296
  117. package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +0 -73
  118. package/test/examples/source-repository/a/node_modules/nan/doc/script.md +0 -58
  119. package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +0 -62
  120. package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +0 -199
  121. package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +0 -85
  122. package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +0 -1
  123. package/test/examples/source-repository/a/node_modules/nan/nan.h +0 -2958
  124. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +0 -92
  125. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  126. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  127. package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +0 -72
  128. package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +0 -68
  129. package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  130. package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +0 -29
  131. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +0 -430
  132. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  133. package/test/examples/source-repository/a/node_modules/nan/nan_json.h +0 -166
  134. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +0 -356
  135. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  136. package/test/examples/source-repository/a/node_modules/nan/nan_new.h +0 -340
  137. package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +0 -156
  138. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +0 -132
  139. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  140. package/test/examples/source-repository/a/node_modules/nan/nan_private.h +0 -73
  141. package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +0 -76
  142. package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +0 -305
  143. package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +0 -96
  144. package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +0 -437
  145. package/test/examples/source-repository/a/node_modules/nan/package.json +0 -38
  146. package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +0 -412
  147. package/test/examples/source-repository/a/node_modules/nan/tools/README.md +0 -14
  148. package/test/examples/source-repository/a/node_modules/nan/tools/package.json +0 -19
  149. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  150. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  151. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  152. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  153. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  154. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  155. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  156. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  157. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  158. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  159. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  160. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  161. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  162. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  163. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  164. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  165. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  166. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  167. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  168. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  169. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  170. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  171. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  172. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  173. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  174. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +0 -5
  175. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  176. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +0 -42
  177. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  178. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  179. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  180. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  181. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  182. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  183. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  184. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  185. package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +0 -22
  186. package/test/examples/source-repository/b/node_modules/bindings/README.md +0 -98
  187. package/test/examples/source-repository/b/node_modules/bindings/bindings.js +0 -221
  188. package/test/examples/source-repository/b/node_modules/bindings/package.json +0 -28
  189. package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +0 -30
  190. package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +0 -21
  191. package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +0 -20
  192. package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +0 -74
  193. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +0 -2
  194. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +0 -66
  195. package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +0 -32
  196. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +0 -24
  197. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +0 -13
  198. package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +0 -22
  199. package/test/examples/source-repository/b/node_modules/fsevents/README.md +0 -89
  200. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +0 -46
  201. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +0 -83
  202. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
  203. package/test/examples/source-repository/b/node_modules/fsevents/package.json +0 -62
  204. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  205. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  206. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +0 -22
  207. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  208. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  209. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  210. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  211. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  212. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +0 -79
  213. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  214. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  215. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -191
  216. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -772
  217. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  218. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  219. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  220. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  221. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  222. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  223. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  224. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  225. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  226. package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +0 -557
  227. package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +0 -138
  228. package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +0 -9
  229. package/test/examples/source-repository/b/node_modules/nan/README.md +0 -456
  230. package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +0 -146
  231. package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +0 -54
  232. package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +0 -76
  233. package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +0 -41
  234. package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +0 -226
  235. package/test/examples/source-repository/b/node_modules/nan/doc/json.md +0 -62
  236. package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +0 -583
  237. package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +0 -672
  238. package/test/examples/source-repository/b/node_modules/nan/doc/new.md +0 -147
  239. package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +0 -123
  240. package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +0 -263
  241. package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +0 -296
  242. package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +0 -73
  243. package/test/examples/source-repository/b/node_modules/nan/doc/script.md +0 -58
  244. package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +0 -62
  245. package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +0 -199
  246. package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +0 -85
  247. package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +0 -1
  248. package/test/examples/source-repository/b/node_modules/nan/nan.h +0 -2958
  249. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +0 -92
  250. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  251. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  252. package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +0 -72
  253. package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +0 -68
  254. package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  255. package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +0 -29
  256. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +0 -430
  257. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  258. package/test/examples/source-repository/b/node_modules/nan/nan_json.h +0 -166
  259. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +0 -356
  260. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  261. package/test/examples/source-repository/b/node_modules/nan/nan_new.h +0 -340
  262. package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +0 -156
  263. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +0 -132
  264. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  265. package/test/examples/source-repository/b/node_modules/nan/nan_private.h +0 -73
  266. package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +0 -76
  267. package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +0 -305
  268. package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +0 -96
  269. package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +0 -437
  270. package/test/examples/source-repository/b/node_modules/nan/package.json +0 -38
  271. package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +0 -412
  272. package/test/examples/source-repository/b/node_modules/nan/tools/README.md +0 -14
  273. package/test/examples/source-repository/b/node_modules/nan/tools/package.json +0 -19
@@ -1,296 +0,0 @@
1
- ## Persistent references
2
-
3
- An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed.
4
-
5
- Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported.
6
-
7
- - <a href="#api_nan_persistent_base"><b><code>Nan::PersistentBase & v8::PersistentBase</code></b></a>
8
- - <a href="#api_nan_non_copyable_persistent_traits"><b><code>Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits</code></b></a>
9
- - <a href="#api_nan_copyable_persistent_traits"><b><code>Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits</code></b></a>
10
- - <a href="#api_nan_persistent"><b><code>Nan::Persistent</code></b></a>
11
- - <a href="#api_nan_global"><b><code>Nan::Global</code></b></a>
12
- - <a href="#api_nan_weak_callback_info"><b><code>Nan::WeakCallbackInfo</code></b></a>
13
- - <a href="#api_nan_weak_callback_type"><b><code>Nan::WeakCallbackType</code></b></a>
14
-
15
- Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://v8.dev/docs/embed#handles-and-garbage-collection).
16
-
17
- <a name="api_nan_persistent_base"></a>
18
- ### Nan::PersistentBase & v8::PersistentBase
19
-
20
- A persistent handle contains a reference to a storage cell in V8 which holds an object value and which is updated by the garbage collector whenever the object is moved. A new storage cell can be created using the constructor or `Nan::PersistentBase::Reset()`. Existing handles can be disposed using an argument-less `Nan::PersistentBase::Reset()`.
21
-
22
- Definition:
23
-
24
- _(note: this is implemented as `Nan::PersistentBase` for older versions of V8 and the native `v8::PersistentBase` is used for newer versions of V8)_
25
-
26
- ```c++
27
- template<typename T> class PersistentBase {
28
- public:
29
- /**
30
- * If non-empty, destroy the underlying storage cell
31
- */
32
- void Reset();
33
-
34
- /**
35
- * If non-empty, destroy the underlying storage cell and create a new one with
36
- * the contents of another if it is also non-empty
37
- */
38
- template<typename S> void Reset(const v8::Local<S> &other);
39
-
40
- /**
41
- * If non-empty, destroy the underlying storage cell and create a new one with
42
- * the contents of another if it is also non-empty
43
- */
44
- template<typename S> void Reset(const PersistentBase<S> &other);
45
-
46
- /** Returns true if the handle is empty. */
47
- bool IsEmpty() const;
48
-
49
- /**
50
- * If non-empty, destroy the underlying storage cell
51
- * IsEmpty() will return true after this call.
52
- */
53
- void Empty();
54
-
55
- template<typename S> bool operator==(const PersistentBase<S> &that);
56
-
57
- template<typename S> bool operator==(const v8::Local<S> &that);
58
-
59
- template<typename S> bool operator!=(const PersistentBase<S> &that);
60
-
61
- template<typename S> bool operator!=(const v8::Local<S> &that);
62
-
63
- /**
64
- * Install a finalization callback on this object.
65
- * NOTE: There is no guarantee as to *when* or even *if* the callback is
66
- * invoked. The invocation is performed solely on a best effort basis.
67
- * As always, GC-based finalization should *not* be relied upon for any
68
- * critical form of resource management! At the moment you can either
69
- * specify a parameter for the callback or the location of two internal
70
- * fields in the dying object.
71
- */
72
- template<typename P>
73
- void SetWeak(P *parameter,
74
- typename WeakCallbackInfo<P>::Callback callback,
75
- WeakCallbackType type);
76
-
77
- void ClearWeak();
78
-
79
- /**
80
- * Marks the reference to this object independent. Garbage collector is free
81
- * to ignore any object groups containing this object. Weak callback for an
82
- * independent handle should not assume that it will be preceded by a global
83
- * GC prologue callback or followed by a global GC epilogue callback.
84
- */
85
- void MarkIndependent() const;
86
-
87
- bool IsIndependent() const;
88
-
89
- /** Checks if the handle holds the only reference to an object. */
90
- bool IsNearDeath() const;
91
-
92
- /** Returns true if the handle's reference is weak. */
93
- bool IsWeak() const
94
- };
95
- ```
96
-
97
- See the V8 documentation for [`PersistentBase`](https://v8docs.nodesource.com/node-8.16/d4/dca/classv8_1_1_persistent_base.html) for further information.
98
-
99
- **Tip:** To get a `v8::Local` reference to the original object back from a `PersistentBase` or `Persistent` object:
100
-
101
- ```c++
102
- v8::Local<v8::Object> object = Nan::New(persistent);
103
- ```
104
-
105
- <a name="api_nan_non_copyable_persistent_traits"></a>
106
- ### Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits
107
-
108
- Default traits for `Nan::Persistent`. This class does not allow use of the a copy constructor or assignment operator. At present `kResetInDestructor` is not set, but that will change in a future version.
109
-
110
- Definition:
111
-
112
- _(note: this is implemented as `Nan::NonCopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
113
-
114
- ```c++
115
- template<typename T> class NonCopyablePersistentTraits {
116
- public:
117
- typedef Persistent<T, NonCopyablePersistentTraits<T> > NonCopyablePersistent;
118
-
119
- static const bool kResetInDestructor = false;
120
-
121
- template<typename S, typename M>
122
- static void Copy(const Persistent<S, M> &source,
123
- NonCopyablePersistent *dest);
124
-
125
- template<typename O> static void Uncompilable();
126
- };
127
- ```
128
-
129
- See the V8 documentation for [`NonCopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/de/d73/classv8_1_1_non_copyable_persistent_traits.html) for further information.
130
-
131
- <a name="api_nan_copyable_persistent_traits"></a>
132
- ### Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits
133
-
134
- A helper class of traits to allow copying and assignment of `Persistent`. This will clone the contents of storage cell, but not any of the flags, etc..
135
-
136
- Definition:
137
-
138
- _(note: this is implemented as `Nan::CopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
139
-
140
- ```c++
141
- template<typename T>
142
- class CopyablePersistentTraits {
143
- public:
144
- typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
145
-
146
- static const bool kResetInDestructor = true;
147
-
148
- template<typename S, typename M>
149
- static void Copy(const Persistent<S, M> &source,
150
- CopyablePersistent *dest);
151
- };
152
- ```
153
-
154
- See the V8 documentation for [`CopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/da/d5c/structv8_1_1_copyable_persistent_traits.html) for further information.
155
-
156
- <a name="api_nan_persistent"></a>
157
- ### Nan::Persistent
158
-
159
- A type of `PersistentBase` which allows copy and assignment. Copy, assignment and destructor behavior is controlled by the traits class `M`.
160
-
161
- Definition:
162
-
163
- ```c++
164
- template<typename T, typename M = NonCopyablePersistentTraits<T> >
165
- class Persistent;
166
-
167
- template<typename T, typename M> class Persistent : public PersistentBase<T> {
168
- public:
169
- /**
170
- * A Persistent with no storage cell.
171
- */
172
- Persistent();
173
-
174
- /**
175
- * Construct a Persistent from a v8::Local. When the v8::Local is non-empty, a
176
- * new storage cell is created pointing to the same object, and no flags are
177
- * set.
178
- */
179
- template<typename S> Persistent(v8::Local<S> that);
180
-
181
- /**
182
- * Construct a Persistent from a Persistent. When the Persistent is non-empty,
183
- * a new storage cell is created pointing to the same object, and no flags are
184
- * set.
185
- */
186
- Persistent(const Persistent &that);
187
-
188
- /**
189
- * The copy constructors and assignment operator create a Persistent exactly
190
- * as the Persistent constructor, but the Copy function from the traits class
191
- * is called, allowing the setting of flags based on the copied Persistent.
192
- */
193
- Persistent &operator=(const Persistent &that);
194
-
195
- template <typename S, typename M2>
196
- Persistent &operator=(const Persistent<S, M2> &that);
197
-
198
- /**
199
- * The destructor will dispose the Persistent based on the kResetInDestructor
200
- * flags in the traits class. Since not calling dispose can result in a
201
- * memory leak, it is recommended to always set this flag.
202
- */
203
- ~Persistent();
204
- };
205
- ```
206
-
207
- See the V8 documentation for [`Persistent`](https://v8docs.nodesource.com/node-8.16/d2/d78/classv8_1_1_persistent.html) for further information.
208
-
209
- <a name="api_nan_global"></a>
210
- ### Nan::Global
211
-
212
- A type of `PersistentBase` which has move semantics.
213
-
214
- ```c++
215
- template<typename T> class Global : public PersistentBase<T> {
216
- public:
217
- /**
218
- * A Global with no storage cell.
219
- */
220
- Global();
221
-
222
- /**
223
- * Construct a Global from a v8::Local. When the v8::Local is non-empty, a new
224
- * storage cell is created pointing to the same object, and no flags are set.
225
- */
226
- template<typename S> Global(v8::Local<S> that);
227
- /**
228
- * Construct a Global from a PersistentBase. When the Persistent is non-empty,
229
- * a new storage cell is created pointing to the same object, and no flags are
230
- * set.
231
- */
232
- template<typename S> Global(const PersistentBase<S> &that);
233
-
234
- /**
235
- * Pass allows returning globals from functions, etc.
236
- */
237
- Global Pass();
238
- };
239
- ```
240
-
241
- See the V8 documentation for [`Global`](https://v8docs.nodesource.com/node-8.16/d5/d40/classv8_1_1_global.html) for further information.
242
-
243
- <a name="api_nan_weak_callback_info"></a>
244
- ### Nan::WeakCallbackInfo
245
-
246
- `Nan::WeakCallbackInfo` is used as an argument when setting a persistent reference as weak. You may need to free any external resources attached to the object. It is a mirror of `v8:WeakCallbackInfo` as found in newer versions of V8.
247
-
248
- Definition:
249
-
250
- ```c++
251
- template<typename T> class WeakCallbackInfo {
252
- public:
253
- typedef void (*Callback)(const WeakCallbackInfo<T>& data);
254
-
255
- v8::Isolate *GetIsolate() const;
256
-
257
- /**
258
- * Get the parameter that was associated with the weak handle.
259
- */
260
- T *GetParameter() const;
261
-
262
- /**
263
- * Get pointer from internal field, index can be 0 or 1.
264
- */
265
- void *GetInternalField(int index) const;
266
- };
267
- ```
268
-
269
- Example usage:
270
-
271
- ```c++
272
- void weakCallback(const WeakCallbackInfo<int> &data) {
273
- int *parameter = data.GetParameter();
274
- delete parameter;
275
- }
276
-
277
- Persistent<v8::Object> obj;
278
- int *data = new int(0);
279
- obj.SetWeak(data, callback, WeakCallbackType::kParameter);
280
- ```
281
-
282
- See the V8 documentation for [`WeakCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d8/d06/classv8_1_1_weak_callback_info.html) for further information.
283
-
284
- <a name="api_nan_weak_callback_type"></a>
285
- ### Nan::WeakCallbackType
286
-
287
- Represents the type of a weak callback.
288
- A weak callback of type `kParameter` makes the supplied parameter to `Nan::PersistentBase::SetWeak` available through `WeakCallbackInfo::GetParameter`.
289
- A weak callback of type `kInternalFields` uses up to two internal fields at indices 0 and 1 on the `Nan::PersistentBase<v8::Object>` being made weak.
290
- Note that only `v8::Object`s and derivatives can have internal fields.
291
-
292
- Definition:
293
-
294
- ```c++
295
- enum class WeakCallbackType { kParameter, kInternalFields };
296
- ```
@@ -1,73 +0,0 @@
1
- ## Scopes
2
-
3
- A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works.
4
-
5
- A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope.
6
-
7
- The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these.
8
-
9
- - <a href="#api_nan_handle_scope"><b><code>Nan::HandleScope</code></b></a>
10
- - <a href="#api_nan_escapable_handle_scope"><b><code>Nan::EscapableHandleScope</code></b></a>
11
-
12
- Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection).
13
-
14
- <a name="api_nan_handle_scope"></a>
15
- ### Nan::HandleScope
16
-
17
- A simple wrapper around [`v8::HandleScope`](https://v8docs.nodesource.com/node-8.16/d3/d95/classv8_1_1_handle_scope.html).
18
-
19
- Definition:
20
-
21
- ```c++
22
- class Nan::HandleScope {
23
- public:
24
- Nan::HandleScope();
25
- static int NumberOfHandles();
26
- };
27
- ```
28
-
29
- Allocate a new `Nan::HandleScope` whenever you are creating new V8 JavaScript objects. Note that an implicit `HandleScope` is created for you on JavaScript-accessible methods so you do not need to insert one yourself.
30
-
31
- Example:
32
-
33
- ```c++
34
- // new object is created, it needs a new scope:
35
- void Pointless() {
36
- Nan::HandleScope scope;
37
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
38
- }
39
-
40
- // JavaScript-accessible method already has a HandleScope
41
- NAN_METHOD(Pointless2) {
42
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
43
- }
44
- ```
45
-
46
- <a name="api_nan_escapable_handle_scope"></a>
47
- ### Nan::EscapableHandleScope
48
-
49
- Similar to [`Nan::HandleScope`](#api_nan_handle_scope) but should be used in cases where a function needs to return a V8 JavaScript type that has been created within it.
50
-
51
- Definition:
52
-
53
- ```c++
54
- class Nan::EscapableHandleScope {
55
- public:
56
- Nan::EscapableHandleScope();
57
- static int NumberOfHandles();
58
- template<typename T> v8::Local<T> Escape(v8::Local<T> value);
59
- }
60
- ```
61
-
62
- Use `Escape(value)` to return the object.
63
-
64
- Example:
65
-
66
- ```c++
67
- v8::Local<v8::Object> EmptyObj() {
68
- Nan::EscapableHandleScope scope;
69
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
70
- return scope.Escape(obj);
71
- }
72
- ```
73
-
@@ -1,58 +0,0 @@
1
- ## Script
2
-
3
- NAN provides `v8::Script` helpers as the API has changed over the supported versions of V8.
4
-
5
- - <a href="#api_nan_compile_script"><b><code>Nan::CompileScript()</code></b></a>
6
- - <a href="#api_nan_run_script"><b><code>Nan::RunScript()</code></b></a>
7
- - <a href="#api_nan_script_origin"><b><code>Nan::ScriptOrigin</code></b></a>
8
-
9
-
10
- <a name="api_nan_compile_script"></a>
11
- ### Nan::CompileScript()
12
-
13
- A wrapper around [`v8::ScriptCompiler::Compile()`](https://v8docs.nodesource.com/node-8.16/da/da5/classv8_1_1_script_compiler.html#a93f5072a0db55d881b969e9fc98e564b).
14
-
15
- Note that `Nan::BoundScript` is an alias for `v8::Script`.
16
-
17
- Signature:
18
-
19
- ```c++
20
- Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(
21
- v8::Local<v8::String> s,
22
- const v8::ScriptOrigin& origin);
23
- Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(v8::Local<v8::String> s);
24
- ```
25
-
26
-
27
- <a name="api_nan_run_script"></a>
28
- ### Nan::RunScript()
29
-
30
- Calls `script->Run()` or `script->BindToCurrentContext()->Run(Nan::GetCurrentContext())`.
31
-
32
- Note that `Nan::BoundScript` is an alias for `v8::Script` and `Nan::UnboundScript` is an alias for `v8::UnboundScript` where available and `v8::Script` on older versions of V8.
33
-
34
- Signature:
35
-
36
- ```c++
37
- Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::UnboundScript> script)
38
- Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::BoundScript> script)
39
- ```
40
-
41
- <a name="api_nan_script_origin"></a>
42
- ### Nan::ScriptOrigin
43
-
44
- A class transparently extending [`v8::ScriptOrigin`](https://v8docs.nodesource.com/node-16.0/db/d84/classv8_1_1_script_origin.html#pub-methods)
45
- to provide backwards compatibility. Only the listed methods are guaranteed to
46
- be available on all versions of Node.
47
-
48
- Declaration:
49
-
50
- ```c++
51
- class Nan::ScriptOrigin : public v8::ScriptOrigin {
52
- public:
53
- ScriptOrigin(v8::Local<v8::Value> name, v8::Local<v8::Integer> line = v8::Local<v8::Integer>(), v8::Local<v8::Integer> column = v8::Local<v8::Integer>())
54
- v8::Local<v8::Value> ResourceName() const;
55
- v8::Local<v8::Integer> ResourceLineOffset() const;
56
- v8::Local<v8::Integer> ResourceColumnOffset() const;
57
- }
58
- ```
@@ -1,62 +0,0 @@
1
- ## Strings & Bytes
2
-
3
- Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing.
4
-
5
- - <a href="#api_nan_encoding"><b><code>Nan::Encoding</code></b></a>
6
- - <a href="#api_nan_encode"><b><code>Nan::Encode()</code></b></a>
7
- - <a href="#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a>
8
- - <a href="#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a>
9
-
10
-
11
- <a name="api_nan_encoding"></a>
12
- ### Nan::Encoding
13
-
14
- An enum representing the supported encoding types. A copy of `node::encoding` that is consistent across versions of Node.
15
-
16
- Definition:
17
-
18
- ```c++
19
- enum Nan::Encoding { ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER }
20
- ```
21
-
22
-
23
- <a name="api_nan_encode"></a>
24
- ### Nan::Encode()
25
-
26
- A wrapper around `node::Encode()` that provides a consistent implementation across supported versions of Node.
27
-
28
- Signature:
29
-
30
- ```c++
31
- v8::Local<v8::Value> Nan::Encode(const void *buf,
32
- size_t len,
33
- enum Nan::Encoding encoding = BINARY);
34
- ```
35
-
36
-
37
- <a name="api_nan_decode_bytes"></a>
38
- ### Nan::DecodeBytes()
39
-
40
- A wrapper around `node::DecodeBytes()` that provides a consistent implementation across supported versions of Node.
41
-
42
- Signature:
43
-
44
- ```c++
45
- ssize_t Nan::DecodeBytes(v8::Local<v8::Value> val,
46
- enum Nan::Encoding encoding = BINARY);
47
- ```
48
-
49
-
50
- <a name="api_nan_decode_write"></a>
51
- ### Nan::DecodeWrite()
52
-
53
- A wrapper around `node::DecodeWrite()` that provides a consistent implementation across supported versions of Node.
54
-
55
- Signature:
56
-
57
- ```c++
58
- ssize_t Nan::DecodeWrite(char *buf,
59
- size_t len,
60
- v8::Local<v8::Value> val,
61
- enum Nan::Encoding encoding = BINARY);
62
- ```
@@ -1,199 +0,0 @@
1
- ## V8 internals
2
-
3
- The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods.
4
-
5
- - <a href="#api_nan_gc_callback"><b><code>NAN_GC_CALLBACK()</code></b></a>
6
- - <a href="#api_nan_add_gc_epilogue_callback"><b><code>Nan::AddGCEpilogueCallback()</code></b></a>
7
- - <a href="#api_nan_remove_gc_epilogue_callback"><b><code>Nan::RemoveGCEpilogueCallback()</code></b></a>
8
- - <a href="#api_nan_add_gc_prologue_callback"><b><code>Nan::AddGCPrologueCallback()</code></b></a>
9
- - <a href="#api_nan_remove_gc_prologue_callback"><b><code>Nan::RemoveGCPrologueCallback()</code></b></a>
10
- - <a href="#api_nan_get_heap_statistics"><b><code>Nan::GetHeapStatistics()</code></b></a>
11
- - <a href="#api_nan_set_counter_function"><b><code>Nan::SetCounterFunction()</code></b></a>
12
- - <a href="#api_nan_set_create_histogram_function"><b><code>Nan::SetCreateHistogramFunction()</code></b></a>
13
- - <a href="#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a>
14
- - <a href="#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a>
15
- - <a href="#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a>
16
- - <a href="#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a>
17
- - <a href="#api_nan_get_internal_field_pointer"><b><code>Nan::GetInternalFieldPointer()</code></b></a>
18
- - <a href="#api_nan_set_internal_field_pointer"><b><code>Nan::SetInternalFieldPointer()</code></b></a>
19
- - <a href="#api_nan_adjust_external_memory"><b><code>Nan::AdjustExternalMemory()</code></b></a>
20
-
21
-
22
- <a name="api_nan_gc_callback"></a>
23
- ### NAN_GC_CALLBACK(callbackname)
24
-
25
- Use `NAN_GC_CALLBACK` to declare your callbacks for `Nan::AddGCPrologueCallback()` and `Nan::AddGCEpilogueCallback()`. Your new method receives the arguments `v8::GCType type` and `v8::GCCallbackFlags flags`.
26
-
27
- ```c++
28
- static Nan::Persistent<Function> callback;
29
-
30
- NAN_GC_CALLBACK(gcPrologueCallback) {
31
- v8::Local<Value> argv[] = { Nan::New("prologue").ToLocalChecked() };
32
- Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(callback), 1, argv);
33
- }
34
-
35
- NAN_METHOD(Hook) {
36
- callback.Reset(To<Function>(args[0]).ToLocalChecked());
37
- Nan::AddGCPrologueCallback(gcPrologueCallback);
38
- info.GetReturnValue().Set(info.Holder());
39
- }
40
- ```
41
-
42
- <a name="api_nan_add_gc_epilogue_callback"></a>
43
- ### Nan::AddGCEpilogueCallback()
44
-
45
- Signature:
46
-
47
- ```c++
48
- void Nan::AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, v8::GCType gc_type_filter = v8::kGCTypeAll)
49
- ```
50
-
51
- Calls V8's [`AddGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a580f976e4290cead62c2fc4dd396be3e).
52
-
53
- <a name="api_nan_remove_gc_epilogue_callback"></a>
54
- ### Nan::RemoveGCEpilogueCallback()
55
-
56
- Signature:
57
-
58
- ```c++
59
- void Nan::RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback)
60
- ```
61
-
62
- Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#adca9294555a3908e9f23c7bb0f0f284c).
63
-
64
- <a name="api_nan_add_gc_prologue_callback"></a>
65
- ### Nan::AddGCPrologueCallback()
66
-
67
- Signature:
68
-
69
- ```c++
70
- void Nan::AddGCPrologueCallback(v8::Isolate::GCPrologueCallback, v8::GCType gc_type_filter callback)
71
- ```
72
-
73
- Calls V8's [`AddGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a6dbef303603ebdb03da6998794ea05b8).
74
-
75
- <a name="api_nan_remove_gc_prologue_callback"></a>
76
- ### Nan::RemoveGCPrologueCallback()
77
-
78
- Signature:
79
-
80
- ```c++
81
- void Nan::RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback)
82
- ```
83
-
84
- Calls V8's [`RemoveGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5f72c7cda21415ce062bbe5c58abe09e).
85
-
86
- <a name="api_nan_get_heap_statistics"></a>
87
- ### Nan::GetHeapStatistics()
88
-
89
- Signature:
90
-
91
- ```c++
92
- void Nan::GetHeapStatistics(v8::HeapStatistics *heap_statistics)
93
- ```
94
-
95
- Calls V8's [`GetHeapStatistics()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5593ac74687b713095c38987e5950b34).
96
-
97
- <a name="api_nan_set_counter_function"></a>
98
- ### Nan::SetCounterFunction()
99
-
100
- Signature:
101
-
102
- ```c++
103
- void Nan::SetCounterFunction(v8::CounterLookupCallback cb)
104
- ```
105
-
106
- Calls V8's [`SetCounterFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a045d7754e62fa0ec72ae6c259b29af94).
107
-
108
- <a name="api_nan_set_create_histogram_function"></a>
109
- ### Nan::SetCreateHistogramFunction()
110
-
111
- Signature:
112
-
113
- ```c++
114
- void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback cb)
115
- ```
116
-
117
- Calls V8's [`SetCreateHistogramFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a542d67e85089cb3f92aadf032f99e732).
118
-
119
- <a name="api_nan_set_add_histogram_sample_function"></a>
120
- ### Nan::SetAddHistogramSampleFunction()
121
-
122
- Signature:
123
-
124
- ```c++
125
- void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb)
126
- ```
127
-
128
- Calls V8's [`SetAddHistogramSampleFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aeb420b690bc2c216882d6fdd00ddd3ea).
129
-
130
- <a name="api_nan_idle_notification"></a>
131
- ### Nan::IdleNotification()
132
-
133
- Signature:
134
-
135
- ```c++
136
- bool Nan::IdleNotification(int idle_time_in_ms)
137
- ```
138
-
139
- Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version.
140
-
141
- <a name="api_nan_low_memory_notification"></a>
142
- ### Nan::LowMemoryNotification()
143
-
144
- Signature:
145
-
146
- ```c++
147
- void Nan::LowMemoryNotification()
148
- ```
149
-
150
- Calls V8's [`LowMemoryNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a24647f61d6b41f69668094bdcd6ea91f).
151
-
152
- <a name="api_nan_context_disposed_notification"></a>
153
- ### Nan::ContextDisposedNotification()
154
-
155
- Signature:
156
-
157
- ```c++
158
- void Nan::ContextDisposedNotification()
159
- ```
160
-
161
- Calls V8's [`ContextDisposedNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b).
162
-
163
- <a name="api_nan_get_internal_field_pointer"></a>
164
- ### Nan::GetInternalFieldPointer()
165
-
166
- Gets a pointer to the internal field with at `index` from a V8 `Object` handle.
167
-
168
- Signature:
169
-
170
- ```c++
171
- void* Nan::GetInternalFieldPointer(v8::Local<v8::Object> object, int index)
172
- ```
173
-
174
- Calls the Object's [`GetAlignedPointerFromInternalField()` or `GetPointerFromInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a580ea84afb26c005d6762eeb9e3c308f) depending on the version of V8.
175
-
176
- <a name="api_nan_set_internal_field_pointer"></a>
177
- ### Nan::SetInternalFieldPointer()
178
-
179
- Sets the value of the internal field at `index` on a V8 `Object` handle.
180
-
181
- Signature:
182
-
183
- ```c++
184
- void Nan::SetInternalFieldPointer(v8::Local<v8::Object> object, int index, void* value)
185
- ```
186
-
187
- Calls the Object's [`SetAlignedPointerInInternalField()` or `SetPointerInInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c57184263cf29963ef0017bec82281) depending on the version of V8.
188
-
189
- <a name="api_nan_adjust_external_memory"></a>
190
- ### Nan::AdjustExternalMemory()
191
-
192
- Signature:
193
-
194
- ```c++
195
- int Nan::AdjustExternalMemory(int bytesChange)
196
- ```
197
-
198
- Calls V8's [`AdjustAmountOfExternalAllocatedMemory()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ae1a59cac60409d3922582c4af675473e).
199
-