@proteinjs/reflection-build 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) 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/src/build.js +30 -15
  4. package/dist/src/build.js.map +1 -1
  5. package/dist/src/codegen/writeGeneratedIndex.d.ts +7 -1
  6. package/dist/src/codegen/writeGeneratedIndex.js +13 -5
  7. package/dist/src/codegen/writeGeneratedIndex.js.map +1 -1
  8. package/dist/src/parser/createSourceGraph.d.ts +1 -1
  9. package/dist/src/parser/createSourceGraph.js +36 -22
  10. package/dist/src/parser/createSourceGraph.js.map +1 -1
  11. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  12. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  13. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  14. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  15. package/package.json +4 -3
  16. package/src/build.ts +45 -14
  17. package/src/codegen/writeGeneratedIndex.ts +23 -4
  18. package/src/parser/createSourceGraph.ts +21 -12
  19. package/test/examples/source-repository/a/dist/build.js +30 -15
  20. package/test/examples/source-repository/a/dist/build.js.map +1 -1
  21. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.d.ts +7 -1
  22. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js +13 -5
  23. package/test/examples/source-repository/a/dist/codegen/writeGeneratedIndex.js.map +1 -1
  24. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  25. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  26. package/test/examples/source-repository/a/dist/parser/createSourceGraph.d.ts +1 -1
  27. package/test/examples/source-repository/a/dist/parser/createSourceGraph.js +36 -22
  28. package/test/examples/source-repository/a/dist/parser/createSourceGraph.js.map +1 -1
  29. package/test/examples/source-repository/a/generated/index.ts +38 -33
  30. package/test/examples/source-repository/a/node_modules/.package-lock.json +0 -53
  31. package/test/examples/source-repository/a/package.json +1 -1
  32. package/test/examples/source-repository/b/dist/build.js +30 -15
  33. package/test/examples/source-repository/b/dist/build.js.map +1 -1
  34. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.d.ts +7 -1
  35. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js +13 -5
  36. package/test/examples/source-repository/b/dist/codegen/writeGeneratedIndex.js.map +1 -1
  37. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  38. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  39. package/test/examples/source-repository/b/dist/parser/createSourceGraph.d.ts +1 -1
  40. package/test/examples/source-repository/b/dist/parser/createSourceGraph.js +36 -22
  41. package/test/examples/source-repository/b/dist/parser/createSourceGraph.js.map +1 -1
  42. package/test/examples/source-repository/b/generated/index.ts +10 -11
  43. package/test/examples/source-repository/b/node_modules/.package-lock.json +0 -53
  44. package/test/examples/source-repository/b/package.json +1 -1
  45. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  46. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  47. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  48. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  49. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  50. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  51. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  52. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  53. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  54. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  55. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  56. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  57. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  58. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  59. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  60. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  61. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  62. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  63. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  64. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  65. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  66. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  67. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  68. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  69. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  70. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +0 -5
  71. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  72. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +0 -42
  73. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  74. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  75. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  76. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  77. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  78. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  79. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  80. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  81. package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +0 -22
  82. package/test/examples/source-repository/a/node_modules/bindings/README.md +0 -98
  83. package/test/examples/source-repository/a/node_modules/bindings/bindings.js +0 -221
  84. package/test/examples/source-repository/a/node_modules/bindings/package.json +0 -28
  85. package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +0 -30
  86. package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +0 -21
  87. package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +0 -20
  88. package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +0 -74
  89. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +0 -2
  90. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +0 -66
  91. package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +0 -32
  92. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +0 -24
  93. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +0 -13
  94. package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +0 -22
  95. package/test/examples/source-repository/a/node_modules/fsevents/README.md +0 -89
  96. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +0 -46
  97. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +0 -83
  98. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
  99. package/test/examples/source-repository/a/node_modules/fsevents/package.json +0 -62
  100. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  101. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  102. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  103. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  104. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  105. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  106. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  107. 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 -75
  108. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  109. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  110. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -188
  111. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -772
  112. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  113. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  114. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  115. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  116. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  117. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  118. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  119. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  120. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  121. package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +0 -557
  122. package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +0 -138
  123. package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +0 -9
  124. package/test/examples/source-repository/a/node_modules/nan/README.md +0 -456
  125. package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +0 -146
  126. package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +0 -54
  127. package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +0 -76
  128. package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +0 -41
  129. package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +0 -226
  130. package/test/examples/source-repository/a/node_modules/nan/doc/json.md +0 -62
  131. package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +0 -583
  132. package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +0 -672
  133. package/test/examples/source-repository/a/node_modules/nan/doc/new.md +0 -147
  134. package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +0 -123
  135. package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +0 -263
  136. package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +0 -296
  137. package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +0 -73
  138. package/test/examples/source-repository/a/node_modules/nan/doc/script.md +0 -58
  139. package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +0 -62
  140. package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +0 -199
  141. package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +0 -85
  142. package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +0 -1
  143. package/test/examples/source-repository/a/node_modules/nan/nan.h +0 -2958
  144. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +0 -92
  145. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  146. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  147. package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +0 -72
  148. package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +0 -68
  149. package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  150. package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +0 -29
  151. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +0 -430
  152. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  153. package/test/examples/source-repository/a/node_modules/nan/nan_json.h +0 -166
  154. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +0 -356
  155. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  156. package/test/examples/source-repository/a/node_modules/nan/nan_new.h +0 -340
  157. package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +0 -156
  158. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +0 -132
  159. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  160. package/test/examples/source-repository/a/node_modules/nan/nan_private.h +0 -73
  161. package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +0 -76
  162. package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +0 -305
  163. package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +0 -96
  164. package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +0 -437
  165. package/test/examples/source-repository/a/node_modules/nan/package.json +0 -38
  166. package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +0 -412
  167. package/test/examples/source-repository/a/node_modules/nan/tools/README.md +0 -14
  168. package/test/examples/source-repository/a/node_modules/nan/tools/package.json +0 -19
  169. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +0 -20
  170. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +0 -4
  171. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +0 -8
  172. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +0 -58
  173. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +0 -5
  174. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +0 -18
  175. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +0 -1
  176. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +0 -19
  177. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +0 -555
  178. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +0 -1
  179. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +0 -3
  180. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +0 -5
  181. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +0 -1
  182. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +0 -45
  183. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +0 -176
  184. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +0 -1
  185. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +0 -11
  186. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +0 -9
  187. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +0 -1
  188. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +0 -13
  189. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +0 -19
  190. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +0 -1
  191. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +0 -221
  192. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +0 -234
  193. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +0 -1
  194. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +0 -5
  195. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +0 -9
  196. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +0 -42
  197. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +0 -702
  198. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +0 -2
  199. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +0 -250
  200. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +0 -15
  201. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +0 -14
  202. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +0 -236
  203. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +0 -19
  204. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +0 -1
  205. package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +0 -22
  206. package/test/examples/source-repository/b/node_modules/bindings/README.md +0 -98
  207. package/test/examples/source-repository/b/node_modules/bindings/bindings.js +0 -221
  208. package/test/examples/source-repository/b/node_modules/bindings/package.json +0 -28
  209. package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +0 -30
  210. package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +0 -21
  211. package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +0 -20
  212. package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +0 -74
  213. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +0 -2
  214. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +0 -66
  215. package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +0 -32
  216. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +0 -24
  217. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +0 -13
  218. package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +0 -22
  219. package/test/examples/source-repository/b/node_modules/fsevents/README.md +0 -89
  220. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +0 -46
  221. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +0 -83
  222. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
  223. package/test/examples/source-repository/b/node_modules/fsevents/package.json +0 -62
  224. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +0 -103
  225. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  226. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +0 -22
  227. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +0 -78
  228. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +0 -21
  229. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +0 -53
  230. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +0 -352
  231. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +0 -1
  232. 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 -75
  233. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  234. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +0 -6
  235. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +0 -188
  236. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +0 -772
  237. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +0 -88
  238. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +0 -106
  239. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +0 -13
  240. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +0 -34
  241. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +0 -43
  242. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +0 -110
  243. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +0 -44
  244. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +0 -27
  245. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +0 -71
  246. package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +0 -557
  247. package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +0 -138
  248. package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +0 -9
  249. package/test/examples/source-repository/b/node_modules/nan/README.md +0 -456
  250. package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +0 -146
  251. package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +0 -54
  252. package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +0 -76
  253. package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +0 -41
  254. package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +0 -226
  255. package/test/examples/source-repository/b/node_modules/nan/doc/json.md +0 -62
  256. package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +0 -583
  257. package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +0 -672
  258. package/test/examples/source-repository/b/node_modules/nan/doc/new.md +0 -147
  259. package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +0 -123
  260. package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +0 -263
  261. package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +0 -296
  262. package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +0 -73
  263. package/test/examples/source-repository/b/node_modules/nan/doc/script.md +0 -58
  264. package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +0 -62
  265. package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +0 -199
  266. package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +0 -85
  267. package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +0 -1
  268. package/test/examples/source-repository/b/node_modules/nan/nan.h +0 -2958
  269. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +0 -92
  270. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +0 -520
  271. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  272. package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +0 -72
  273. package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +0 -68
  274. package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  275. package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +0 -29
  276. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +0 -430
  277. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  278. package/test/examples/source-repository/b/node_modules/nan/nan_json.h +0 -166
  279. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +0 -356
  280. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  281. package/test/examples/source-repository/b/node_modules/nan/nan_new.h +0 -340
  282. package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +0 -156
  283. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +0 -132
  284. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  285. package/test/examples/source-repository/b/node_modules/nan/nan_private.h +0 -73
  286. package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +0 -76
  287. package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +0 -305
  288. package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +0 -96
  289. package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +0 -437
  290. package/test/examples/source-repository/b/node_modules/nan/package.json +0 -38
  291. package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +0 -412
  292. package/test/examples/source-repository/b/node_modules/nan/tools/README.md +0 -14
  293. package/test/examples/source-repository/b/node_modules/nan/tools/package.json +0 -19
@@ -1,221 +0,0 @@
1
- /**
2
- * Module dependencies.
3
- */
4
-
5
- var fs = require('fs'),
6
- path = require('path'),
7
- fileURLToPath = require('file-uri-to-path'),
8
- join = path.join,
9
- dirname = path.dirname,
10
- exists =
11
- (fs.accessSync &&
12
- function(path) {
13
- try {
14
- fs.accessSync(path);
15
- } catch (e) {
16
- return false;
17
- }
18
- return true;
19
- }) ||
20
- fs.existsSync ||
21
- path.existsSync,
22
- defaults = {
23
- arrow: process.env.NODE_BINDINGS_ARROW || ' → ',
24
- compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled',
25
- platform: process.platform,
26
- arch: process.arch,
27
- nodePreGyp:
28
- 'node-v' +
29
- process.versions.modules +
30
- '-' +
31
- process.platform +
32
- '-' +
33
- process.arch,
34
- version: process.versions.node,
35
- bindings: 'bindings.node',
36
- try: [
37
- // node-gyp's linked version in the "build" dir
38
- ['module_root', 'build', 'bindings'],
39
- // node-waf and gyp_addon (a.k.a node-gyp)
40
- ['module_root', 'build', 'Debug', 'bindings'],
41
- ['module_root', 'build', 'Release', 'bindings'],
42
- // Debug files, for development (legacy behavior, remove for node v0.9)
43
- ['module_root', 'out', 'Debug', 'bindings'],
44
- ['module_root', 'Debug', 'bindings'],
45
- // Release files, but manually compiled (legacy behavior, remove for node v0.9)
46
- ['module_root', 'out', 'Release', 'bindings'],
47
- ['module_root', 'Release', 'bindings'],
48
- // Legacy from node-waf, node <= 0.4.x
49
- ['module_root', 'build', 'default', 'bindings'],
50
- // Production "Release" buildtype binary (meh...)
51
- ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings'],
52
- // node-qbs builds
53
- ['module_root', 'addon-build', 'release', 'install-root', 'bindings'],
54
- ['module_root', 'addon-build', 'debug', 'install-root', 'bindings'],
55
- ['module_root', 'addon-build', 'default', 'install-root', 'bindings'],
56
- // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
57
- ['module_root', 'lib', 'binding', 'nodePreGyp', 'bindings']
58
- ]
59
- };
60
-
61
- /**
62
- * The main `bindings()` function loads the compiled bindings for a given module.
63
- * It uses V8's Error API to determine the parent filename that this function is
64
- * being invoked from, which is then used to find the root directory.
65
- */
66
-
67
- function bindings(opts) {
68
- // Argument surgery
69
- if (typeof opts == 'string') {
70
- opts = { bindings: opts };
71
- } else if (!opts) {
72
- opts = {};
73
- }
74
-
75
- // maps `defaults` onto `opts` object
76
- Object.keys(defaults).map(function(i) {
77
- if (!(i in opts)) opts[i] = defaults[i];
78
- });
79
-
80
- // Get the module root
81
- if (!opts.module_root) {
82
- opts.module_root = exports.getRoot(exports.getFileName());
83
- }
84
-
85
- // Ensure the given bindings name ends with .node
86
- if (path.extname(opts.bindings) != '.node') {
87
- opts.bindings += '.node';
88
- }
89
-
90
- // https://github.com/webpack/webpack/issues/4175#issuecomment-342931035
91
- var requireFunc =
92
- typeof __webpack_require__ === 'function'
93
- ? __non_webpack_require__
94
- : require;
95
-
96
- var tries = [],
97
- i = 0,
98
- l = opts.try.length,
99
- n,
100
- b,
101
- err;
102
-
103
- for (; i < l; i++) {
104
- n = join.apply(
105
- null,
106
- opts.try[i].map(function(p) {
107
- return opts[p] || p;
108
- })
109
- );
110
- tries.push(n);
111
- try {
112
- b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
113
- if (!opts.path) {
114
- b.path = n;
115
- }
116
- return b;
117
- } catch (e) {
118
- if (e.code !== 'MODULE_NOT_FOUND' &&
119
- e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' &&
120
- !/not find/i.test(e.message)) {
121
- throw e;
122
- }
123
- }
124
- }
125
-
126
- err = new Error(
127
- 'Could not locate the bindings file. Tried:\n' +
128
- tries
129
- .map(function(a) {
130
- return opts.arrow + a;
131
- })
132
- .join('\n')
133
- );
134
- err.tries = tries;
135
- throw err;
136
- }
137
- module.exports = exports = bindings;
138
-
139
- /**
140
- * Gets the filename of the JavaScript file that invokes this function.
141
- * Used to help find the root directory of a module.
142
- * Optionally accepts an filename argument to skip when searching for the invoking filename
143
- */
144
-
145
- exports.getFileName = function getFileName(calling_file) {
146
- var origPST = Error.prepareStackTrace,
147
- origSTL = Error.stackTraceLimit,
148
- dummy = {},
149
- fileName;
150
-
151
- Error.stackTraceLimit = 10;
152
-
153
- Error.prepareStackTrace = function(e, st) {
154
- for (var i = 0, l = st.length; i < l; i++) {
155
- fileName = st[i].getFileName();
156
- if (fileName !== __filename) {
157
- if (calling_file) {
158
- if (fileName !== calling_file) {
159
- return;
160
- }
161
- } else {
162
- return;
163
- }
164
- }
165
- }
166
- };
167
-
168
- // run the 'prepareStackTrace' function above
169
- Error.captureStackTrace(dummy);
170
- dummy.stack;
171
-
172
- // cleanup
173
- Error.prepareStackTrace = origPST;
174
- Error.stackTraceLimit = origSTL;
175
-
176
- // handle filename that starts with "file://"
177
- var fileSchema = 'file://';
178
- if (fileName.indexOf(fileSchema) === 0) {
179
- fileName = fileURLToPath(fileName);
180
- }
181
-
182
- return fileName;
183
- };
184
-
185
- /**
186
- * Gets the root directory of a module, given an arbitrary filename
187
- * somewhere in the module tree. The "root directory" is the directory
188
- * containing the `package.json` file.
189
- *
190
- * In: /home/nate/node-native-module/lib/index.js
191
- * Out: /home/nate/node-native-module
192
- */
193
-
194
- exports.getRoot = function getRoot(file) {
195
- var dir = dirname(file),
196
- prev;
197
- while (true) {
198
- if (dir === '.') {
199
- // Avoids an infinite loop in rare cases, like the REPL
200
- dir = process.cwd();
201
- }
202
- if (
203
- exists(join(dir, 'package.json')) ||
204
- exists(join(dir, 'node_modules'))
205
- ) {
206
- // Found the 'package.json' file or 'node_modules' dir; we're done
207
- return dir;
208
- }
209
- if (prev === dir) {
210
- // Got to the top
211
- throw new Error(
212
- 'Could not find module root given file: "' +
213
- file +
214
- '". Do you have a `package.json` file? '
215
- );
216
- }
217
- // Try the parent dir next
218
- prev = dir;
219
- dir = join(dir, '..');
220
- }
221
- };
@@ -1,28 +0,0 @@
1
- {
2
- "name": "bindings",
3
- "description": "Helper module for loading your native module's .node file",
4
- "keywords": [
5
- "native",
6
- "addon",
7
- "bindings",
8
- "gyp",
9
- "waf",
10
- "c",
11
- "c++"
12
- ],
13
- "version": "1.5.0",
14
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
15
- "repository": {
16
- "type": "git",
17
- "url": "git://github.com/TooTallNate/node-bindings.git"
18
- },
19
- "main": "./bindings.js",
20
- "bugs": {
21
- "url": "https://github.com/TooTallNate/node-bindings/issues"
22
- },
23
- "homepage": "https://github.com/TooTallNate/node-bindings",
24
- "license": "MIT",
25
- "dependencies": {
26
- "file-uri-to-path": "1.0.0"
27
- }
28
- }
@@ -1,30 +0,0 @@
1
- sudo: false
2
-
3
- language: node_js
4
-
5
- node_js:
6
- - "0.8"
7
- - "0.10"
8
- - "0.12"
9
- - "1"
10
- - "2"
11
- - "3"
12
- - "4"
13
- - "5"
14
- - "6"
15
- - "7"
16
- - "8"
17
-
18
- install:
19
- - PATH="`npm bin`:`npm bin -g`:$PATH"
20
- # Node 0.8 comes with a too obsolete npm
21
- - if [[ "`node --version`" =~ ^v0\.8\. ]]; then npm install -g npm@1.4.28 ; fi
22
- # Install dependencies and build
23
- - npm install
24
-
25
- script:
26
- # Output useful info for debugging
27
- - node --version
28
- - npm --version
29
- # Run tests
30
- - npm test
@@ -1,21 +0,0 @@
1
-
2
- 1.0.0 / 2017-07-06
3
- ==================
4
-
5
- * update "mocha" to v3
6
- * fixed unicode URI decoding (#6)
7
- * add typings for Typescript
8
- * README: use SVG Travis-CI badge
9
- * add LICENSE file (MIT)
10
- * add .travis.yml file (testing Node.js 0.8 through 8 currently)
11
- * add README.md file
12
-
13
- 0.0.2 / 2014-01-27
14
- ==================
15
-
16
- * index: invert the path separators on Windows
17
-
18
- 0.0.1 / 2014-01-27
19
- ==================
20
-
21
- * initial commit
@@ -1,20 +0,0 @@
1
- Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- 'Software'), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,74 +0,0 @@
1
- file-uri-to-path
2
- ================
3
- ### Convert a `file:` URI to a file path
4
- [![Build Status](https://travis-ci.org/TooTallNate/file-uri-to-path.svg?branch=master)](https://travis-ci.org/TooTallNate/file-uri-to-path)
5
-
6
- Accepts a `file:` URI and returns a regular file path suitable for use with the
7
- `fs` module functions.
8
-
9
-
10
- Installation
11
- ------------
12
-
13
- Install with `npm`:
14
-
15
- ``` bash
16
- $ npm install file-uri-to-path
17
- ```
18
-
19
-
20
- Example
21
- -------
22
-
23
- ``` js
24
- var uri2path = require('file-uri-to-path');
25
-
26
- uri2path('file://localhost/c|/WINDOWS/clock.avi');
27
- // "c:\\WINDOWS\\clock.avi"
28
-
29
- uri2path('file:///c|/WINDOWS/clock.avi');
30
- // "c:\\WINDOWS\\clock.avi"
31
-
32
- uri2path('file://localhost/c:/WINDOWS/clock.avi');
33
- // "c:\\WINDOWS\\clock.avi"
34
-
35
- uri2path('file://hostname/path/to/the%20file.txt');
36
- // "\\\\hostname\\path\\to\\the file.txt"
37
-
38
- uri2path('file:///c:/path/to/the%20file.txt');
39
- // "c:\\path\\to\\the file.txt"
40
- ```
41
-
42
-
43
- API
44
- ---
45
-
46
- ### fileUriToPath(String uri) → String
47
-
48
-
49
-
50
- License
51
- -------
52
-
53
- (The MIT License)
54
-
55
- Copyright (c) 2014 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
56
-
57
- Permission is hereby granted, free of charge, to any person obtaining
58
- a copy of this software and associated documentation files (the
59
- 'Software'), to deal in the Software without restriction, including
60
- without limitation the rights to use, copy, modify, merge, publish,
61
- distribute, sublicense, and/or sell copies of the Software, and to
62
- permit persons to whom the Software is furnished to do so, subject to
63
- the following conditions:
64
-
65
- The above copyright notice and this permission notice shall be
66
- included in all copies or substantial portions of the Software.
67
-
68
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
69
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
71
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
72
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
73
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
74
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,2 +0,0 @@
1
- declare function fileUriToPath(uri: string): string;
2
- export = fileUriToPath;
@@ -1,66 +0,0 @@
1
-
2
- /**
3
- * Module dependencies.
4
- */
5
-
6
- var sep = require('path').sep || '/';
7
-
8
- /**
9
- * Module exports.
10
- */
11
-
12
- module.exports = fileUriToPath;
13
-
14
- /**
15
- * File URI to Path function.
16
- *
17
- * @param {String} uri
18
- * @return {String} path
19
- * @api public
20
- */
21
-
22
- function fileUriToPath (uri) {
23
- if ('string' != typeof uri ||
24
- uri.length <= 7 ||
25
- 'file://' != uri.substring(0, 7)) {
26
- throw new TypeError('must pass in a file:// URI to convert to a file path');
27
- }
28
-
29
- var rest = decodeURI(uri.substring(7));
30
- var firstSlash = rest.indexOf('/');
31
- var host = rest.substring(0, firstSlash);
32
- var path = rest.substring(firstSlash + 1);
33
-
34
- // 2. Scheme Definition
35
- // As a special case, <host> can be the string "localhost" or the empty
36
- // string; this is interpreted as "the machine from which the URL is
37
- // being interpreted".
38
- if ('localhost' == host) host = '';
39
-
40
- if (host) {
41
- host = sep + sep + host;
42
- }
43
-
44
- // 3.2 Drives, drive letters, mount points, file system root
45
- // Drive letters are mapped into the top of a file URI in various ways,
46
- // depending on the implementation; some applications substitute
47
- // vertical bar ("|") for the colon after the drive letter, yielding
48
- // "file:///c|/tmp/test.txt". In some cases, the colon is left
49
- // unchanged, as in "file:///c:/tmp/test.txt". In other cases, the
50
- // colon is simply omitted, as in "file:///c/tmp/test.txt".
51
- path = path.replace(/^(.+)\|/, '$1:');
52
-
53
- // for Windows, we need to invert the path separators from what a URI uses
54
- if (sep == '\\') {
55
- path = path.replace(/\//g, '\\');
56
- }
57
-
58
- if (/^.+\:/.test(path)) {
59
- // has Windows drive at beginning of path
60
- } else {
61
- // unix path…
62
- path = sep + path;
63
- }
64
-
65
- return host + path;
66
- }
@@ -1,32 +0,0 @@
1
- {
2
- "name": "file-uri-to-path",
3
- "version": "1.0.0",
4
- "description": "Convert a file: URI to a file path",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "directories": {
8
- "test": "test"
9
- },
10
- "scripts": {
11
- "test": "mocha --reporter spec"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git://github.com/TooTallNate/file-uri-to-path.git"
16
- },
17
- "keywords": [
18
- "file",
19
- "uri",
20
- "convert",
21
- "path"
22
- ],
23
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
24
- "license": "MIT",
25
- "bugs": {
26
- "url": "https://github.com/TooTallNate/file-uri-to-path/issues"
27
- },
28
- "homepage": "https://github.com/TooTallNate/file-uri-to-path",
29
- "devDependencies": {
30
- "mocha": "3"
31
- }
32
- }
@@ -1,24 +0,0 @@
1
-
2
- var sep = require('path').sep || '/';
3
- var assert = require('assert');
4
- var uri2path = require('../');
5
- var tests = require('./tests.json');
6
-
7
- describe('file-uri-to-path', function () {
8
-
9
- Object.keys(tests).forEach(function (uri) {
10
-
11
- // the test cases were generated from Windows' PathCreateFromUrlA() function.
12
- // On Unix, we have to replace the path separator with the Unix one instead of
13
- // the Windows one.
14
- var expected = tests[uri].replace(/\\/g, sep);
15
-
16
- it('should convert ' + JSON.stringify(uri) + ' to ' + JSON.stringify(expected),
17
- function () {
18
- var actual = uri2path(uri);
19
- assert.equal(actual, expected);
20
- });
21
-
22
- });
23
-
24
- });
@@ -1,13 +0,0 @@
1
- {
2
- "file://host/path": "\\\\host\\path",
3
- "file://localhost/etc/fstab": "\\etc\\fstab",
4
- "file:///etc/fstab": "\\etc\\fstab",
5
- "file:///c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
6
- "file://localhost/c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
7
- "file:///c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
8
- "file://localhost/c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
9
- "file://hostname/path/to/the%20file.txt": "\\\\hostname\\path\\to\\the file.txt",
10
- "file:///c:/path/to/the%20file.txt": "c:\\path\\to\\the file.txt",
11
- "file:///C:/Documents%20and%20Settings/davris/FileSchemeURIs.doc": "C:\\Documents and Settings\\davris\\FileSchemeURIs.doc",
12
- "file:///C:/caf%C3%A9/%C3%A5r/d%C3%BCnn/%E7%89%9B%E9%93%83/Ph%E1%BB%9F/%F0%9F%98%B5.exe": "C:\\café\\år\\dünn\\牛铃\\Phở\\😵.exe"
13
- }
@@ -1,22 +0,0 @@
1
- MIT License
2
- -----------
3
-
4
- Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
@@ -1,89 +0,0 @@
1
- # fsevents
2
-
3
- Native access to MacOS FSEvents in [Node.js](https://nodejs.org/)
4
-
5
- The FSEvents API in MacOS allows applications to register for notifications of
6
- changes to a given directory tree. It is a very fast and lightweight alternative
7
- to kqueue.
8
-
9
- This is a low-level library. For a cross-platform file watching module that
10
- uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar).
11
-
12
- ## Usage
13
-
14
- ```sh
15
- npm install fsevents
16
- ```
17
-
18
- Supports only **Node.js v8.16 and higher**.
19
-
20
- ```js
21
- const fsevents = require('fsevents');
22
-
23
- // To start observation
24
- const stop = fsevents.watch(__dirname, (path, flags, id) => {
25
- const info = fsevents.getInfo(path, flags);
26
- });
27
-
28
- // To end observation
29
- stop();
30
- ```
31
-
32
- > **Important note:** The API behaviour is slightly different from typical JS APIs. The `stop` function **must** be
33
- > retrieved and stored somewhere, even if you don't plan to stop the watcher. If you forget it, the garbage collector
34
- > will eventually kick in, the watcher will be unregistered, and your callbacks won't be called anymore.
35
-
36
- The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a
37
- a change in the file system. It takes three arguments:
38
-
39
- ###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise<undefined>`
40
-
41
- * `path: string` - the item in the filesystem that have been changed
42
- * `flags: number` - a numeric value describing what the change was
43
- * `id: string` - an unique-id identifying this specific event
44
-
45
- Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down.
46
-
47
- ###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo`
48
-
49
- The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure
50
- that is easier to digest to determine what the change was.
51
-
52
- The `FsEventsInfo` has the following shape:
53
-
54
- ```js
55
- /**
56
- * @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent
57
- * @typedef {'file'|'directory'|'symlink'} FsEventsType
58
- */
59
- {
60
- "event": "created", // {FsEventsEvent}
61
- "path": "file.txt",
62
- "type": "file", // {FsEventsType}
63
- "changes": {
64
- "inode": true, // Had iNode Meta-Information changed
65
- "finder": false, // Had Finder Meta-Data changed
66
- "access": false, // Had access permissions changed
67
- "xattrs": false // Had xAttributes changed
68
- },
69
- "flags": 0x100000000
70
- }
71
- ```
72
-
73
- ## Changelog
74
-
75
- - v2.3 supports Apple Silicon ARM CPUs
76
- - v2 supports node 8.16+ and reduces package size massively
77
- - v1.2.8 supports node 6+
78
- - v1.2.7 supports node 4+
79
-
80
- ## Troubleshooting
81
-
82
- - I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error.
83
- - It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.
84
-
85
- ## License
86
-
87
- The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file.
88
-
89
- Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents)