@quantiya/codevibe-claude-plugin 1.0.12 → 1.0.13

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 (438) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/package.json +10 -3
  3. package/node_modules/@quantiya/codevibe-core/README.md +0 -179
  4. package/node_modules/@quantiya/codevibe-core/bin/codevibe.js +0 -7
  5. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +0 -132
  6. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +0 -2
  7. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +0 -16
  8. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.d.ts +0 -5
  9. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.d.ts +0 -87
  10. package/node_modules/@quantiya/codevibe-core/dist/auth/fetch-helpers.d.ts +0 -11
  11. package/node_modules/@quantiya/codevibe-core/dist/auth/index.d.ts +0 -2
  12. package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +0 -53
  13. package/node_modules/@quantiya/codevibe-core/dist/config/index.d.ts +0 -2
  14. package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.d.ts +0 -118
  15. package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +0 -1
  16. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +0 -14
  17. package/node_modules/@quantiya/codevibe-core/dist/index.js +0 -217
  18. package/node_modules/@quantiya/codevibe-core/dist/keychain/index.d.ts +0 -1
  19. package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +0 -125
  20. package/node_modules/@quantiya/codevibe-core/dist/logger/index.d.ts +0 -1
  21. package/node_modules/@quantiya/codevibe-core/dist/logger/logger.d.ts +0 -35
  22. package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +0 -39
  23. package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +0 -2
  24. package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +0 -55
  25. package/node_modules/@quantiya/codevibe-core/dist/types/auth.d.ts +0 -15
  26. package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +0 -54
  27. package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +0 -74
  28. package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +0 -4
  29. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +0 -59
  30. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +0 -274
  31. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +0 -18
  32. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/LICENSE.md +0 -9
  33. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +0 -466
  34. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +0 -2
  35. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  36. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  37. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  38. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  39. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  40. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  41. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  42. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  43. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  44. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  45. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  46. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  47. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  48. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  49. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  50. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  51. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +0 -9
  52. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  53. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +0 -4
  54. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  55. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  56. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  57. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  58. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  59. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  60. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  61. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  62. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  63. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  64. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  65. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  66. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +0 -11
  67. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/index.js +0 -9
  68. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +0 -13
  69. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +0 -4
  70. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +0 -1
  71. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +0 -35
  72. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +0 -1
  73. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +0 -12
  74. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  75. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  76. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +0 -95
  77. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +0 -4
  78. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +0 -66
  79. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +0 -29
  80. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +0 -4
  81. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +0 -7
  82. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +0 -11
  83. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +0 -79
  84. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +0 -223
  85. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +0 -23
  86. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +0 -11
  87. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +0 -15
  88. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +0 -8
  89. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +0 -45
  90. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +0 -8
  91. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +0 -25
  92. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +0 -24
  93. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +0 -104
  94. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +0 -23
  95. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +0 -44
  96. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +0 -85
  97. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +0 -107
  98. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +0 -16
  99. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +0 -80
  100. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +0 -43
  101. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +0 -16
  102. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +0 -17
  103. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +0 -21
  104. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +0 -135
  105. package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +0 -10
  106. package/node_modules/@quantiya/codevibe-core/package.json +0 -54
  107. package/node_modules/base64-js/LICENSE +0 -21
  108. package/node_modules/base64-js/README.md +0 -34
  109. package/node_modules/base64-js/base64js.min.js +0 -1
  110. package/node_modules/base64-js/index.d.ts +0 -3
  111. package/node_modules/base64-js/index.js +0 -150
  112. package/node_modules/base64-js/package.json +0 -47
  113. package/node_modules/bl/.travis.yml +0 -17
  114. package/node_modules/bl/BufferList.js +0 -396
  115. package/node_modules/bl/LICENSE.md +0 -13
  116. package/node_modules/bl/README.md +0 -247
  117. package/node_modules/bl/bl.js +0 -84
  118. package/node_modules/bl/package.json +0 -37
  119. package/node_modules/bl/test/convert.js +0 -21
  120. package/node_modules/bl/test/indexOf.js +0 -492
  121. package/node_modules/bl/test/isBufferList.js +0 -32
  122. package/node_modules/bl/test/test.js +0 -869
  123. package/node_modules/buffer/AUTHORS.md +0 -70
  124. package/node_modules/buffer/LICENSE +0 -21
  125. package/node_modules/buffer/README.md +0 -410
  126. package/node_modules/buffer/index.d.ts +0 -186
  127. package/node_modules/buffer/index.js +0 -1817
  128. package/node_modules/buffer/package.json +0 -96
  129. package/node_modules/chownr/LICENSE +0 -15
  130. package/node_modules/chownr/README.md +0 -3
  131. package/node_modules/chownr/chownr.js +0 -167
  132. package/node_modules/chownr/package.json +0 -29
  133. package/node_modules/decompress-response/index.d.ts +0 -22
  134. package/node_modules/decompress-response/index.js +0 -58
  135. package/node_modules/decompress-response/license +0 -9
  136. package/node_modules/decompress-response/package.json +0 -56
  137. package/node_modules/decompress-response/readme.md +0 -48
  138. package/node_modules/deep-extend/CHANGELOG.md +0 -46
  139. package/node_modules/deep-extend/LICENSE +0 -20
  140. package/node_modules/deep-extend/README.md +0 -91
  141. package/node_modules/deep-extend/index.js +0 -1
  142. package/node_modules/deep-extend/lib/deep-extend.js +0 -150
  143. package/node_modules/deep-extend/package.json +0 -62
  144. package/node_modules/detect-libc/LICENSE +0 -201
  145. package/node_modules/detect-libc/README.md +0 -163
  146. package/node_modules/detect-libc/index.d.ts +0 -14
  147. package/node_modules/detect-libc/lib/detect-libc.js +0 -313
  148. package/node_modules/detect-libc/lib/elf.js +0 -39
  149. package/node_modules/detect-libc/lib/filesystem.js +0 -51
  150. package/node_modules/detect-libc/lib/process.js +0 -24
  151. package/node_modules/detect-libc/package.json +0 -44
  152. package/node_modules/end-of-stream/LICENSE +0 -21
  153. package/node_modules/end-of-stream/README.md +0 -54
  154. package/node_modules/end-of-stream/index.js +0 -96
  155. package/node_modules/end-of-stream/package.json +0 -37
  156. package/node_modules/expand-template/.travis.yml +0 -6
  157. package/node_modules/expand-template/LICENSE +0 -21
  158. package/node_modules/expand-template/README.md +0 -43
  159. package/node_modules/expand-template/index.js +0 -26
  160. package/node_modules/expand-template/package.json +0 -29
  161. package/node_modules/expand-template/test.js +0 -67
  162. package/node_modules/fs-constants/LICENSE +0 -21
  163. package/node_modules/fs-constants/README.md +0 -26
  164. package/node_modules/fs-constants/browser.js +0 -1
  165. package/node_modules/fs-constants/index.js +0 -1
  166. package/node_modules/fs-constants/package.json +0 -19
  167. package/node_modules/github-from-package/.travis.yml +0 -4
  168. package/node_modules/github-from-package/LICENSE +0 -18
  169. package/node_modules/github-from-package/example/package.json +0 -8
  170. package/node_modules/github-from-package/example/url.js +0 -3
  171. package/node_modules/github-from-package/index.js +0 -17
  172. package/node_modules/github-from-package/package.json +0 -30
  173. package/node_modules/github-from-package/readme.markdown +0 -53
  174. package/node_modules/github-from-package/test/a.json +0 -8
  175. package/node_modules/github-from-package/test/b.json +0 -5
  176. package/node_modules/github-from-package/test/c.json +0 -5
  177. package/node_modules/github-from-package/test/d.json +0 -7
  178. package/node_modules/github-from-package/test/e.json +0 -5
  179. package/node_modules/github-from-package/test/url.js +0 -19
  180. package/node_modules/ieee754/LICENSE +0 -11
  181. package/node_modules/ieee754/README.md +0 -51
  182. package/node_modules/ieee754/index.d.ts +0 -10
  183. package/node_modules/ieee754/index.js +0 -85
  184. package/node_modules/ieee754/package.json +0 -52
  185. package/node_modules/ini/LICENSE +0 -15
  186. package/node_modules/ini/README.md +0 -102
  187. package/node_modules/ini/ini.js +0 -206
  188. package/node_modules/ini/package.json +0 -33
  189. package/node_modules/keytar/LICENSE.md +0 -20
  190. package/node_modules/keytar/README.md +0 -94
  191. package/node_modules/keytar/binding.gyp +0 -66
  192. package/node_modules/keytar/build/Release/keytar.node +0 -0
  193. package/node_modules/keytar/keytar.d.ts +0 -51
  194. package/node_modules/keytar/lib/keytar.js +0 -43
  195. package/node_modules/keytar/package.json +0 -66
  196. package/node_modules/keytar/src/async.cc +0 -242
  197. package/node_modules/keytar/src/async.h +0 -103
  198. package/node_modules/keytar/src/credentials.h +0 -13
  199. package/node_modules/keytar/src/keytar.h +0 -41
  200. package/node_modules/keytar/src/keytar_mac.cc +0 -296
  201. package/node_modules/keytar/src/keytar_posix.cc +0 -184
  202. package/node_modules/keytar/src/keytar_win.cc +0 -272
  203. package/node_modules/keytar/src/main.cc +0 -139
  204. package/node_modules/mimic-response/index.d.ts +0 -17
  205. package/node_modules/mimic-response/index.js +0 -77
  206. package/node_modules/mimic-response/license +0 -9
  207. package/node_modules/mimic-response/package.json +0 -42
  208. package/node_modules/mimic-response/readme.md +0 -78
  209. package/node_modules/minimist/.eslintrc +0 -29
  210. package/node_modules/minimist/.github/FUNDING.yml +0 -12
  211. package/node_modules/minimist/.nycrc +0 -14
  212. package/node_modules/minimist/CHANGELOG.md +0 -298
  213. package/node_modules/minimist/LICENSE +0 -18
  214. package/node_modules/minimist/README.md +0 -121
  215. package/node_modules/minimist/example/parse.js +0 -4
  216. package/node_modules/minimist/index.js +0 -263
  217. package/node_modules/minimist/package.json +0 -75
  218. package/node_modules/minimist/test/all_bool.js +0 -34
  219. package/node_modules/minimist/test/bool.js +0 -177
  220. package/node_modules/minimist/test/dash.js +0 -43
  221. package/node_modules/minimist/test/default_bool.js +0 -37
  222. package/node_modules/minimist/test/dotted.js +0 -24
  223. package/node_modules/minimist/test/kv_short.js +0 -32
  224. package/node_modules/minimist/test/long.js +0 -33
  225. package/node_modules/minimist/test/num.js +0 -38
  226. package/node_modules/minimist/test/parse.js +0 -209
  227. package/node_modules/minimist/test/parse_modified.js +0 -11
  228. package/node_modules/minimist/test/proto.js +0 -64
  229. package/node_modules/minimist/test/short.js +0 -69
  230. package/node_modules/minimist/test/stop_early.js +0 -17
  231. package/node_modules/minimist/test/unknown.js +0 -104
  232. package/node_modules/minimist/test/whitespace.js +0 -10
  233. package/node_modules/mkdirp-classic/LICENSE +0 -21
  234. package/node_modules/mkdirp-classic/README.md +0 -18
  235. package/node_modules/mkdirp-classic/index.js +0 -98
  236. package/node_modules/mkdirp-classic/package.json +0 -18
  237. package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
  238. package/node_modules/napi-build-utils/LICENSE +0 -21
  239. package/node_modules/napi-build-utils/README.md +0 -52
  240. package/node_modules/napi-build-utils/index.js +0 -214
  241. package/node_modules/napi-build-utils/index.md +0 -0
  242. package/node_modules/napi-build-utils/package.json +0 -42
  243. package/node_modules/node-abi/LICENSE +0 -21
  244. package/node_modules/node-abi/README.md +0 -54
  245. package/node_modules/node-abi/abi_registry.json +0 -439
  246. package/node_modules/node-abi/index.js +0 -179
  247. package/node_modules/node-abi/package.json +0 -45
  248. package/node_modules/node-addon-api/LICENSE.md +0 -13
  249. package/node_modules/node-addon-api/README.md +0 -293
  250. package/node_modules/node-addon-api/common.gypi +0 -21
  251. package/node_modules/node-addon-api/except.gypi +0 -25
  252. package/node_modules/node-addon-api/index.js +0 -11
  253. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -192
  254. package/node_modules/node-addon-api/napi-inl.h +0 -6209
  255. package/node_modules/node-addon-api/napi.h +0 -2983
  256. package/node_modules/node-addon-api/node_api.gyp +0 -9
  257. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  258. package/node_modules/node-addon-api/nothing.c +0 -0
  259. package/node_modules/node-addon-api/package-support.json +0 -21
  260. package/node_modules/node-addon-api/package.json +0 -399
  261. package/node_modules/node-addon-api/tools/README.md +0 -73
  262. package/node_modules/node-addon-api/tools/check-napi.js +0 -100
  263. package/node_modules/node-addon-api/tools/clang-format.js +0 -68
  264. package/node_modules/node-addon-api/tools/conversion.js +0 -309
  265. package/node_modules/node-addon-api/tools/eslint-format.js +0 -71
  266. package/node_modules/prebuild-install/CHANGELOG.md +0 -131
  267. package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
  268. package/node_modules/prebuild-install/LICENSE +0 -21
  269. package/node_modules/prebuild-install/README.md +0 -163
  270. package/node_modules/prebuild-install/asset.js +0 -44
  271. package/node_modules/prebuild-install/bin.js +0 -78
  272. package/node_modules/prebuild-install/download.js +0 -142
  273. package/node_modules/prebuild-install/error.js +0 -14
  274. package/node_modules/prebuild-install/help.txt +0 -16
  275. package/node_modules/prebuild-install/index.js +0 -1
  276. package/node_modules/prebuild-install/log.js +0 -33
  277. package/node_modules/prebuild-install/package.json +0 -67
  278. package/node_modules/prebuild-install/proxy.js +0 -35
  279. package/node_modules/prebuild-install/rc.js +0 -64
  280. package/node_modules/prebuild-install/util.js +0 -143
  281. package/node_modules/pump/.github/FUNDING.yml +0 -2
  282. package/node_modules/pump/.travis.yml +0 -5
  283. package/node_modules/pump/LICENSE +0 -21
  284. package/node_modules/pump/README.md +0 -74
  285. package/node_modules/pump/SECURITY.md +0 -5
  286. package/node_modules/pump/empty.js +0 -1
  287. package/node_modules/pump/index.js +0 -86
  288. package/node_modules/pump/package.json +0 -30
  289. package/node_modules/pump/test-browser.js +0 -66
  290. package/node_modules/pump/test-node.js +0 -53
  291. package/node_modules/rc/LICENSE.APACHE2 +0 -15
  292. package/node_modules/rc/LICENSE.BSD +0 -26
  293. package/node_modules/rc/LICENSE.MIT +0 -24
  294. package/node_modules/rc/README.md +0 -227
  295. package/node_modules/rc/browser.js +0 -7
  296. package/node_modules/rc/cli.js +0 -4
  297. package/node_modules/rc/index.js +0 -53
  298. package/node_modules/rc/lib/utils.js +0 -104
  299. package/node_modules/rc/package.json +0 -29
  300. package/node_modules/rc/test/ini.js +0 -16
  301. package/node_modules/rc/test/nested-env-vars.js +0 -50
  302. package/node_modules/rc/test/test.js +0 -59
  303. package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  304. package/node_modules/readable-stream/GOVERNANCE.md +0 -136
  305. package/node_modules/readable-stream/LICENSE +0 -47
  306. package/node_modules/readable-stream/README.md +0 -106
  307. package/node_modules/readable-stream/errors-browser.js +0 -127
  308. package/node_modules/readable-stream/errors.js +0 -116
  309. package/node_modules/readable-stream/experimentalWarning.js +0 -17
  310. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
  311. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
  312. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
  313. package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
  314. package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
  315. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
  316. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
  317. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
  318. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
  319. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  320. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
  321. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
  322. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
  323. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  324. package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  325. package/node_modules/readable-stream/package.json +0 -68
  326. package/node_modules/readable-stream/readable-browser.js +0 -9
  327. package/node_modules/readable-stream/readable.js +0 -16
  328. package/node_modules/safe-buffer/LICENSE +0 -21
  329. package/node_modules/safe-buffer/README.md +0 -584
  330. package/node_modules/safe-buffer/index.d.ts +0 -187
  331. package/node_modules/safe-buffer/index.js +0 -65
  332. package/node_modules/safe-buffer/package.json +0 -51
  333. package/node_modules/semver/LICENSE +0 -15
  334. package/node_modules/semver/README.md +0 -665
  335. package/node_modules/semver/bin/semver.js +0 -191
  336. package/node_modules/semver/classes/comparator.js +0 -143
  337. package/node_modules/semver/classes/index.js +0 -7
  338. package/node_modules/semver/classes/range.js +0 -557
  339. package/node_modules/semver/classes/semver.js +0 -333
  340. package/node_modules/semver/functions/clean.js +0 -8
  341. package/node_modules/semver/functions/cmp.js +0 -54
  342. package/node_modules/semver/functions/coerce.js +0 -62
  343. package/node_modules/semver/functions/compare-build.js +0 -9
  344. package/node_modules/semver/functions/compare-loose.js +0 -5
  345. package/node_modules/semver/functions/compare.js +0 -7
  346. package/node_modules/semver/functions/diff.js +0 -60
  347. package/node_modules/semver/functions/eq.js +0 -5
  348. package/node_modules/semver/functions/gt.js +0 -5
  349. package/node_modules/semver/functions/gte.js +0 -5
  350. package/node_modules/semver/functions/inc.js +0 -21
  351. package/node_modules/semver/functions/lt.js +0 -5
  352. package/node_modules/semver/functions/lte.js +0 -5
  353. package/node_modules/semver/functions/major.js +0 -5
  354. package/node_modules/semver/functions/minor.js +0 -5
  355. package/node_modules/semver/functions/neq.js +0 -5
  356. package/node_modules/semver/functions/parse.js +0 -18
  357. package/node_modules/semver/functions/patch.js +0 -5
  358. package/node_modules/semver/functions/prerelease.js +0 -8
  359. package/node_modules/semver/functions/rcompare.js +0 -5
  360. package/node_modules/semver/functions/rsort.js +0 -5
  361. package/node_modules/semver/functions/satisfies.js +0 -12
  362. package/node_modules/semver/functions/sort.js +0 -5
  363. package/node_modules/semver/functions/valid.js +0 -8
  364. package/node_modules/semver/index.js +0 -91
  365. package/node_modules/semver/internal/constants.js +0 -37
  366. package/node_modules/semver/internal/debug.js +0 -11
  367. package/node_modules/semver/internal/identifiers.js +0 -29
  368. package/node_modules/semver/internal/lrucache.js +0 -42
  369. package/node_modules/semver/internal/parse-options.js +0 -17
  370. package/node_modules/semver/internal/re.js +0 -223
  371. package/node_modules/semver/package.json +0 -78
  372. package/node_modules/semver/preload.js +0 -4
  373. package/node_modules/semver/range.bnf +0 -16
  374. package/node_modules/semver/ranges/gtr.js +0 -6
  375. package/node_modules/semver/ranges/intersects.js +0 -9
  376. package/node_modules/semver/ranges/ltr.js +0 -6
  377. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  378. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  379. package/node_modules/semver/ranges/min-version.js +0 -63
  380. package/node_modules/semver/ranges/outside.js +0 -82
  381. package/node_modules/semver/ranges/simplify.js +0 -49
  382. package/node_modules/semver/ranges/subset.js +0 -249
  383. package/node_modules/semver/ranges/to-comparators.js +0 -10
  384. package/node_modules/semver/ranges/valid.js +0 -13
  385. package/node_modules/simple-concat/.travis.yml +0 -3
  386. package/node_modules/simple-concat/LICENSE +0 -20
  387. package/node_modules/simple-concat/README.md +0 -44
  388. package/node_modules/simple-concat/index.js +0 -15
  389. package/node_modules/simple-concat/package.json +0 -47
  390. package/node_modules/simple-concat/test/basic.js +0 -41
  391. package/node_modules/simple-get/.github/dependabot.yml +0 -15
  392. package/node_modules/simple-get/.github/workflows/ci.yml +0 -23
  393. package/node_modules/simple-get/LICENSE +0 -20
  394. package/node_modules/simple-get/README.md +0 -333
  395. package/node_modules/simple-get/index.js +0 -108
  396. package/node_modules/simple-get/package.json +0 -67
  397. package/node_modules/string_decoder/LICENSE +0 -48
  398. package/node_modules/string_decoder/README.md +0 -47
  399. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  400. package/node_modules/string_decoder/package.json +0 -34
  401. package/node_modules/strip-json-comments/index.js +0 -70
  402. package/node_modules/strip-json-comments/license +0 -21
  403. package/node_modules/strip-json-comments/package.json +0 -42
  404. package/node_modules/strip-json-comments/readme.md +0 -64
  405. package/node_modules/tar-fs/.travis.yml +0 -6
  406. package/node_modules/tar-fs/LICENSE +0 -21
  407. package/node_modules/tar-fs/README.md +0 -165
  408. package/node_modules/tar-fs/index.js +0 -363
  409. package/node_modules/tar-fs/package.json +0 -41
  410. package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  411. package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  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 +0 -346
  421. package/node_modules/tar-stream/LICENSE +0 -21
  422. package/node_modules/tar-stream/README.md +0 -168
  423. package/node_modules/tar-stream/extract.js +0 -257
  424. package/node_modules/tar-stream/headers.js +0 -295
  425. package/node_modules/tar-stream/index.js +0 -2
  426. package/node_modules/tar-stream/pack.js +0 -255
  427. package/node_modules/tar-stream/package.json +0 -58
  428. package/node_modules/tar-stream/sandbox.js +0 -11
  429. package/node_modules/tunnel-agent/LICENSE +0 -55
  430. package/node_modules/tunnel-agent/README.md +0 -4
  431. package/node_modules/tunnel-agent/index.js +0 -244
  432. package/node_modules/tunnel-agent/package.json +0 -22
  433. package/node_modules/util-deprecate/History.md +0 -16
  434. package/node_modules/util-deprecate/LICENSE +0 -24
  435. package/node_modules/util-deprecate/README.md +0 -53
  436. package/node_modules/util-deprecate/browser.js +0 -67
  437. package/node_modules/util-deprecate/node.js +0 -6
  438. package/node_modules/util-deprecate/package.json +0 -27
@@ -1,9 +0,0 @@
1
- {
2
- 'targets': [
3
- {
4
- 'target_name': 'nothing',
5
- 'type': 'static_library',
6
- 'sources': [ 'nothing.c' ]
7
- }
8
- ]
9
- }
@@ -1,26 +0,0 @@
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
@@ -1,21 +0,0 @@
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
- }
@@ -1,399 +0,0 @@
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
- }
@@ -1,73 +0,0 @@
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.
@@ -1,100 +0,0 @@
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] : '.');