@proteinjs/reflection-build 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/LICENSE → LICENSE} +5 -6
  3. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  4. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  5. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  6. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  7. package/package.json +8 -7
  8. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  9. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  10. package/test/examples/source-repository/a/generated/index.ts +38 -33
  11. package/test/examples/source-repository/a/node_modules/.package-lock.json +16 -73
  12. package/test/examples/source-repository/a/node_modules/@proteinjs/util/CHANGELOG.md +11 -0
  13. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.d.ts +1 -1
  14. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.js +0 -1
  15. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.js.map +1 -1
  16. package/test/examples/source-repository/a/node_modules/@proteinjs/util/package.json +2 -2
  17. package/test/examples/source-repository/a/node_modules/@proteinjs/util/src/isInstanceOf.ts +1 -2
  18. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/CHANGELOG.md +8 -0
  19. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/package.json +3 -3
  20. package/test/examples/source-repository/a/package-lock.json +20 -24
  21. package/test/examples/source-repository/a/package.json +5 -5
  22. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  23. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  24. package/test/examples/source-repository/b/generated/index.ts +10 -11
  25. package/test/examples/source-repository/b/node_modules/.package-lock.json +12 -69
  26. package/test/examples/source-repository/b/node_modules/@proteinjs/util/CHANGELOG.md +11 -0
  27. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.d.ts +1 -1
  28. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.js +0 -1
  29. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.js.map +1 -1
  30. package/test/examples/source-repository/b/node_modules/@proteinjs/util/package.json +2 -2
  31. package/test/examples/source-repository/b/node_modules/@proteinjs/util/src/isInstanceOf.ts +1 -2
  32. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/CHANGELOG.md +8 -0
  33. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/package.json +3 -3
  34. package/test/examples/source-repository/b/package-lock.json +16 -20
  35. package/test/examples/source-repository/b/package.json +5 -5
  36. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  37. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  38. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  39. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  40. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  41. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  42. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  43. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  44. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  45. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  46. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  47. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  48. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  49. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  50. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  51. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  52. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  53. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  54. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  55. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  56. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  57. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  58. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  59. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  60. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  61. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +0 -5
  62. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  63. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +0 -42
  64. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  65. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  66. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  67. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  68. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  69. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  70. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  71. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  72. package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +0 -22
  73. package/test/examples/source-repository/a/node_modules/bindings/README.md +0 -98
  74. package/test/examples/source-repository/a/node_modules/bindings/bindings.js +0 -221
  75. package/test/examples/source-repository/a/node_modules/bindings/package.json +0 -28
  76. package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +0 -30
  77. package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +0 -21
  78. package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +0 -20
  79. package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +0 -74
  80. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +0 -2
  81. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +0 -66
  82. package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +0 -32
  83. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +0 -24
  84. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +0 -13
  85. package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +0 -22
  86. package/test/examples/source-repository/a/node_modules/fsevents/README.md +0 -89
  87. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +0 -46
  88. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +0 -83
  89. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
  90. package/test/examples/source-repository/a/node_modules/fsevents/package.json +0 -62
  91. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  92. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  93. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  94. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  95. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  96. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  97. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  98. 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
  99. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  100. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  101. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -191
  102. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -766
  103. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  104. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  105. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  106. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  107. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  108. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  109. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  110. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  111. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  112. package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +0 -557
  113. package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +0 -138
  114. package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +0 -9
  115. package/test/examples/source-repository/a/node_modules/nan/README.md +0 -456
  116. package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +0 -146
  117. package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +0 -54
  118. package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +0 -76
  119. package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +0 -41
  120. package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +0 -226
  121. package/test/examples/source-repository/a/node_modules/nan/doc/json.md +0 -62
  122. package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +0 -583
  123. package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +0 -672
  124. package/test/examples/source-repository/a/node_modules/nan/doc/new.md +0 -147
  125. package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +0 -123
  126. package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +0 -263
  127. package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +0 -296
  128. package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +0 -73
  129. package/test/examples/source-repository/a/node_modules/nan/doc/script.md +0 -58
  130. package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +0 -62
  131. package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +0 -199
  132. package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +0 -85
  133. package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +0 -1
  134. package/test/examples/source-repository/a/node_modules/nan/nan.h +0 -2958
  135. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +0 -92
  136. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  137. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  138. package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +0 -72
  139. package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +0 -68
  140. package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  141. package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +0 -29
  142. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +0 -430
  143. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  144. package/test/examples/source-repository/a/node_modules/nan/nan_json.h +0 -166
  145. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +0 -356
  146. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  147. package/test/examples/source-repository/a/node_modules/nan/nan_new.h +0 -340
  148. package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +0 -156
  149. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +0 -132
  150. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  151. package/test/examples/source-repository/a/node_modules/nan/nan_private.h +0 -73
  152. package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +0 -76
  153. package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +0 -305
  154. package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +0 -96
  155. package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +0 -437
  156. package/test/examples/source-repository/a/node_modules/nan/package.json +0 -38
  157. package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +0 -412
  158. package/test/examples/source-repository/a/node_modules/nan/tools/README.md +0 -14
  159. package/test/examples/source-repository/a/node_modules/nan/tools/package.json +0 -19
  160. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  161. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  162. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  163. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  164. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  165. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  166. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  167. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  168. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  169. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  170. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  171. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  172. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  173. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  174. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  175. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  176. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  177. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  178. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  179. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  180. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  181. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  182. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  183. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  184. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  185. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +0 -5
  186. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  187. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +0 -42
  188. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  189. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  190. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  191. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  192. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  193. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  194. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  195. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  196. package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +0 -22
  197. package/test/examples/source-repository/b/node_modules/bindings/README.md +0 -98
  198. package/test/examples/source-repository/b/node_modules/bindings/bindings.js +0 -221
  199. package/test/examples/source-repository/b/node_modules/bindings/package.json +0 -28
  200. package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +0 -30
  201. package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +0 -21
  202. package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +0 -20
  203. package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +0 -74
  204. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +0 -2
  205. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +0 -66
  206. package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +0 -32
  207. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +0 -24
  208. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +0 -13
  209. package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +0 -22
  210. package/test/examples/source-repository/b/node_modules/fsevents/README.md +0 -89
  211. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +0 -46
  212. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +0 -83
  213. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
  214. package/test/examples/source-repository/b/node_modules/fsevents/package.json +0 -62
  215. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  216. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  217. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +0 -22
  218. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  219. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  220. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  221. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  222. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  223. 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
  224. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  225. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  226. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -191
  227. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -766
  228. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  229. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  230. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  231. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  232. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  233. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  234. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  235. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  236. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  237. package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +0 -557
  238. package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +0 -138
  239. package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +0 -9
  240. package/test/examples/source-repository/b/node_modules/nan/README.md +0 -456
  241. package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +0 -146
  242. package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +0 -54
  243. package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +0 -76
  244. package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +0 -41
  245. package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +0 -226
  246. package/test/examples/source-repository/b/node_modules/nan/doc/json.md +0 -62
  247. package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +0 -583
  248. package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +0 -672
  249. package/test/examples/source-repository/b/node_modules/nan/doc/new.md +0 -147
  250. package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +0 -123
  251. package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +0 -263
  252. package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +0 -296
  253. package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +0 -73
  254. package/test/examples/source-repository/b/node_modules/nan/doc/script.md +0 -58
  255. package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +0 -62
  256. package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +0 -199
  257. package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +0 -85
  258. package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +0 -1
  259. package/test/examples/source-repository/b/node_modules/nan/nan.h +0 -2958
  260. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +0 -92
  261. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  262. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  263. package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +0 -72
  264. package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +0 -68
  265. package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  266. package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +0 -29
  267. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +0 -430
  268. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  269. package/test/examples/source-repository/b/node_modules/nan/nan_json.h +0 -166
  270. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +0 -356
  271. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  272. package/test/examples/source-repository/b/node_modules/nan/nan_new.h +0 -340
  273. package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +0 -156
  274. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +0 -132
  275. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  276. package/test/examples/source-repository/b/node_modules/nan/nan_private.h +0 -73
  277. package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +0 -76
  278. package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +0 -305
  279. package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +0 -96
  280. package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +0 -437
  281. package/test/examples/source-repository/b/node_modules/nan/package.json +0 -38
  282. package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +0 -412
  283. package/test/examples/source-repository/b/node_modules/nan/tools/README.md +0 -14
  284. package/test/examples/source-repository/b/node_modules/nan/tools/package.json +0 -19
@@ -1,250 +0,0 @@
1
- import { Graph } from '@dagrejs/graphlib';
2
- import { graphSerializer, isInstanceOf } from '@proteinjs/util';
3
- import { SourceType } from './sourceGraphTypes';
4
- import {
5
- VariableDeclaration,
6
- TypeAliasDeclaration,
7
- ClassDeclaration,
8
- InterfaceDeclaration,
9
- Class,
10
- Variable,
11
- TypeAlias,
12
- Interface,
13
- PackageScope,
14
- } from './types';
15
- import { FlattenedSourceGraph, flattenSourceGraph } from './FlattenedSourceGraph';
16
- import { SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME, getSourceRepositoryFilters } from './SourceRepositoryFilter';
17
-
18
- type TypeMap = { [qualifiedName: string]: Interface | TypeAlias | Class | Variable };
19
-
20
- export class SourceRepository {
21
- public readonly sourceGraph = new Graph();
22
- private readonly sourceLinks: { [qualifiedName: string]: any } = {};
23
- public flattenedSourceGraph: FlattenedSourceGraph = { variables: {}, typeAliases: {}, classes: {}, interfaces: {} };
24
- // private readonly typeCache: { [type: string]: (ClassDeclaration|VariableDeclaration)[] } = {};
25
- private readonly objectCache: { [type: string]: any[] } = {};
26
-
27
- private constructor() {}
28
-
29
- static get(): SourceRepository {
30
- if (!SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository) {
31
- SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository = new SourceRepository();
32
- }
33
-
34
- return SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository;
35
- }
36
-
37
- private static getGlobal(): any {
38
- if (typeof window !== 'undefined') {
39
- return window;
40
- }
41
-
42
- return globalThis;
43
- }
44
-
45
- interface(qualifiedInterfaceName: string) {
46
- return this.flattenedSourceGraph.interfaces[qualifiedInterfaceName];
47
- }
48
-
49
- interfaceExtends(_interface: Interface, type: string) {
50
- return typeof _interface.allParents[type] !== 'undefined';
51
- }
52
-
53
- /**
54
- * Same as SourceRepository.objects except assumes it will find only 1 object.
55
- *
56
- * @param extendingType a Type or Interface that the Class or Variable extends
57
- * @return variable or instantiated class that extends `extendingType`
58
- */
59
- object<T>(extendingType: string): T {
60
- return this.objects<T>(extendingType)[0];
61
- }
62
-
63
- /**
64
- * @param extendingType a Type, Interface, or Class that the Class or Variable extends
65
- * @return variables and instantiated classes that extend `extendingType`
66
- */
67
- objects<T>(extendingType: string): T[] {
68
- if (this.objectCache[extendingType]) {
69
- return this.objectCache[extendingType];
70
- }
71
-
72
- const baseChildren = this.baseChildren(extendingType);
73
- const extendingObjects: T[] = [];
74
- for (const baseChildQualifiedName in baseChildren) {
75
- const child = baseChildren[baseChildQualifiedName];
76
- if (isInstanceOf(child, Class)) {
77
- extendingObjects.push(new (child as any)._constructor());
78
- } else if (isInstanceOf(child, Variable)) {
79
- extendingObjects.push((child as any).value);
80
- }
81
- }
82
-
83
- this.objectCache[extendingType] = extendingObjects;
84
- return extendingObjects;
85
- }
86
-
87
- /**
88
- * @param extendingType a Type, Interface, or Class that the Class or Variable extends
89
- * @returns a hashmap (key is qualified name) of base child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
90
- */
91
- baseChildren(extendingType: string): TypeMap {
92
- const _interface = SourceRepository.get().flattenedSourceGraph.interfaces[extendingType];
93
- const typeAlias = SourceRepository.get().flattenedSourceGraph.typeAliases[extendingType];
94
- const _class = SourceRepository.get().flattenedSourceGraph.classes[extendingType];
95
- let baseChildren: TypeMap;
96
- if (_interface) {
97
- baseChildren = _interface.baseChildren;
98
- } else if (typeAlias) {
99
- baseChildren = typeAlias.baseChildren;
100
- } else if (_class) {
101
- baseChildren = _class.baseChildren;
102
- } else {
103
- throw new Error(`Unable to find type: ${extendingType}`);
104
- }
105
-
106
- if (extendingType === SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME) {
107
- return baseChildren;
108
- }
109
-
110
- return this.filterObjects(baseChildren);
111
- }
112
-
113
- /**
114
- * @param extendingType a Type, Interface, or Class that the Class or Variable extends
115
- * @returns a hashmap (key is qualified name) of direct child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
116
- */
117
- directChildren(extendingType: string): TypeMap {
118
- const _interface = SourceRepository.get().flattenedSourceGraph.interfaces[extendingType];
119
- const typeAlias = SourceRepository.get().flattenedSourceGraph.typeAliases[extendingType];
120
- const _class = SourceRepository.get().flattenedSourceGraph.classes[extendingType];
121
- let directChildren: any;
122
- if (_interface) {
123
- directChildren = _interface.directChildren;
124
- } else if (typeAlias) {
125
- directChildren = typeAlias.directChildren;
126
- } else if (_class) {
127
- directChildren = _class.directChildren;
128
- } else {
129
- throw new Error(`Unable to find type: ${extendingType}`);
130
- }
131
-
132
- if (extendingType === SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME) {
133
- return directChildren;
134
- }
135
-
136
- return this.filterObjects(directChildren);
137
- }
138
-
139
- private filterObjects(typeMap: TypeMap): TypeMap {
140
- const filteredTypeMap: TypeMap = {};
141
- const filters = getSourceRepositoryFilters();
142
- for (const qualifiedName of Object.keys(typeMap)) {
143
- const packageScope = typeMap[qualifiedName];
144
- let filtered = true;
145
- for (const filter of filters) {
146
- if (!filter.filterObject(qualifiedName)) {
147
- filtered = false;
148
- break;
149
- }
150
- }
151
-
152
- if (filtered) {
153
- filteredTypeMap[qualifiedName] = packageScope;
154
- }
155
- }
156
-
157
- return filteredTypeMap;
158
- }
159
-
160
- static merge(serializedSourceGraph: string, sourceLinks: { [qualifiedName: string]: any }) {
161
- const unescapedSerializedSourceGraph = serializedSourceGraph.replace(/\\'/g, "'");
162
- const sourceGraph = graphSerializer.deserialize(unescapedSerializedSourceGraph);
163
- for (const nodeName of sourceGraph.nodes()) {
164
- const nodeValue = sourceGraph.node(nodeName);
165
- if (!nodeValue) {
166
- continue;
167
- }
168
-
169
- SourceRepository.get().sourceGraph.setNode(nodeName, SourceRepository.deserializeClass(nodeValue));
170
- }
171
-
172
- for (const edge of sourceGraph.edges()) {
173
- const edgeValue = sourceGraph.edge(edge);
174
- SourceRepository.get().sourceGraph.setEdge(edge, edgeValue);
175
- }
176
-
177
- Object.assign(SourceRepository.get().sourceLinks, sourceLinks);
178
- SourceRepository.get().flattenedSourceGraph = flattenSourceGraph(
179
- SourceRepository.get().sourceGraph,
180
- SourceRepository.get().sourceLinks
181
- );
182
- }
183
-
184
- private static deserializeClass(classJson: any): any {
185
- if (classJson.sourceType === SourceType.variable) {
186
- return VariableDeclaration.deserialize(classJson);
187
- } else if (classJson.sourceType === SourceType.typeAlias) {
188
- return TypeAliasDeclaration.deserialize(classJson);
189
- } else if (classJson.sourceType === SourceType.class) {
190
- return ClassDeclaration.deserialize(classJson);
191
- } else if (classJson.sourceType === SourceType.interface) {
192
- return InterfaceDeclaration.deserialize(classJson);
193
- }
194
-
195
- return classJson;
196
- }
197
-
198
- // objects<T>(type: string): T[] {
199
- // if (!this.objectCache[type]) {
200
- // this.objectCache[type] = this.types(type).map((type) => {
201
- // if (type instanceof VariableDeclaration)
202
- // return type.value;
203
-
204
- // if (type instanceof ClassDeclaration)
205
- // return new type._constructor();
206
-
207
- // return null;
208
- // });
209
- // }
210
-
211
- // return this.objectCache[type];
212
- // }
213
-
214
- // types(parentType: string): (ClassDeclaration|VariableDeclaration)[] {
215
- // if (!this.typeCache[parentType]) {
216
- // const node = this.sourceGraph.node(parentType);
217
- // if (!node)
218
- // throw new Error(`Failed to find types, reason: parent type does not exist: ${parentType}`);
219
-
220
- // const collectedTypes: (ClassDeclaration|VariableDeclaration)[] = [];
221
- // this.collectTypes(parentType, collectedTypes);
222
- // this.typeCache[parentType] = collectedTypes;
223
- // }
224
-
225
- // return this.typeCache[parentType];
226
- // }
227
-
228
- // private collectTypes(type: string, collectedTypes: (ClassDeclaration|VariableDeclaration)[]): void {
229
- // const childTypes = this.sourceGraph.successors(type);
230
- // if (!childTypes)
231
- // return;
232
-
233
- // for (const childType of childTypes) {
234
- // const childNode = this.sourceGraph.node(childType);
235
- // if (!childNode)
236
- // continue;
237
-
238
- // const sourceLink = this.sourceLinks[childNode.qualifiedName];
239
- // if (childNode instanceof VariableDeclaration) {
240
- // childNode.value = sourceLink;
241
- // collectedTypes.push(childNode);
242
- // } else if (childNode instanceof ClassDeclaration && !childNode.isAbstract) {
243
- // childNode._constructor = sourceLink;
244
- // collectedTypes.push(childNode);
245
- // }
246
-
247
- // this.collectTypes(childType, collectedTypes);
248
- // }
249
- // }
250
- }
@@ -1,15 +0,0 @@
1
- import { Loadable } from './Loadable';
2
- import { SourceRepository } from './SourceRepository';
3
-
4
- export const SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME = '@proteinjs/reflection/SourceRepositoryFilter';
5
- export const getSourceRepositoryFilters = () =>
6
- SourceRepository.get().objects<SourceRepositoryFilter>(SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME);
7
-
8
- export interface SourceRepositoryFilter extends Loadable {
9
- /**
10
- * Filter objects that would be returned by `SourceRepository.object` and `SourceRepository.objects`
11
- * @param qualifiedName the package-qualified name of the object to be filtered (ie. `@dependency/package/ClassName`)
12
- * @return true if the object should be returned by the `SourceRepository`
13
- */
14
- filterObject(qualifiedName: string): boolean;
15
- }
@@ -1,14 +0,0 @@
1
- export enum SourceType {
2
- variable,
3
- typeAlias,
4
- class,
5
- interface,
6
- }
7
-
8
- export enum SourceRelationship {
9
- hasType = 'has type',
10
- extendsType = 'extends type',
11
- extendsClass = 'extends class',
12
- implementsInterface = 'implements interface',
13
- extendsInterface = 'extends interface',
14
- }
@@ -1,236 +0,0 @@
1
- export abstract class PackageScope {
2
- public readonly qualifiedName: string;
3
-
4
- constructor(
5
- public readonly packageName: string,
6
- public readonly name: string,
7
- public readonly filePath?: string
8
- ) {
9
- this.qualifiedName = `${packageName}/${name}`;
10
- }
11
- }
12
-
13
- export class Variable extends PackageScope {
14
- constructor(
15
- packageName: string,
16
- name: string,
17
- filePath: string,
18
- public readonly isExported: boolean,
19
- public readonly isConst: boolean,
20
- public readonly value: any,
21
- public readonly typeParameters: { [qualifiedName: string]: (TypeAlias | Interface)[] } = {},
22
- public directParentTypes: { [qualifiedName: string]: TypeAlias | Interface } = {},
23
- public allParentTypes: { [qualifiedName: string]: TypeAlias | Interface } = {},
24
- public rootParentTypes: { [qualifiedName: string]: TypeAlias | Interface } = {}
25
- ) {
26
- super(packageName, name, filePath);
27
- }
28
- }
29
-
30
- export class TypeAlias extends PackageScope {
31
- constructor(
32
- packageName: string,
33
- name: string,
34
- filePath?: string,
35
- public readonly typeParameters: { [qualifiedName: string]: (TypeAlias | Interface)[] } = {},
36
- public readonly directParents: { [qualifiedName: string]: TypeAlias | Interface } = {},
37
- public allParents: { [qualifiedName: string]: TypeAlias | Interface } = {},
38
- public rootParents: { [qualifiedName: string]: TypeAlias | Interface } = {},
39
- public directChildren: { [qualifiedName: string]: TypeAlias | Variable } = {},
40
- public allChildren: { [qualifiedName: string]: TypeAlias | Variable } = {},
41
- public baseChildren: { [qualifiedName: string]: TypeAlias | Variable } = {}
42
- ) {
43
- super(packageName, name, filePath);
44
- }
45
- }
46
-
47
- export class Class extends PackageScope {
48
- constructor(
49
- packageName: string,
50
- name: string,
51
- filePath: string,
52
- public readonly isAbstract: boolean,
53
- public readonly isStatic: boolean,
54
- public readonly visibility: Visibility,
55
- public readonly properties: Property[],
56
- public readonly methods: Method[],
57
- public readonly _constructor: any,
58
- public readonly directParents: { [qualifiedName: string]: Class | Interface | TypeAlias } = {},
59
- public readonly typeParameters: { [qualifiedName: string]: (TypeAlias | Interface | TypeAlias)[] } = {},
60
- public allParents: { [qualifiedName: string]: Class | Interface | TypeAlias } = {},
61
- public rootParents: { [qualifiedName: string]: Class | Interface | TypeAlias } = {},
62
- public directChildren: { [qualifiedName: string]: Class } = {},
63
- public allChildren: { [qualifiedName: string]: Class } = {},
64
- public baseChildren: { [qualifiedName: string]: Class } = {}
65
- ) {
66
- super(packageName, name, filePath);
67
- }
68
- }
69
-
70
- export class Interface extends PackageScope {
71
- constructor(
72
- packageName: string,
73
- name: string,
74
- public readonly properties: Property[],
75
- public readonly methods: Method[],
76
- filePath?: string,
77
- public readonly typeParameters: { [qualifiedName: string]: (TypeAlias | Interface)[] } = {},
78
- public readonly directParents: { [qualifiedName: string]: Interface | TypeAlias } = {},
79
- public allParents: { [qualifiedName: string]: Interface | TypeAlias } = {},
80
- public rootParents: { [qualifiedName: string]: Interface | TypeAlias } = {},
81
- public readonly directChildren: { [qualifiedName: string]: Interface | TypeAlias | Class | Variable } = {},
82
- public allChildren: { [qualifiedName: string]: Interface | TypeAlias | Class | Variable } = {},
83
- public baseChildren: { [qualifiedName: string]: Interface | TypeAlias | Class | Variable } = {}
84
- ) {
85
- super(packageName, name, filePath);
86
- }
87
- }
88
-
89
- export class Method {
90
- constructor(
91
- public readonly name: string,
92
- public readonly returnType: TypeAliasDeclaration | undefined,
93
- public readonly isAsync: boolean,
94
- public readonly isOptional: boolean,
95
- public readonly isAbstract: boolean,
96
- public readonly isStatic: boolean,
97
- public readonly visibility: Visibility,
98
- public readonly parameters: Parameter[]
99
- // public readonly variables: VariableDeclaration[]
100
- ) {}
101
- }
102
-
103
- export type Visibility = 'public' | 'protected' | 'private' | undefined;
104
-
105
- export class Property {
106
- constructor(
107
- public readonly name: string,
108
- public readonly type: TypeAliasDeclaration | undefined,
109
- public readonly isOptional: boolean,
110
- public readonly isAbstract: boolean,
111
- public readonly isStatic: boolean,
112
- public readonly visibility: Visibility
113
- ) {}
114
- }
115
-
116
- export class Parameter {
117
- constructor(
118
- public readonly name: string,
119
- public readonly type: TypeAliasDeclaration | undefined
120
- // public readonly isOptional: boolean
121
- ) {}
122
- }
123
-
124
- /**
125
- * Declarations are intermediary types created by the parser. They do not contain the deeply-nested, relational
126
- * information possible at runtime.
127
- *
128
- * Note: The declaration types specified in typescript-parser are not used because they are not package-scoped.
129
- * The typescript-parser package is a file-level parser, and reflection is a package-level parser.
130
- */
131
-
132
- export class VariableDeclaration extends PackageScope {
133
- constructor(
134
- packageName: string,
135
- name: string,
136
- filePath: string,
137
- public type: TypeAliasDeclaration,
138
- public isExported: boolean,
139
- public isConst: boolean
140
- ) {
141
- super(packageName, name, filePath);
142
- }
143
-
144
- static deserialize(json: any): VariableDeclaration {
145
- return new VariableDeclaration(
146
- json.packageName,
147
- json.name,
148
- json.filePath,
149
- json.type,
150
- json.isExported,
151
- json.isConst
152
- );
153
- }
154
- }
155
-
156
- export class TypeAliasDeclaration extends PackageScope {
157
- constructor(
158
- packageName: string,
159
- name: string,
160
- public typeParameters?: string[],
161
- public directParents?: TypeAliasDeclaration[],
162
- filePath?: string
163
- ) {
164
- super(packageName, name, filePath);
165
- }
166
-
167
- static deserialize(json: any): TypeAliasDeclaration {
168
- return new TypeAliasDeclaration(
169
- json.packageName,
170
- json.name,
171
- json.typeParameters,
172
- json.directParents,
173
- json.filePath
174
- );
175
- }
176
- }
177
-
178
- export class ClassDeclaration extends PackageScope {
179
- constructor(
180
- packageName: string,
181
- name: string,
182
- public readonly isAbstract: boolean,
183
- public readonly isStatic: boolean,
184
- public readonly visibility: Visibility,
185
- public readonly properties: Property[],
186
- public readonly methods: Method[],
187
- public readonly typeParameters: string[],
188
- public readonly directParentInterfaces: InterfaceDeclaration[],
189
- public readonly directParentClasses: ClassDeclaration[],
190
- filePath?: string
191
- ) {
192
- super(packageName, name, filePath);
193
- }
194
-
195
- static deserialize(json: any): ClassDeclaration {
196
- return new ClassDeclaration(
197
- json.packageName,
198
- json.name,
199
- json.isAbstract,
200
- json.isStatic,
201
- json.visibility,
202
- json.properties,
203
- json.methods,
204
- json.typeParameters,
205
- json.directParentInterfaces,
206
- json.directParentClasses,
207
- json.filePath
208
- );
209
- }
210
- }
211
-
212
- export class InterfaceDeclaration extends PackageScope {
213
- constructor(
214
- packageName: string,
215
- name: string,
216
- public readonly properties: Property[],
217
- public readonly methods: Method[],
218
- public readonly typeParameters: string[],
219
- public readonly directParents: InterfaceDeclaration[],
220
- filePath?: string
221
- ) {
222
- super(packageName, name, filePath);
223
- }
224
-
225
- static deserialize(json: any): InterfaceDeclaration {
226
- return new InterfaceDeclaration(
227
- json.packageName,
228
- json.name,
229
- json.properties,
230
- json.methods,
231
- json.typeParameters,
232
- json.directParents,
233
- json.filePath
234
- );
235
- }
236
- }
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "commonjs",
5
- "declaration": true,
6
- "sourceMap": true,
7
- "outDir": "./dist/",
8
- "strict": true,
9
- "noImplicitAny": true,
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "resolveJsonModule": true,
14
- "baseUrl": "./",
15
- "paths": { "*": ["types/*"] },
16
- "types": ["node", "jest"]
17
- },
18
- "include": ["./index.ts"]
19
- }
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,98 +0,0 @@
1
- node-bindings
2
- =============
3
- ### Helper module for loading your native module's `.node` file
4
-
5
- This is a helper module for authors of Node.js native addon modules.
6
- It is basically the "swiss army knife" of `require()`ing your native module's
7
- `.node` file.
8
-
9
- Throughout the course of Node's native addon history, addons have ended up being
10
- compiled in a variety of different places, depending on which build tool and which
11
- version of node was used. To make matters worse, now the `gyp` build tool can
12
- produce either a __Release__ or __Debug__ build, each being built into different
13
- locations.
14
-
15
- This module checks _all_ the possible locations that a native addon would be built
16
- at, and returns the first one that loads successfully.
17
-
18
-
19
- Installation
20
- ------------
21
-
22
- Install with `npm`:
23
-
24
- ``` bash
25
- $ npm install --save bindings
26
- ```
27
-
28
- Or add it to the `"dependencies"` section of your `package.json` file.
29
-
30
-
31
- Example
32
- -------
33
-
34
- `require()`ing the proper bindings file for the current node version, platform
35
- and architecture is as simple as:
36
-
37
- ``` js
38
- var bindings = require('bindings')('binding.node')
39
-
40
- // Use your bindings defined in your C files
41
- bindings.your_c_function()
42
- ```
43
-
44
-
45
- Nice Error Output
46
- -----------------
47
-
48
- When the `.node` file could not be loaded, `node-bindings` throws an Error with
49
- a nice error message telling you exactly what was tried. You can also check the
50
- `err.tries` Array property.
51
-
52
- ```
53
- Error: Could not load the bindings file. Tried:
54
- → /Users/nrajlich/ref/build/binding.node
55
- → /Users/nrajlich/ref/build/Debug/binding.node
56
- → /Users/nrajlich/ref/build/Release/binding.node
57
- → /Users/nrajlich/ref/out/Debug/binding.node
58
- → /Users/nrajlich/ref/Debug/binding.node
59
- → /Users/nrajlich/ref/out/Release/binding.node
60
- → /Users/nrajlich/ref/Release/binding.node
61
- → /Users/nrajlich/ref/build/default/binding.node
62
- → /Users/nrajlich/ref/compiled/0.8.2/darwin/x64/binding.node
63
- at bindings (/Users/nrajlich/ref/node_modules/bindings/bindings.js:84:13)
64
- at Object.<anonymous> (/Users/nrajlich/ref/lib/ref.js:5:47)
65
- at Module._compile (module.js:449:26)
66
- at Object.Module._extensions..js (module.js:467:10)
67
- at Module.load (module.js:356:32)
68
- at Function.Module._load (module.js:312:12)
69
- ...
70
- ```
71
-
72
- The searching for the `.node` file will originate from the first directory in which has a `package.json` file is found.
73
-
74
- License
75
- -------
76
-
77
- (The MIT License)
78
-
79
- Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
80
-
81
- Permission is hereby granted, free of charge, to any person obtaining
82
- a copy of this software and associated documentation files (the
83
- 'Software'), to deal in the Software without restriction, including
84
- without limitation the rights to use, copy, modify, merge, publish,
85
- distribute, sublicense, and/or sell copies of the Software, and to
86
- permit persons to whom the Software is furnished to do so, subject to
87
- the following conditions:
88
-
89
- The above copyright notice and this permission notice shall be
90
- included in all copies or substantial portions of the Software.
91
-
92
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
93
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
94
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
95
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
96
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
97
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
98
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.