aurix-ai 2.7.3 → 2.7.5

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 (288) hide show
  1. package/bin/aurix.js +2 -2
  2. package/dist/agent/AgentLoop.d.ts.map +1 -1
  3. package/dist/agent/AgentLoop.js +1 -52
  4. package/dist/agent/AgentLoop.js.map +1 -1
  5. package/dist/cli/App.d.ts.map +1 -1
  6. package/dist/cli/App.js +6 -0
  7. package/dist/cli/App.js.map +1 -1
  8. package/dist/cli/commands.d.ts.map +1 -1
  9. package/dist/cli/commands.js +7 -0
  10. package/dist/cli/commands.js.map +1 -1
  11. package/dist/tools/Browser.d.ts.map +1 -1
  12. package/dist/tools/Browser.js +44 -615
  13. package/dist/tools/Browser.js.map +1 -1
  14. package/dist/tools/captcha/CaptchaRouter.d.ts +6 -0
  15. package/dist/tools/captcha/CaptchaRouter.d.ts.map +1 -0
  16. package/dist/tools/captcha/CaptchaRouter.js +371 -0
  17. package/dist/tools/captcha/CaptchaRouter.js.map +1 -0
  18. package/dist/tools/captcha/RecaptchaSolver.d.ts +2 -0
  19. package/dist/tools/captcha/RecaptchaSolver.d.ts.map +1 -0
  20. package/dist/tools/captcha/RecaptchaSolver.js +1114 -0
  21. package/dist/tools/captcha/RecaptchaSolver.js.map +1 -0
  22. package/dist/tools/captcha/common.d.ts +35 -0
  23. package/dist/tools/captcha/common.d.ts.map +1 -0
  24. package/dist/tools/captcha/common.js +445 -0
  25. package/dist/tools/captcha/common.js.map +1 -0
  26. package/dist/tools/captcha/index.d.ts +5 -0
  27. package/dist/tools/captcha/index.d.ts.map +1 -0
  28. package/dist/tools/captcha/index.js +4 -0
  29. package/dist/tools/captcha/index.js.map +1 -0
  30. package/package.json +2 -2
  31. package/scripts/build.cjs +0 -15
  32. package/scripts/run-task.mjs +86 -0
  33. package/training/captcha-training.json +930 -0
  34. package/native/token-counter/index.d.ts +0 -7
  35. package/native/token-counter/index.js +0 -316
  36. package/native/token-counter/node_modules/.package-lock.json +0 -568
  37. package/native/token-counter/node_modules/2/array.js +0 -25
  38. package/native/token-counter/node_modules/2/index.js +0 -12
  39. package/native/token-counter/node_modules/2/iterator.js +0 -13
  40. package/native/token-counter/node_modules/2/license.txt +0 -21
  41. package/native/token-counter/node_modules/2/map.js +0 -27
  42. package/native/token-counter/node_modules/2/number.js +0 -109
  43. package/native/token-counter/node_modules/2/object.js +0 -23
  44. package/native/token-counter/node_modules/2/package.json +0 -60
  45. package/native/token-counter/node_modules/2/readme.md +0 -246
  46. package/native/token-counter/node_modules/2/string.js +0 -11
  47. package/native/token-counter/node_modules/2/test.js +0 -520
  48. package/native/token-counter/node_modules/@lamansky/every/index.js +0 -16
  49. package/native/token-counter/node_modules/@lamansky/every/license.txt +0 -21
  50. package/native/token-counter/node_modules/@lamansky/every/package.json +0 -38
  51. package/native/token-counter/node_modules/@lamansky/every/readme.md +0 -46
  52. package/native/token-counter/node_modules/@lamansky/flatten/index.js +0 -5
  53. package/native/token-counter/node_modules/@lamansky/flatten/license.txt +0 -21
  54. package/native/token-counter/node_modules/@lamansky/flatten/package.json +0 -35
  55. package/native/token-counter/node_modules/@lamansky/flatten/readme.md +0 -41
  56. package/native/token-counter/node_modules/@napi-rs/cli/LICENSE +0 -21
  57. package/native/token-counter/node_modules/@napi-rs/cli/README.md +0 -96
  58. package/native/token-counter/node_modules/@napi-rs/cli/package.json +0 -65
  59. package/native/token-counter/node_modules/@napi-rs/cli/scripts/index.js +0 -51371
  60. package/native/token-counter/node_modules/add-counter/index.js +0 -3
  61. package/native/token-counter/node_modules/add-counter/license.txt +0 -21
  62. package/native/token-counter/node_modules/add-counter/package.json +0 -34
  63. package/native/token-counter/node_modules/add-counter/readme.md +0 -36
  64. package/native/token-counter/node_modules/array-pad/LICENSE +0 -22
  65. package/native/token-counter/node_modules/array-pad/README.md +0 -80
  66. package/native/token-counter/node_modules/array-pad/index.js +0 -30
  67. package/native/token-counter/node_modules/array-pad/package.json +0 -28
  68. package/native/token-counter/node_modules/arrify/index.js +0 -8
  69. package/native/token-counter/node_modules/arrify/license +0 -21
  70. package/native/token-counter/node_modules/arrify/package.json +0 -33
  71. package/native/token-counter/node_modules/arrify/readme.md +0 -36
  72. package/native/token-counter/node_modules/case-insensitive/index.js +0 -72
  73. package/native/token-counter/node_modules/case-insensitive/license.txt +0 -21
  74. package/native/token-counter/node_modules/case-insensitive/package.json +0 -39
  75. package/native/token-counter/node_modules/case-insensitive/readme.md +0 -39
  76. package/native/token-counter/node_modules/case-insensitive/test.js +0 -114
  77. package/native/token-counter/node_modules/class-chain/index.js +0 -32
  78. package/native/token-counter/node_modules/class-chain/license.txt +0 -21
  79. package/native/token-counter/node_modules/class-chain/package.json +0 -39
  80. package/native/token-counter/node_modules/class-chain/readme.md +0 -23
  81. package/native/token-counter/node_modules/class-chain/test.js +0 -77
  82. package/native/token-counter/node_modules/copy-own/index.js +0 -10
  83. package/native/token-counter/node_modules/copy-own/license.txt +0 -21
  84. package/native/token-counter/node_modules/copy-own/package.json +0 -37
  85. package/native/token-counter/node_modules/copy-own/readme.md +0 -67
  86. package/native/token-counter/node_modules/def-props/index.js +0 -43
  87. package/native/token-counter/node_modules/def-props/license.txt +0 -21
  88. package/native/token-counter/node_modules/def-props/node_modules/is-obj/index.d.ts +0 -22
  89. package/native/token-counter/node_modules/def-props/node_modules/is-obj/index.js +0 -6
  90. package/native/token-counter/node_modules/def-props/node_modules/is-obj/license +0 -9
  91. package/native/token-counter/node_modules/def-props/node_modules/is-obj/package.json +0 -34
  92. package/native/token-counter/node_modules/def-props/node_modules/is-obj/readme.md +0 -39
  93. package/native/token-counter/node_modules/def-props/package.json +0 -51
  94. package/native/token-counter/node_modules/def-props/readme.md +0 -117
  95. package/native/token-counter/node_modules/empty-iterator/index.js +0 -3
  96. package/native/token-counter/node_modules/empty-iterator/license.txt +0 -21
  97. package/native/token-counter/node_modules/empty-iterator/package.json +0 -33
  98. package/native/token-counter/node_modules/empty-iterator/readme.md +0 -23
  99. package/native/token-counter/node_modules/enforce-range/index.js +0 -15
  100. package/native/token-counter/node_modules/enforce-range/license.txt +0 -21
  101. package/native/token-counter/node_modules/enforce-range/node_modules/2/array.js +0 -43
  102. package/native/token-counter/node_modules/enforce-range/node_modules/2/index.js +0 -10
  103. package/native/token-counter/node_modules/enforce-range/node_modules/2/iterator.js +0 -26
  104. package/native/token-counter/node_modules/enforce-range/node_modules/2/license.txt +0 -21
  105. package/native/token-counter/node_modules/enforce-range/node_modules/2/map.js +0 -47
  106. package/native/token-counter/node_modules/enforce-range/node_modules/2/number.js +0 -33
  107. package/native/token-counter/node_modules/enforce-range/node_modules/2/object.js +0 -61
  108. package/native/token-counter/node_modules/enforce-range/node_modules/2/package.json +0 -41
  109. package/native/token-counter/node_modules/enforce-range/node_modules/2/readme.md +0 -210
  110. package/native/token-counter/node_modules/enforce-range/node_modules/2/string.js +0 -37
  111. package/native/token-counter/node_modules/enforce-range/node_modules/2/test.js +0 -413
  112. package/native/token-counter/node_modules/enforce-range/package.json +0 -36
  113. package/native/token-counter/node_modules/enforce-range/readme.md +0 -53
  114. package/native/token-counter/node_modules/english-list/.travis.yml +0 -6
  115. package/native/token-counter/node_modules/english-list/LICENSE +0 -22
  116. package/native/token-counter/node_modules/english-list/README.md +0 -44
  117. package/native/token-counter/node_modules/english-list/index.js +0 -34
  118. package/native/token-counter/node_modules/english-list/package.json +0 -31
  119. package/native/token-counter/node_modules/english-list/test.log +0 -6
  120. package/native/token-counter/node_modules/errate/index.js +0 -19
  121. package/native/token-counter/node_modules/errate/license.txt +0 -21
  122. package/native/token-counter/node_modules/errate/package.json +0 -39
  123. package/native/token-counter/node_modules/errate/readme.md +0 -79
  124. package/native/token-counter/node_modules/ffn/index.js +0 -9
  125. package/native/token-counter/node_modules/ffn/license.txt +0 -21
  126. package/native/token-counter/node_modules/ffn/package.json +0 -34
  127. package/native/token-counter/node_modules/ffn/readme.md +0 -51
  128. package/native/token-counter/node_modules/get-own-property/index.js +0 -5
  129. package/native/token-counter/node_modules/get-own-property/license.txt +0 -21
  130. package/native/token-counter/node_modules/get-own-property/package.json +0 -31
  131. package/native/token-counter/node_modules/get-own-property/readme.md +0 -22
  132. package/native/token-counter/node_modules/has-duplicates/index.js +0 -11
  133. package/native/token-counter/node_modules/has-duplicates/license.txt +0 -21
  134. package/native/token-counter/node_modules/has-duplicates/package.json +0 -32
  135. package/native/token-counter/node_modules/has-duplicates/readme.md +0 -23
  136. package/native/token-counter/node_modules/has-duplicates/test.js +0 -30
  137. package/native/token-counter/node_modules/if-else-throw/index.js +0 -8
  138. package/native/token-counter/node_modules/if-else-throw/license.txt +0 -21
  139. package/native/token-counter/node_modules/if-else-throw/package.json +0 -37
  140. package/native/token-counter/node_modules/if-else-throw/readme.md +0 -32
  141. package/native/token-counter/node_modules/is-array-of-length/index.js +0 -7
  142. package/native/token-counter/node_modules/is-array-of-length/license.txt +0 -21
  143. package/native/token-counter/node_modules/is-array-of-length/package.json +0 -42
  144. package/native/token-counter/node_modules/is-array-of-length/readme.md +0 -41
  145. package/native/token-counter/node_modules/is-class-of/index.js +0 -7
  146. package/native/token-counter/node_modules/is-class-of/license.txt +0 -21
  147. package/native/token-counter/node_modules/is-class-of/package.json +0 -35
  148. package/native/token-counter/node_modules/is-class-of/readme.md +0 -57
  149. package/native/token-counter/node_modules/is-global-object/index.js +0 -6
  150. package/native/token-counter/node_modules/is-global-object/license.txt +0 -21
  151. package/native/token-counter/node_modules/is-global-object/package.json +0 -34
  152. package/native/token-counter/node_modules/is-global-object/readme.md +0 -22
  153. package/native/token-counter/node_modules/is-instance-of/index.js +0 -28
  154. package/native/token-counter/node_modules/is-instance-of/license.txt +0 -21
  155. package/native/token-counter/node_modules/is-instance-of/package.json +0 -44
  156. package/native/token-counter/node_modules/is-instance-of/readme.md +0 -55
  157. package/native/token-counter/node_modules/is-iterable/index.js +0 -5
  158. package/native/token-counter/node_modules/is-iterable/license +0 -21
  159. package/native/token-counter/node_modules/is-iterable/package.json +0 -30
  160. package/native/token-counter/node_modules/is-iterable/readme.md +0 -23
  161. package/native/token-counter/node_modules/is-nil/LICENSE +0 -21
  162. package/native/token-counter/node_modules/is-nil/README.md +0 -47
  163. package/native/token-counter/node_modules/is-nil/index.js +0 -6
  164. package/native/token-counter/node_modules/is-nil/package.json +0 -46
  165. package/native/token-counter/node_modules/is-obj/index.js +0 -5
  166. package/native/token-counter/node_modules/is-obj/license +0 -21
  167. package/native/token-counter/node_modules/is-obj/package.json +0 -33
  168. package/native/token-counter/node_modules/is-obj/readme.md +0 -34
  169. package/native/token-counter/node_modules/is-object/.eslintignore +0 -1
  170. package/native/token-counter/node_modules/is-object/.eslintrc +0 -5
  171. package/native/token-counter/node_modules/is-object/.nycrc +0 -13
  172. package/native/token-counter/node_modules/is-object/.testem.json +0 -14
  173. package/native/token-counter/node_modules/is-object/CHANGELOG.md +0 -121
  174. package/native/token-counter/node_modules/is-object/LICENSE +0 -19
  175. package/native/token-counter/node_modules/is-object/README.md +0 -48
  176. package/native/token-counter/node_modules/is-object/index.js +0 -5
  177. package/native/token-counter/node_modules/is-object/package.json +0 -78
  178. package/native/token-counter/node_modules/is-object/test/index.js +0 -44
  179. package/native/token-counter/node_modules/is-plain-object/LICENSE +0 -21
  180. package/native/token-counter/node_modules/is-plain-object/README.md +0 -104
  181. package/native/token-counter/node_modules/is-plain-object/index.d.ts +0 -5
  182. package/native/token-counter/node_modules/is-plain-object/index.js +0 -37
  183. package/native/token-counter/node_modules/is-plain-object/package.json +0 -79
  184. package/native/token-counter/node_modules/isobject/LICENSE +0 -21
  185. package/native/token-counter/node_modules/isobject/README.md +0 -122
  186. package/native/token-counter/node_modules/isobject/index.d.ts +0 -5
  187. package/native/token-counter/node_modules/isobject/index.js +0 -12
  188. package/native/token-counter/node_modules/isobject/package.json +0 -74
  189. package/native/token-counter/node_modules/lodash.set/LICENSE +0 -47
  190. package/native/token-counter/node_modules/lodash.set/README.md +0 -18
  191. package/native/token-counter/node_modules/lodash.set/index.js +0 -990
  192. package/native/token-counter/node_modules/lodash.set/package.json +0 -17
  193. package/native/token-counter/node_modules/longest-first/index.js +0 -3
  194. package/native/token-counter/node_modules/longest-first/license.txt +0 -21
  195. package/native/token-counter/node_modules/longest-first/package.json +0 -36
  196. package/native/token-counter/node_modules/longest-first/readme.md +0 -29
  197. package/native/token-counter/node_modules/m-o/index.js +0 -27
  198. package/native/token-counter/node_modules/m-o/license.txt +0 -21
  199. package/native/token-counter/node_modules/m-o/node_modules/new-object/index.js +0 -23
  200. package/native/token-counter/node_modules/m-o/node_modules/new-object/license.txt +0 -21
  201. package/native/token-counter/node_modules/m-o/node_modules/new-object/package.json +0 -40
  202. package/native/token-counter/node_modules/m-o/node_modules/new-object/readme.md +0 -55
  203. package/native/token-counter/node_modules/m-o/package.json +0 -45
  204. package/native/token-counter/node_modules/m-o/readme.md +0 -87
  205. package/native/token-counter/node_modules/map-iter/index.js +0 -6
  206. package/native/token-counter/node_modules/map-iter/license.txt +0 -21
  207. package/native/token-counter/node_modules/map-iter/package.json +0 -40
  208. package/native/token-counter/node_modules/map-iter/readme.md +0 -46
  209. package/native/token-counter/node_modules/new-object/index.js +0 -5
  210. package/native/token-counter/node_modules/new-object/license.txt +0 -21
  211. package/native/token-counter/node_modules/new-object/package.json +0 -49
  212. package/native/token-counter/node_modules/new-object/readme.md +0 -145
  213. package/native/token-counter/node_modules/ofn/index.js +0 -22
  214. package/native/token-counter/node_modules/ofn/license.txt +0 -21
  215. package/native/token-counter/node_modules/ofn/package.json +0 -40
  216. package/native/token-counter/node_modules/ofn/readme.md +0 -63
  217. package/native/token-counter/node_modules/otherwise/index.js +0 -11
  218. package/native/token-counter/node_modules/otherwise/license.txt +0 -21
  219. package/native/token-counter/node_modules/otherwise/package.json +0 -38
  220. package/native/token-counter/node_modules/otherwise/readme.md +0 -29
  221. package/native/token-counter/node_modules/parser-factory/index.js +0 -138
  222. package/native/token-counter/node_modules/parser-factory/license.txt +0 -21
  223. package/native/token-counter/node_modules/parser-factory/node_modules/arrify/index.d.ts +0 -38
  224. package/native/token-counter/node_modules/parser-factory/node_modules/arrify/index.js +0 -23
  225. package/native/token-counter/node_modules/parser-factory/node_modules/arrify/license +0 -9
  226. package/native/token-counter/node_modules/parser-factory/node_modules/arrify/package.json +0 -35
  227. package/native/token-counter/node_modules/parser-factory/node_modules/arrify/readme.md +0 -39
  228. package/native/token-counter/node_modules/parser-factory/package.json +0 -38
  229. package/native/token-counter/node_modules/parser-factory/readme.md +0 -15
  230. package/native/token-counter/node_modules/pfn/index.js +0 -5
  231. package/native/token-counter/node_modules/pfn/license.txt +0 -21
  232. package/native/token-counter/node_modules/pfn/package.json +0 -41
  233. package/native/token-counter/node_modules/pfn/readme.md +0 -111
  234. package/native/token-counter/node_modules/pfn/strict.js +0 -8
  235. package/native/token-counter/node_modules/plainify/index.js +0 -5
  236. package/native/token-counter/node_modules/plainify/license.txt +0 -21
  237. package/native/token-counter/node_modules/plainify/package.json +0 -36
  238. package/native/token-counter/node_modules/plainify/readme.md +0 -47
  239. package/native/token-counter/node_modules/possible-function/changelog.md +0 -7
  240. package/native/token-counter/node_modules/possible-function/index.js +0 -43
  241. package/native/token-counter/node_modules/possible-function/license.txt +0 -21
  242. package/native/token-counter/node_modules/possible-function/package.json +0 -34
  243. package/native/token-counter/node_modules/possible-function/readme.md +0 -77
  244. package/native/token-counter/node_modules/possible-function/test.js +0 -32
  245. package/native/token-counter/node_modules/qfn/index.js +0 -11
  246. package/native/token-counter/node_modules/qfn/license.txt +0 -21
  247. package/native/token-counter/node_modules/qfn/package.json +0 -40
  248. package/native/token-counter/node_modules/qfn/readme.md +0 -45
  249. package/native/token-counter/node_modules/roadblock/index.js +0 -3
  250. package/native/token-counter/node_modules/roadblock/license.txt +0 -21
  251. package/native/token-counter/node_modules/roadblock/package.json +0 -40
  252. package/native/token-counter/node_modules/roadblock/readme.md +0 -59
  253. package/native/token-counter/node_modules/round-to/index.d.ts +0 -56
  254. package/native/token-counter/node_modules/round-to/index.js +0 -37
  255. package/native/token-counter/node_modules/round-to/license +0 -9
  256. package/native/token-counter/node_modules/round-to/package.json +0 -38
  257. package/native/token-counter/node_modules/round-to/readme.md +0 -71
  258. package/native/token-counter/node_modules/rtrim-array/index.js +0 -10
  259. package/native/token-counter/node_modules/rtrim-array/license.txt +0 -21
  260. package/native/token-counter/node_modules/rtrim-array/package.json +0 -41
  261. package/native/token-counter/node_modules/rtrim-array/readme.md +0 -75
  262. package/native/token-counter/node_modules/sbo/index.js +0 -25
  263. package/native/token-counter/node_modules/sbo/license.txt +0 -21
  264. package/native/token-counter/node_modules/sbo/package.json +0 -50
  265. package/native/token-counter/node_modules/sbo/readme.md +0 -105
  266. package/native/token-counter/node_modules/sorp/index.js +0 -3
  267. package/native/token-counter/node_modules/sorp/license.txt +0 -21
  268. package/native/token-counter/node_modules/sorp/package.json +0 -34
  269. package/native/token-counter/node_modules/sorp/readme.md +0 -25
  270. package/native/token-counter/node_modules/trim-call/index.js +0 -6
  271. package/native/token-counter/node_modules/trim-call/license.txt +0 -21
  272. package/native/token-counter/node_modules/trim-call/package.json +0 -40
  273. package/native/token-counter/node_modules/trim-call/readme.md +0 -80
  274. package/native/token-counter/node_modules/type-error/LICENSE +0 -21
  275. package/native/token-counter/node_modules/type-error/README.md +0 -24
  276. package/native/token-counter/node_modules/type-error/index.js +0 -35
  277. package/native/token-counter/node_modules/type-error/package.json +0 -11
  278. package/native/token-counter/node_modules/vfn/index.js +0 -21
  279. package/native/token-counter/node_modules/vfn/license.txt +0 -21
  280. package/native/token-counter/node_modules/vfn/package.json +0 -40
  281. package/native/token-counter/node_modules/vfn/readme.md +0 -81
  282. package/native/token-counter/node_modules/wfn/index.js +0 -43
  283. package/native/token-counter/node_modules/wfn/license.txt +0 -21
  284. package/native/token-counter/node_modules/wfn/package.json +0 -38
  285. package/native/token-counter/node_modules/wfn/readme.md +0 -81
  286. package/native/token-counter/package-lock.json +0 -578
  287. package/native/token-counter/package.json +0 -21
  288. package/native/token-counter/token-counter.linux-x64-gnu.node +0 -0
@@ -1,41 +0,0 @@
1
- # is-array-of-length
2
-
3
- Returns true if a value is an array containing the specified number of elements.
4
-
5
- ## Installation
6
-
7
- Requires [Node.js](https://nodejs.org/) 6.0.0 or above.
8
-
9
- ```bash
10
- npm i is-array-of-length
11
- ```
12
-
13
- ## API
14
-
15
- The module exports a single function.
16
-
17
- ### Parameters
18
-
19
- 1. `arr` (any): What may or may not be an array
20
- 2. `lengths` (integer or array): One or more integers, each of which represents an acceptable number of items in the array.
21
- 3. Optional: Object argument:
22
- * `arrays` (class, string, or array): One or more classes or names of classes that should be treated as equivalent to `Array`.
23
-
24
- ### Return Values
25
-
26
- * `true` if `arr` is an array with a length given in `lengths`
27
- * `false` otherwise
28
-
29
- ## Example
30
-
31
- ```javascript
32
- const isArrayOfLength = require('is-array-of-length')
33
-
34
- isArrayOfLength(['a', 'b'], 2) // true
35
- isArrayOfLength(['a', 'b'], 3) // false
36
- isArrayOfLength(['a', 'b'], [2, 3]) // true
37
- isArrayOfLength('7 chars', 7) // false
38
-
39
- // Supports the bind operator
40
- ['a', 'b']::isArrayOfLength(2) // true
41
- ```
@@ -1,7 +0,0 @@
1
- 'use strict'
2
-
3
- const f = x => typeof x === 'function'
4
- const cc = require('class-chain')
5
- const sbo = require('sbo')
6
-
7
- module.exports = sbo((sub, cls) => f(sub) && (f(cls) ? cc : cc.names)(sub).includes(cls))
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright ©2018 John Lamansky
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,35 +0,0 @@
1
- {
2
- "name": "is-class-of",
3
- "version": "1.0.1",
4
- "description": "Returns true if A is a subclass of B or the same class as B.",
5
- "keywords": [
6
- "class",
7
- "subclass"
8
- ],
9
- "author": "John Lamansky",
10
- "license": "MIT",
11
- "homepage": "https://github.com/lamansky/is-class-of",
12
- "repository": "lamansky/is-class-of",
13
- "main": "index.js",
14
- "files": [],
15
- "engines": {
16
- "node": ">=6.0.0"
17
- },
18
- "dependencies": {
19
- "class-chain": "^1.0.0",
20
- "sbo": "^1.0.0"
21
- },
22
- "devDependencies": {
23
- "eslint-config-lamansky": "^1.0.0",
24
- "mocha": "^5.0.5"
25
- },
26
- "scripts": {
27
- "test": "mocha"
28
- },
29
- "eslintConfig": {
30
- "extends": "lamansky",
31
- "env": {
32
- "mocha": true
33
- }
34
- }
35
- }
@@ -1,57 +0,0 @@
1
- # is-class-of
2
-
3
- Returns true if A is a subclass of B or the same class as B.
4
-
5
- ## Installation
6
-
7
- Requires [Node.js](https://nodejs.org/) 6.0.0 or above.
8
-
9
- ```bash
10
- npm i is-class-of
11
- ```
12
-
13
- ## API
14
-
15
- The module exports a single function.
16
-
17
- ### Parameters
18
-
19
- 1. Bindable: `A` (function): What may or may not be B or a subclass of B.
20
- 2. `B` (function or string): What may or may not be A or an ancestor of A. You can either provide the class itself or its string name.
21
-
22
- ### Return Value
23
-
24
- * Returns `true` if `A` is a subclass of `B`, is equal to `B`, or has a name equal to `B`.
25
- * Otherwise `false`.
26
-
27
- ## Example
28
-
29
- ```javascript
30
- const isClassOf = require('is-class-of')
31
-
32
- isClassOf(Date, Error) // false
33
-
34
- isClassOf(Error, Error) // true
35
- isClassOf(Error, 'Error') // true
36
- isClassOf(TypeError, Error) // true
37
- isClassOf(RangeError, Error) // true
38
- isClassOf(RangeError, 'Error') // true
39
-
40
- class A {}
41
- class B extends A {}
42
- isClassOf(A, A) // true
43
- isClassOf(A, 'A') // true
44
- isClassOf(B, A) // true
45
- isClassOf(B, 'A') // true
46
-
47
- // Supports the bind operator
48
- Error::isClassOf(Error) // true
49
- TypeError::isClassOf(Error) // true
50
- TypeError::isClassOf('Error') // true
51
- B::isClassOf(A) // true
52
- ```
53
-
54
- ## Related
55
-
56
- * [is-subclass-of](https://github.com/lamansky/is-subclass-of): Returns true if A is a subclass of B.
57
- * [is-instance-of](https://github.com/lamansky/is-instance-of): Like `instanceof`, but uses class name strings.
@@ -1,6 +0,0 @@
1
- 'use strict'
2
-
3
- const g = typeof global !== 'undefined'
4
- const w = typeof window !== 'undefined'
5
-
6
- module.exports = x => (g && x === global) || (w && x === window)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright ©2018 John Lamansky
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,34 +0,0 @@
1
- {
2
- "name": "is-global-object",
3
- "version": "1.0.0",
4
- "description": "Returns true if a value is the global or window object.",
5
- "keywords": [
6
- "global",
7
- "window",
8
- "object",
9
- "check",
10
- "test"
11
- ],
12
- "author": "John Lamansky",
13
- "license": "MIT",
14
- "homepage": "https://github.com/lamansky/is-global-object",
15
- "repository": "lamansky/is-global-object",
16
- "main": "index.js",
17
- "files": [],
18
- "engines": {
19
- "node": ">=4.0.0"
20
- },
21
- "devDependencies": {
22
- "eslint-config-lamansky": "^1.0.0",
23
- "mocha": "^5.0.0"
24
- },
25
- "scripts": {
26
- "test": "mocha"
27
- },
28
- "eslintConfig": {
29
- "extends": "lamansky",
30
- "env": {
31
- "mocha": true
32
- }
33
- }
34
- }
@@ -1,22 +0,0 @@
1
- # is-global-object
2
-
3
- Returns true if a value is the `global` or `window` object of the current context.
4
-
5
- ## Installation
6
-
7
- Requires [Node.js](https://nodejs.org/) 4.0.0 or above.
8
-
9
- ```bash
10
- npm install is-global-object --save
11
- ```
12
-
13
- The module exports a single function.
14
-
15
- ## Usage Example
16
-
17
- ```javascript
18
- const isGlobalObject = require('is-global-object')
19
-
20
- isGlobalObject(global) // true
21
- isGlobalObject({}) // false
22
- ```
@@ -1,28 +0,0 @@
1
- 'use strict'
2
-
3
- const arrify = require('arrify')
4
- const classChain = require('class-chain')
5
- const caseInsensitive = require('case-insensitive')
6
- const flatten = require('@lamansky/flatten')
7
- const isFunc = x => typeof x === 'function'
8
- const isObject = require('is-obj')
9
- const qfn = require('qfn')
10
- const sbo = require('sbo')
11
-
12
- module.exports = sbo(function isInstanceOf (x, classes, {ci = false} = {}) {
13
- if (!isObject(x)) return false
14
- ci = qfn(caseInsensitive, ci)
15
- const actualClassNames = ci(classChain.names(x))
16
- return flatten(arrify(classes)).some(cls => {
17
- switch (typeof cls) {
18
- case 'function':
19
- if (!isFunc(x) && cls === Array) return Array.isArray(x)
20
- return ((x instanceof cls) || (cls.name && actualClassNames.includes(cls.name)))
21
- case 'string':
22
- if (!isFunc(x) && ci('Array') === cls) return Array.isArray(x)
23
- return actualClassNames.includes(cls)
24
- case 'undefined': return false
25
- default: throw new TypeError('Class must be a function or a name string')
26
- }
27
- })
28
- })
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright ©2018–2019 Fr. John Lamansky
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,44 +0,0 @@
1
- {
2
- "name": "is-instance-of",
3
- "version": "1.0.2",
4
- "description": "Like instanceof, but uses class name strings.",
5
- "keywords": [
6
- "object",
7
- "instanceof",
8
- "class"
9
- ],
10
- "author": {
11
- "name": "Fr. John Lamansky",
12
- "url": "lamansky.com"
13
- },
14
- "license": "MIT",
15
- "homepage": "https://github.com/lamansky/is-instance-of",
16
- "repository": "lamansky/is-instance-of",
17
- "main": "index.js",
18
- "files": [],
19
- "engines": {
20
- "node": ">=6"
21
- },
22
- "dependencies": {
23
- "@lamansky/flatten": "^1.0.0",
24
- "arrify": "^1.0.1",
25
- "case-insensitive": "^1.0.0",
26
- "class-chain": "^1.0.0",
27
- "is-obj": "^1.0.1",
28
- "qfn": "^1.0.1",
29
- "sbo": "^1.1.0"
30
- },
31
- "devDependencies": {
32
- "eslint-config-lamansky": "^2.0.0",
33
- "mocha": "^6.2.0"
34
- },
35
- "scripts": {
36
- "test": "mocha"
37
- },
38
- "eslintConfig": {
39
- "extends": "lamansky",
40
- "env": {
41
- "mocha": true
42
- }
43
- }
44
- }
@@ -1,55 +0,0 @@
1
- # is-instance-of
2
-
3
- Like [`instanceof`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof), but uses class name strings. This means the module works cross-frame, [unlike `instanceof`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof$revision/1351859#instanceof_and_multiple_context_%28e.g._frames_or_windows%29).
4
-
5
- ## Installation
6
-
7
- Requires [Node.js](https://nodejs.org/) 6.0.0 or above.
8
-
9
- ```bash
10
- npm i is-instance-of
11
- ```
12
-
13
- ## API
14
-
15
- The module exports a single function.
16
-
17
- ### Parameters
18
-
19
- 1. Bindable: `x` (object): The object that may or may not be an instance of the specified class(es).
20
- 2. `classes` (function, string, or array of functions/strings): Class names to look for in `x`’s prototype chain. (If one or more functions are provided, their names will be used, so that the check works cross-realm.)
21
- 3. Object argument:
22
- * Optional: `ci` (boolean): If `true`, class names will be compared case-insensitively. Defaults to `false`.
23
-
24
- ### Return Value
25
-
26
- * `true` if `x` has any one of the `classes` in its prototype chain.
27
- * `false` otherwise.
28
-
29
- ## Examples
30
-
31
- ```javascript
32
- const isInstanceOf = require('is-instance-of')
33
-
34
- isInstanceOf(new Date(), 'Date') // true
35
- isInstanceOf(new Date(), Date) // true
36
-
37
- // Case sensitivity / insensitivity
38
- isInstanceOf(new Date(), 'date') // false
39
- isInstanceOf(new Date(), 'date', {ci: true}) // true
40
-
41
- // Only one class name needs to be matched for true to be returned
42
- isInstanceOf(new Error(), ['Error', 'Date', RegExp]) // true
43
-
44
- // Supports the bind operator
45
- []::isInstanceOf('Array') // true
46
- ```
47
-
48
- ## Nota Bene
49
-
50
- This module’s strength is also its weakness. The module will consider `Date` in one frame/context to be equivalent to `Date` in another context, so long as they have the same name. The advantage of this approach is that this allows for cross-frame type checks. The disadvantage is that `Date` could be a completely different class in the other context and this module wouldn’t know the difference.
51
-
52
- ## Related
53
-
54
- * [class-chain](https://github.com/lamansky/class-chain): Returns an object’s class and its ancestors.
55
- * [isit](https://github.com/lamansky/isit): Tests a value’s type against a string like `'positive integer'` or `'non-empty map'`.
@@ -1,5 +0,0 @@
1
- 'use strict';
2
- module.exports = function (val) {
3
- return (typeof Symbol !== 'undefined' && Symbol && 'iterator' in Symbol
4
- && val != null && typeof val[Symbol.iterator] === 'function');
5
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Hemanth.HM <hemanth.hm@gmail.com> (h3manth.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,30 +0,0 @@
1
- {
2
- "name": "is-iterable",
3
- "version": "1.1.1",
4
- "description": "Checks if a given object is iterable",
5
- "license": "MIT",
6
- "repository": "hemanth/is-iterable",
7
- "author": {
8
- "name": "Hemanth.HM",
9
- "email": "hemanth.hm@gmail.com",
10
- "url": "h3manth.com"
11
- },
12
- "engines": {
13
- "node": ">= 4"
14
- },
15
- "scripts": {
16
- "test": "mocha"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "es6",
23
- "check",
24
- "iterable"
25
- ],
26
- "dependencies": {},
27
- "devDependencies": {
28
- "mocha": "*"
29
- }
30
- }
@@ -1,23 +0,0 @@
1
- # is-iterable [![Build Status](https://travis-ci.org/hemanth/is-iterable.svg?branch=master)](https://travis-ci.org/hemanth/is-iterable)
2
-
3
- > Checks if a given object is iterable.
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install --save is-iterable
10
- ```
11
-
12
- ## Usage
13
-
14
- ```js
15
- var isIterable = require('is-iterable');
16
-
17
- isIterable([]); // true
18
- isIterable({}); // false
19
- ```
20
-
21
- ## License
22
-
23
- MIT © [Hemanth.HM](http://h3manth.com)
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 W.Y.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,47 +0,0 @@
1
- # is-nil
2
-
3
- > Checks if the given value is null or undefined.
4
-
5
- [![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/gearcase/is-nil/blob/master/LICENSE)
6
-
7
- [![build:?](https://img.shields.io/travis/gearcase/is-nil/master.svg?style=flat-square)](https://travis-ci.org/gearcase/is-nil)
8
- [![coverage:?](https://img.shields.io/coveralls/gearcase/is-nil/master.svg?style=flat-square)](https://coveralls.io/github/gearcase/is-nil)
9
-
10
-
11
- ## Install
12
-
13
- ```
14
- $ npm install --save is-nil
15
- ```
16
-
17
-
18
- ## Usage
19
-
20
- ```js
21
- var isNil = require('is-nil');
22
-
23
- isNil(null); // => true
24
- isNil(void 0); // => true
25
-
26
- isNil('abc'); // => false
27
- isNil(123); // => false
28
- isNil(true); // => false
29
- isNil(false); // => false
30
- isNil({}); // => false
31
- isNil([]); // => false
32
- isNil(NAN); // => false
33
- ```
34
-
35
- ## Related
36
-
37
- - [is-null](https://github.com/gearcase/is-null) - Checks if the given value is null.
38
- - [is-window](https://github.com/gearcase/is-window) - Checks if the given value is a window object.
39
- - [is-native](https://github.com/gearcase/is-native) - Checks if the given value is a native function.
40
- - [is-array-like](https://github.com/gearcase/is-array-like) - Checks if the given value is an array or an array-like object.
41
-
42
-
43
- ## Contributing
44
-
45
- Pull requests and stars are highly welcome.
46
-
47
- For bugs and feature requests, please [create an issue](https://github.com/gearcase/is-nil/issues/new).
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = function (obj) {
4
-
5
- return obj == null;
6
- };
@@ -1,46 +0,0 @@
1
- {
2
- "name": "is-nil",
3
- "version": "1.0.1",
4
- "description": "Checks if the given value is null or undefined",
5
- "main": "index.js",
6
- "scripts": {
7
- "lint": "jshint index.js",
8
- "pretest": "npm run lint",
9
- "test": "mocha -R spec",
10
- "test:cov": "rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec",
11
- "test:rpt": "npm run test:cov && coveralls < ./test/coverage/lcov.info",
12
- "prepublish": "npm test"
13
- },
14
- "keywords": [
15
- "check",
16
- "checks",
17
- "is",
18
- "nil",
19
- "detect",
20
- "value",
21
- "type",
22
- "null",
23
- "undefined",
24
- "void"
25
- ],
26
- "author": {
27
- "name": "bubkoo",
28
- "email": "bubkoo.wy@gmail.com"
29
- },
30
- "license": "MIT",
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/gearcase/is-nil.git"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/gearcase/is-nil/issues"
37
- },
38
- "homepage": "https://github.com/gearcase/is-nil#readme",
39
- "devDependencies": {
40
- "jshint": "^2.9.1",
41
- "chai": "^3.5.0",
42
- "coveralls": "^2.11.9",
43
- "istanbul": "^0.4.2",
44
- "mocha": "^2.4.5"
45
- }
46
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
- module.exports = function (x) {
3
- var type = typeof x;
4
- return x !== null && (type === 'object' || type === 'function');
5
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.