mybase 1.2.2 → 2.0.0

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 (194) hide show
  1. package/dist/funcs/Geoip2Paths.js.map +1 -0
  2. package/dist/funcs/MaxRuntimeHours.js.map +1 -0
  3. package/dist/funcs/asJSON.js.map +1 -0
  4. package/dist/funcs/deepCopy.js.map +1 -0
  5. package/dist/funcs/ensureFolder.js.map +1 -0
  6. package/dist/funcs/fileCacheIsValid.js.map +1 -0
  7. package/dist/funcs/getMysql1.js.map +1 -0
  8. package/dist/funcs/getMysql2.js.map +1 -0
  9. package/dist/funcs/getWeekNumber.js.map +1 -0
  10. package/dist/funcs/hash_sha512.js.map +1 -0
  11. package/dist/funcs/initMysql2Pool.js.map +1 -0
  12. package/dist/funcs/int2ip.js.map +1 -0
  13. package/dist/funcs/ip2int.js.map +1 -0
  14. package/dist/funcs/isLANIp.d.ts +2 -0
  15. package/{ts → dist}/funcs/isLANIp.js +6 -6
  16. package/dist/funcs/isLANIp.js.map +1 -0
  17. package/dist/funcs/isLocal.js.map +1 -0
  18. package/dist/funcs/isLoopbackIP.d.ts +2 -0
  19. package/{ts → dist}/funcs/isLoopbackIP.js +3 -3
  20. package/dist/funcs/isLoopbackIP.js.map +1 -0
  21. package/dist/funcs/knexConnection.js.map +1 -0
  22. package/dist/funcs/promiseTimeout.js.map +1 -0
  23. package/dist/funcs/randomIP.js.map +1 -0
  24. package/dist/funcs/randomIP6.js.map +1 -0
  25. package/dist/funcs/randomString.js.map +1 -0
  26. package/dist/funcs/randomTCPPort.js.map +1 -0
  27. package/dist/funcs/randomUTFString.js.map +1 -0
  28. package/dist/funcs/utcnow.js.map +1 -0
  29. package/dist/funcs/validEmail.js.map +1 -0
  30. package/dist/funcs/validIp.js.map +1 -0
  31. package/dist/funcs/vaultFill.js.map +1 -0
  32. package/dist/funcs/vaultRead.js.map +1 -0
  33. package/dist/funcs/wait.js.map +1 -0
  34. package/dist/global.js.map +1 -0
  35. package/dist/index.d.ts +38 -0
  36. package/{ts → dist}/index.js +35 -27
  37. package/dist/index.js.map +1 -0
  38. package/dist/ip6addr.d.ts +69 -0
  39. package/dist/ip6addr.js +752 -0
  40. package/dist/ip6addr.js.map +1 -0
  41. package/dist/models/DateIterator.js.map +1 -0
  42. package/{ts → dist}/models/IPAddress.d.ts +2 -1
  43. package/{ts → dist}/models/IPAddress.js +11 -12
  44. package/dist/models/IPAddress.js.map +1 -0
  45. package/dist/models/Interfaces.js.map +1 -0
  46. package/dist/models/OTPGenerator.js.map +1 -0
  47. package/dist/models/Timespan.js.map +1 -0
  48. package/dist/models/Unixtime.js.map +1 -0
  49. package/{mybase.d.ts → dist/mybase.d.ts} +1 -20
  50. package/{mybase.js → dist/mybase.js} +1 -56
  51. package/dist/mybase.js.map +1 -0
  52. package/{ts → dist}/types.d.ts +10 -0
  53. package/dist/types.js.map +1 -0
  54. package/package.json +22 -9
  55. package/ip6addr.d.ts +0 -61
  56. package/jest/isLANIp.test.js +0 -36
  57. package/jest/isLoopbackIP.test.js +0 -31
  58. package/jest.config.js +0 -13
  59. package/mybase.test.ts +0 -647
  60. package/mybase.ts +0 -397
  61. package/ts/funcs/Geoip2Paths.test.ts +0 -11
  62. package/ts/funcs/Geoip2Paths.ts +0 -28
  63. package/ts/funcs/MaxRuntimeHours.ts +0 -7
  64. package/ts/funcs/asJSON.test.js +0 -72
  65. package/ts/funcs/asJSON.ts +0 -9
  66. package/ts/funcs/deepCopy.test.ts +0 -108
  67. package/ts/funcs/deepCopy.ts +0 -34
  68. package/ts/funcs/ensureFolder.test.ts +0 -79
  69. package/ts/funcs/ensureFolder.ts +0 -21
  70. package/ts/funcs/fileCacheIsValid.ts +0 -13
  71. package/ts/funcs/getMysql1.ts +0 -41
  72. package/ts/funcs/getMysql2.ts +0 -42
  73. package/ts/funcs/getWeekNumber.test.ts +0 -9
  74. package/ts/funcs/getWeekNumber.ts +0 -31
  75. package/ts/funcs/hash_sha512.ts +0 -6
  76. package/ts/funcs/initMysql2Pool.ts +0 -11
  77. package/ts/funcs/int2ip.test.js +0 -33
  78. package/ts/funcs/int2ip.ts +0 -9
  79. package/ts/funcs/ip2int.test.js +0 -30
  80. package/ts/funcs/ip2int.ts +0 -10
  81. package/ts/funcs/isLANIp.d.ts +0 -2
  82. package/ts/funcs/isLANIp.test.ts +0 -58
  83. package/ts/funcs/isLANIp.ts +0 -34
  84. package/ts/funcs/isLocal.test.ts +0 -16
  85. package/ts/funcs/isLocal.ts +0 -5
  86. package/ts/funcs/isLoopbackIP.d.ts +0 -2
  87. package/ts/funcs/isLoopbackIP.test.ts +0 -72
  88. package/ts/funcs/isLoopbackIP.ts +0 -30
  89. package/ts/funcs/knexConnection.ts +0 -42
  90. package/ts/funcs/promiseTimeout.test.js +0 -104
  91. package/ts/funcs/promiseTimeout.ts +0 -19
  92. package/ts/funcs/randomIP.test.ts +0 -16
  93. package/ts/funcs/randomIP.ts +0 -10
  94. package/ts/funcs/randomIP6.test.js +0 -18
  95. package/ts/funcs/randomIP6.ts +0 -12
  96. package/ts/funcs/randomString.test.ts +0 -15
  97. package/ts/funcs/randomString.ts +0 -5
  98. package/ts/funcs/randomTCPPort.test.ts +0 -62
  99. package/ts/funcs/randomTCPPort.ts +0 -58
  100. package/ts/funcs/randomUTFString.test.ts +0 -44
  101. package/ts/funcs/randomUTFString.ts +0 -33
  102. package/ts/funcs/utcnow.ts +0 -5
  103. package/ts/funcs/validEmail.test.js +0 -31
  104. package/ts/funcs/validEmail.ts +0 -11
  105. package/ts/funcs/validIp.test.ts +0 -33
  106. package/ts/funcs/validIp.ts +0 -5
  107. package/ts/funcs/vaultFill.ts +0 -89
  108. package/ts/funcs/vaultRead.ts +0 -50
  109. package/ts/funcs/wait.ts +0 -7
  110. package/ts/global.ts +0 -10
  111. package/ts/index.d.ts +0 -35
  112. package/ts/index.test.ts +0 -7
  113. package/ts/index.ts +0 -39
  114. package/ts/models/DateIterator.test.ts +0 -149
  115. package/ts/models/DateIterator.ts +0 -80
  116. package/ts/models/IPAddress.test.ts +0 -393
  117. package/ts/models/IPAddress.ts +0 -272
  118. package/ts/models/Interfaces.ts +0 -58
  119. package/ts/models/OTPGenerator.test.ts +0 -42
  120. package/ts/models/OTPGenerator.ts +0 -43
  121. package/ts/models/Timespan.ts +0 -80
  122. package/ts/models/Unixtime.test.ts +0 -168
  123. package/ts/models/Unixtime.ts +0 -208
  124. package/ts/types.ts +0 -42
  125. package/tsconfig.jest.json +0 -11
  126. package/tsconfig.json +0 -37
  127. package/types/third-party.d.ts +0 -21
  128. /package/{ts → dist}/funcs/Geoip2Paths.d.ts +0 -0
  129. /package/{ts → dist}/funcs/Geoip2Paths.js +0 -0
  130. /package/{ts → dist}/funcs/MaxRuntimeHours.d.ts +0 -0
  131. /package/{ts → dist}/funcs/MaxRuntimeHours.js +0 -0
  132. /package/{ts → dist}/funcs/asJSON.d.ts +0 -0
  133. /package/{ts → dist}/funcs/asJSON.js +0 -0
  134. /package/{ts → dist}/funcs/deepCopy.d.ts +0 -0
  135. /package/{ts → dist}/funcs/deepCopy.js +0 -0
  136. /package/{ts → dist}/funcs/ensureFolder.d.ts +0 -0
  137. /package/{ts → dist}/funcs/ensureFolder.js +0 -0
  138. /package/{ts → dist}/funcs/fileCacheIsValid.d.ts +0 -0
  139. /package/{ts → dist}/funcs/fileCacheIsValid.js +0 -0
  140. /package/{ts → dist}/funcs/getMysql1.d.ts +0 -0
  141. /package/{ts → dist}/funcs/getMysql1.js +0 -0
  142. /package/{ts → dist}/funcs/getMysql2.d.ts +0 -0
  143. /package/{ts → dist}/funcs/getMysql2.js +0 -0
  144. /package/{ts → dist}/funcs/getWeekNumber.d.ts +0 -0
  145. /package/{ts → dist}/funcs/getWeekNumber.js +0 -0
  146. /package/{ts → dist}/funcs/hash_sha512.d.ts +0 -0
  147. /package/{ts → dist}/funcs/hash_sha512.js +0 -0
  148. /package/{ts → dist}/funcs/initMysql2Pool.d.ts +0 -0
  149. /package/{ts → dist}/funcs/initMysql2Pool.js +0 -0
  150. /package/{ts → dist}/funcs/int2ip.d.ts +0 -0
  151. /package/{ts → dist}/funcs/int2ip.js +0 -0
  152. /package/{ts → dist}/funcs/ip2int.d.ts +0 -0
  153. /package/{ts → dist}/funcs/ip2int.js +0 -0
  154. /package/{ts → dist}/funcs/isLocal.d.ts +0 -0
  155. /package/{ts → dist}/funcs/isLocal.js +0 -0
  156. /package/{ts → dist}/funcs/knexConnection.d.ts +0 -0
  157. /package/{ts → dist}/funcs/knexConnection.js +0 -0
  158. /package/{ts → dist}/funcs/promiseTimeout.d.ts +0 -0
  159. /package/{ts → dist}/funcs/promiseTimeout.js +0 -0
  160. /package/{ts → dist}/funcs/randomIP.d.ts +0 -0
  161. /package/{ts → dist}/funcs/randomIP.js +0 -0
  162. /package/{ts → dist}/funcs/randomIP6.d.ts +0 -0
  163. /package/{ts → dist}/funcs/randomIP6.js +0 -0
  164. /package/{ts → dist}/funcs/randomString.d.ts +0 -0
  165. /package/{ts → dist}/funcs/randomString.js +0 -0
  166. /package/{ts → dist}/funcs/randomTCPPort.d.ts +0 -0
  167. /package/{ts → dist}/funcs/randomTCPPort.js +0 -0
  168. /package/{ts → dist}/funcs/randomUTFString.d.ts +0 -0
  169. /package/{ts → dist}/funcs/randomUTFString.js +0 -0
  170. /package/{ts → dist}/funcs/utcnow.d.ts +0 -0
  171. /package/{ts → dist}/funcs/utcnow.js +0 -0
  172. /package/{ts → dist}/funcs/validEmail.d.ts +0 -0
  173. /package/{ts → dist}/funcs/validEmail.js +0 -0
  174. /package/{ts → dist}/funcs/validIp.d.ts +0 -0
  175. /package/{ts → dist}/funcs/validIp.js +0 -0
  176. /package/{ts → dist}/funcs/vaultFill.d.ts +0 -0
  177. /package/{ts → dist}/funcs/vaultFill.js +0 -0
  178. /package/{ts → dist}/funcs/vaultRead.d.ts +0 -0
  179. /package/{ts → dist}/funcs/vaultRead.js +0 -0
  180. /package/{ts → dist}/funcs/wait.d.ts +0 -0
  181. /package/{ts → dist}/funcs/wait.js +0 -0
  182. /package/{ts → dist}/global.d.ts +0 -0
  183. /package/{ts → dist}/global.js +0 -0
  184. /package/{ts → dist}/models/DateIterator.d.ts +0 -0
  185. /package/{ts → dist}/models/DateIterator.js +0 -0
  186. /package/{ts → dist}/models/Interfaces.d.ts +0 -0
  187. /package/{ts → dist}/models/Interfaces.js +0 -0
  188. /package/{ts → dist}/models/OTPGenerator.d.ts +0 -0
  189. /package/{ts → dist}/models/OTPGenerator.js +0 -0
  190. /package/{ts → dist}/models/Timespan.d.ts +0 -0
  191. /package/{ts → dist}/models/Timespan.js +0 -0
  192. /package/{ts → dist}/models/Unixtime.d.ts +0 -0
  193. /package/{ts → dist}/models/Unixtime.js +0 -0
  194. /package/{ts → dist}/types.js +0 -0
@@ -1,21 +0,0 @@
1
- declare module '@7c/validurl' {
2
- function validURL(host: unknown): boolean
3
- export = validURL
4
- }
5
-
6
- declare module 'ip6' {
7
- export function normalize(a: string): string
8
- export function abbreviate(a: string): string
9
- }
10
-
11
- declare module 'aes-js' {
12
- const aesjs: {
13
- utils: {
14
- utf8: { toBytes(s: string): Uint8Array; fromBytes(b: Uint8Array): string }
15
- hex: { fromBytes(b: Uint8Array): string; toBytes(s: string): Uint8Array }
16
- }
17
- padding: { pkcs7: { pad(b: Uint8Array, n: number): Uint8Array; strip(b: Uint8Array): Uint8Array } }
18
- ModeOfOperation: { cbc: new (key: Uint8Array) => { encrypt(b: Uint8Array): Uint8Array; decrypt(b: Uint8Array): Uint8Array } }
19
- }
20
- export = aesjs
21
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes