freerasp-react-native 4.2.3 → 4.3.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/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Info.plist +20 -0
- package/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Resources/DWARF/TalsecRuntime +0 -0
- package/6.13.0/dSYMs/iphoneos/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/aarch64/TalsecRuntime.yml +4153 -0
- package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Info.plist +20 -0
- package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/DWARF/TalsecRuntime +0 -0
- package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/aarch64/TalsecRuntime.yml +4036 -0
- package/6.13.0/dSYMs/iphonesimulator/TalsecRuntime.framework.dSYM/Contents/Resources/Relocations/x86_64/TalsecRuntime.yml +3951 -0
- package/CHANGELOG.md +69 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +45 -22
- package/android/src/main/java/com/freeraspreactnative/FreeraspThreatHandler.kt +39 -19
- package/android/src/main/java/com/freeraspreactnative/events/BaseRaspEvent.kt +7 -0
- package/android/src/main/java/com/freeraspreactnative/events/RaspExecutionStateEvent.kt +20 -0
- package/android/src/main/java/com/freeraspreactnative/events/ThreatEvent.kt +67 -0
- package/android/src/main/java/com/freeraspreactnative/models/RNSuspiciousAppInfo.kt +1 -0
- package/android/src/main/java/com/freeraspreactnative/utils/Extensions.kt +1 -0
- package/android/src/main/java/com/freeraspreactnative/utils/RandomGenerator.kt +18 -0
- package/android/src/main/java/com/freeraspreactnative/utils/Utils.kt +2 -5
- package/example/android/app/release/app-release.apk +0 -0
- package/example/android/app/release/baselineProfiles/0/app-release.dm +0 -0
- package/example/android/app/release/baselineProfiles/1/app-release.dm +0 -0
- package/example/android/app/release/output-metadata.json +37 -0
- package/example/android/app/src/main/AndroidManifest.xml +7 -0
- package/example/src/App.tsx +77 -3
- package/example/src/DemoApp.tsx +46 -1
- package/example/src/MalwareItem.tsx +4 -0
- package/example/src/checks.ts +3 -0
- package/example/src/styles.ts +2 -0
- package/freerasp-react-native.podspec +21 -16
- package/ios/FreeraspReactNative.m +4 -0
- package/ios/FreeraspReactNative.swift +37 -75
- package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +144 -114
- 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 +380 -281
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +5 -6
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +4 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +11 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +62 -22
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +2 -2
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +76 -164
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +5 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +17 -3
- 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 +181 -146
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +3 -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 +380 -281
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +5 -6
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +4 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +1 -1
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +11 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +62 -22
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +2 -2
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +76 -164
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +5 -4
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +17 -3
- 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 +181 -146
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +181 -146
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
- package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -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 +52 -41
- package/ios/models/RaspExecutionStates.swift +15 -0
- package/ios/models/SecurityThreat.swift +40 -0
- package/ios/utils/EventIdentifiers.swift +13 -0
- package/ios/utils/RandomGenerator.swift +12 -0
- package/ios/utils/Utils.swift +34 -0
- package/lib/commonjs/api/listeners/raspExecutionState.js +40 -0
- package/lib/commonjs/api/listeners/raspExecutionState.js.map +1 -0
- package/lib/commonjs/api/listeners/threat.js +102 -0
- package/lib/commonjs/api/listeners/threat.js.map +1 -0
- package/lib/commonjs/api/methods/native.js +43 -0
- package/lib/commonjs/api/methods/native.js.map +1 -0
- package/lib/commonjs/api/methods/reactNative.js +35 -0
- package/lib/commonjs/api/methods/reactNative.js.map +1 -0
- package/lib/commonjs/api/nativeModules.js +12 -0
- package/lib/commonjs/api/nativeModules.js.map +1 -0
- package/lib/commonjs/channels/raspExecutionState.js +36 -0
- package/lib/commonjs/channels/raspExecutionState.js.map +1 -0
- package/lib/commonjs/channels/threat.js +37 -0
- package/lib/commonjs/channels/threat.js.map +1 -0
- package/lib/commonjs/index.js +39 -188
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal.js +6 -0
- package/lib/commonjs/internal.js.map +1 -0
- package/lib/commonjs/models/raspExecutionState.js +17 -0
- package/lib/commonjs/models/raspExecutionState.js.map +1 -0
- package/lib/commonjs/{threat.js → models/threat.js} +4 -1
- package/lib/commonjs/models/threat.js.map +1 -0
- package/lib/commonjs/types/types.js.map +1 -0
- package/lib/commonjs/utils/malware.js +28 -0
- package/lib/commonjs/utils/malware.js.map +1 -0
- package/lib/commonjs/utils/utils.js +21 -0
- package/lib/commonjs/utils/utils.js.map +1 -0
- package/lib/module/api/listeners/raspExecutionState.js +32 -0
- package/lib/module/api/listeners/raspExecutionState.js.map +1 -0
- package/lib/module/api/listeners/threat.js +94 -0
- package/lib/module/api/listeners/threat.js.map +1 -0
- package/lib/module/api/methods/native.js +30 -0
- package/lib/module/api/methods/native.js.map +1 -0
- package/lib/module/api/methods/reactNative.js +28 -0
- package/lib/module/api/methods/reactNative.js.map +1 -0
- package/lib/module/api/nativeModules.js +5 -0
- package/lib/module/api/nativeModules.js.map +1 -0
- package/lib/module/channels/raspExecutionState.js +27 -0
- package/lib/module/channels/raspExecutionState.js.map +1 -0
- package/lib/module/channels/threat.js +28 -0
- package/lib/module/channels/threat.js.map +1 -0
- package/lib/module/index.js +5 -172
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal.js +3 -0
- package/lib/module/internal.js.map +1 -0
- package/lib/module/models/raspExecutionState.js +10 -0
- package/lib/module/models/raspExecutionState.js.map +1 -0
- package/lib/module/{threat.js → models/threat.js} +4 -1
- package/lib/module/models/threat.js.map +1 -0
- package/lib/module/types/types.js.map +1 -0
- package/lib/module/utils/malware.js +20 -0
- package/lib/module/utils/malware.js.map +1 -0
- package/lib/module/utils/utils.js +12 -0
- package/lib/module/utils/utils.js.map +1 -0
- package/lib/typescript/src/api/listeners/raspExecutionState.d.ts +4 -0
- package/lib/typescript/src/api/listeners/raspExecutionState.d.ts.map +1 -0
- package/lib/typescript/src/api/listeners/threat.d.ts +4 -0
- package/lib/typescript/src/api/listeners/threat.d.ts.map +1 -0
- package/lib/typescript/src/api/methods/native.d.ts +9 -0
- package/lib/typescript/src/api/methods/native.d.ts.map +1 -0
- package/lib/typescript/src/api/methods/reactNative.d.ts +3 -0
- package/lib/typescript/src/api/methods/reactNative.d.ts.map +1 -0
- package/lib/typescript/src/api/nativeModules.d.ts +2 -0
- package/lib/typescript/src/api/nativeModules.d.ts.map +1 -0
- package/lib/typescript/src/channels/raspExecutionState.d.ts +7 -0
- package/lib/typescript/src/channels/raspExecutionState.d.ts.map +1 -0
- package/lib/typescript/src/channels/threat.d.ts +8 -0
- package/lib/typescript/src/channels/threat.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -13
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal.d.ts +2 -0
- package/lib/typescript/src/internal.d.ts.map +1 -0
- package/lib/typescript/src/models/raspExecutionState.d.ts +7 -0
- package/lib/typescript/src/models/raspExecutionState.d.ts.map +1 -0
- package/lib/typescript/src/{threat.d.ts → models/threat.d.ts} +3 -0
- package/lib/typescript/src/models/threat.d.ts.map +1 -0
- package/lib/typescript/src/{types.d.ts → types/types.d.ts} +12 -1
- package/lib/typescript/src/types/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/malware.d.ts +4 -0
- package/lib/typescript/src/utils/malware.d.ts.map +1 -0
- package/lib/typescript/src/{utils.d.ts → utils/utils.d.ts} +1 -0
- package/lib/typescript/src/utils/utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/plugin/build/index.d.ts +0 -1
- package/src/api/listeners/raspExecutionState.ts +42 -0
- package/src/api/listeners/threat.ts +101 -0
- package/src/api/methods/native.ts +39 -0
- package/src/api/methods/reactNative.ts +42 -0
- package/src/api/nativeModules.ts +3 -0
- package/src/channels/raspExecutionState.ts +35 -0
- package/src/channels/threat.ts +35 -0
- package/src/index.tsx +5 -209
- package/src/internal.ts +2 -0
- package/src/models/raspExecutionState.ts +13 -0
- package/src/{threat.ts → models/threat.ts} +6 -0
- package/src/{types.ts → types/types.ts} +12 -1
- package/src/utils/malware.ts +24 -0
- package/src/utils/utils.ts +14 -0
- package/android/src/main/java/com/freeraspreactnative/Threat.kt +0 -57
- package/lib/commonjs/threat.js.map +0 -1
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils.js +0 -16
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/module/threat.js.map +0 -1
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils.js +0 -8
- package/lib/module/utils.js.map +0 -1
- package/lib/typescript/src/threat.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- package/lib/typescript/src/utils.d.ts.map +0 -1
- package/src/utils.ts +0 -9
- /package/lib/commonjs/{types.js → types/types.js} +0 -0
- /package/lib/module/{types.js → types/types.js} +0 -0
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#include "curl.h"
|
|
28
28
|
|
|
29
|
-
#ifdef
|
|
29
|
+
#ifdef __cplusplus
|
|
30
30
|
extern "C" {
|
|
31
31
|
#endif
|
|
32
32
|
|
|
@@ -97,11 +97,12 @@ typedef enum {
|
|
|
97
97
|
#define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
|
|
98
98
|
scheme is unknown. */
|
|
99
99
|
#define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
|
|
100
|
-
#define CURLU_PUNYCODE (1<<12) /* get the
|
|
100
|
+
#define CURLU_PUNYCODE (1<<12) /* get the hostname in punycode */
|
|
101
101
|
#define CURLU_PUNY2IDN (1<<13) /* punycode => IDN conversion */
|
|
102
102
|
#define CURLU_GET_EMPTY (1<<14) /* allow empty queries and fragments
|
|
103
103
|
when extracting the URL or the
|
|
104
104
|
components */
|
|
105
|
+
#define CURLU_NO_GUESS_SCHEME (1<<15) /* for get, do not accept a guess */
|
|
105
106
|
|
|
106
107
|
typedef struct Curl_URL CURLU;
|
|
107
108
|
|
|
@@ -142,8 +143,8 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
|
|
|
142
143
|
|
|
143
144
|
/*
|
|
144
145
|
* curl_url_strerror() turns a CURLUcode value into the equivalent human
|
|
145
|
-
* readable error string.
|
|
146
|
-
*
|
|
146
|
+
* readable error string. This is useful for printing meaningful error
|
|
147
|
+
* messajxa.
|
|
147
148
|
*/
|
|
148
149
|
CURL_EXTERN const char *curl_url_strerror(CURLUcode);
|
|
149
150
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
***************************************************************************/
|
|
26
26
|
|
|
27
|
-
#ifdef
|
|
27
|
+
#ifdef __cplusplus
|
|
28
28
|
extern "C" {
|
|
29
29
|
#endif
|
|
30
30
|
|
|
@@ -72,12 +72,26 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
|
|
|
72
72
|
curl_off_t fragsize,
|
|
73
73
|
unsigned int flags);
|
|
74
74
|
|
|
75
|
+
/*
|
|
76
|
+
* NAME curl_ws_start_frame()
|
|
77
|
+
*
|
|
78
|
+
* DESCRIPTION
|
|
79
|
+
*
|
|
80
|
+
* Buffers a websocket frame header with the given flags and length.
|
|
81
|
+
* Errors when a previous frame is not complete, e.g. not all its
|
|
82
|
+
* payload has been added.
|
|
83
|
+
*/
|
|
84
|
+
CURL_EXTERN CURLcode curl_ws_start_frame(CURL *curl,
|
|
85
|
+
unsigned int flags,
|
|
86
|
+
curl_off_t frame_len);
|
|
87
|
+
|
|
75
88
|
/* bits for the CURLOPT_WS_OPTIONS bitmask: */
|
|
76
|
-
#define CURLWS_RAW_MODE
|
|
89
|
+
#define CURLWS_RAW_MODE (1L<<0)
|
|
90
|
+
#define CURLWS_NOAUTOPONG (1L<<1)
|
|
77
91
|
|
|
78
92
|
CURL_EXTERN const struct curl_ws_frame *curl_ws_meta(CURL *curl);
|
|
79
93
|
|
|
80
|
-
#ifdef
|
|
94
|
+
#ifdef __cplusplus
|
|
81
95
|
}
|
|
82
96
|
#endif
|
|
83
97
|
|