@quantiya/codevibe-claude-plugin 1.0.13 → 1.0.15

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 (439) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/node_modules/@quantiya/codevibe-core/README.md +179 -0
  3. package/node_modules/@quantiya/codevibe-core/bin/codevibe.js +7 -0
  4. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +132 -0
  5. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +2 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +16 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.d.ts +5 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.d.ts +87 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/auth/fetch-helpers.d.ts +11 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/auth/index.d.ts +2 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +53 -0
  12. package/node_modules/@quantiya/codevibe-core/dist/config/index.d.ts +2 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.d.ts +118 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +1 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +14 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/index.js +220 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/keychain/index.d.ts +1 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-backend.d.ts +3 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +139 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/logger/index.d.ts +1 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/logger/logger.d.ts +35 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +39 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +2 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +55 -0
  25. package/node_modules/@quantiya/codevibe-core/dist/types/auth.d.ts +15 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +54 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +74 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +4 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +59 -0
  30. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +274 -0
  31. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +18 -0
  32. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/LICENSE.md +9 -0
  33. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +466 -0
  34. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +2 -0
  35. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  36. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  37. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  38. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  39. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  40. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  41. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  42. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  43. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  44. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  45. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  46. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  47. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  48. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  49. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  50. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  51. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +9 -0
  52. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  53. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +4 -0
  54. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  55. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  56. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  57. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  58. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  59. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  60. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  61. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  62. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  63. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  64. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  65. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  66. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +11 -0
  67. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/index.js +9 -0
  68. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +13 -0
  69. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +4 -0
  70. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +1 -0
  71. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +35 -0
  72. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +1 -0
  73. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +12 -0
  74. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  75. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  76. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +95 -0
  77. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +4 -0
  78. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +66 -0
  79. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +29 -0
  80. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +4 -0
  81. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +7 -0
  82. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +11 -0
  83. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +79 -0
  84. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +223 -0
  85. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +23 -0
  86. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +11 -0
  87. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +15 -0
  88. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +8 -0
  89. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +45 -0
  90. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +8 -0
  91. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +25 -0
  92. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +24 -0
  93. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +104 -0
  94. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +23 -0
  95. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +44 -0
  96. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +85 -0
  97. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +107 -0
  98. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +16 -0
  99. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +80 -0
  100. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +43 -0
  101. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +16 -0
  102. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +17 -0
  103. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +21 -0
  104. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +135 -0
  105. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +10 -0
  106. package/node_modules/@quantiya/codevibe-core/package.json +56 -0
  107. package/node_modules/base64-js/LICENSE +21 -0
  108. package/node_modules/base64-js/README.md +34 -0
  109. package/node_modules/base64-js/base64js.min.js +1 -0
  110. package/node_modules/base64-js/index.d.ts +3 -0
  111. package/node_modules/base64-js/index.js +150 -0
  112. package/node_modules/base64-js/package.json +47 -0
  113. package/node_modules/bl/.travis.yml +17 -0
  114. package/node_modules/bl/BufferList.js +396 -0
  115. package/node_modules/bl/LICENSE.md +13 -0
  116. package/node_modules/bl/README.md +247 -0
  117. package/node_modules/bl/bl.js +84 -0
  118. package/node_modules/bl/package.json +37 -0
  119. package/node_modules/bl/test/convert.js +21 -0
  120. package/node_modules/bl/test/indexOf.js +492 -0
  121. package/node_modules/bl/test/isBufferList.js +32 -0
  122. package/node_modules/bl/test/test.js +869 -0
  123. package/node_modules/buffer/AUTHORS.md +70 -0
  124. package/node_modules/buffer/LICENSE +21 -0
  125. package/node_modules/buffer/README.md +410 -0
  126. package/node_modules/buffer/index.d.ts +186 -0
  127. package/node_modules/buffer/index.js +1817 -0
  128. package/node_modules/buffer/package.json +96 -0
  129. package/node_modules/chownr/LICENSE +15 -0
  130. package/node_modules/chownr/README.md +3 -0
  131. package/node_modules/chownr/chownr.js +167 -0
  132. package/node_modules/chownr/package.json +29 -0
  133. package/node_modules/decompress-response/index.d.ts +22 -0
  134. package/node_modules/decompress-response/index.js +58 -0
  135. package/node_modules/decompress-response/license +9 -0
  136. package/node_modules/decompress-response/package.json +56 -0
  137. package/node_modules/decompress-response/readme.md +48 -0
  138. package/node_modules/deep-extend/CHANGELOG.md +46 -0
  139. package/node_modules/deep-extend/LICENSE +20 -0
  140. package/node_modules/deep-extend/README.md +91 -0
  141. package/node_modules/deep-extend/index.js +1 -0
  142. package/node_modules/deep-extend/lib/deep-extend.js +150 -0
  143. package/node_modules/deep-extend/package.json +62 -0
  144. package/node_modules/detect-libc/LICENSE +201 -0
  145. package/node_modules/detect-libc/README.md +163 -0
  146. package/node_modules/detect-libc/index.d.ts +14 -0
  147. package/node_modules/detect-libc/lib/detect-libc.js +313 -0
  148. package/node_modules/detect-libc/lib/elf.js +39 -0
  149. package/node_modules/detect-libc/lib/filesystem.js +51 -0
  150. package/node_modules/detect-libc/lib/process.js +24 -0
  151. package/node_modules/detect-libc/package.json +44 -0
  152. package/node_modules/end-of-stream/LICENSE +21 -0
  153. package/node_modules/end-of-stream/README.md +54 -0
  154. package/node_modules/end-of-stream/index.js +96 -0
  155. package/node_modules/end-of-stream/package.json +37 -0
  156. package/node_modules/expand-template/.travis.yml +6 -0
  157. package/node_modules/expand-template/LICENSE +21 -0
  158. package/node_modules/expand-template/README.md +43 -0
  159. package/node_modules/expand-template/index.js +26 -0
  160. package/node_modules/expand-template/package.json +29 -0
  161. package/node_modules/expand-template/test.js +67 -0
  162. package/node_modules/fs-constants/LICENSE +21 -0
  163. package/node_modules/fs-constants/README.md +26 -0
  164. package/node_modules/fs-constants/browser.js +1 -0
  165. package/node_modules/fs-constants/index.js +1 -0
  166. package/node_modules/fs-constants/package.json +19 -0
  167. package/node_modules/github-from-package/.travis.yml +4 -0
  168. package/node_modules/github-from-package/LICENSE +18 -0
  169. package/node_modules/github-from-package/example/package.json +8 -0
  170. package/node_modules/github-from-package/example/url.js +3 -0
  171. package/node_modules/github-from-package/index.js +17 -0
  172. package/node_modules/github-from-package/package.json +30 -0
  173. package/node_modules/github-from-package/readme.markdown +53 -0
  174. package/node_modules/github-from-package/test/a.json +8 -0
  175. package/node_modules/github-from-package/test/b.json +5 -0
  176. package/node_modules/github-from-package/test/c.json +5 -0
  177. package/node_modules/github-from-package/test/d.json +7 -0
  178. package/node_modules/github-from-package/test/e.json +5 -0
  179. package/node_modules/github-from-package/test/url.js +19 -0
  180. package/node_modules/ieee754/LICENSE +11 -0
  181. package/node_modules/ieee754/README.md +51 -0
  182. package/node_modules/ieee754/index.d.ts +10 -0
  183. package/node_modules/ieee754/index.js +85 -0
  184. package/node_modules/ieee754/package.json +52 -0
  185. package/node_modules/ini/LICENSE +15 -0
  186. package/node_modules/ini/README.md +102 -0
  187. package/node_modules/ini/ini.js +206 -0
  188. package/node_modules/ini/package.json +33 -0
  189. package/node_modules/keytar/LICENSE.md +20 -0
  190. package/node_modules/keytar/README.md +94 -0
  191. package/node_modules/keytar/binding.gyp +66 -0
  192. package/node_modules/keytar/build/Release/keytar.node +0 -0
  193. package/node_modules/keytar/keytar.d.ts +51 -0
  194. package/node_modules/keytar/lib/keytar.js +43 -0
  195. package/node_modules/keytar/package.json +66 -0
  196. package/node_modules/keytar/src/async.cc +242 -0
  197. package/node_modules/keytar/src/async.h +103 -0
  198. package/node_modules/keytar/src/credentials.h +13 -0
  199. package/node_modules/keytar/src/keytar.h +41 -0
  200. package/node_modules/keytar/src/keytar_mac.cc +296 -0
  201. package/node_modules/keytar/src/keytar_posix.cc +184 -0
  202. package/node_modules/keytar/src/keytar_win.cc +272 -0
  203. package/node_modules/keytar/src/main.cc +139 -0
  204. package/node_modules/mimic-response/index.d.ts +17 -0
  205. package/node_modules/mimic-response/index.js +77 -0
  206. package/node_modules/mimic-response/license +9 -0
  207. package/node_modules/mimic-response/package.json +42 -0
  208. package/node_modules/mimic-response/readme.md +78 -0
  209. package/node_modules/minimist/.eslintrc +29 -0
  210. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  211. package/node_modules/minimist/.nycrc +14 -0
  212. package/node_modules/minimist/CHANGELOG.md +298 -0
  213. package/node_modules/minimist/LICENSE +18 -0
  214. package/node_modules/minimist/README.md +121 -0
  215. package/node_modules/minimist/example/parse.js +4 -0
  216. package/node_modules/minimist/index.js +263 -0
  217. package/node_modules/minimist/package.json +75 -0
  218. package/node_modules/minimist/test/all_bool.js +34 -0
  219. package/node_modules/minimist/test/bool.js +177 -0
  220. package/node_modules/minimist/test/dash.js +43 -0
  221. package/node_modules/minimist/test/default_bool.js +37 -0
  222. package/node_modules/minimist/test/dotted.js +24 -0
  223. package/node_modules/minimist/test/kv_short.js +32 -0
  224. package/node_modules/minimist/test/long.js +33 -0
  225. package/node_modules/minimist/test/num.js +38 -0
  226. package/node_modules/minimist/test/parse.js +209 -0
  227. package/node_modules/minimist/test/parse_modified.js +11 -0
  228. package/node_modules/minimist/test/proto.js +64 -0
  229. package/node_modules/minimist/test/short.js +69 -0
  230. package/node_modules/minimist/test/stop_early.js +17 -0
  231. package/node_modules/minimist/test/unknown.js +104 -0
  232. package/node_modules/minimist/test/whitespace.js +10 -0
  233. package/node_modules/mkdirp-classic/LICENSE +21 -0
  234. package/node_modules/mkdirp-classic/README.md +18 -0
  235. package/node_modules/mkdirp-classic/index.js +98 -0
  236. package/node_modules/mkdirp-classic/package.json +18 -0
  237. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
  238. package/node_modules/napi-build-utils/LICENSE +21 -0
  239. package/node_modules/napi-build-utils/README.md +52 -0
  240. package/node_modules/napi-build-utils/index.js +214 -0
  241. package/node_modules/napi-build-utils/index.md +0 -0
  242. package/node_modules/napi-build-utils/package.json +42 -0
  243. package/node_modules/node-abi/LICENSE +21 -0
  244. package/node_modules/node-abi/README.md +54 -0
  245. package/node_modules/node-abi/abi_registry.json +439 -0
  246. package/node_modules/node-abi/index.js +179 -0
  247. package/node_modules/node-abi/package.json +45 -0
  248. package/node_modules/node-addon-api/LICENSE.md +13 -0
  249. package/node_modules/node-addon-api/README.md +293 -0
  250. package/node_modules/node-addon-api/common.gypi +21 -0
  251. package/node_modules/node-addon-api/except.gypi +25 -0
  252. package/node_modules/node-addon-api/index.js +11 -0
  253. package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
  254. package/node_modules/node-addon-api/napi-inl.h +6209 -0
  255. package/node_modules/node-addon-api/napi.h +2983 -0
  256. package/node_modules/node-addon-api/node_api.gyp +9 -0
  257. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  258. package/node_modules/node-addon-api/nothing.c +0 -0
  259. package/node_modules/node-addon-api/package-support.json +21 -0
  260. package/node_modules/node-addon-api/package.json +399 -0
  261. package/node_modules/node-addon-api/tools/README.md +73 -0
  262. package/node_modules/node-addon-api/tools/check-napi.js +100 -0
  263. package/node_modules/node-addon-api/tools/clang-format.js +68 -0
  264. package/node_modules/node-addon-api/tools/conversion.js +309 -0
  265. package/node_modules/node-addon-api/tools/eslint-format.js +71 -0
  266. package/node_modules/prebuild-install/CHANGELOG.md +131 -0
  267. package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
  268. package/node_modules/prebuild-install/LICENSE +21 -0
  269. package/node_modules/prebuild-install/README.md +163 -0
  270. package/node_modules/prebuild-install/asset.js +44 -0
  271. package/node_modules/prebuild-install/bin.js +78 -0
  272. package/node_modules/prebuild-install/download.js +142 -0
  273. package/node_modules/prebuild-install/error.js +14 -0
  274. package/node_modules/prebuild-install/help.txt +16 -0
  275. package/node_modules/prebuild-install/index.js +1 -0
  276. package/node_modules/prebuild-install/log.js +33 -0
  277. package/node_modules/prebuild-install/package.json +67 -0
  278. package/node_modules/prebuild-install/proxy.js +35 -0
  279. package/node_modules/prebuild-install/rc.js +64 -0
  280. package/node_modules/prebuild-install/util.js +143 -0
  281. package/node_modules/pump/.github/FUNDING.yml +2 -0
  282. package/node_modules/pump/.travis.yml +5 -0
  283. package/node_modules/pump/LICENSE +21 -0
  284. package/node_modules/pump/README.md +74 -0
  285. package/node_modules/pump/SECURITY.md +5 -0
  286. package/node_modules/pump/empty.js +1 -0
  287. package/node_modules/pump/index.js +86 -0
  288. package/node_modules/pump/package.json +30 -0
  289. package/node_modules/pump/test-browser.js +66 -0
  290. package/node_modules/pump/test-node.js +53 -0
  291. package/node_modules/rc/LICENSE.APACHE2 +15 -0
  292. package/node_modules/rc/LICENSE.BSD +26 -0
  293. package/node_modules/rc/LICENSE.MIT +24 -0
  294. package/node_modules/rc/README.md +227 -0
  295. package/node_modules/rc/browser.js +7 -0
  296. package/node_modules/rc/cli.js +4 -0
  297. package/node_modules/rc/index.js +53 -0
  298. package/node_modules/rc/lib/utils.js +104 -0
  299. package/node_modules/rc/package.json +29 -0
  300. package/node_modules/rc/test/ini.js +16 -0
  301. package/node_modules/rc/test/nested-env-vars.js +50 -0
  302. package/node_modules/rc/test/test.js +59 -0
  303. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  304. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  305. package/node_modules/readable-stream/LICENSE +47 -0
  306. package/node_modules/readable-stream/README.md +106 -0
  307. package/node_modules/readable-stream/errors-browser.js +127 -0
  308. package/node_modules/readable-stream/errors.js +116 -0
  309. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  310. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  311. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  312. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  313. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  314. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  315. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  316. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  317. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  318. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  319. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  320. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  321. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  322. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  323. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  324. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  325. package/node_modules/readable-stream/package.json +68 -0
  326. package/node_modules/readable-stream/readable-browser.js +9 -0
  327. package/node_modules/readable-stream/readable.js +16 -0
  328. package/node_modules/safe-buffer/LICENSE +21 -0
  329. package/node_modules/safe-buffer/README.md +584 -0
  330. package/node_modules/safe-buffer/index.d.ts +187 -0
  331. package/node_modules/safe-buffer/index.js +65 -0
  332. package/node_modules/safe-buffer/package.json +51 -0
  333. package/node_modules/semver/LICENSE +15 -0
  334. package/node_modules/semver/README.md +665 -0
  335. package/node_modules/semver/bin/semver.js +191 -0
  336. package/node_modules/semver/classes/comparator.js +143 -0
  337. package/node_modules/semver/classes/index.js +7 -0
  338. package/node_modules/semver/classes/range.js +557 -0
  339. package/node_modules/semver/classes/semver.js +333 -0
  340. package/node_modules/semver/functions/clean.js +8 -0
  341. package/node_modules/semver/functions/cmp.js +54 -0
  342. package/node_modules/semver/functions/coerce.js +62 -0
  343. package/node_modules/semver/functions/compare-build.js +9 -0
  344. package/node_modules/semver/functions/compare-loose.js +5 -0
  345. package/node_modules/semver/functions/compare.js +7 -0
  346. package/node_modules/semver/functions/diff.js +60 -0
  347. package/node_modules/semver/functions/eq.js +5 -0
  348. package/node_modules/semver/functions/gt.js +5 -0
  349. package/node_modules/semver/functions/gte.js +5 -0
  350. package/node_modules/semver/functions/inc.js +21 -0
  351. package/node_modules/semver/functions/lt.js +5 -0
  352. package/node_modules/semver/functions/lte.js +5 -0
  353. package/node_modules/semver/functions/major.js +5 -0
  354. package/node_modules/semver/functions/minor.js +5 -0
  355. package/node_modules/semver/functions/neq.js +5 -0
  356. package/node_modules/semver/functions/parse.js +18 -0
  357. package/node_modules/semver/functions/patch.js +5 -0
  358. package/node_modules/semver/functions/prerelease.js +8 -0
  359. package/node_modules/semver/functions/rcompare.js +5 -0
  360. package/node_modules/semver/functions/rsort.js +5 -0
  361. package/node_modules/semver/functions/satisfies.js +12 -0
  362. package/node_modules/semver/functions/sort.js +5 -0
  363. package/node_modules/semver/functions/valid.js +8 -0
  364. package/node_modules/semver/index.js +91 -0
  365. package/node_modules/semver/internal/constants.js +37 -0
  366. package/node_modules/semver/internal/debug.js +11 -0
  367. package/node_modules/semver/internal/identifiers.js +29 -0
  368. package/node_modules/semver/internal/lrucache.js +42 -0
  369. package/node_modules/semver/internal/parse-options.js +17 -0
  370. package/node_modules/semver/internal/re.js +223 -0
  371. package/node_modules/semver/package.json +78 -0
  372. package/node_modules/semver/preload.js +4 -0
  373. package/node_modules/semver/range.bnf +16 -0
  374. package/node_modules/semver/ranges/gtr.js +6 -0
  375. package/node_modules/semver/ranges/intersects.js +9 -0
  376. package/node_modules/semver/ranges/ltr.js +6 -0
  377. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  378. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  379. package/node_modules/semver/ranges/min-version.js +63 -0
  380. package/node_modules/semver/ranges/outside.js +82 -0
  381. package/node_modules/semver/ranges/simplify.js +49 -0
  382. package/node_modules/semver/ranges/subset.js +249 -0
  383. package/node_modules/semver/ranges/to-comparators.js +10 -0
  384. package/node_modules/semver/ranges/valid.js +13 -0
  385. package/node_modules/simple-concat/.travis.yml +3 -0
  386. package/node_modules/simple-concat/LICENSE +20 -0
  387. package/node_modules/simple-concat/README.md +44 -0
  388. package/node_modules/simple-concat/index.js +15 -0
  389. package/node_modules/simple-concat/package.json +47 -0
  390. package/node_modules/simple-concat/test/basic.js +41 -0
  391. package/node_modules/simple-get/.github/dependabot.yml +15 -0
  392. package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
  393. package/node_modules/simple-get/LICENSE +20 -0
  394. package/node_modules/simple-get/README.md +333 -0
  395. package/node_modules/simple-get/index.js +108 -0
  396. package/node_modules/simple-get/package.json +67 -0
  397. package/node_modules/string_decoder/LICENSE +48 -0
  398. package/node_modules/string_decoder/README.md +47 -0
  399. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  400. package/node_modules/string_decoder/package.json +34 -0
  401. package/node_modules/strip-json-comments/index.js +70 -0
  402. package/node_modules/strip-json-comments/license +21 -0
  403. package/node_modules/strip-json-comments/package.json +42 -0
  404. package/node_modules/strip-json-comments/readme.md +64 -0
  405. package/node_modules/tar-fs/.travis.yml +6 -0
  406. package/node_modules/tar-fs/LICENSE +21 -0
  407. package/node_modules/tar-fs/README.md +165 -0
  408. package/node_modules/tar-fs/index.js +363 -0
  409. package/node_modules/tar-fs/package.json +41 -0
  410. package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  411. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  412. package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  413. package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  414. package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  415. package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  416. package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  417. package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  418. package/node_modules/tar-fs/test/fixtures/e/file +0 -0
  419. package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  420. package/node_modules/tar-fs/test/index.js +346 -0
  421. package/node_modules/tar-stream/LICENSE +21 -0
  422. package/node_modules/tar-stream/README.md +168 -0
  423. package/node_modules/tar-stream/extract.js +257 -0
  424. package/node_modules/tar-stream/headers.js +295 -0
  425. package/node_modules/tar-stream/index.js +2 -0
  426. package/node_modules/tar-stream/pack.js +255 -0
  427. package/node_modules/tar-stream/package.json +58 -0
  428. package/node_modules/tar-stream/sandbox.js +11 -0
  429. package/node_modules/tunnel-agent/LICENSE +55 -0
  430. package/node_modules/tunnel-agent/README.md +4 -0
  431. package/node_modules/tunnel-agent/index.js +244 -0
  432. package/node_modules/tunnel-agent/package.json +22 -0
  433. package/node_modules/util-deprecate/History.md +16 -0
  434. package/node_modules/util-deprecate/LICENSE +24 -0
  435. package/node_modules/util-deprecate/README.md +53 -0
  436. package/node_modules/util-deprecate/browser.js +67 -0
  437. package/node_modules/util-deprecate/node.js +6 -0
  438. package/node_modules/util-deprecate/package.json +27 -0
  439. package/package.json +3 -13
@@ -0,0 +1,9 @@
1
+ {
2
+ 'targets': [
3
+ {
4
+ 'target_name': 'nothing',
5
+ 'type': 'static_library',
6
+ 'sources': [ 'nothing.c' ]
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
3
+ 'cflags': [ '-fno-exceptions' ],
4
+ 'cflags_cc': [ '-fno-exceptions' ],
5
+ 'conditions': [
6
+ ["OS=='win'", {
7
+ # _HAS_EXCEPTIONS is already defined and set to 0 in common.gypi
8
+ #"defines": [
9
+ # "_HAS_EXCEPTIONS=0"
10
+ #],
11
+ "msvs_settings": {
12
+ "VCCLCompilerTool": {
13
+ 'ExceptionHandling': 0,
14
+ 'EnablePREfast': 'true',
15
+ },
16
+ },
17
+ }],
18
+ ["OS=='mac'", {
19
+ 'xcode_settings': {
20
+ 'CLANG_CXX_LIBRARY': 'libc++',
21
+ 'MACOSX_DEPLOYMENT_TARGET': '10.7',
22
+ 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
23
+ },
24
+ }],
25
+ ],
26
+ }
File without changes
@@ -0,0 +1,21 @@
1
+ {
2
+ "versions": [
3
+ {
4
+ "version": "*",
5
+ "target": {
6
+ "node": "active"
7
+ },
8
+ "response": {
9
+ "type": "time-permitting",
10
+ "paid": false,
11
+ "contact": {
12
+ "name": "node-addon-api team",
13
+ "url": "https://github.com/nodejs/node-addon-api/issues"
14
+ }
15
+ },
16
+ "backing": [ { "project": "https://github.com/nodejs" },
17
+ { "foundation": "https://openjsf.org/" }
18
+ ]
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,399 @@
1
+ {
2
+ "bugs": {
3
+ "url": "https://github.com/nodejs/node-addon-api/issues"
4
+ },
5
+ "contributors": [
6
+ {
7
+ "name": "Abhishek Kumar Singh",
8
+ "url": "https://github.com/abhi11210646"
9
+ },
10
+ {
11
+ "name": "Alba Mendez",
12
+ "url": "https://github.com/jmendeth"
13
+ },
14
+ {
15
+ "name": "Alexander Floh",
16
+ "url": "https://github.com/alexanderfloh"
17
+ },
18
+ {
19
+ "name": "András Timár, Dr",
20
+ "url": "https://github.com/timarandras"
21
+ },
22
+ {
23
+ "name": "Andrew Petersen",
24
+ "url": "https://github.com/kirbysayshi"
25
+ },
26
+ {
27
+ "name": "Anisha Rohra",
28
+ "url": "https://github.com/anisha-rohra"
29
+ },
30
+ {
31
+ "name": "Anna Henningsen",
32
+ "url": "https://github.com/addaleax"
33
+ },
34
+ {
35
+ "name": "Arnaud Botella",
36
+ "url": "https://github.com/BotellaA"
37
+ },
38
+ {
39
+ "name": "Arunesh Chandra",
40
+ "url": "https://github.com/aruneshchandra"
41
+ },
42
+ {
43
+ "name": "Azlan Mukhtar",
44
+ "url": "https://github.com/azlan"
45
+ },
46
+ {
47
+ "name": "Ben Berman",
48
+ "url": "https://github.com/rivertam"
49
+ },
50
+ {
51
+ "name": "Benjamin Byholm",
52
+ "url": "https://github.com/kkoopa"
53
+ },
54
+ {
55
+ "name": "Bill Gallafent",
56
+ "url": "https://github.com/gallafent"
57
+ },
58
+ {
59
+ "name": "blagoev",
60
+ "url": "https://github.com/blagoev"
61
+ },
62
+ {
63
+ "name": "Bruce A. MacNaughton",
64
+ "url": "https://github.com/bmacnaughton"
65
+ },
66
+ {
67
+ "name": "Cory Mickelson",
68
+ "url": "https://github.com/corymickelson"
69
+ },
70
+ {
71
+ "name": "Daniel Bevenius",
72
+ "url": "https://github.com/danbev"
73
+ },
74
+ {
75
+ "name": "Darshan Sen",
76
+ "url": "https://github.com/RaisinTen"
77
+ },
78
+ {
79
+ "name": "David Halls",
80
+ "url": "https://github.com/davedoesdev"
81
+ },
82
+ {
83
+ "name": "Deepak Rajamohan",
84
+ "url": "https://github.com/deepakrkris"
85
+ },
86
+ {
87
+ "name": "Dmitry Ashkadov",
88
+ "url": "https://github.com/dmitryash"
89
+ },
90
+ {
91
+ "name": "Dongjin Na",
92
+ "url": "https://github.com/nadongguri"
93
+ },
94
+ {
95
+ "name": "Doni Rubiagatra",
96
+ "url": "https://github.com/rubiagatra"
97
+ },
98
+ {
99
+ "name": "Ferdinand Holzer",
100
+ "url": "https://github.com/fholzer"
101
+ },
102
+ {
103
+ "name": "Eric Bickle",
104
+ "url": "https://github.com/ebickle"
105
+ },
106
+ {
107
+ "name": "Gabriel Schulhof",
108
+ "url": "https://github.com/gabrielschulhof"
109
+ },
110
+ {
111
+ "name": "Guenter Sandner",
112
+ "url": "https://github.com/gms1"
113
+ },
114
+ {
115
+ "name": "Gus Caplan",
116
+ "url": "https://github.com/devsnek"
117
+ },
118
+ {
119
+ "name": "Helio Frota",
120
+ "url": "https://github.com/helio-frota"
121
+ },
122
+ {
123
+ "name": "Hitesh Kanwathirtha",
124
+ "url": "https://github.com/digitalinfinity"
125
+ },
126
+ {
127
+ "name": "ikokostya",
128
+ "url": "https://github.com/ikokostya"
129
+ },
130
+ {
131
+ "name": "Jack Xia",
132
+ "url": "https://github.com/JckXia"
133
+ },
134
+ {
135
+ "name": "Jake Barnes",
136
+ "url": "https://github.com/DuBistKomisch"
137
+ },
138
+ {
139
+ "name": "Jake Yoon",
140
+ "url": "https://github.com/yjaeseok"
141
+ },
142
+ {
143
+ "name": "Jason Ginchereau",
144
+ "url": "https://github.com/jasongin"
145
+ },
146
+ {
147
+ "name": "Jeroen Janssen",
148
+ "url": "https://github.com/japj"
149
+ },
150
+ {
151
+ "name": "Jim Schlight",
152
+ "url": "https://github.com/jschlight"
153
+ },
154
+ {
155
+ "name": "Jinho Bang",
156
+ "url": "https://github.com/romandev"
157
+ },
158
+ {
159
+ "name": "José Expósito",
160
+ "url": "https://github.com/JoseExposito"
161
+ },
162
+ {
163
+ "name": "joshgarde",
164
+ "url": "https://github.com/joshgarde"
165
+ },
166
+ {
167
+ "name": "Kasumi Hanazuki",
168
+ "url": "https://github.com/hanazuki"
169
+ },
170
+ {
171
+ "name": "Kelvin",
172
+ "url": "https://github.com/kelvinhammond"
173
+ },
174
+ {
175
+ "name": "Kevin Eady",
176
+ "url": "https://github.com/KevinEady"
177
+ },
178
+ {
179
+ "name": "Kévin VOYER",
180
+ "url": "https://github.com/kecsou"
181
+ },
182
+ {
183
+ "name": "kidneysolo",
184
+ "url": "https://github.com/kidneysolo"
185
+ },
186
+ {
187
+ "name": "Koki Nishihara",
188
+ "url": "https://github.com/Nishikoh"
189
+ },
190
+ {
191
+ "name": "Konstantin Tarkus",
192
+ "url": "https://github.com/koistya"
193
+ },
194
+ {
195
+ "name": "Kyle Farnung",
196
+ "url": "https://github.com/kfarnung"
197
+ },
198
+ {
199
+ "name": "legendecas",
200
+ "url": "https://github.com/legendecas"
201
+ },
202
+ {
203
+ "name": "LongYinan",
204
+ "url": "https://github.com/Brooooooklyn"
205
+ },
206
+ {
207
+ "name": "Lovell Fuller",
208
+ "url": "https://github.com/lovell"
209
+ },
210
+ {
211
+ "name": "Luciano Martorella",
212
+ "url": "https://github.com/lmartorella"
213
+ },
214
+ {
215
+ "name": "mastergberry",
216
+ "url": "https://github.com/mastergberry"
217
+ },
218
+ {
219
+ "name": "Mathias Küsel",
220
+ "url": "https://github.com/mathiask88"
221
+ },
222
+ {
223
+ "name": "Matteo Collina",
224
+ "url": "https://github.com/mcollina"
225
+ },
226
+ {
227
+ "name": "Michael Dawson",
228
+ "url": "https://github.com/mhdawson"
229
+ },
230
+ {
231
+ "name": "Michael Price",
232
+ "url": "https://github.com/mikepricedev"
233
+ },
234
+ {
235
+ "name": "Michele Campus",
236
+ "url": "https://github.com/kYroL01"
237
+ },
238
+ {
239
+ "name": "Mikhail Cheshkov",
240
+ "url": "https://github.com/mcheshkov"
241
+ },
242
+ {
243
+ "name": "nempoBu4",
244
+ "url": "https://github.com/nempoBu4"
245
+ },
246
+ {
247
+ "name": "Nicola Del Gobbo",
248
+ "url": "https://github.com/NickNaso"
249
+ },
250
+ {
251
+ "name": "Nick Soggin",
252
+ "url": "https://github.com/iSkore"
253
+ },
254
+ {
255
+ "name": "Nikolai Vavilov",
256
+ "url": "https://github.com/seishun"
257
+ },
258
+ {
259
+ "name": "Nurbol Alpysbayev",
260
+ "url": "https://github.com/anurbol"
261
+ },
262
+ {
263
+ "name": "pacop",
264
+ "url": "https://github.com/pacop"
265
+ },
266
+ {
267
+ "name": "Philipp Renoth",
268
+ "url": "https://github.com/DaAitch"
269
+ },
270
+ {
271
+ "name": "Rolf Timmermans",
272
+ "url": "https://github.com/rolftimmermans"
273
+ },
274
+ {
275
+ "name": "Ross Weir",
276
+ "url": "https://github.com/ross-weir"
277
+ },
278
+ {
279
+ "name": "Ryuichi Okumura",
280
+ "url": "https://github.com/okuryu"
281
+ },
282
+ {
283
+ "name": "Sampson Gao",
284
+ "url": "https://github.com/sampsongao"
285
+ },
286
+ {
287
+ "name": "Sam Roberts",
288
+ "url": "https://github.com/sam-github"
289
+ },
290
+ {
291
+ "name": "strager",
292
+ "url": "https://github.com/strager"
293
+ },
294
+ {
295
+ "name": "Taylor Woll",
296
+ "url": "https://github.com/boingoing"
297
+ },
298
+ {
299
+ "name": "Thomas Gentilhomme",
300
+ "url": "https://github.com/fraxken"
301
+ },
302
+ {
303
+ "name": "Tim Rach",
304
+ "url": "https://github.com/timrach"
305
+ },
306
+ {
307
+ "name": "Tobias Nießen",
308
+ "url": "https://github.com/tniessen"
309
+ },
310
+ {
311
+ "name": "todoroff",
312
+ "url": "https://github.com/todoroff"
313
+ },
314
+ {
315
+ "name": "Tux3",
316
+ "url": "https://github.com/tux3"
317
+ },
318
+ {
319
+ "name": "Vlad Velmisov",
320
+ "url": "https://github.com/Velmisov"
321
+ },
322
+ {
323
+ "name": "WenheLI",
324
+ "url": "https://github.com/WenheLI"
325
+ },
326
+
327
+ {
328
+ "name": "Yohei Kishimoto",
329
+ "url": "https://github.com/morokosi"
330
+ },
331
+ {
332
+ "name": "Yulong Wang",
333
+ "url": "https://github.com/fs-eire"
334
+ },
335
+ {
336
+ "name": "Ziqiu Zhao",
337
+ "url": "https://github.com/ZzqiZQute"
338
+ }
339
+ ],
340
+ "description": "Node.js API (Node-API)",
341
+ "devDependencies": {
342
+ "benchmark": "^2.1.4",
343
+ "bindings": "^1.5.0",
344
+ "clang-format": "^1.4.0",
345
+ "eslint": "^7.32.0",
346
+ "eslint-config-semistandard": "^16.0.0",
347
+ "eslint-config-standard": "^16.0.3",
348
+ "eslint-plugin-import": "^2.24.2",
349
+ "eslint-plugin-node": "^11.1.0",
350
+ "eslint-plugin-promise": "^5.1.0",
351
+ "fs-extra": "^9.0.1",
352
+ "path": "^0.12.7",
353
+ "pre-commit": "^1.2.2",
354
+ "safe-buffer": "^5.1.1"
355
+ },
356
+ "directories": {},
357
+ "gypfile": false,
358
+ "homepage": "https://github.com/nodejs/node-addon-api",
359
+ "keywords": [
360
+ "n-api",
361
+ "napi",
362
+ "addon",
363
+ "native",
364
+ "bindings",
365
+ "c",
366
+ "c++",
367
+ "nan",
368
+ "node-addon-api"
369
+ ],
370
+ "license": "MIT",
371
+ "main": "index.js",
372
+ "name": "node-addon-api",
373
+ "readme": "README.md",
374
+ "repository": {
375
+ "type": "git",
376
+ "url": "git://github.com/nodejs/node-addon-api.git"
377
+ },
378
+ "files": [
379
+ "*.{c,h,gyp,gypi}",
380
+ "package-support.json",
381
+ "tools/"
382
+ ],
383
+ "scripts": {
384
+ "prebenchmark": "node-gyp rebuild -C benchmark",
385
+ "benchmark": "node benchmark",
386
+ "pretest": "node-gyp rebuild -C test",
387
+ "test": "node test",
388
+ "predev": "node-gyp rebuild -C test --debug",
389
+ "dev": "node test",
390
+ "predev:incremental": "node-gyp configure build -C test --debug",
391
+ "dev:incremental": "node test",
392
+ "doc": "doxygen doc/Doxyfile",
393
+ "lint": "node tools/eslint-format && node tools/clang-format",
394
+ "lint:fix": "node tools/clang-format --fix && node tools/eslint-format --fix"
395
+ },
396
+ "pre-commit": "lint",
397
+ "version": "4.3.0",
398
+ "support": true
399
+ }
@@ -0,0 +1,73 @@
1
+ # Tools
2
+
3
+ ## clang-format
4
+
5
+ The clang-format checking tools is designed to check changed lines of code compared to given git-refs.
6
+
7
+ ## Migration Script
8
+
9
+ The migration tool is designed to reduce repetitive work in the migration process. However, the script is not aiming to convert every thing for you. There are usually some small fixes and major reconstruction required.
10
+
11
+ ### How To Use
12
+
13
+ To run the conversion script, first make sure you have the latest `node-addon-api` in your `node_modules` directory.
14
+ ```
15
+ npm install node-addon-api
16
+ ```
17
+
18
+ Then run the script passing your project directory
19
+ ```
20
+ node ./node_modules/node-addon-api/tools/conversion.js ./
21
+ ```
22
+
23
+ After finish, recompile and debug things that are missed by the script.
24
+
25
+
26
+ ### Quick Fixes
27
+ Here is the list of things that can be fixed easily.
28
+ 1. Change your methods' return value to void if it doesn't return value to JavaScript.
29
+ 2. Use `.` to access attribute or to invoke member function in Napi::Object instead of `->`.
30
+ 3. `Napi::New(env, value);` to `Napi::[Type]::New(env, value);
31
+
32
+
33
+ ### Major Reconstructions
34
+ The implementation of `Napi::ObjectWrap` is significantly different from NAN's. `Napi::ObjectWrap` takes a pointer to the wrapped object and creates a reference to the wrapped object inside ObjectWrap constructor. `Napi::ObjectWrap` also associates wrapped object's instance methods to Javascript module instead of static methods like NAN.
35
+
36
+ So if you use Nan::ObjectWrap in your module, you will need to execute the following steps.
37
+
38
+ 1. Convert your [ClassName]::New function to a constructor function that takes a `Napi::CallbackInfo`. Declare it as
39
+ ```
40
+ [ClassName](const Napi::CallbackInfo& info);
41
+ ```
42
+ and define it as
43
+ ```
44
+ [ClassName]::[ClassName](const Napi::CallbackInfo& info) : Napi::ObjectWrap<[ClassName]>(info){
45
+ ...
46
+ }
47
+ ```
48
+ This way, the `Napi::ObjectWrap` constructor will be invoked after the object has been instantiated and `Napi::ObjectWrap` can use the `this` pointer to create a reference to the wrapped object.
49
+
50
+ 2. Move your original constructor code into the new constructor. Delete your original constructor.
51
+ 3. In your class initialization function, associate native methods in the following way.
52
+ ```
53
+ Napi::FunctionReference constructor;
54
+
55
+ void [ClassName]::Init(Napi::Env env, Napi::Object exports, Napi::Object module) {
56
+ Napi::HandleScope scope(env);
57
+ Napi::Function ctor = DefineClass(env, "Canvas", {
58
+ InstanceMethod<&[ClassName]::Func1>("Func1"),
59
+ InstanceMethod<&[ClassName]::Func2>("Func2"),
60
+ InstanceAccessor<&[ClassName]::ValueGetter>("Value"),
61
+ StaticMethod<&[ClassName]::StaticMethod>("MethodName"),
62
+ InstanceValue("Value", Napi::[Type]::New(env, value)),
63
+ });
64
+
65
+ constructor = Napi::Persistent(ctor);
66
+ constructor .SuppressDestruct();
67
+ exports.Set("[ClassName]", ctor);
68
+ }
69
+ ```
70
+ 4. In function where you need to Unwrap the ObjectWrap in NAN like `[ClassName]* native = Nan::ObjectWrap::Unwrap<[ClassName]>(info.This());`, use `this` pointer directly as the unwrapped object as each ObjectWrap instance is associated with a unique object instance.
71
+
72
+
73
+ If you still find issues after following this guide, please leave us an issue describing your problem and we will try to resolve it.
@@ -0,0 +1,100 @@
1
+ 'use strict';
2
+ // Descend into a directory structure and, for each file matching *.node, output
3
+ // based on the imports found in the file whether it's an N-API module or not.
4
+
5
+ const fs = require('fs');
6
+ const path = require('path');
7
+ const child_process = require('child_process');
8
+
9
+ // Read the output of the command, break it into lines, and use the reducer to
10
+ // decide whether the file is an N-API module or not.
11
+ function checkFile(file, command, argv, reducer) {
12
+ const child = child_process.spawn(command, argv, {
13
+ stdio: ['inherit', 'pipe', 'inherit']
14
+ });
15
+ let leftover = '';
16
+ let isNapi = undefined;
17
+ child.stdout.on('data', (chunk) => {
18
+ if (isNapi === undefined) {
19
+ chunk = (leftover + chunk.toString()).split(/[\r\n]+/);
20
+ leftover = chunk.pop();
21
+ isNapi = chunk.reduce(reducer, isNapi);
22
+ if (isNapi !== undefined) {
23
+ child.kill();
24
+ }
25
+ }
26
+ });
27
+ child.on('close', (code, signal) => {
28
+ if ((code === null && signal !== null) || (code !== 0)) {
29
+ console.log(
30
+ command + ' exited with code: ' + code + ' and signal: ' + signal);
31
+ } else {
32
+ // Green if it's a N-API module, red otherwise.
33
+ console.log(
34
+ '\x1b[' + (isNapi ? '42' : '41') + 'm' +
35
+ (isNapi ? ' N-API' : 'Not N-API') +
36
+ '\x1b[0m: ' + file);
37
+ }
38
+ });
39
+ }
40
+
41
+ // Use nm -a to list symbols.
42
+ function checkFileUNIX(file) {
43
+ checkFile(file, 'nm', ['-a', file], (soFar, line) => {
44
+ if (soFar === undefined) {
45
+ line = line.match(/([0-9a-f]*)? ([a-zA-Z]) (.*$)/);
46
+ if (line[2] === 'U') {
47
+ if (/^napi/.test(line[3])) {
48
+ soFar = true;
49
+ }
50
+ }
51
+ }
52
+ return soFar;
53
+ });
54
+ }
55
+
56
+ // Use dumpbin /imports to list symbols.
57
+ function checkFileWin32(file) {
58
+ checkFile(file, 'dumpbin', ['/imports', file], (soFar, line) => {
59
+ if (soFar === undefined) {
60
+ line = line.match(/([0-9a-f]*)? +([a-zA-Z0-9]) (.*$)/);
61
+ if (line && /^napi/.test(line[line.length - 1])) {
62
+ soFar = true;
63
+ }
64
+ }
65
+ return soFar;
66
+ });
67
+ }
68
+
69
+ // Descend into a directory structure and pass each file ending in '.node' to
70
+ // one of the above checks, depending on the OS.
71
+ function recurse(top) {
72
+ fs.readdir(top, (error, items) => {
73
+ if (error) {
74
+ throw ("error reading directory " + top + ": " + error);
75
+ }
76
+ items.forEach((item) => {
77
+ item = path.join(top, item);
78
+ fs.stat(item, ((item) => (error, stats) => {
79
+ if (error) {
80
+ throw ("error about " + item + ": " + error);
81
+ }
82
+ if (stats.isDirectory()) {
83
+ recurse(item);
84
+ } else if (/[.]node$/.test(item) &&
85
+ // Explicitly ignore files called 'nothing.node' because they are
86
+ // artefacts of node-addon-api having identified a version of
87
+ // Node.js that ships with a correct implementation of N-API.
88
+ path.basename(item) !== 'nothing.node') {
89
+ process.platform === 'win32' ?
90
+ checkFileWin32(item) :
91
+ checkFileUNIX(item);
92
+ }
93
+ })(item));
94
+ });
95
+ });
96
+ }
97
+
98
+ // Start with the directory given on the command line or the current directory
99
+ // if nothing was given.
100
+ recurse(process.argv.length > 3 ? process.argv[2] : '.');