socks 2.2.3 → 2.3.3
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.
- package/.travis.yml +2 -0
- package/README.md +13 -11
- package/build/client/socksclient.js +11 -2
- package/build/client/socksclient.js.map +1 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/helpers.js +1 -2
- package/build/common/helpers.js.map +1 -1
- package/build/common/receivebuffer.js.map +1 -1
- package/build/common/util.js.map +1 -1
- package/docs/examples/javascript/associateExample.md +1 -1
- package/docs/examples/javascript/bindExample.md +1 -1
- package/docs/examples/javascript/connectExample.md +1 -1
- package/docs/examples/typescript/associateExample.md +1 -1
- package/docs/examples/typescript/bindExample.md +1 -1
- package/docs/examples/typescript/connectExample.md +1 -1
- package/package.json +15 -12
- package/typings/client/socksclient.d.ts +23 -21
- package/typings/common/constants.d.ts +14 -10
- package/typings/common/receiveBuffer.d.ts +1 -1
- package/typings/common/util.d.ts +4 -1
- package/yarn-error.log +0 -2416
- package/yarn.lock +0 -2300
package/typings/common/util.d.ts
CHANGED
@@ -11,4 +11,7 @@ declare class SocksClientError extends Error {
|
|
11
11
|
* @param array The array to shuffle.
|
12
12
|
*/
|
13
13
|
declare function shuffleArray(array: any[]): void;
|
14
|
-
|
14
|
+
declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
15
|
+
[K in Keys]?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
16
|
+
}[Keys];
|
17
|
+
export { RequireOnlyOne, SocksClientError, shuffleArray };
|