vibe-gx 2.0.0 → 3.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.
@@ -1,34 +0,0 @@
1
- #ifndef URL_PARSER_H
2
- #define URL_PARSER_H
3
-
4
- #include <napi.h>
5
- #include <string>
6
- #include <unordered_map>
7
-
8
- namespace vibe {
9
-
10
- /**
11
- * Fast URL parser for extracting path and query parameters
12
- */
13
- class UrlParser {
14
- public:
15
- struct ParseResult {
16
- std::string pathname;
17
- std::unordered_map<std::string, std::string> query;
18
- };
19
-
20
- static ParseResult Parse(const std::string& url);
21
- static std::string DecodeURIComponent(const std::string& encoded);
22
-
23
- private:
24
- static int HexToInt(char c);
25
- };
26
-
27
- // N-API wrapper functions
28
- Napi::Value ParseUrl(const Napi::CallbackInfo& info);
29
- Napi::Value ParseQuery(const Napi::CallbackInfo& info);
30
- Napi::Value DecodeURI(const Napi::CallbackInfo& info);
31
-
32
- } // namespace vibe
33
-
34
- #endif // URL_PARSER_H
@@ -1,46 +0,0 @@
1
- /**
2
- * Vibe Native - N-API Entry Point
3
- *
4
- * Provides high-performance C++ implementations for:
5
- * - JSON stringification
6
- * - URL parsing
7
- * - Query string parsing
8
- */
9
-
10
- #include <napi.h>
11
- #include "json_stringify.h"
12
- #include "url_parser.h"
13
-
14
- Napi::Object Init(Napi::Env env, Napi::Object exports) {
15
- // JSON functions
16
- exports.Set(
17
- Napi::String::New(env, "stringify"),
18
- Napi::Function::New(env, vibe::FastStringify)
19
- );
20
-
21
- // URL functions
22
- exports.Set(
23
- Napi::String::New(env, "parseUrl"),
24
- Napi::Function::New(env, vibe::ParseUrl)
25
- );
26
-
27
- exports.Set(
28
- Napi::String::New(env, "parseQuery"),
29
- Napi::Function::New(env, vibe::ParseQuery)
30
- );
31
-
32
- exports.Set(
33
- Napi::String::New(env, "decodeURI"),
34
- Napi::Function::New(env, vibe::DecodeURI)
35
- );
36
-
37
- // Version info
38
- exports.Set(
39
- Napi::String::New(env, "version"),
40
- Napi::String::New(env, "1.0.0")
41
- );
42
-
43
- return exports;
44
- }
45
-
46
- NODE_API_MODULE(vibe_native, Init)