@ohos-ports/stdlib-process-read-stdin 0.2.3-beta.0 → 0.2.3-beta.1

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 (357) hide show
  1. package/node_modules/@stdlib/assert-has-node-buffer-support/LICENSE +177 -0
  2. package/node_modules/@stdlib/assert-has-node-buffer-support/NOTICE +1 -0
  3. package/node_modules/@stdlib/assert-has-node-buffer-support/README.md +187 -0
  4. package/node_modules/@stdlib/assert-has-node-buffer-support/SECURITY.md +5 -0
  5. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.d.ts +3 -0
  6. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.js +7 -0
  7. package/node_modules/@stdlib/assert-has-node-buffer-support/dist/index.js.map +7 -0
  8. package/node_modules/@stdlib/assert-has-node-buffer-support/docs/types/index.d.ts +35 -0
  9. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/buffer.js +28 -0
  10. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/index.js +40 -0
  11. package/node_modules/@stdlib/assert-has-node-buffer-support/lib/main.js +68 -0
  12. package/node_modules/@stdlib/assert-has-node-buffer-support/package.json +76 -0
  13. package/node_modules/@stdlib/assert-has-own-property/LICENSE +177 -0
  14. package/node_modules/@stdlib/assert-has-own-property/NOTICE +1 -0
  15. package/node_modules/@stdlib/assert-has-own-property/README.md +263 -0
  16. package/node_modules/@stdlib/assert-has-own-property/SECURITY.md +5 -0
  17. package/node_modules/@stdlib/assert-has-own-property/dist/index.d.ts +3 -0
  18. package/node_modules/@stdlib/assert-has-own-property/dist/index.js +5 -0
  19. package/node_modules/@stdlib/assert-has-own-property/dist/index.js.map +7 -0
  20. package/node_modules/@stdlib/assert-has-own-property/docs/types/index.d.ts +49 -0
  21. package/node_modules/@stdlib/assert-has-own-property/lib/index.js +47 -0
  22. package/node_modules/@stdlib/assert-has-own-property/lib/main.js +64 -0
  23. package/node_modules/@stdlib/assert-has-own-property/package.json +74 -0
  24. package/node_modules/@stdlib/assert-has-symbol-support/LICENSE +177 -0
  25. package/node_modules/@stdlib/assert-has-symbol-support/NOTICE +1 -0
  26. package/node_modules/@stdlib/assert-has-symbol-support/README.md +193 -0
  27. package/node_modules/@stdlib/assert-has-symbol-support/SECURITY.md +5 -0
  28. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.d.ts +3 -0
  29. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.js +5 -0
  30. package/node_modules/@stdlib/assert-has-symbol-support/dist/index.js.map +7 -0
  31. package/node_modules/@stdlib/assert-has-symbol-support/docs/types/index.d.ts +35 -0
  32. package/node_modules/@stdlib/assert-has-symbol-support/lib/index.js +40 -0
  33. package/node_modules/@stdlib/assert-has-symbol-support/lib/main.js +42 -0
  34. package/node_modules/@stdlib/assert-has-symbol-support/package.json +73 -0
  35. package/node_modules/@stdlib/assert-has-tostringtag-support/LICENSE +177 -0
  36. package/node_modules/@stdlib/assert-has-tostringtag-support/NOTICE +1 -0
  37. package/node_modules/@stdlib/assert-has-tostringtag-support/README.md +187 -0
  38. package/node_modules/@stdlib/assert-has-tostringtag-support/SECURITY.md +5 -0
  39. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.d.ts +3 -0
  40. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.js +5 -0
  41. package/node_modules/@stdlib/assert-has-tostringtag-support/dist/index.js.map +7 -0
  42. package/node_modules/@stdlib/assert-has-tostringtag-support/docs/types/index.d.ts +35 -0
  43. package/node_modules/@stdlib/assert-has-tostringtag-support/lib/index.js +40 -0
  44. package/node_modules/@stdlib/assert-has-tostringtag-support/lib/main.js +49 -0
  45. package/node_modules/@stdlib/assert-has-tostringtag-support/package.json +79 -0
  46. package/node_modules/@stdlib/assert-is-array/LICENSE +177 -0
  47. package/node_modules/@stdlib/assert-is-array/NOTICE +1 -0
  48. package/node_modules/@stdlib/assert-is-array/README.md +183 -0
  49. package/node_modules/@stdlib/assert-is-array/SECURITY.md +5 -0
  50. package/node_modules/@stdlib/assert-is-array/dist/index.d.ts +3 -0
  51. package/node_modules/@stdlib/assert-is-array/dist/index.js +5 -0
  52. package/node_modules/@stdlib/assert-is-array/dist/index.js.map +7 -0
  53. package/node_modules/@stdlib/assert-is-array/docs/types/index.d.ts +40 -0
  54. package/node_modules/@stdlib/assert-is-array/lib/index.js +43 -0
  55. package/node_modules/@stdlib/assert-is-array/lib/main.js +63 -0
  56. package/node_modules/@stdlib/assert-is-array/package.json +72 -0
  57. package/node_modules/@stdlib/assert-is-boolean/LICENSE +177 -0
  58. package/node_modules/@stdlib/assert-is-boolean/NOTICE +1 -0
  59. package/node_modules/@stdlib/assert-is-boolean/README.md +228 -0
  60. package/node_modules/@stdlib/assert-is-boolean/SECURITY.md +5 -0
  61. package/node_modules/@stdlib/assert-is-boolean/dist/index.d.ts +3 -0
  62. package/node_modules/@stdlib/assert-is-boolean/dist/index.js +13 -0
  63. package/node_modules/@stdlib/assert-is-boolean/dist/index.js.map +7 -0
  64. package/node_modules/@stdlib/assert-is-boolean/docs/types/index.d.ts +125 -0
  65. package/node_modules/@stdlib/assert-is-boolean/lib/index.js +73 -0
  66. package/node_modules/@stdlib/assert-is-boolean/lib/main.js +62 -0
  67. package/node_modules/@stdlib/assert-is-boolean/lib/object.js +68 -0
  68. package/node_modules/@stdlib/assert-is-boolean/lib/primitive.js +48 -0
  69. package/node_modules/@stdlib/assert-is-boolean/lib/tostring.js +27 -0
  70. package/node_modules/@stdlib/assert-is-boolean/lib/try2serialize.js +47 -0
  71. package/node_modules/@stdlib/assert-is-boolean/package.json +80 -0
  72. package/node_modules/@stdlib/assert-is-buffer/LICENSE +177 -0
  73. package/node_modules/@stdlib/assert-is-buffer/NOTICE +1 -0
  74. package/node_modules/@stdlib/assert-is-buffer/README.md +223 -0
  75. package/node_modules/@stdlib/assert-is-buffer/SECURITY.md +5 -0
  76. package/node_modules/@stdlib/assert-is-buffer/dist/index.d.ts +3 -0
  77. package/node_modules/@stdlib/assert-is-buffer/dist/index.js +5 -0
  78. package/node_modules/@stdlib/assert-is-buffer/dist/index.js.map +7 -0
  79. package/node_modules/@stdlib/assert-is-buffer/docs/types/index.d.ts +50 -0
  80. package/node_modules/@stdlib/assert-is-buffer/lib/index.js +43 -0
  81. package/node_modules/@stdlib/assert-is-buffer/lib/main.js +70 -0
  82. package/node_modules/@stdlib/assert-is-buffer/package.json +73 -0
  83. package/node_modules/@stdlib/assert-is-function/LICENSE +177 -0
  84. package/node_modules/@stdlib/assert-is-function/NOTICE +1 -0
  85. package/node_modules/@stdlib/assert-is-function/README.md +192 -0
  86. package/node_modules/@stdlib/assert-is-function/SECURITY.md +5 -0
  87. package/node_modules/@stdlib/assert-is-function/dist/index.d.ts +3 -0
  88. package/node_modules/@stdlib/assert-is-function/dist/index.js +5 -0
  89. package/node_modules/@stdlib/assert-is-function/dist/index.js.map +7 -0
  90. package/node_modules/@stdlib/assert-is-function/docs/types/index.d.ts +40 -0
  91. package/node_modules/@stdlib/assert-is-function/lib/index.js +44 -0
  92. package/node_modules/@stdlib/assert-is-function/lib/main.js +50 -0
  93. package/node_modules/@stdlib/assert-is-function/package.json +74 -0
  94. package/node_modules/@stdlib/assert-is-object-like/LICENSE +177 -0
  95. package/node_modules/@stdlib/assert-is-object-like/NOTICE +1 -0
  96. package/node_modules/@stdlib/assert-is-object-like/README.md +264 -0
  97. package/node_modules/@stdlib/assert-is-object-like/SECURITY.md +5 -0
  98. package/node_modules/@stdlib/assert-is-object-like/dist/index.d.ts +3 -0
  99. package/node_modules/@stdlib/assert-is-object-like/dist/index.js +5 -0
  100. package/node_modules/@stdlib/assert-is-object-like/dist/index.js.map +7 -0
  101. package/node_modules/@stdlib/assert-is-object-like/docs/types/index.d.ts +48 -0
  102. package/node_modules/@stdlib/assert-is-object-like/lib/index.js +67 -0
  103. package/node_modules/@stdlib/assert-is-object-like/lib/main.js +49 -0
  104. package/node_modules/@stdlib/assert-is-object-like/package.json +79 -0
  105. package/node_modules/@stdlib/assert-is-string/LICENSE +177 -0
  106. package/node_modules/@stdlib/assert-is-string/NOTICE +1 -0
  107. package/node_modules/@stdlib/assert-is-string/README.md +224 -0
  108. package/node_modules/@stdlib/assert-is-string/SECURITY.md +5 -0
  109. package/node_modules/@stdlib/assert-is-string/dist/index.d.ts +3 -0
  110. package/node_modules/@stdlib/assert-is-string/dist/index.js +13 -0
  111. package/node_modules/@stdlib/assert-is-string/dist/index.js.map +7 -0
  112. package/node_modules/@stdlib/assert-is-string/docs/types/index.d.ts +101 -0
  113. package/node_modules/@stdlib/assert-is-string/lib/index.js +73 -0
  114. package/node_modules/@stdlib/assert-is-string/lib/main.js +50 -0
  115. package/node_modules/@stdlib/assert-is-string/lib/object.js +65 -0
  116. package/node_modules/@stdlib/assert-is-string/lib/primitive.js +42 -0
  117. package/node_modules/@stdlib/assert-is-string/lib/try2valueof.js +47 -0
  118. package/node_modules/@stdlib/assert-is-string/lib/valueof.js +27 -0
  119. package/node_modules/@stdlib/assert-is-string/package.json +80 -0
  120. package/node_modules/@stdlib/assert-tools-array-function/LICENSE +177 -0
  121. package/node_modules/@stdlib/assert-tools-array-function/NOTICE +1 -0
  122. package/node_modules/@stdlib/assert-tools-array-function/README.md +216 -0
  123. package/node_modules/@stdlib/assert-tools-array-function/SECURITY.md +5 -0
  124. package/node_modules/@stdlib/assert-tools-array-function/dist/index.d.ts +3 -0
  125. package/node_modules/@stdlib/assert-tools-array-function/dist/index.js +5 -0
  126. package/node_modules/@stdlib/assert-tools-array-function/dist/index.js.map +7 -0
  127. package/node_modules/@stdlib/assert-tools-array-function/docs/types/index.d.ts +61 -0
  128. package/node_modules/@stdlib/assert-tools-array-function/lib/index.js +49 -0
  129. package/node_modules/@stdlib/assert-tools-array-function/lib/main.js +85 -0
  130. package/node_modules/@stdlib/assert-tools-array-function/package.json +73 -0
  131. package/node_modules/@stdlib/boolean-ctor/LICENSE +177 -0
  132. package/node_modules/@stdlib/boolean-ctor/NOTICE +1 -0
  133. package/node_modules/@stdlib/boolean-ctor/README.md +264 -0
  134. package/node_modules/@stdlib/boolean-ctor/SECURITY.md +5 -0
  135. package/node_modules/@stdlib/boolean-ctor/dist/index.d.ts +3 -0
  136. package/node_modules/@stdlib/boolean-ctor/dist/index.js +5 -0
  137. package/node_modules/@stdlib/boolean-ctor/dist/index.js.map +7 -0
  138. package/node_modules/@stdlib/boolean-ctor/docs/types/index.d.ts +52 -0
  139. package/node_modules/@stdlib/boolean-ctor/lib/index.js +52 -0
  140. package/node_modules/@stdlib/boolean-ctor/lib/main.js +51 -0
  141. package/node_modules/@stdlib/boolean-ctor/package.json +61 -0
  142. package/node_modules/@stdlib/buffer-ctor/LICENSE +177 -0
  143. package/node_modules/@stdlib/buffer-ctor/NOTICE +1 -0
  144. package/node_modules/@stdlib/buffer-ctor/README.md +273 -0
  145. package/node_modules/@stdlib/buffer-ctor/SECURITY.md +5 -0
  146. package/node_modules/@stdlib/buffer-ctor/dist/index.d.ts +3 -0
  147. package/node_modules/@stdlib/buffer-ctor/dist/index.js +19 -0
  148. package/node_modules/@stdlib/buffer-ctor/dist/index.js.map +7 -0
  149. package/node_modules/@stdlib/buffer-ctor/docs/types/index.d.ts +37 -0
  150. package/node_modules/@stdlib/buffer-ctor/lib/index.js +52 -0
  151. package/node_modules/@stdlib/buffer-ctor/lib/main.js +28 -0
  152. package/node_modules/@stdlib/buffer-ctor/lib/polyfill.js +37 -0
  153. package/node_modules/@stdlib/buffer-ctor/package.json +66 -0
  154. package/node_modules/@stdlib/buffer-from-string/LICENSE +177 -0
  155. package/node_modules/@stdlib/buffer-from-string/NOTICE +1 -0
  156. package/node_modules/@stdlib/buffer-from-string/README.md +249 -0
  157. package/node_modules/@stdlib/buffer-from-string/SECURITY.md +5 -0
  158. package/node_modules/@stdlib/buffer-from-string/dist/index.d.ts +3 -0
  159. package/node_modules/@stdlib/buffer-from-string/dist/index.js +19 -0
  160. package/node_modules/@stdlib/buffer-from-string/dist/index.js.map +7 -0
  161. package/node_modules/@stdlib/buffer-from-string/docs/types/index.d.ts +42 -0
  162. package/node_modules/@stdlib/buffer-from-string/lib/has_from.js +34 -0
  163. package/node_modules/@stdlib/buffer-from-string/lib/index.js +52 -0
  164. package/node_modules/@stdlib/buffer-from-string/lib/main.js +60 -0
  165. package/node_modules/@stdlib/buffer-from-string/lib/polyfill.js +60 -0
  166. package/node_modules/@stdlib/buffer-from-string/package.json +74 -0
  167. package/node_modules/@stdlib/error-tools-fmtprodmsg/LICENSE +177 -0
  168. package/node_modules/@stdlib/error-tools-fmtprodmsg/NOTICE +1 -0
  169. package/node_modules/@stdlib/error-tools-fmtprodmsg/README.md +182 -0
  170. package/node_modules/@stdlib/error-tools-fmtprodmsg/SECURITY.md +5 -0
  171. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.d.ts +3 -0
  172. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.js +5 -0
  173. package/node_modules/@stdlib/error-tools-fmtprodmsg/dist/index.js.map +7 -0
  174. package/node_modules/@stdlib/error-tools-fmtprodmsg/docs/types/index.d.ts +39 -0
  175. package/node_modules/@stdlib/error-tools-fmtprodmsg/lib/index.js +40 -0
  176. package/node_modules/@stdlib/error-tools-fmtprodmsg/lib/main.js +48 -0
  177. package/node_modules/@stdlib/error-tools-fmtprodmsg/package.json +71 -0
  178. package/node_modules/@stdlib/regexp-function-name/LICENSE +177 -0
  179. package/node_modules/@stdlib/regexp-function-name/NOTICE +1 -0
  180. package/node_modules/@stdlib/regexp-function-name/README.md +215 -0
  181. package/node_modules/@stdlib/regexp-function-name/SECURITY.md +5 -0
  182. package/node_modules/@stdlib/regexp-function-name/dist/index.d.ts +3 -0
  183. package/node_modules/@stdlib/regexp-function-name/dist/index.js +8 -0
  184. package/node_modules/@stdlib/regexp-function-name/dist/index.js.map +7 -0
  185. package/node_modules/@stdlib/regexp-function-name/docs/types/index.d.ts +74 -0
  186. package/node_modules/@stdlib/regexp-function-name/lib/index.js +61 -0
  187. package/node_modules/@stdlib/regexp-function-name/lib/main.js +54 -0
  188. package/node_modules/@stdlib/regexp-function-name/lib/regexp.js +60 -0
  189. package/node_modules/@stdlib/regexp-function-name/package.json +68 -0
  190. package/node_modules/@stdlib/streams-node-stdin/LICENSE +177 -0
  191. package/node_modules/@stdlib/streams-node-stdin/NOTICE +1 -0
  192. package/node_modules/@stdlib/streams-node-stdin/README.md +227 -0
  193. package/node_modules/@stdlib/streams-node-stdin/SECURITY.md +5 -0
  194. package/node_modules/@stdlib/streams-node-stdin/dist/index.d.ts +3 -0
  195. package/node_modules/@stdlib/streams-node-stdin/dist/index.js +5 -0
  196. package/node_modules/@stdlib/streams-node-stdin/dist/index.js.map +7 -0
  197. package/node_modules/@stdlib/streams-node-stdin/docs/types/index.d.ts +31 -0
  198. package/node_modules/@stdlib/streams-node-stdin/lib/index.js +41 -0
  199. package/node_modules/@stdlib/streams-node-stdin/lib/main.js +28 -0
  200. package/node_modules/@stdlib/streams-node-stdin/package.json +65 -0
  201. package/node_modules/@stdlib/string-base-format-interpolate/LICENSE +177 -0
  202. package/node_modules/@stdlib/string-base-format-interpolate/NOTICE +1 -0
  203. package/node_modules/@stdlib/string-base-format-interpolate/README.md +219 -0
  204. package/node_modules/@stdlib/string-base-format-interpolate/SECURITY.md +5 -0
  205. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.d.ts +3 -0
  206. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.js +17 -0
  207. package/node_modules/@stdlib/string-base-format-interpolate/dist/index.js.map +7 -0
  208. package/node_modules/@stdlib/string-base-format-interpolate/docs/types/index.d.ts +71 -0
  209. package/node_modules/@stdlib/string-base-format-interpolate/lib/format_double.js +103 -0
  210. package/node_modules/@stdlib/string-base-format-interpolate/lib/format_integer.js +115 -0
  211. package/node_modules/@stdlib/string-base-format-interpolate/lib/index.js +41 -0
  212. package/node_modules/@stdlib/string-base-format-interpolate/lib/is_number.js +46 -0
  213. package/node_modules/@stdlib/string-base-format-interpolate/lib/is_string.js +42 -0
  214. package/node_modules/@stdlib/string-base-format-interpolate/lib/main.js +243 -0
  215. package/node_modules/@stdlib/string-base-format-interpolate/lib/space_pad.js +65 -0
  216. package/node_modules/@stdlib/string-base-format-interpolate/lib/zero_pad.js +84 -0
  217. package/node_modules/@stdlib/string-base-format-interpolate/package.json +72 -0
  218. package/node_modules/@stdlib/string-base-format-tokenize/LICENSE +177 -0
  219. package/node_modules/@stdlib/string-base-format-tokenize/NOTICE +1 -0
  220. package/node_modules/@stdlib/string-base-format-tokenize/README.md +203 -0
  221. package/node_modules/@stdlib/string-base-format-tokenize/SECURITY.md +5 -0
  222. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.d.ts +3 -0
  223. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.js +5 -0
  224. package/node_modules/@stdlib/string-base-format-tokenize/dist/index.js.map +7 -0
  225. package/node_modules/@stdlib/string-base-format-tokenize/docs/types/index.d.ts +68 -0
  226. package/node_modules/@stdlib/string-base-format-tokenize/lib/index.js +41 -0
  227. package/node_modules/@stdlib/string-base-format-tokenize/lib/main.js +95 -0
  228. package/node_modules/@stdlib/string-base-format-tokenize/package.json +70 -0
  229. package/node_modules/@stdlib/string-format/LICENSE +177 -0
  230. package/node_modules/@stdlib/string-format/NOTICE +1 -0
  231. package/node_modules/@stdlib/string-format/README.md +341 -0
  232. package/node_modules/@stdlib/string-format/SECURITY.md +5 -0
  233. package/node_modules/@stdlib/string-format/dist/index.d.ts +3 -0
  234. package/node_modules/@stdlib/string-format/dist/index.js +7 -0
  235. package/node_modules/@stdlib/string-format/dist/index.js.map +7 -0
  236. package/node_modules/@stdlib/string-format/docs/types/index.d.ts +42 -0
  237. package/node_modules/@stdlib/string-format/lib/index.js +43 -0
  238. package/node_modules/@stdlib/string-format/lib/is_string.js +42 -0
  239. package/node_modules/@stdlib/string-format/lib/main.js +64 -0
  240. package/node_modules/@stdlib/string-format/package.json +73 -0
  241. package/node_modules/@stdlib/symbol-ctor/LICENSE +177 -0
  242. package/node_modules/@stdlib/symbol-ctor/NOTICE +1 -0
  243. package/node_modules/@stdlib/symbol-ctor/README.md +234 -0
  244. package/node_modules/@stdlib/symbol-ctor/SECURITY.md +5 -0
  245. package/node_modules/@stdlib/symbol-ctor/dist/index.d.ts +3 -0
  246. package/node_modules/@stdlib/symbol-ctor/dist/index.js +5 -0
  247. package/node_modules/@stdlib/symbol-ctor/dist/index.js.map +7 -0
  248. package/node_modules/@stdlib/symbol-ctor/docs/types/index.d.ts +34 -0
  249. package/node_modules/@stdlib/symbol-ctor/lib/index.js +40 -0
  250. package/node_modules/@stdlib/symbol-ctor/lib/main.js +28 -0
  251. package/node_modules/@stdlib/symbol-ctor/package.json +63 -0
  252. package/node_modules/@stdlib/types/LICENSE +177 -0
  253. package/node_modules/@stdlib/types/NOTICE +1 -0
  254. package/node_modules/@stdlib/types/README.md +212 -0
  255. package/node_modules/@stdlib/types/SECURITY.md +5 -0
  256. package/node_modules/@stdlib/types/index.d.ts +3923 -0
  257. package/node_modules/@stdlib/types/lib/browser.js +28 -0
  258. package/node_modules/@stdlib/types/lib/index.js +39 -0
  259. package/node_modules/@stdlib/types/lib/main.js +40 -0
  260. package/node_modules/@stdlib/types/package.json +68 -0
  261. package/node_modules/@stdlib/types/test.ts +734 -0
  262. package/node_modules/@stdlib/utils-constructor-name/LICENSE +177 -0
  263. package/node_modules/@stdlib/utils-constructor-name/NOTICE +1 -0
  264. package/node_modules/@stdlib/utils-constructor-name/README.md +400 -0
  265. package/node_modules/@stdlib/utils-constructor-name/SECURITY.md +5 -0
  266. package/node_modules/@stdlib/utils-constructor-name/dist/index.d.ts +3 -0
  267. package/node_modules/@stdlib/utils-constructor-name/dist/index.js +5 -0
  268. package/node_modules/@stdlib/utils-constructor-name/dist/index.js.map +7 -0
  269. package/node_modules/@stdlib/utils-constructor-name/docs/types/index.d.ts +52 -0
  270. package/node_modules/@stdlib/utils-constructor-name/lib/index.js +46 -0
  271. package/node_modules/@stdlib/utils-constructor-name/lib/main.js +80 -0
  272. package/node_modules/@stdlib/utils-constructor-name/package.json +77 -0
  273. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/LICENSE +177 -0
  274. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/NOTICE +1 -0
  275. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/README.md +216 -0
  276. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/SECURITY.md +5 -0
  277. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.d.ts +3 -0
  278. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.js +31 -0
  279. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/index.js.map +7 -0
  280. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/dist/main.js +58 -0
  281. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/docs/types/index.d.ts +52 -0
  282. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js +47 -0
  283. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js +58 -0
  284. package/node_modules/@stdlib/utils-define-nonenumerable-read-only-property/package.json +93 -0
  285. package/node_modules/@stdlib/utils-define-property/LICENSE +177 -0
  286. package/node_modules/@stdlib/utils-define-property/NOTICE +1 -0
  287. package/node_modules/@stdlib/utils-define-property/README.md +228 -0
  288. package/node_modules/@stdlib/utils-define-property/SECURITY.md +5 -0
  289. package/node_modules/@stdlib/utils-define-property/dist/index.d.ts +3 -0
  290. package/node_modules/@stdlib/utils-define-property/dist/index.js +36 -0
  291. package/node_modules/@stdlib/utils-define-property/dist/index.js.map +7 -0
  292. package/node_modules/@stdlib/utils-define-property/docs/types/index.d.ts +52 -0
  293. package/node_modules/@stdlib/utils-define-property/lib/builtin.js +61 -0
  294. package/node_modules/@stdlib/utils-define-property/lib/define_property.js +28 -0
  295. package/node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js +51 -0
  296. package/node_modules/@stdlib/utils-define-property/lib/index.js +58 -0
  297. package/node_modules/@stdlib/utils-define-property/lib/polyfill.js +122 -0
  298. package/node_modules/@stdlib/utils-define-property/package.json +75 -0
  299. package/node_modules/@stdlib/utils-global/LICENSE +177 -0
  300. package/node_modules/@stdlib/utils-global/NOTICE +1 -0
  301. package/node_modules/@stdlib/utils-global/README.md +208 -0
  302. package/node_modules/@stdlib/utils-global/SECURITY.md +5 -0
  303. package/node_modules/@stdlib/utils-global/dist/index.d.ts +3 -0
  304. package/node_modules/@stdlib/utils-global/dist/index.js +36 -0
  305. package/node_modules/@stdlib/utils-global/dist/index.js.map +7 -0
  306. package/node_modules/@stdlib/utils-global/docs/types/index.d.ts +40 -0
  307. package/node_modules/@stdlib/utils-global/lib/browser.js +79 -0
  308. package/node_modules/@stdlib/utils-global/lib/codegen.js +36 -0
  309. package/node_modules/@stdlib/utils-global/lib/global.js +28 -0
  310. package/node_modules/@stdlib/utils-global/lib/global_this.js +28 -0
  311. package/node_modules/@stdlib/utils-global/lib/index.js +40 -0
  312. package/node_modules/@stdlib/utils-global/lib/main.js +83 -0
  313. package/node_modules/@stdlib/utils-global/lib/self.js +28 -0
  314. package/node_modules/@stdlib/utils-global/lib/window.js +28 -0
  315. package/node_modules/@stdlib/utils-global/package.json +74 -0
  316. package/node_modules/@stdlib/utils-native-class/LICENSE +177 -0
  317. package/node_modules/@stdlib/utils-native-class/NOTICE +1 -0
  318. package/node_modules/@stdlib/utils-native-class/README.md +349 -0
  319. package/node_modules/@stdlib/utils-native-class/SECURITY.md +5 -0
  320. package/node_modules/@stdlib/utils-native-class/dist/index.d.ts +3 -0
  321. package/node_modules/@stdlib/utils-native-class/dist/index.js +11 -0
  322. package/node_modules/@stdlib/utils-native-class/dist/index.js.map +7 -0
  323. package/node_modules/@stdlib/utils-native-class/docs/types/index.d.ts +51 -0
  324. package/node_modules/@stdlib/utils-native-class/lib/index.js +61 -0
  325. package/node_modules/@stdlib/utils-native-class/lib/main.js +56 -0
  326. package/node_modules/@stdlib/utils-native-class/lib/polyfill.js +81 -0
  327. package/node_modules/@stdlib/utils-native-class/lib/tostring.js +28 -0
  328. package/node_modules/@stdlib/utils-native-class/lib/tostringtag.js +33 -0
  329. package/node_modules/@stdlib/utils-native-class/package.json +84 -0
  330. package/node_modules/@stdlib/utils-next-tick/LICENSE +177 -0
  331. package/node_modules/@stdlib/utils-next-tick/NOTICE +1 -0
  332. package/node_modules/@stdlib/utils-next-tick/README.md +183 -0
  333. package/node_modules/@stdlib/utils-next-tick/SECURITY.md +5 -0
  334. package/node_modules/@stdlib/utils-next-tick/dist/index.d.ts +3 -0
  335. package/node_modules/@stdlib/utils-next-tick/dist/index.js +5 -0
  336. package/node_modules/@stdlib/utils-next-tick/dist/index.js.map +7 -0
  337. package/node_modules/@stdlib/utils-next-tick/docs/types/index.d.ts +43 -0
  338. package/node_modules/@stdlib/utils-next-tick/lib/index.js +43 -0
  339. package/node_modules/@stdlib/utils-next-tick/lib/main.js +72 -0
  340. package/node_modules/@stdlib/utils-next-tick/package.json +77 -0
  341. package/node_modules/@stdlib/utils-type-of/LICENSE +177 -0
  342. package/node_modules/@stdlib/utils-type-of/NOTICE +1 -0
  343. package/node_modules/@stdlib/utils-type-of/README.md +366 -0
  344. package/node_modules/@stdlib/utils-type-of/SECURITY.md +5 -0
  345. package/node_modules/@stdlib/utils-type-of/dist/index.d.ts +3 -0
  346. package/node_modules/@stdlib/utils-type-of/dist/index.js +15 -0
  347. package/node_modules/@stdlib/utils-type-of/dist/index.js.map +7 -0
  348. package/node_modules/@stdlib/utils-type-of/docs/types/index.d.ts +50 -0
  349. package/node_modules/@stdlib/utils-type-of/lib/check.js +55 -0
  350. package/node_modules/@stdlib/utils-type-of/lib/fixtures/nodelist.js +34 -0
  351. package/node_modules/@stdlib/utils-type-of/lib/fixtures/re.js +26 -0
  352. package/node_modules/@stdlib/utils-type-of/lib/fixtures/typedarray.js +26 -0
  353. package/node_modules/@stdlib/utils-type-of/lib/index.js +50 -0
  354. package/node_modules/@stdlib/utils-type-of/lib/main.js +76 -0
  355. package/node_modules/@stdlib/utils-type-of/lib/polyfill.js +41 -0
  356. package/node_modules/@stdlib/utils-type-of/package.json +72 -0
  357. package/package.json +36 -5
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/fixtures/re.js", "../lib/fixtures/nodelist.js", "../lib/fixtures/typedarray.js", "../lib/check.js", "../lib/main.js", "../lib/polyfill.js", "../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\nvar RE = /./;\n\n\n// EXPORTS //\n\nmodule.exports = RE;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar getGlobal = require( '@stdlib/utils-global' );\n\n\n// MAIN //\n\nvar root = getGlobal();\nvar nodeList = root.document && root.document.childNodes;\n\n\n// EXPORTS //\n\nmodule.exports = nodeList;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\nvar typedarray = Int8Array; // eslint-disable-line stdlib/require-globals\n\n\n// EXPORTS //\n\nmodule.exports = typedarray;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar RE = require( './fixtures/re.js' );\nvar nodeList = require( './fixtures/nodelist.js' );\nvar typedarray = require( './fixtures/typedarray.js' );\n\n\n// MAIN //\n\n/**\n* Checks whether a polyfill is needed when using the `typeof` operator.\n*\n* @private\n* @returns {boolean} boolean indicating whether a polyfill is needed\n*/\nfunction check() {\n\tif (\n\t\t// Chrome 1-12 returns 'function' for regular expression instances (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof):\n\t\ttypeof RE === 'function' ||\n\n\t\t// Safari 8 returns 'object' for typed array and weak map constructors (underscore #1929):\n\t\ttypeof typedarray === 'object' ||\n\n\t\t// PhantomJS 1.9 returns 'function' for `NodeList` instances (underscore #2236):\n\t\ttypeof nodeList === 'function'\n\t) {\n\t\treturn true;\n\t}\n\treturn false;\n}\n\n\n// EXPORTS //\n\nmodule.exports = check;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar ctorName = require( '@stdlib/utils-constructor-name' );\n\n\n// NOTES //\n\n/*\n* Built-in `typeof` operator behavior:\n*\n* ```text\n* typeof null => 'object'\n* typeof undefined => 'undefined'\n* typeof 'a' => 'string'\n* typeof 5 => 'number'\n* typeof NaN => 'number'\n* typeof true => 'boolean'\n* typeof false => 'boolean'\n* typeof {} => 'object'\n* typeof [] => 'object'\n* typeof function foo(){} => 'function'\n* typeof function* foo(){} => 'object'\n* typeof Symbol() => 'symbol'\n* ```\n*\n*/\n\n\n// MAIN //\n\n/**\n* Determines a value's type.\n*\n* @param {*} v - input value\n* @returns {string} string indicating the value's type\n*/\nfunction typeOf( v ) {\n\tvar type;\n\n\t// Address `typeof null` => `object` (see http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null):\n\tif ( v === null ) {\n\t\treturn 'null';\n\t}\n\ttype = typeof v;\n\n\t// If the `typeof` operator returned something other than `object`, we are done. Otherwise, we need to check for an internal class name or search for a constructor.\n\tif ( type === 'object' ) {\n\t\treturn ctorName( v ).toLowerCase();\n\t}\n\treturn type;\n}\n\n\n// EXPORTS //\n\nmodule.exports = typeOf;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar ctorName = require( '@stdlib/utils-constructor-name' );\n\n\n// MAIN //\n\n/**\n* Determines a value's type.\n*\n* @param {*} v - input value\n* @returns {string} string indicating the value's type\n*/\nfunction typeOf( v ) {\n\treturn ctorName( v ).toLowerCase();\n}\n\n\n// EXPORTS //\n\nmodule.exports = typeOf;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Determine a value's type.\n*\n* @module @stdlib/utils-type-of\n*\n* @example\n* var typeOf = require( '@stdlib/utils-type-of' );\n*\n* var str = typeOf( 'a' );\n* // returns 'string'\n*\n* str = typeOf( 5 );\n* // returns 'number'\n*/\n\n// MODULES //\n\nvar usePolyfill = require( './check.js' );\nvar builtin = require( './main.js' );\nvar polyfill = require( './polyfill.js' );\n\n\n// MAIN //\n\nvar main = ( usePolyfill() ) ? polyfill : builtin;\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAoBA,IAAIC,EAAK,IAKTD,EAAO,QAAUC,ICzBjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAY,QAAS,sBAAuB,EAK5CC,EAAOD,EAAU,EACjBE,EAAWD,EAAK,UAAYA,EAAK,SAAS,WAK9CF,EAAO,QAAUG,ICjCjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAoBA,IAAIC,EAAa,UAKjBD,EAAO,QAAUC,ICzBjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAK,IACLC,EAAW,IACXC,EAAa,IAWjB,SAASC,GAAQ,CAChB,OAEC,OAAOH,GAAO,YAGd,OAAOE,GAAe,UAGtB,OAAOD,GAAa,UAKtB,CAKAF,EAAO,QAAUI,ICtDjB,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAW,QAAS,gCAAiC,EAkCzD,SAASC,EAAQC,EAAI,CACpB,IAAIC,EAGJ,OAAKD,IAAM,KACH,QAERC,EAAO,OAAOD,EAGTC,IAAS,SACNH,EAAUE,CAAE,EAAE,YAAY,EAE3BC,EACR,CAKAJ,EAAO,QAAUE,IC3EjB,IAAAG,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAW,QAAS,gCAAiC,EAWzD,SAASC,EAAQC,EAAI,CACpB,OAAOF,EAAUE,CAAE,EAAE,YAAY,CAClC,CAKAH,EAAO,QAAUE,ICHjB,IAAIE,EAAc,IACdC,EAAU,IACVC,EAAW,IAKXC,EAASH,EAAY,EAAME,EAAWD,EAK1C,OAAO,QAAUE",
6
+ "names": ["require_re", "__commonJSMin", "exports", "module", "RE", "require_nodelist", "__commonJSMin", "exports", "module", "getGlobal", "root", "nodeList", "require_typedarray", "__commonJSMin", "exports", "module", "typedarray", "require_check", "__commonJSMin", "exports", "module", "RE", "nodeList", "typedarray", "check", "require_main", "__commonJSMin", "exports", "module", "ctorName", "typeOf", "v", "type", "require_polyfill", "__commonJSMin", "exports", "module", "ctorName", "typeOf", "v", "usePolyfill", "builtin", "polyfill", "main"]
7
+ }
@@ -0,0 +1,50 @@
1
+ /*
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2019 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ // TypeScript Version: 4.1
20
+
21
+ /**
22
+ * Determines a value's type.
23
+ *
24
+ * ## Notes
25
+ *
26
+ * The following values are not natively provided in older JavaScript engines:
27
+ *
28
+ * - `Map`
29
+ * - `Set`
30
+ * - `WeakMap`
31
+ * - `WeakSet`
32
+ * - `Symbol`
33
+ *
34
+ * @param value - input value
35
+ * @returns string indicating the value's type
36
+ *
37
+ * @example
38
+ * var str = typeOf( 'a' );
39
+ * // returns 'string'
40
+ *
41
+ * @example
42
+ * var str = typeOf( 5 );
43
+ * // returns 'number'
44
+ */
45
+ declare function typeOf( value: any ): string;
46
+
47
+
48
+ // EXPORTS //
49
+
50
+ export = typeOf;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ // MODULES //
22
+
23
+ var RE = require( './fixtures/re.js' );
24
+ var nodeList = require( './fixtures/nodelist.js' );
25
+ var typedarray = require( './fixtures/typedarray.js' );
26
+
27
+
28
+ // MAIN //
29
+
30
+ /**
31
+ * Checks whether a polyfill is needed when using the `typeof` operator.
32
+ *
33
+ * @private
34
+ * @returns {boolean} boolean indicating whether a polyfill is needed
35
+ */
36
+ function check() {
37
+ if (
38
+ // Chrome 1-12 returns 'function' for regular expression instances (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof):
39
+ typeof RE === 'function' ||
40
+
41
+ // Safari 8 returns 'object' for typed array and weak map constructors (underscore #1929):
42
+ typeof typedarray === 'object' ||
43
+
44
+ // PhantomJS 1.9 returns 'function' for `NodeList` instances (underscore #2236):
45
+ typeof nodeList === 'function'
46
+ ) {
47
+ return true;
48
+ }
49
+ return false;
50
+ }
51
+
52
+
53
+ // EXPORTS //
54
+
55
+ module.exports = check;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ // MODULES //
22
+
23
+ var getGlobal = require( '@stdlib/utils-global' );
24
+
25
+
26
+ // MAIN //
27
+
28
+ var root = getGlobal();
29
+ var nodeList = root.document && root.document.childNodes;
30
+
31
+
32
+ // EXPORTS //
33
+
34
+ module.exports = nodeList;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ var RE = /./;
22
+
23
+
24
+ // EXPORTS //
25
+
26
+ module.exports = RE;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ var typedarray = Int8Array; // eslint-disable-line stdlib/require-globals
22
+
23
+
24
+ // EXPORTS //
25
+
26
+ module.exports = typedarray;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ /**
22
+ * Determine a value's type.
23
+ *
24
+ * @module @stdlib/utils-type-of
25
+ *
26
+ * @example
27
+ * var typeOf = require( '@stdlib/utils-type-of' );
28
+ *
29
+ * var str = typeOf( 'a' );
30
+ * // returns 'string'
31
+ *
32
+ * str = typeOf( 5 );
33
+ * // returns 'number'
34
+ */
35
+
36
+ // MODULES //
37
+
38
+ var usePolyfill = require( './check.js' );
39
+ var builtin = require( './main.js' );
40
+ var polyfill = require( './polyfill.js' );
41
+
42
+
43
+ // MAIN //
44
+
45
+ var main = ( usePolyfill() ) ? polyfill : builtin;
46
+
47
+
48
+ // EXPORTS //
49
+
50
+ module.exports = main;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ // MODULES //
22
+
23
+ var ctorName = require( '@stdlib/utils-constructor-name' );
24
+
25
+
26
+ // NOTES //
27
+
28
+ /*
29
+ * Built-in `typeof` operator behavior:
30
+ *
31
+ * ```text
32
+ * typeof null => 'object'
33
+ * typeof undefined => 'undefined'
34
+ * typeof 'a' => 'string'
35
+ * typeof 5 => 'number'
36
+ * typeof NaN => 'number'
37
+ * typeof true => 'boolean'
38
+ * typeof false => 'boolean'
39
+ * typeof {} => 'object'
40
+ * typeof [] => 'object'
41
+ * typeof function foo(){} => 'function'
42
+ * typeof function* foo(){} => 'object'
43
+ * typeof Symbol() => 'symbol'
44
+ * ```
45
+ *
46
+ */
47
+
48
+
49
+ // MAIN //
50
+
51
+ /**
52
+ * Determines a value's type.
53
+ *
54
+ * @param {*} v - input value
55
+ * @returns {string} string indicating the value's type
56
+ */
57
+ function typeOf( v ) {
58
+ var type;
59
+
60
+ // Address `typeof null` => `object` (see http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null):
61
+ if ( v === null ) {
62
+ return 'null';
63
+ }
64
+ type = typeof v;
65
+
66
+ // If the `typeof` operator returned something other than `object`, we are done. Otherwise, we need to check for an internal class name or search for a constructor.
67
+ if ( type === 'object' ) {
68
+ return ctorName( v ).toLowerCase();
69
+ }
70
+ return type;
71
+ }
72
+
73
+
74
+ // EXPORTS //
75
+
76
+ module.exports = typeOf;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ 'use strict';
20
+
21
+ // MODULES //
22
+
23
+ var ctorName = require( '@stdlib/utils-constructor-name' );
24
+
25
+
26
+ // MAIN //
27
+
28
+ /**
29
+ * Determines a value's type.
30
+ *
31
+ * @param {*} v - input value
32
+ * @returns {string} string indicating the value's type
33
+ */
34
+ function typeOf( v ) {
35
+ return ctorName( v ).toLowerCase();
36
+ }
37
+
38
+
39
+ // EXPORTS //
40
+
41
+ module.exports = typeOf;
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@stdlib/utils-type-of",
3
+ "version": "0.2.3",
4
+ "description": "Determine a value's type.",
5
+ "license": "Apache-2.0",
6
+ "author": {
7
+ "name": "The Stdlib Authors",
8
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9
+ },
10
+ "contributors": [
11
+ {
12
+ "name": "The Stdlib Authors",
13
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14
+ }
15
+ ],
16
+ "main": "./lib",
17
+ "directories": {
18
+ "doc": "./docs",
19
+ "lib": "./lib",
20
+ "dist": "./dist"
21
+ },
22
+ "types": "./docs/types",
23
+ "scripts": {},
24
+ "homepage": "https://stdlib.io",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git://github.com/stdlib-js/utils-type-of.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/stdlib-js/stdlib/issues"
31
+ },
32
+ "dependencies": {
33
+ "@stdlib/utils-constructor-name": "^0.2.2",
34
+ "@stdlib/utils-global": "^0.2.3"
35
+ },
36
+ "devDependencies": {},
37
+ "engines": {
38
+ "node": ">=0.10.0",
39
+ "npm": ">2.7.0"
40
+ },
41
+ "os": [
42
+ "aix",
43
+ "darwin",
44
+ "freebsd",
45
+ "linux",
46
+ "macos",
47
+ "openbsd",
48
+ "openharmony",
49
+ "sunos",
50
+ "win32",
51
+ "windows"
52
+ ],
53
+ "keywords": [
54
+ "stdlib",
55
+ "stdutils",
56
+ "stdutil",
57
+ "utilities",
58
+ "utility",
59
+ "utils",
60
+ "util",
61
+ "type",
62
+ "typeof",
63
+ "built-in",
64
+ "is",
65
+ "istype",
66
+ "check"
67
+ ],
68
+ "funding": {
69
+ "type": "opencollective",
70
+ "url": "https://opencollective.com/stdlib"
71
+ }
72
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohos-ports/stdlib-process-read-stdin",
3
- "version": "0.2.3-beta.0",
3
+ "version": "0.2.3-beta.1",
4
4
  "description": "Read data from stdin.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -53,10 +53,10 @@
53
53
  "linux",
54
54
  "macos",
55
55
  "openbsd",
56
+ "openharmony",
56
57
  "sunos",
57
58
  "win32",
58
- "windows",
59
- "openharmony"
59
+ "windows"
60
60
  ],
61
61
  "keywords": [
62
62
  "stdlib",
@@ -76,5 +76,36 @@
76
76
  "funding": {
77
77
  "type": "opencollective",
78
78
  "url": "https://opencollective.com/stdlib"
79
- }
80
- }
79
+ },
80
+ "bundleDependencies": [
81
+ "@stdlib/assert-has-node-buffer-support",
82
+ "@stdlib/assert-has-own-property",
83
+ "@stdlib/assert-has-symbol-support",
84
+ "@stdlib/assert-has-tostringtag-support",
85
+ "@stdlib/assert-is-array",
86
+ "@stdlib/assert-is-boolean",
87
+ "@stdlib/assert-is-buffer",
88
+ "@stdlib/assert-is-function",
89
+ "@stdlib/assert-is-object-like",
90
+ "@stdlib/assert-is-string",
91
+ "@stdlib/assert-tools-array-function",
92
+ "@stdlib/boolean-ctor",
93
+ "@stdlib/buffer-ctor",
94
+ "@stdlib/buffer-from-string",
95
+ "@stdlib/error-tools-fmtprodmsg",
96
+ "@stdlib/regexp-function-name",
97
+ "@stdlib/streams-node-stdin",
98
+ "@stdlib/string-base-format-interpolate",
99
+ "@stdlib/string-base-format-tokenize",
100
+ "@stdlib/string-format",
101
+ "@stdlib/symbol-ctor",
102
+ "@stdlib/types",
103
+ "@stdlib/utils-constructor-name",
104
+ "@stdlib/utils-define-nonenumerable-read-only-property",
105
+ "@stdlib/utils-define-property",
106
+ "@stdlib/utils-global",
107
+ "@stdlib/utils-native-class",
108
+ "@stdlib/utils-next-tick",
109
+ "@stdlib/utils-type-of"
110
+ ]
111
+ }