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