freerasp-react-native 3.6.0 → 3.7.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.
- package/CHANGELOG.md +180 -0
- package/README.md +35 -1
- package/android/build.gradle +1 -1
- package/app.plugin.js +1 -0
- package/bootstrap.js +29 -0
- package/example/package.json +1 -1
- package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +923 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +369 -165
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +9 -7
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +11 -9
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +74 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +32 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +27 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +6 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +72 -70
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +29 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +84 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +542 -696
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +369 -165
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +9 -7
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +11 -9
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +74 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +32 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +27 -12
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +6 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +72 -70
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +29 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +84 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +536 -676
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +536 -676
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +72 -39
- package/lib/commonjs/definitions.js +11 -15
- package/lib/commonjs/definitions.js.map +1 -1
- package/lib/commonjs/index.js +15 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/definitions.js +11 -15
- package/lib/module/definitions.js.map +1 -1
- package/lib/module/index.js +14 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/plugin/src/index.d.ts +11 -0
- package/lib/typescript/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/plugin/src/pluginConfig.d.ts +21 -0
- package/lib/typescript/plugin/src/pluginConfig.d.ts.map +1 -0
- package/lib/typescript/src/definitions.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts.map +1 -0
- package/package.json +15 -24
- package/plugin/build/index.d.ts +10 -0
- package/plugin/build/index.js +63 -0
- package/plugin/build/pluginConfig.d.ts +20 -0
- package/plugin/build/pluginConfig.js +2 -0
- package/src/index.tsx +3 -0
- package/example/babel.config.js +0 -17
- package/lib/typescript/definitions.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/utils.d.ts.map +0 -1
- /package/lib/typescript/{definitions.d.ts → src/definitions.d.ts} +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{utils.d.ts → src/utils.d.ts} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* | (__| |_| | _ <| |___
|
|
8
8
|
* \___|\___/|_| \_\_____|
|
|
9
9
|
*
|
|
10
|
-
* Copyright (C)
|
|
10
|
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
11
11
|
*
|
|
12
12
|
* This software is licensed as described in the file COPYING, which
|
|
13
13
|
* you should have received as part of this distribution. The terms
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
21
21
|
* KIND, either express or implied.
|
|
22
22
|
*
|
|
23
|
+
* SPDX-License-Identifier: curl
|
|
24
|
+
*
|
|
23
25
|
***************************************************************************/
|
|
24
26
|
|
|
25
27
|
#include "curl.h"
|
|
@@ -47,7 +49,21 @@ typedef enum {
|
|
|
47
49
|
CURLUE_NO_HOST, /* 14 */
|
|
48
50
|
CURLUE_NO_PORT, /* 15 */
|
|
49
51
|
CURLUE_NO_QUERY, /* 16 */
|
|
50
|
-
CURLUE_NO_FRAGMENT
|
|
52
|
+
CURLUE_NO_FRAGMENT, /* 17 */
|
|
53
|
+
CURLUE_NO_ZONEID, /* 18 */
|
|
54
|
+
CURLUE_BAD_FILE_URL, /* 19 */
|
|
55
|
+
CURLUE_BAD_FRAGMENT, /* 20 */
|
|
56
|
+
CURLUE_BAD_HOSTNAME, /* 21 */
|
|
57
|
+
CURLUE_BAD_IPV6, /* 22 */
|
|
58
|
+
CURLUE_BAD_LOGIN, /* 23 */
|
|
59
|
+
CURLUE_BAD_PASSWORD, /* 24 */
|
|
60
|
+
CURLUE_BAD_PATH, /* 25 */
|
|
61
|
+
CURLUE_BAD_QUERY, /* 26 */
|
|
62
|
+
CURLUE_BAD_SCHEME, /* 27 */
|
|
63
|
+
CURLUE_BAD_SLASHES, /* 28 */
|
|
64
|
+
CURLUE_BAD_USER, /* 29 */
|
|
65
|
+
CURLUE_LACKS_IDN, /* 30 */
|
|
66
|
+
CURLUE_LAST
|
|
51
67
|
} CURLUcode;
|
|
52
68
|
|
|
53
69
|
typedef enum {
|
|
@@ -79,6 +95,9 @@ typedef enum {
|
|
|
79
95
|
#define CURLU_GUESS_SCHEME (1<<9) /* legacy curl-style guessing */
|
|
80
96
|
#define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
|
|
81
97
|
scheme is unknown. */
|
|
98
|
+
#define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
|
|
99
|
+
#define CURLU_PUNYCODE (1<<12) /* get the host name in punycode */
|
|
100
|
+
#define CURLU_PUNY2IDN (1<<13) /* punycode => IDN conversion */
|
|
82
101
|
|
|
83
102
|
typedef struct Curl_URL CURLU;
|
|
84
103
|
|
|
@@ -99,14 +118,14 @@ CURL_EXTERN void curl_url_cleanup(CURLU *handle);
|
|
|
99
118
|
* curl_url_dup() duplicates a CURLU handle and returns a new copy. The new
|
|
100
119
|
* handle must also be freed with curl_url_cleanup().
|
|
101
120
|
*/
|
|
102
|
-
CURL_EXTERN CURLU *curl_url_dup(CURLU *in);
|
|
121
|
+
CURL_EXTERN CURLU *curl_url_dup(const CURLU *in);
|
|
103
122
|
|
|
104
123
|
/*
|
|
105
124
|
* curl_url_get() extracts a specific part of the URL from a CURLU
|
|
106
125
|
* handle. Returns error code. The returned pointer MUST be freed with
|
|
107
126
|
* curl_free() afterwards.
|
|
108
127
|
*/
|
|
109
|
-
CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what,
|
|
128
|
+
CURL_EXTERN CURLUcode curl_url_get(const CURLU *handle, CURLUPart what,
|
|
110
129
|
char **part, unsigned int flags);
|
|
111
130
|
|
|
112
131
|
/*
|
|
@@ -117,6 +136,12 @@ CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what,
|
|
|
117
136
|
CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
|
|
118
137
|
const char *part, unsigned int flags);
|
|
119
138
|
|
|
139
|
+
/*
|
|
140
|
+
* curl_url_strerror() turns a CURLUcode value into the equivalent human
|
|
141
|
+
* readable error string. This is useful for printing meaningful error
|
|
142
|
+
* messaMMy.
|
|
143
|
+
*/
|
|
144
|
+
CURL_EXTERN const char *curl_url_strerror(CURLUcode);
|
|
120
145
|
|
|
121
146
|
#ifdef __cplusplus
|
|
122
147
|
} /* end of extern "C" */
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#ifndef CURLINC_WEBSOCKETS_H
|
|
2
|
+
#define CURLINC_WEBSOCKETS_H
|
|
3
|
+
/***************************************************************************
|
|
4
|
+
* _ _ ____ _
|
|
5
|
+
* Project ___| | | | _ \| |
|
|
6
|
+
* / __| | | | |_) | |
|
|
7
|
+
* | (__| |_| | _ <| |___
|
|
8
|
+
* \___|\___/|_| \_\_____|
|
|
9
|
+
*
|
|
10
|
+
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
11
|
+
*
|
|
12
|
+
* This software is licensed as described in the file COPYING, which
|
|
13
|
+
* you should have received as part of this distribution. The terms
|
|
14
|
+
* are also available at https://curl.se/docs/copyright.html.
|
|
15
|
+
*
|
|
16
|
+
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
17
|
+
* copies of the Software, and permit persons to whom the Software is
|
|
18
|
+
* furnished to do so, under the terms of the COPYING file.
|
|
19
|
+
*
|
|
20
|
+
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
21
|
+
* KIND, either express or implied.
|
|
22
|
+
*
|
|
23
|
+
* SPDX-License-Identifier: curl
|
|
24
|
+
*
|
|
25
|
+
***************************************************************************/
|
|
26
|
+
|
|
27
|
+
#ifdef __cplusplus
|
|
28
|
+
extern "C" {
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
struct curl_ws_frame {
|
|
32
|
+
int age; /* zero */
|
|
33
|
+
int flags; /* See the CURLWS_* defines */
|
|
34
|
+
curl_off_t offset; /* the offset of this data into the frame */
|
|
35
|
+
curl_off_t bytesleft; /* number of pending bytes left of the payload */
|
|
36
|
+
size_t len; /* size of the current data chunk */
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/* flag bits */
|
|
40
|
+
#define CURLWS_TEXT (1<<0)
|
|
41
|
+
#define CURLWS_BINARY (1<<1)
|
|
42
|
+
#define CURLWS_CONT (1<<2)
|
|
43
|
+
#define CURLWS_CLOSE (1<<3)
|
|
44
|
+
#define CURLWS_PING (1<<4)
|
|
45
|
+
#define CURLWS_OFFSET (1<<5)
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
* NAME curl_ws_recv()
|
|
49
|
+
*
|
|
50
|
+
* DESCRIPTION
|
|
51
|
+
*
|
|
52
|
+
* Receives data from the websocket connection. Use after successful
|
|
53
|
+
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
|
|
54
|
+
*/
|
|
55
|
+
CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
|
|
56
|
+
size_t *recv,
|
|
57
|
+
const struct curl_ws_frame **metap);
|
|
58
|
+
|
|
59
|
+
/* flags for curl_ws_send() */
|
|
60
|
+
#define CURLWS_PONG (1<<6)
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
* NAME curl_ws_send()
|
|
64
|
+
*
|
|
65
|
+
* DESCRIPTION
|
|
66
|
+
*
|
|
67
|
+
* Sends data over the websocket connection. Use after successful
|
|
68
|
+
* curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
|
|
69
|
+
*/
|
|
70
|
+
CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
|
|
71
|
+
size_t buflen, size_t *sent,
|
|
72
|
+
curl_off_t fragsize,
|
|
73
|
+
unsigned int flags);
|
|
74
|
+
|
|
75
|
+
/* bits for the CURLOPT_WS_OPTIONS bitmask: */
|
|
76
|
+
#define CURLWS_RAW_MODE (1<<0)
|
|
77
|
+
|
|
78
|
+
CURL_EXTERN const struct curl_ws_frame *curl_ws_meta(CURL *curl);
|
|
79
|
+
|
|
80
|
+
#ifdef __cplusplus
|
|
81
|
+
}
|
|
82
|
+
#endif
|
|
83
|
+
|
|
84
|
+
#endif /* CURLINC_WEBSOCKETS_H */
|